text stringlengths 54 19.6k |
|---|
begin:
Create a TextLabel saying "Shop" with Michroma font with background Color3.fromRGB(128,0,255) in Roblox GUI.
completion:
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.1,0)
ele... |
prompt:
Spawn a white brick cylinder part at (20,5,20) size (2,2,2) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Brick
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(2,2,2)
part.Position = Vector3.new(20,5,20)
part.Anchored = true
part... |
query:
Create a TextLabel saying "Submit" with Oswald font with background Color3.fromRGB(0,0,0) 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.5,0,0.1,0)
elem.Posi... |
query:
Play a sound with volume 0.6, pitch 0.7, looped=true.
completion:
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 0.6
sound.PlaybackSpeed = 0.7
sound.Looped = true
sound.Parent = workspace
sound:Play()
-- Sound will loop continuously |
prompt:
Create an anchored cyan Wood Block part sized 8x2x8 at position 48,99,20 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(8,2,8)
part.Position = Vector3.new(48,99,20)
part... |
question:
Create an unanchored gold Plastic Block part sized 10x4x8 at position 12,98,-36 in Roblox Luau.
finish:
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(10,4,8)
part.Position = Vector3.new(1... |
begin:
Create an unanchored gray Plastic Block part sized 2x6x4 at position -32,70,48 in Roblox Luau.
completion:
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,6,4)
part.Position = Vector3.new(... |
instruction:
Tween Reflectance with Back Out easing, 3s duration, 2 repeats, non-reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 2, false, 0)
local goal = {Reflectance = 0.9}
l... |
query:
Tween Transparency with Quad In easing, 0.25s duration, 0 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, true, 0)
local goal = {Transparency = 0.8}
loca... |
prompt:
Create an anchored pink Plastic Block part sized 8x6x4 at position -29,85,21 in Roblox Luau.
solution:
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(8,6,4)
part.Position = Vector3.new(-29... |
query:
Create an anchored cyan Wood Block part sized 4x6x6 at position 30,95,15 in Roblox Luau.
output:
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,6,6)
part.Position = Vector3.new(30,95,15)
part.... |
instruction:
Tween Color with Back InOut easing, 0.75s duration, 0 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false, 0)
local goal = {Color = Col... |
input_text:
Create an unanchored gray Plastic Block part sized 8x2x6 at position -44,83,-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(128,128,128)
part.Size = Vector3.new(8,2,6)
part.Position = Vector... |
query:
Tween Transparency with Quad InOut easing, 0.25s duration, infinite repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {Transpa... |
input:
Tween Reflectance with Cubic In easing, 0.25s duration, 3 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 3, false, 0)
local goal = {Reflectance = 0.9}
loca... |
input:
Create an anchored pink Wood Block part sized 6x4x4 at position -41,73,-40 in Roblox Luau.
finish:
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(6,4,4)
part.Position = Vector3.new(-41,73,-40)... |
user:
Build a system that a clickable TextButton that says "Next Level" and prints a message when clicked.
result:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
... |
instruction:
Create an unanchored teal Plastic Block part sized 1x2x10 at position -47,32,-11 in Roblox Luau.
completion:
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,10)
part.Position = Vecto... |
begin:
Create a TextButton saying "Game Over" with Bangers font with background Color3.fromRGB(50,200,50) 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.3,0,0.1,0)... |
instruction:
Create a TextButton saying "Menu" with PatrickHand font with background Color3.fromRGB(50,50,80) in Roblox GUI.
answer:
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... |
prompt:
Create an unanchored red Plastic Block part sized 1x4x8 at position -40,30,-38 in Roblox Luau.
answer:
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(1,4,8)
part.Position = Vector3.new(-40,30,... |
start:
Create an unanchored brown Wood Block part sized 10x2x2 at position -13,53,-47 in Roblox Luau.
result:
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(10,2,2)
part.Position = Vector3.new(-13,53,-... |
instruction:
Make a red Plastic part with a Highlight effect attached in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local... |
input:
Create a TextLabel saying "Click Me" with Creepster font with background Color3.fromRGB(200,50,50) in Roblox GUI.
solution:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0.08,0)
e... |
query:
Write Roblox Luau code to Add a SunRaysEffect post-processing effect to the game's Lighting.
output_text:
local Lighting = game:GetService("Lighting")
local effect = Instance.new("SunRaysEffect")
effect.Intensity = 0.1
effect.Spread = 0.5
effect.Parent = Lighting |
input_text:
Tween CFrame with Elastic Out easing, 0.75s duration, 3 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 3, true, 0)
local goal = {CFrame = part.CFr... |
begin:
Spawn a brown fabric block part at (-10,15,20) size (1,6,6) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Fabric
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(1,6,6)
part.Position = Vector3.new(-10,15,20)
part.Anchored = tr... |
input:
Tween Reflectance with Quint Out easing, 3s duration, 0 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Reflectance = 0.9}
local ... |
start:
Create an unanchored white Plastic Block part sized 4x6x6 at position 20,37,42 in Roblox Luau.
answer:
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(4,6,6)
part.Position = Vector3.new(20,37,42)
part... |
query:
Tween Size with Cubic InOut 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.InOut, 2, false, 0)
local goal = {Size = Vector3.new(8,8,8... |
start:
Tween Position with Elastic Out easing, 1s duration, 0 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0)
local goal = {Position = Vector3.new(1... |
query:
Create a TextLabel saying "Next" with RobotoMono font with background Color3.fromRGB(0,120,255) 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(1,0,0,50)
elem.P... |
start:
Create an anchored red Wood Block part sized 4x1x10 at position 16,70,-14 in Roblox Luau.
output_text:
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(4,1,10)
part.Position = Vector3.new(16,70,-14)... |
start:
Create an unanchored yellow Wood Block part sized 6x1x4 at position -5,1,28 in Roblox Luau.
end:
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(6,1,4)
part.Position = Vector3.new(-5,1,28)
part.A... |
query:
Create an anchored red Plastic Block part sized 6x4x8 at position -10,97,-41 in Roblox Luau.
finish:
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,4,8)
part.Position = Vector3.new(-10,97,-41... |
start:
Create an anchored cyan Wood Block part sized 6x1x10 at position -14,17,-25 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,255)
part.Size = Vector3.new(6,1,10)
part.Position = Vector3.new(-14,17,-25)... |
start:
Create a TextButton saying "Game Over" with Oswald font with background Color3.fromRGB(30,30,40) 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,50)
elem.Po... |
start:
Tween Transparency with Bounce InOut easing, 0.5s duration, 1 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 1, true, 0)
local goal = {Transparency = 0.8}... |
user:
Create an anchored gold Plastic Block part sized 2x1x1 at position -45,18,36 in Roblox Luau.
response:
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(2,1,1)
part.Position = Vector3.new(-45,18,... |
query:
Create an unanchored yellow Plastic Block part sized 10x4x1 at position 43,59,32 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(10,4,1)
part.Position = Vector3.new(43,... |
start:
Tween a part's Size with Quart In easing over 2s in Roblox
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Create(part, in... |
question:
Tween Transparency with Linear In easing, 0.25s duration, 0 repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, true, 0)
local goal = {Transparency = 0.8}... |
query:
Create a part that is lime, transparency 0, CanCollide=true, Reflectance=0.
output:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(0, 255, 0)
part.Transparency = 0
part.CanCollide = true
part.Reflectance = 0
part.Anchored = true
part.Parent = workspace |
instruction:
Create an anchored orange Wood Block part sized 1x6x10 at position 31,75,-37 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(1,6,10)
part.Position = Vector3.new(31,7... |
prompt:
Tween CFrame with Circular In easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 1, false, 0)
local goal = {CFrame = part.CFra... |
user:
Create an unanchored brown Wood Block part sized 1x6x4 at position 8,3,-50 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(1,6,4)
part.Position = Vector3.new(8,3,-50)
p... |
question:
Write client code to invoke the "GetLeaderboard" RemoteFunction and handle the response.
result:
-- LocalScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteFunction = ReplicatedStorage:WaitForChild("GetLeaderboard")
local success, result = pcall(function()
return remoteFun... |
query:
Create an unanchored purple Wood Block part sized 1x6x6 at position 33,37,-22 in Roblox Luau.
output_text:
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(1,6,6)
part.Position = Vector3.new(33,37... |
question:
Write a Roblox script to a DataStore system that saves a full player profile table with multiple stats and inventory.
response:
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local dataStore = DataStoreService:GetDataStore("PlayerProfiles")
local DEF... |
instruction:
Create an anchored black Wood Block part sized 8x2x10 at position 13,21,-28 in Roblox Luau.
output:
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,2,10)
part.Position = Vector3.new(13,21,-28)
pa... |
user:
Create an anchored green Plastic Block part sized 1x6x1 at position 25,42,-48 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,0)
part.Size = Vector3.new(1,6,1)
part.Position = Vector3.new(25,42,-48)... |
user:
Apply a BodyVelocity of (-49, 37, 14) to a part.
output_text:
local part = workspace:WaitForChild("PhysicsPart")
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(-49, 37, 14)
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.P = 1250
bodyVeloc... |
input:
Create an unanchored white Plastic Block part sized 8x4x1 at position -24,54,39 in Roblox Luau.
answer:
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,4,1)
part.Position = Vector3.new(-24,54,39)
pa... |
begin:
Spawn a cyan neon cylinder part at (5,20,5) size (8,2,6) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(8,2,6)
part.Position = Vector3.new(5,20,5)
part.Anchored = false
p... |
begin:
Create an anchored orange Plastic Block part sized 10x1x10 at position 18,46,48 in Roblox Luau.
model:
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,1,10)
part.Position = Vector3.new(18,4... |
user:
Tween Position with Exponential Out easing, 1.5s duration, 2 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 2, true, 0)
local goal = {Position = Vector... |
question:
Tween a part's CFrame with Quart In easing over 2s in Roblox
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
local tween = Tween... |
question:
Create a TextButton saying "Play" with Bangers font with background Color3.fromRGB(255,128,0) 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,200,0.1,0)
ele... |
user:
Tween Position with Circular Out easing, 0.75s duration, 0 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Position = Vector3.ne... |
start:
Give me a script for Tween a part to position (-28, 26, -7) over 3.7 seconds using Back easing (In).
finish:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
3.7,
Enum.EasingStyle.Back,
Enum.EasingDirection.In
)... |
input_text:
Create an anchored white Plastic Block part sized 1x1x10 at position 27,1,14 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(1,1,10)
part.Position = Vector3.new(27,1,14)
part... |
start:
Create an unanchored orange Plastic Block part sized 8x1x10 at position 1,9,9 in Roblox Luau.
model:
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(8,1,10)
part.Position = Vector3.new(1,9,9)
... |
question:
Create an unanchored blue Plastic Block part sized 4x4x4 at position 49,67,-2 in Roblox Luau.
output:
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(4,4,4)
part.Position = Vector3.new(49,67,... |
prompt:
Create an anchored gold Wood Block part sized 1x6x6 at position 30,43,50 in Roblox Luau.
finish:
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,6,6)
part.Position = Vector3.new(30,43,50)
part... |
query:
Tween Transparency with Quad InOut easing, 0.75s duration, 0 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)
local goal = {Transparency = 0.8... |
question:
Spawn a white corrodedmetal block part at (20,1,5) size (6,2,4) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(6,2,4)
part.Position = Vector3.new(20,1,5)
part.Anchored = f... |
input_text:
Make a pink DiamondPlate part with a Fire effect attached in Roblox Luau.
model:
local part = Instance.new("Part")
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspa... |
start:
Make a black Slate part with a Highlight effect attached in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance... |
query:
Create a green corrodedmetal wedgepart at position (-29, 33, 17) with size (5, 16, 18), anchored=false.
solution:
local part = Instance.new("WedgePart")
part.Size = Vector3.new(5, 16, 18)
part.Position = Vector3.new(-29, 33, 17)
part.Color = Color3.fromRGB(0, 255, 0)
part.Material = Enum.Material.CorrodedMetal
... |
start:
Create a TextButton saying "Start" top-right in Roblox GUI
result:
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("TextButton")
el... |
instruction:
Write server code that listens for the "ItemPickup" RemoteEvent and validates the sender.
answer:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ItemPickup")
remoteEvent.OnServerEvent:Connect(function(player, data)
if not player or n... |
task:
Create an unanchored gray Plastic Block part sized 1x6x6 at position -18,84,24 in Roblox Luau.
finish:
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(1,6,6)
part.Position = Vector3.new(-18,8... |
begin:
Can you write code to a part that is silver, transparency 0.25, CanCollide=false, Reflectance=0.5.
solution:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(192, 192, 192)
part.Transparency = 0.25
part.CanCollide = false
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
question:
Make a script that Show useful math functions and operations in Luau.
response:
-- Basic math
print(math.abs(-5)) -- 5
print(math.ceil(4.2)) -- 5
print(math.floor(4.8)) -- 4
print(math.round(4.5)) -- 5 (Luau feature)
print(math.max(3, 7, 1)) -- 7
print(math.min(3, 7, 1)) -- 1
print(math.sqr... |
input_text:
Create an unanchored gold Wood Block part sized 6x1x4 at position 17,37,-7 in Roblox Luau.
output:
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,1,4)
part.Position = Vector3.new(17,37,-7... |
instruction:
Tween Size with Quad InOut easing, 2.5s duration, 2 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Size = Vector3.new(8,8... |
question:
Create an unanchored orange Wood Block part sized 6x1x10 at position 13,79,-44 in Roblox Luau.
output_text:
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,1,10)
part.Position = Vector3.new(... |
start:
Tween a part to position (7, 25, 3) over 1.6 seconds using Exponential easing (In).
answer:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
1.6,
Enum.EasingStyle.Exponential,
Enum.EasingDirection.In
)
local go... |
prompt:
Write a script to create a simple crafting system in Roblox
finish:
local Crafting = {}
local recipes = {
["Iron Sword"] = {{Name="Iron Ingot",Qty=3},{Name="Wood",Qty=1}},
["Health Potion"] = {{Name="Red Herb",Qty=2},{Name="Water",Qty=1}},
}
function Crafting.canCraft(inv, name)
local r = recipes[name]
if... |
question:
Tween Size with Quint InOut easing, 0.5s duration, infinite repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, -1, false, 0)
local goal = {Size = Vecto... |
user:
Create an unanchored brown Wood Block part sized 2x6x1 at position -36,61,9 in Roblox Luau.
finish:
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,6,1)
part.Position = Vector3.new(-36,61,9)
par... |
query:
Spawn a blue wood cylinder part at (-5,1,0) size (6,1,6) in Roblox.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,1,6)
part.Position = Vector3.new(-5,1,0)
part.Anchored = false
p... |
task:
Make a purple Concrete part with a SpotLight effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx... |
task:
Create an unanchored yellow Wood Block part sized 4x1x10 at position 31,12,-11 in Roblox Luau.
result:
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(4,1,10)
part.Position = Vector3.new(31,12,-11... |
query:
Tween Reflectance with Linear In easing, 0.75s duration, 3 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 3, true, 0)
local goal = {Reflectance = 0.9}
loca... |
query:
Create an anchored purple Plastic Block part sized 6x1x8 at position -41,39,-30 in Roblox Luau.
answer:
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(6,1,8)
part.Position = Vector3.new(-41,3... |
user:
Create an anchored pink Wood Block part sized 8x4x4 at position 5,90,4 in Roblox Luau.
end:
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(8,4,4)
part.Position = Vector3.new(5,90,4)
part.Anchor... |
user:
Create an unanchored pink Wood Block part sized 10x4x6 at position -15,76,-1 in Roblox Luau.
completion:
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(10,4,6)
part.Position = Vector3.new(-15,7... |
query:
Tween Color with Exponential InOut easing, 3s duration, 0 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 0, false, 0)
local goal = {Color = Color3... |
input:
Create a TextButton saying "Yes" with Michroma 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(1,0,0.1,0)
elem.Position =... |
query:
Create a TextLabel saying "Settings" with Nunito font with background Color3.fromRGB(200,50,50) 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,200,0.1,0)
elem.... |
instruction:
Create an unanchored blue Plastic Block part sized 1x6x1 at position -37,90,48 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(1,6,1)
part.Position = Vector3.new(-37,9... |
question:
Create an anchored black Plastic Block part sized 10x1x1 at position 38,90,35 in Roblox Luau.
answer:
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,1)
part.Position = Vector3.new(38,90,35)
p... |
user:
Create an anchored blue Wood Block part sized 4x4x10 at position -45,98,28 in Roblox Luau.
completion:
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(4,4,10)
part.Position = Vector3.new(-45,98,28)
... |
start:
Create a TextButton saying "Help" with RobotoMono 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("TextButton")
elem.Size = UDim2.new(0.3,0,0,50)
elem... |
prompt:
Create an unanchored red Wood Block part sized 12x4x6 at position -36,36,22 in Roblox Luau.
model:
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(12,4,6)
part.Position = Vector3.new(-36,36,22)
pa... |
task:
Tween Size with Quart InOut easing, 5s duration, 3 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {Size = Vector3.new(8,8,8)}
loca... |
input_text:
Create an anchored red Wood Block part sized 2x4x10 at position 5,8,0 in Roblox Luau.
end:
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(2,4,10)
part.Position = Vector3.new(5,8,0)
part.Ancho... |
user:
Create an anchored orange Wood Block part sized 1x6x1 at position -27,31,33 in Roblox Luau.
solution:
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(1,6,1)
part.Position = Vector3.new(-27,31,33)
... |
prompt:
Tween Color with Cubic In easing, 0.5s duration, 2 repeats, reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.