text stringlengths 54 19.6k |
|---|
start:
Create an anchored purple Wood Block part sized 12x1x4 at position 39,70,49 in Roblox Luau.
end:
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(12,1,4)
part.Position = Vector3.new(39,70,49)
part... |
task:
Create a TextButton saying "Help" with GothamBold font with background Color3.fromRGB(255,128,0) 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.5,0,0.1,0)
elem.... |
start:
Can you write code to an Instance of type Sparkles and configure its properties.
result:
local instance = Instance.new("Sparkles")
-- Configure properties as needed
instance.Parent = workspace:WaitForChild("TargetPart")
-- To remove later:
-- instance:Destroy() |
input:
Create an unanchored cyan Wood Block part sized 10x2x2 at position -22,53,21 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(10,2,2)
part.Position = Vector3.new(-22,53,21)... |
start:
Create a TextLabel saying "Settings" with Michroma font with background Color3.fromRGB(0,120,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.3,0,0.08,0)
el... |
prompt:
Create an anchored cyan Wood Block part sized 12x6x8 at position -43,80,9 in Roblox Luau.
output_text:
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(12,6,8)
part.Position = Vector3.new(-43,80,... |
query:
Tween Reflectance with Back In easing, 2.5s duration, 2 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Back, Enum.EasingDirection.In, 2, true, 0)
local goal = {Reflectance = 0.9}
local tw... |
question:
Create a TextLabel saying "Resume" with RobotoMono font with background Color3.fromRGB(255,128,0) 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.2,0,0.08,0)
el... |
start:
Create an anchored gold Wood Block part sized 6x4x8 at position 7,50,49 in Roblox Luau.
result:
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(6,4,8)
part.Position = Vector3.new(7,50,49)
part.An... |
task:
Create a TextButton saying "Help" with FredokaOne 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("TextButton")
elem.Size = UDim2.new(0,150,0,50)
... |
prompt:
Create a TextButton saying "Retry" with LuckiestGuy font with background Color3.fromRGB(200,50,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.5,0,0,50)
elem... |
input_text:
Script for Add a trail effect to a moving part.
model:
local part = workspace:WaitForChild("TrailPart")
local attachment0 = Instance.new("Attachment")
attachment0.Position = Vector3.new(0, 0.5, 0)
attachment0.Parent = part
local attachment1 = Instance.new("Attachment")
attachment1.Position = Vector3.new(... |
input:
Create an anchored black Wood Block part sized 8x6x4 at position 50,22,-30 in Roblox Luau.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(8,6,4)
part.Position = Vector3.new(50,22,-30)
part.... |
input:
Help me Tween a part to position (10, 19, 20) over 2.6 seconds using Circular easing (In).
model:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
2.6,
Enum.EasingStyle.Circular,
Enum.EasingDirection.In
)
local... |
instruction:
Create a ScreenGui with a TextLabel that says "Game Over" using font Garamond at size 48.
model:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
screen... |
user:
Create an unanchored purple Plastic Block part sized 8x1x6 at position -29,18,-16 in Roblox Luau.
end:
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,1,6)
part.Position = Vector3.new(-29,18,... |
task:
Create a TextLabel saying "Play" with Bangers 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,200,0,40)
elem.Posit... |
input:
Tween Position with Cubic Out easing, 1.5s duration, 1 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Position = Vector3.new(1... |
user:
Create an unanchored orange Wood Block part sized 4x2x10 at position 41,43,-23 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,2,10)
part.Position = Vector3.new(41,43,-23... |
instruction:
Make a orange Plastic part with a Highlight effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
loc... |
begin:
Create an unanchored gray Wood Block part sized 12x4x6 at position 7,3,12 in Roblox Luau.
output:
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,4,6)
part.Position = Vector3.new(7,3,12)
par... |
input:
Create a TextLabel saying "Next" with Creepster font with background Color3.fromRGB(200,50,50) in Roblox GUI.
response:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,200,0,40)
elem.... |
begin:
Create a Dagger tool that deals 15 damage when activated.
output:
local tool = script.Parent
local damage = 15
local debounce = false
local cooldown = 0.5
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = tool.Parent
local humanoid = character:... |
input_text:
Create an anchored pink Plastic Block part sized 1x4x8 at position -32,43,45 in Roblox Luau.
response:
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,4,8)
part.Position = Vector3.new... |
instruction:
Spawn a blue glass cylinder part at (5,20,0) size (8,1,6) in Roblox.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(8,1,6)
part.Position = Vector3.new(5,20,0)
part.Anchored ... |
instruction:
Tween Position with Cubic InOut easing, 1s duration, 3 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 3, true, 0)
local goal = {Position = Vector3.new(... |
prompt:
Make a cyan Wood part with a Sparkles effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Ins... |
begin:
Write client-side code to fire a RemoteEvent called "ChatEvent" to the server.
completion:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ChatEvent")
local data = {
action = "request",
timestamp = os.clock()
}
remoteEvent:FireServer(d... |
instruction:
Tween Reflectance with Bounce InOut easing, 0.25s duration, 2 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Re... |
input_text:
Tween Color with Quart InOut easing, 0.75s duration, 2 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Color = Color3.fromRGB(... |
instruction:
Create an anchored green Wood Block part sized 8x2x10 at position -6,55,10 in Roblox Luau.
completion:
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(8,2,10)
part.Position = Vector3.new(-6,5... |
user:
Make a ball that is lime and neon at (20,25,-5) size (1,2,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(1,2,8)
part.Position = Vector3.new(20,25,-5)
part.Anchored = true
p... |
begin:
Create an unanchored black Wood Block part sized 4x2x4 at position 46,34,-7 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(4,2,4)
part.Position = Vector3.new(46,34,-7)
part.Anc... |
begin:
Create an anchored brown Plastic Block part sized 12x4x6 at position 28,7,-7 in Roblox Luau.
result:
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(12,4,6)
part.Position = Vector3.new(28,7,-7... |
task:
Use DataStore UpdateAsync to safely increment a player's coins.
output:
local DataStoreService = game:GetService("DataStoreService")
local dataStore = DataStoreService:GetDataStore("PlayerCoins")
local function addCoins(userId, amount)
local success, newValue = pcall(function()
return dataStore:Upda... |
task:
Create an unanchored blue Plastic Block part sized 12x4x6 at position 8,48,36 in Roblox Luau.
output_text:
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,4,6)
part.Position = Vector3.new(8,48... |
instruction:
Create a TextButton saying "Equip" with Bangers font with background Color3.fromRGB(0,0,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,150,0,50)
elem... |
begin:
Spawn a pink granite cylinder part at (5,25,-10) size (8,2,8) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Granite
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(8,2,8)
part.Position = Vector3.new(5,25,-10)
part.Anchored... |
instruction:
Create a TextLabel saying "Undo" with Michroma font with background Color3.fromRGB(0,120,255) in Roblox GUI.
answer:
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,60)
el... |
prompt:
Create a lime brick part with Highlight effect in Roblox
answer:
local part = Instance.new("Part")
part.Material = Enum.Material.Brick
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance.new("... |
begin:
Detect when the player presses the C key using UserInputService.
end:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.C then
print("C key was pr... |
input:
Create an unanchored blue Wood Block part sized 1x1x8 at position -50,51,-26 in Roblox Luau.
solution:
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(1,1,8)
part.Position = Vector3.new(-50,51,-26)... |
begin:
Tween Position with Quart In easing, 0.25s duration, 0 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, false, 0)
local goal = {Position = Vector3... |
task:
Create an anchored red Plastic Block part sized 2x2x10 at position 20,2,37 in Roblox Luau.
model:
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(2,2,10)
part.Position = Vector3.new(20,2,37)
part... |
query:
Create an anchored cyan Wood Block part sized 6x1x4 at position -33,76,-2 in Roblox Luau.
output_text:
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(6,1,4)
part.Position = Vector3.new(-33,76,-2... |
input:
Create an unanchored brown Wood Block part sized 2x4x4 at position 2,6,19 in Roblox Luau.
completion:
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(2,4,4)
part.Position = Vector3.new(2,6,19)
pa... |
start:
Tween Color with Back InOut easing, 0.75s duration, 2 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Color = Color3.fromR... |
prompt:
Create an anchored brown Plastic Block part sized 4x1x2 at position 40,38,-26 in Roblox Luau.
answer:
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,2)
part.Position = Vector3.new(40,38,... |
input:
Create an unanchored blue Wood Block part sized 6x1x10 at position -20,51,-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,1,10)
part.Position = Vector3.new(-20,51,-23)... |
prompt:
Create an unanchored teal Plastic Block part sized 1x2x2 at position 31,27,2 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(1,2,2)
part.Position = Vector3.new(31,27,2... |
input_text:
Create an anchored cyan Plastic Block part sized 10x1x2 at position -13,88,-12 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,255)
part.Size = Vector3.new(10,1,2)
part.Position = Vector3.... |
task:
Tween Reflectance with Bounce InOut easing, 0.25s duration, 0 repeats, reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 0, true, 0)
local goal = {Reflectance = 0.... |
begin:
Implement a way to Use RunService.Heartbeat to create a smooth rotation animation on a part.
finish:
local RunService = game:GetService("RunService")
local part = workspace:WaitForChild("SpinPart")
local rotationSpeed = 90 -- degrees per second
RunService.Heartbeat:Connect(function(deltaTime)
part.CFrame ... |
start:
Tween Reflectance with Sine Out easing, 2s duration, 2 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 2, true, 0)
local goal = {Reflectance = 0.9}
local tween = T... |
prompt:
Create an anchored white Wood Block part sized 2x4x6 at position -40,54,-35 in Roblox Luau.
solution:
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(2,4,6)
part.Position = Vector3.new(-40,54,-35)
part.... |
prompt:
Create an unanchored purple Wood Block part sized 2x1x4 at position 27,20,-28 in Roblox Luau.
output:
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(2,1,4)
part.Position = Vector3.new(27,20,-28... |
begin:
Tween Transparency with Linear InOut easing, 0.75s duration, 0 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, true, 0)
local goal = {Transparenc... |
task:
Tween a part's Size with Elastic In easing over 3s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Elastic, Enum.EasingDirection.In)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Create(part,... |
begin:
Tween Position with Linear Out easing, 0.5s duration, 1 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Position = Vector3.new(10,... |
query:
Tween Position with Linear InOut easing, 1s duration, 3 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {Position = Vector3.ne... |
instruction:
Create an unanchored purple Plastic Block part sized 4x2x10 at position 18,37,-48 in Roblox Luau.
response:
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,2,10)
part.Position = Vector... |
question:
Script for Check if a player owns a specific GamePass and grant them a bonus.
output_text:
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local GAMEPASS_ID = 0 -- Replace with your GamePass ID
Players.PlayerAdded:Connect(function(player)
loca... |
user:
Create an anchored white Wood Block part sized 8x4x6 at position -41,83,-21 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(8,4,6)
part.Position = Vector3.new(-41,83,-21)
part.Anch... |
start:
Create an unanchored cyan Wood Block part sized 4x2x2 at position 6,29,-29 in Roblox Luau.
solution:
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,2,2)
part.Position = Vector3.new(6,29,-29)
p... |
input_text:
Create a TextLabel saying "Equip" with Oswald font with background Color3.fromRGB(0,0,0) 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.5,0,0,60)
elem.Pos... |
task:
Create a TextLabel saying "Loading..." with Creepster font with background Color3.fromRGB(50,50,80) 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,200,0,60)
ele... |
task:
Tween a part's Position with Bounce In easing over 5s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:... |
start:
Create an anchored gray Wood Block part sized 2x4x2 at position 29,5,18 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(2,4,2)
part.Position = Vector3.new(29,5,18)
p... |
start:
Create an anchored purple Plastic Block part sized 1x2x2 at position -46,85,3 in Roblox Luau.
end:
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(1,2,2)
part.Position = Vector3.new(-46,85,3)
... |
question:
Create an anchored black Plastic Block part sized 8x1x2 at position -32,17,-7 in Roblox Luau.
completion:
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(8,1,2)
part.Position = Vector3.new(-32,17,-... |
query:
Create an anchored cyan Wood Block part sized 12x1x10 at position -29,26,6 in Roblox Luau.
solution:
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(12,1,10)
part.Position = Vector3.new(-29,26,6)... |
instruction:
Create an anchored cyan Plastic Block part sized 2x2x4 at position -37,52,2 in Roblox Luau.
finish:
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(2,2,4)
part.Position = Vector3.new(-37... |
user:
Create an anchored gray Wood Block part sized 2x1x6 at position 17,33,-48 in Roblox Luau.
output:
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(2,1,6)
part.Position = Vector3.new(17,33,-48)
pa... |
start:
Tween Reflectance with Quad Out easing, 4s duration, 0 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
local goal = {Reflectance = 0.9}
local t... |
start:
Tween Size with Quart In easing, 0.25s duration, 2 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 2, false, 0)
local goal = {Size = Vector3.new(8,8,... |
task:
Create an anchored green Plastic Block part sized 2x6x1 at position 35,97,4 in Roblox Luau.
output_text:
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,6,1)
part.Position = Vector3.new(35,97,4... |
input_text:
Create a blue cobblestone cylinder at (5,25,-10) size (8,6,8) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Cobblestone
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(8,6,8)
part.Position = Vector3.new(5,25,-10)
part.A... |
question:
Tween a part's CFrame with Circular InOut easing over 0.5s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
... |
instruction:
Script a ball with glass material colored blue at (-5,25,5) size (4,1,6) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(4,1,6)
part.Position = Vector3.new(-5,25,5)
part.An... |
instruction:
Create an anchored orange Plastic Block part sized 10x4x2 at position 7,72,45 in Roblox Luau.
output:
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,4,2)
part.Position = Vector3.new(... |
instruction:
Create an unanchored red Plastic Block part sized 8x1x1 at position 45,71,-31 in Roblox Luau.
model:
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,1,1)
part.Position = Vector3.new(45,7... |
user:
Create an unanchored black Wood Block part sized 1x6x6 at position -22,52,13 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(1,6,6)
part.Position = Vector3.new(-22,52,13)
part.Anch... |
instruction:
Tween Position with Back In easing, 5s duration, 0 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)
local goal = {Position = Vector3.new(10,... |
begin:
Tween CFrame with Back Out easing, 2.5s duration, 0 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, true, 0)
local goal = {CFrame = part.CFrame*CFrame.... |
prompt:
How do I Tween a part to position (-7, 18, -26) over 0.7 seconds using Circular easing (Out).
response:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
0.7,
Enum.EasingStyle.Circular,
Enum.EasingDirection.Out
... |
user:
Create a ScreenGui with a TextLabel that says "Time: 0:00" using font Garamond at size 64.
solution:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
screenGui... |
input:
Create an unanchored gray Plastic Block part sized 2x2x8 at position -36,90,-27 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(2,2,8)
part.Position = Vector3.new(-... |
instruction:
Tween CFrame with Cubic Out easing, 4s duration, 2 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 2, false, 0)
local goal = {CFrame = part.CFra... |
begin:
Create a TextLabel saying "Game Over" with Oswald font with background Color3.fromRGB(50,50,80) 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,150,0,60)
e... |
input_text:
Tween Size with Quad In easing, 3s duration, 1 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 1, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
local tween... |
user:
Script a block with wood material colored gold at (20,20,5) size (1,2,1) in Roblox.
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(1,2,1)
part.Position = Vector3.new(20,20,5)
part.Anchored =... |
begin:
Create an anchored green Wood Block part sized 2x4x1 at position 42,60,-11 in Roblox Luau.
finish:
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(2,4,1)
part.Position = Vector3.new(42,60,-11)
part... |
input:
Script for Set the player's WalkSpeed to 75 and JumpPower to 75.
output:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.WalkSpeed = 75
... |
user:
Make a teal Plastic part with a Highlight effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = I... |
start:
Tween Color with Exponential Out easing, 0.75s duration, 1 repeats, reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Color = Color3.... |
query:
Create an anchored red Plastic Block part sized 12x2x10 at position -41,92,-14 in Roblox Luau.
response:
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(12,2,10)
part.Position = Vector3.new(-41,... |
input:
What are the basic Lua syntax fundamentals including variables, loops, conditionals, and functions?
output_text:
--create variable--
word = "hello"
or
local word = "hello"
--if else--
if true then
print("1")
elseif false then
print("2")
else
print("3")
end
--while loop--
while true do
print("THIS IS WO... |
user:
How do I work with Roblox objects like parts, players, and instances using Luau?
solution:
--change brick color--
game.Workspace.Mypart.BrickColor = BrickColor.new("Black")
--change color through RGB--
game.Workspace.Mypart.Color = Color3.fromRGB(255, 255, 255)
--change brick transparency--
game.Workspace.Mypa... |
prompt:
How do I handle UI events like hovering, clicking, and create moving platforms in Roblox?
finish:
--Hovering--
script.Parent.MouseEnter:Connect(function()
print("Mouse is hovering above")
end)
--leaving--
script.Parent.MouseLeave:Connect(function()
print("Mouse is no longer hovering")
end)
--clicking--
scr... |
input:
How do I save and load player data using DataStoreService in Roblox?
completion:
--Get DataStore service
local DataStoreService = game:GetService("DataStoreService")
local dataStore = DataStoreService:GetDataStore("MyDataStore")
--Save data
local success, err = pcall(function()
dataStore:SetAsync(player.UserI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.