text stringlengths 54 19.6k |
|---|
instruction:
Create an unanchored brown Wood Block part sized 12x4x4 at position 2,24,16 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(12,4,4)
part.Position = Vector3.new(2,2... |
question:
Create a RemoteFunction called "ValidatePurchase" that returns data from the server to the client.
end:
-- Server Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteFunction = Instance.new("RemoteFunction")
remoteFunction.Name = "ValidatePurchase"
remoteFunction.Parent = Repli... |
instruction:
Create a TextBox saying "Exit" bottom-center in Roblox GUI
output:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local elem = Instance.new("TextBox")... |
task:
Write a Roblox script to Show error handling patterns in Luau with pcall and xpcall.
solution:
-- Basic pcall
local success, result = pcall(function()
return 10 / 0
end)
if success then
print("Result: " .. result)
else
warn("Error: " .. tostring(result))
end
-- pcall with arguments
local success, d... |
question:
Create an unanchored purple Plastic Block part sized 8x4x4 at position 11,41,-28 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(8,4,4)
part.Position = Vector3.new... |
question:
Create an unanchored cyan Plastic Block part sized 6x6x10 at position 34,43,-8 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(6,6,10)
part.Position = Vector3.new(34... |
prompt:
Create a TextLabel saying "Start" with Ubuntu font with background Color3.fromRGB(30,30,40) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,150,0,60)
elem.Posi... |
query:
Tween CFrame with Sine Out easing, 2.5s duration, 3 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, false, 0)
local goal = {CFrame = part.CFrame*CFrame... |
begin:
Tween Position with Cubic Out easing, 1.5s duration, 1 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 1, false, 0)
local goal = {Position = Vector3.new(... |
query:
Tween Color with Quint In easing, 4s duration, 0 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)}
loca... |
task:
Tween Size with Circular InOut easing, 2.5s duration, infinite repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, -1, false, 0)
local goal = {Size = V... |
question:
Create a TextButton saying "Play" with GothamBold font with background Color3.fromRGB(255,128,0) in Roblox GUI.
output_text:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,150,0,... |
user:
Create an anchored gold Wood Block part sized 10x1x2 at position 32,51,38 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(10,1,2)
part.Position = Vector3.new(32,51,38)
part.An... |
input:
Tween Reflectance with Back In easing, 1s duration, 0 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)
local goal = {Reflectance = 0.9}
local... |
user:
Create an unanchored orange Wood Block part sized 6x6x4 at position 34,63,-15 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(6,6,4)
part.Position = Vector3.new(34,63,-15)
... |
prompt:
Create a TextButton saying "Welcome!" with RobotoMono font with background Color3.fromRGB(40,40,40) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,200,0.08,0... |
start:
Tween Position with Exponential In easing, 3s duration, infinite repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, -1, true, 0)
local goal = {Position = Vector... |
begin:
Make a ball that is orange and sand at (20,25,-5) size (2,6,8) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Sand
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(2,6,8)
part.Position = Vector3.new(20,25,-5)
part.Anchored = false... |
prompt:
Create an unanchored white Plastic Block part sized 8x1x1 at position -27,98,15 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(8,1,1)
part.Position = Vector3.new(-27,98,15)... |
user:
Create a TextLabel saying "Equip" with LuckiestGuy font with background Color3.fromRGB(128,0,255) in Roblox GUI.
finish:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.3,0,0.1,0)
elem... |
input_text:
Create an anchored red Plastic Block part sized 6x2x4 at position -43,66,-40 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(6,2,4)
part.Position = Vector3.new(-43,6... |
instruction:
Create an unanchored purple Wood Block part sized 10x1x10 at position -43,47,5 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(10,1,10)
part.Position = Vector3.new(-4... |
task:
Spawn a gold ice ball part at (20,50,5) size (4,1,6) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Ice
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(4,1,6)
part.Position = Vector3.new(20,50,5)
part.Anchored = true
part.Parent = wo... |
query:
Create an anchored brown Plastic Block part sized 4x1x1 at position 13,24,28 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(4,1,1)
part.Position = Vector3.new(13,24,28... |
input_text:
Create an unanchored gray Wood Block part sized 12x1x10 at position 40,23,-13 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(12,1,10)
part.Position = Vector3.n... |
instruction:
Create a TextBox saying "Exit" top-right in Roblox GUI
answer:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local elem = Instance.new("TextBox")
ele... |
instruction:
Create a part that is cyan, transparency 0, CanCollide=true, Reflectance=0.5.
output_text:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(0, 255, 255)
part.Transparency = 0
part.CanCollide = true
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
begin:
Tween Position with Exponential In easing, 4s duration, 1 repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 1, true, 0)
local goal = {Position = Vector3.new... |
task:
Create an anchored white Plastic Block part sized 12x2x10 at position -6,37,10 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(12,2,10)
part.Position = Vector3.new(-6,37,10)
part.A... |
question:
Create a TextLabel saying "Start" with PatrickHand font with background Color3.fromRGB(50,200,50) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.3,0,0,60)
e... |
start:
Create a part that is silver, transparency 1, CanCollide=true, Reflectance=0.
finish:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(192, 192, 192)
part.Transparency = 1
part.CanCollide = true
part.Reflectance = 0
part.Anchored = true
part.Parent = workspace |
input_text:
Create an anchored yellow Wood Block part sized 1x2x1 at position 46,97,-24 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(1,2,1)
part.Position = Vector3.new(46,... |
question:
Tween a part's Reflectance with Quint In easing over 5s in Roblox
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.In)
local goal = {Reflectance = 0.9}
local tween = TweenService:Create(part, i... |
question:
Tween Position with Exponential In easing, 0.25s duration, 3 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 3, true, 0)
local goal = {Position = Ve... |
user:
Create an anchored orange Wood Block part sized 4x4x1 at position 22,42,-21 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(4,4,1)
part.Position = Vector3.new(22,42,-21)
pa... |
task:
Build a system that a projectile weapon that fires a ball at speed 100 dealing 30 damage on hit.
solution:
local tool = script.Parent
local damage = 30
local speed = 100
local debounce = false
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = tool.P... |
user:
Script a block with brick material colored cyan at (-5,25,-5) size (1,2,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Brick
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(1,2,8)
part.Position = Vector3.new(-5,25,-5)
part.A... |
task:
Create a TextBox saying "Welcome!" bottom-center in Roblox GUI
solution:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local elem = Instance.new("TextBox")
... |
prompt:
Create a TextLabel saying "Back" with FredokaOne font with background Color3.fromRGB(50,50,80) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.3,0,0.1,0)
elem.Pos... |
start:
Create an anchored gold Plastic Block part sized 6x2x2 at position -40,55,38 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(6,2,2)
part.Position = Vector3.new(-40,55,38... |
task:
What's the code to a clickable TextButton that says "Confirm" and prints a message when clicked.
finish:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
loca... |
task:
Make a ball that is black and corrodedmetal at (-5,20,0) size (1,2,1) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(1,2,1)
part.Position = Vector3.new(-5,20,0)
part.Anchored... |
input:
Create an anchored purple Plastic Block part sized 4x1x8 at position 47,1,2 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(4,1,8)
part.Position = Vector3.new(47,1,2)
p... |
input:
Create an anchored pink Wood Block part sized 2x2x6 at position 12,80,38 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(2,2,6)
part.Position = Vector3.new(12,80,38)
p... |
instruction:
Tween Size with Sine Out easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0)
local goal = {Size = Vector3.new(... |
task:
Create an anchored orange Plastic Block part sized 4x2x10 at position -15,83,-40 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(4,2,10)
part.Position = Vector3.new(-1... |
query:
Create an unanchored red Plastic Block part sized 8x6x1 at position -30,90,-37 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,6,1)
part.Position = Vector3.new(-30,90,-... |
user:
Create an anchored cyan Wood Block part sized 4x4x4 at position 43,57,16 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(43,57,16)
part.A... |
prompt:
Create an anchored blue Plastic Block part sized 12x1x8 at position 30,13,30 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(12,1,8)
part.Position = Vector3.new(30,13,30)
p... |
query:
Create a TextLabel saying "Back" with LuckiestGuy font with background Color3.fromRGB(0,120,255) in Roblox GUI.
output_text:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,200,0,60)
... |
prompt:
Create an anchored green Wood Block part sized 12x2x2 at position 45,26,44 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(12,2,2)
part.Position = Vector3.new(45,26,44)
part... |
input_text:
Create a rounded Frame with corner radius 8 and a stroke thickness of 2.
finish:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local frame = Instance... |
start:
Create a TextButton saying "Buy" with Roboto font with background Color3.fromRGB(0,0,0) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.5,0,0,50)
elem.Position = ... |
question:
Create an unanchored white Wood Block part sized 10x6x2 at position -48,58,-9 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(10,6,2)
part.Position = Vector3.new(-48,58,-9)
par... |
instruction:
Tween a part's Position with Sine Out easing over 3s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:... |
start:
Create an anchored white Wood Block part sized 1x6x2 at position 17,11,27 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(1,6,2)
part.Position = Vector3.new(17,11,27)
part.Anchored... |
input:
Create an unanchored gray Wood Block part sized 8x6x1 at position 7,96,-20 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(8,6,1)
part.Position = Vector3.new(7,96,-20)
pa... |
instruction:
Tween a part to position (21, 21, 15) over 2.5 seconds using Cubic easing (In).
response:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
2.5,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.In
)
local goal... |
task:
Detect RightAlt key press to reload in Roblox
finish:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.RightAlt then
print("RightAlt pressed - reload!")
-- Add y... |
question:
Tween Position with Exponential InOut easing, 0.25s duration, 1 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, true, 0)
local goal = {Positio... |
user:
Make a gray Slate part with a Smoke effect attached in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Inst... |
user:
Create a TextButton saying "Settings" with GothamBold font with background Color3.fromRGB(40,40,40) in Roblox GUI.
solution:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.2,0,0,40)
... |
instruction:
Create an unanchored orange Plastic Block part sized 10x6x10 at position 13,4,-2 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(10,6,10)
part.Position = Vector3.new... |
task:
Create an anchored blue Plastic Block part sized 6x4x6 at position -8,42,35 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,4,6)
part.Position = Vector3.new(-8,42,35)
pa... |
user:
Create a TextButton saying "Close" with FredokaOne font with background Color3.fromRGB(50,200,50) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.3,0,0.1,0)
elem.P... |
instruction:
Create a TextButton saying "Continue" with Roboto font with background Color3.fromRGB(255,128,0) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.5,0,0,40... |
task:
Create an unanchored purple Plastic Block part sized 8x4x6 at position -10,38,44 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(8,4,6)
part.Position = Vector3.new(-10,38... |
instruction:
Script a ball with wood material colored lime at (0,50,0) size (8,2,8) in Roblox.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(8,2,8)
part.Position = Vector3.new(0,50,0)
part.... |
user:
I need to Connect two parts with a SpringConstraint.
end:
local partA = workspace:WaitForChild("PartA")
local partB = workspace:WaitForChild("PartB")
local attachmentA = Instance.new("Attachment")
attachmentA.Parent = partA
local attachmentB = Instance.new("Attachment")
attachmentB.Parent = partB
local constr... |
input:
Tween Color with Cubic InOut easing, 1s duration, infinite repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {Color = Color3.fromRGB(... |
instruction:
Tween Size with Linear Out easing, 3s duration, 1 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, false, 0)
local goal = {Size = Vector3.new(8,8,... |
input:
Create a gold diamondplate block at (-10,50,20) size (4,6,2) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(4,6,2)
part.Position = Vector3.new(-10,50,20)
part.Anchor... |
begin:
Create an unanchored red Wood Block part sized 8x2x4 at position -19,91,24 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,2,4)
part.Position = Vector3.new(-19,91,24)
part... |
start:
Script a block with metal material colored teal at (0,5,10) size (1,4,8) in Roblox.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Metal
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(1,4,8)
part.Position = Vector3.new(0,5,10)
part.An... |
task:
Show different ways to define and use functions in Luau.
solution:
-- Basic function
local function greet(name)
return "Hello, " .. name .. "!"
end
-- Function with multiple returns
local function divide(a, b)
if b == 0 then
return nil, "Cannot divide by zero"
end
return a / b, nil
end
... |
instruction:
Create an unanchored black Plastic Block part sized 10x1x4 at position -18,22,-43 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(10,1,4)
part.Position = Vector3.new(-18,... |
query:
Create a TextButton saying "Loading..." with Ubuntu font with background Color3.fromRGB(50,200,50) in Roblox GUI.
finish:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,150,0.1,0)
e... |
instruction:
Create a TextButton saying "Close" with Ubuntu font with background Color3.fromRGB(0,120,255) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,200,0,60)
elem... |
question:
Create an anchored pink Plastic Block part sized 4x6x4 at position 23,78,10 in Roblox Luau.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,6,4)
part.Position = Vector3.new... |
user:
Create a TextButton saying "Pause" with Bangers font with background Color3.fromRGB(200,50,50) in Roblox GUI.
model:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,200,0,40)
elem.Pos... |
user:
Create a red marble block at (10,50,-10) size (8,4,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Marble
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,4,8)
part.Position = Vector3.new(10,50,-10)
part.Anchored = true
part.P... |
start:
Create an unanchored green Plastic Block part sized 2x4x10 at position 35,16,2 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(2,4,10)
part.Position = Vector3.new(35,... |
begin:
Create an anchored yellow Wood Block part sized 2x6x10 at position 22,95,-16 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(2,6,10)
part.Position = Vector3.new(22,95,-16)... |
user:
Create an unanchored cyan Plastic Block part sized 1x6x1 at position 6,6,-42 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(1,6,1)
part.Position = Vector3.new(6,6,-42)
par... |
query:
Tween Reflectance with Quint Out easing, 2s duration, infinite repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, -1, true, 0)
local goal = {Reflectance = 0.9}
lo... |
prompt:
Create a TextButton saying "Continue" with RobotoMono font with background Color3.fromRGB(50,50,80) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.5,0,0,60)
ele... |
user:
Create an anchored white Wood Block part sized 6x6x4 at position -39,40,48 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(6,6,4)
part.Position = Vector3.new(-39,40,48)
part.An... |
user:
Create a TextLabel saying "Continue" with Creepster font with background Color3.fromRGB(128,0,255) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.5,0,0,40)
elem... |
query:
Tween Position with Linear In easing, 0.5s duration, 0 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
local goal = {Position = Vector3.ne... |
begin:
Tween Size with Cubic In easing, 0.5s duration, 2 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, false, 0)
local goal = {Size = Vector3.new(8,8,8)}
loc... |
input:
Create an unanchored white Wood Block part sized 12x2x4 at position 5,15,-26 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(12,2,4)
part.Position = Vector3.new(5,15,-26)
part.Anch... |
query:
Tween Size with Linear Out easing, 1.5s duration, infinite repeats, non-reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
local goal = {Size = Vector3.ne... |
user:
Create an anchored blue Wood Block part sized 6x2x1 at position 4,49,23 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,2,1)
part.Position = Vector3.new(4,49,23)
part.Ancho... |
query:
Create an unanchored white Plastic Block part sized 10x6x8 at position -40,84,-1 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(10,6,8)
part.Position = Vector3.new(-40,84,-1)
par... |
input:
Make a script that Apply a BodyVelocity of (-11, 43, -4) to a part.
answer:
local part = workspace:WaitForChild("PhysicsPart")
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(-11, 43, -4)
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.P =... |
user:
Create a ProximityPrompt on a teleporter part that says "Use Teleporter" with hold duration 1.4s and max distance 5.
solution:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Use Teleporter"
prompt.ObjectText = "Teleporter"
prompt.KeyboardKeyCode = Enum.KeyCode.F
p... |
user:
Tween Reflectance with Sine In easing, 1.5s duration, 2 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 2, true, 0)
local goal = {Reflectance = 0.9}
local twe... |
begin:
Tween Transparency with Elastic InOut easing, 2.5s duration, 1 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Transparency... |
begin:
Tween Color with Quart InOut easing, 3s duration, 3 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)}... |
task:
Create an unanchored pink Plastic Block part sized 1x2x6 at position -28,91,21 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(1,2,6)
part.Position = Vector3.new(-28,91... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.