text stringlengths 54 19.6k |
|---|
instruction:
Create a black pebble wedgepart at position (37, 54, 26) with size (4, 5, 6), anchored=true.
solution:
local part = Instance.new("WedgePart")
part.Size = Vector3.new(4, 5, 6)
part.Position = Vector3.new(37, 54, 26)
part.Color = Color3.fromRGB(0, 0, 0)
part.Material = Enum.Material.Pebble
part.Anchored = t... |
query:
Script for Tween a part to position (7, 25, 3) over 1.6 seconds using Exponential easing (In).
output:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
1.6,
Enum.EasingStyle.Exponential,
Enum.EasingDirection.In
... |
query:
Tween a part's Position with Back In easing over 3s in Roblox
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.In)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:Create(p... |
prompt:
Tween a part's Color with Back InOut easing over 2s in Roblox
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.InOut)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Cre... |
prompt:
Create a TextButton saying "Equip" with Roboto font with background Color3.fromRGB(50,200,50) 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.2,0,0.08,0)
elem... |
start:
Create a brown foil part with Smoke effect in Roblox
completion:
local part = Instance.new("Part")
part.Material = Enum.Material.Foil
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance.new("Sm... |
input_text:
Create a TextButton saying "Next" with RobotoMono font with background Color3.fromRGB(40,40,40) 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,150,0.08,0... |
user:
Create a TextLabel saying "Save" with Nunito 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,200,0,60)
elem.Position =... |
user:
Create an anchored green Plastic Block part sized 2x6x6 at position -31,85,11 in Roblox Luau.
solution:
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,6)
part.Position = Vector3.new(-31,85,1... |
task:
Create an anchored red Plastic Block part sized 10x6x8 at position -45,32,10 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(10,6,8)
part.Position = Vector3.new(-45,32,1... |
user:
Create an unanchored orange Wood Block part sized 10x1x4 at position -42,69,-38 in Roblox Luau.
model:
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(10,1,4)
part.Position = Vector3.new(-42,69,-3... |
input_text:
Make a teal Wood part with a SpotLight effect attached in Roblox Luau.
output:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
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 ... |
start:
Create a TextLabel saying "Loading..." with Roboto font with background Color3.fromRGB(200,50,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.5,0,0.1,0)
ele... |
task:
Create a black cobblestone part with Smoke effect in Roblox
output:
local part = Instance.new("Part")
part.Material = Enum.Material.Cobblestone
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.new("S... |
question:
Tween Color with Sine In easing, 1s duration, 3 repeats, non-reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 3, false, 0)
local goal = {Color = Color3.fromRGB(255,0,0)... |
input_text:
Create an anchored purple Plastic Block part sized 12x2x8 at position -6,46,8 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(12,2,8)
part.Position = Vector3.new(-6... |
begin:
Create an anchored gold Wood Block part sized 2x2x10 at position -26,24,-9 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(2,2,10)
part.Position = Vector3.new(-26,24,-9)
p... |
query:
Create a TextLabel saying "Resume" with PatrickHand font with background Color3.fromRGB(128,0,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(0.3,0,0,40)
e... |
user:
Create an unanchored orange Plastic Block part sized 2x2x1 at position 4,28,13 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,128,0)
part.Size = Vector3.new(2,2,1)
part.Position = Vector3.new(4,... |
question:
Tween Size with Quint In easing, 5s duration, 0 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
local ... |
start:
Make a block that is cyan and metal at (5,10,-10) size (6,6,1) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Metal
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(6,6,1)
part.Position = Vector3.new(5,10,-10)
part.Anchored = tru... |
user:
Tween Size with Exponential InOut easing, 2s duration, infinite repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, -1, false, 0)
local goal = {Size =... |
query:
Create an anchored cyan Plastic Block part sized 12x1x6 at position 49,40,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(12,1,6)
part.Position = Vector3.new(49,... |
start:
Create an unanchored yellow Wood Block part sized 1x1x2 at position 23,17,-38 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(1,1,2)
part.Position = Vector3.new(23,17,-38)... |
instruction:
Create a TextButton saying "Welcome!" with Oswald 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.3,0,0,50)
e... |
user:
Create a TextLabel saying "Welcome!" top-right in Roblox GUI
response:
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("TextLabel")
... |
input_text:
Create an anchored red Plastic Block part sized 6x2x1 at position 45,41,-43 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(6,2,1)
part.Position = Vector3.new(45,41,... |
start:
Script a block with neon material colored pink at (20,5,20) size (1,4,6) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(1,4,6)
part.Position = Vector3.new(20,5,20)
part.Anch... |
input:
Tween CFrame with Back In easing, 1s duration, 1 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In, 1, false, 0)
local goal = {CFrame = part.CFrame*CFrame.new... |
query:
Create a ScreenGui with a TextLabel that says "Loading..." using font SciFi at size 14.
end:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
screenGui.Parent... |
task:
Create an anchored blue Wood Block part sized 12x2x10 at position -29,10,35 in Roblox Luau.
finish:
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(12,2,10)
part.Position = Vector3.new(-29,10,35)
pa... |
instruction:
Create a orange marble part with PointLight effect in Roblox
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Marble
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
local fx = Inst... |
start:
Create an anchored black Wood Block part sized 2x4x6 at position -20,23,9 in Roblox Luau.
result:
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(2,4,6)
part.Position = Vector3.new(-20,23,9)
part.Anchore... |
begin:
Create a purple corrodedmetal wedgepart at position (-35, 31, -22) with size (15, 17, 15), anchored=true.
end:
local part = Instance.new("WedgePart")
part.Size = Vector3.new(15, 17, 15)
part.Position = Vector3.new(-35, 31, -22)
part.Color = Color3.fromRGB(128, 0, 128)
part.Material = Enum.Material.CorrodedMetal... |
input_text:
Create a gold slate part with Smoke effect in Roblox
solution:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance.new... |
user:
Create an anchored blue Wood Block part sized 2x6x6 at position -50,82,-22 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(2,6,6)
part.Position = Vector3.new(-50,82,-22)
part... |
start:
Create an unanchored pink Plastic Block part sized 1x6x1 at position 31,12,40 in Roblox Luau.
output:
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,6,1)
part.Position = Vector3.new(31,12... |
begin:
Tween Transparency with Linear In easing, 0.5s duration, infinite repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, false, 0)
local goal = {Transpa... |
question:
Create a Luau script that will a black cobblestone cornerwedgepart at position (-2, 0, -1) with size (13, 2, 6), anchored=false.
completion:
local part = Instance.new("CornerWedgePart")
part.Size = Vector3.new(13, 2, 6)
part.Position = Vector3.new(-2, 0, -1)
part.Color = Color3.fromRGB(0, 0, 0)
part.Material... |
user:
Create an anchored blue Plastic Block part sized 4x1x2 at position -38,25,-13 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(4,1,2)
part.Position = Vector3.new(-38,25,-13)
p... |
prompt:
Implement a way to a simple ragdoll system that activates when the player dies.
result:
local Players = game:GetService("Players")
local function enableRagdoll(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
humanoid:SetStateEnabled(Enum... |
input_text:
Create an anchored green Wood Block part sized 2x1x8 at position -7,32,-24 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,0)
part.Size = Vector3.new(2,1,8)
part.Position = Vector3.new(-7,32... |
begin:
Spawn a lime diamondplate ball part at (5,15,10) size (8,4,2) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(8,4,2)
part.Position = Vector3.new(5,15,10)
part.Anchored = tr... |
prompt:
Write a Roblox script to Tween a GUI frame to slide in from the left side of the screen.
completion:
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.... |
user:
Create an anchored blue Wood Block part sized 10x4x6 at position 8,50,34 in Roblox Luau.
response:
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(10,4,6)
part.Position = Vector3.new(8,50,34)
part.A... |
task:
Make a ball that is gold and glass at (-5,10,0) size (4,6,8) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(4,6,8)
part.Position = Vector3.new(-5,10,0)
part.Anchored = false
part.... |
question:
Create a TextLabel saying "Welcome!" with PatrickHand font with background Color3.fromRGB(128,0,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(0.3,0,0,... |
prompt:
Create an unanchored black Wood Block part sized 1x1x4 at position 36,50,-18 in Roblox Luau.
completion:
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,1,4)
part.Position = Vector3.new(36,50,-18)
par... |
question:
Create an anchored green Wood Block part sized 1x1x4 at position 19,51,4 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(1,1,4)
part.Position = Vector3.new(19,51,4)
p... |
user:
Create an unanchored orange Plastic Block part sized 10x1x1 at position 39,95,-9 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,128,0)
part.Size = Vector3.new(10,1,1)
part.Position = Vector3.new... |
input:
Make a gray Slate part with a Sparkles effect attached in Roblox Luau.
solution:
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 ... |
input:
Create a TextLabel saying "Shop" with Nunito font with background Color3.fromRGB(30,30,40) 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,40)
elem.Po... |
start:
Tween Color with Exponential In easing, 3s duration, 2 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 2, true, 0)
local goal = {Color = Color3.fromRGB(25... |
start:
Tween Position with Sine In easing, 4s duration, 0 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0)
local goal = {Position = Vector3.new(10,5,0)}
... |
query:
Tween a part's Position with Quint Out easing over 1s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService... |
instruction:
Create an anchored pink Wood Block part sized 4x2x4 at position 15,9,-28 in Roblox Luau.
model:
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(4,2,4)
part.Position = Vector3.new(15,9,-28... |
task:
Tween CFrame with Elastic Out easing, 2.5s duration, 3 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 3, false, 0)
local goal = {CFrame = part.CFrame... |
task:
Create an unanchored gold Plastic Block part sized 10x1x8 at position 36,4,-28 in Roblox Luau.
answer:
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,1,8)
part.Position = Vector3.new(36,4,-... |
task:
Tween a part's Position with Circular In 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.In)
local goal = {Position = Vector3.new(10,5,0)}
local tween = Tween... |
task:
Tween Size with Back In easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.In, 1, false, 0)
local goal = {Size = Vector3.new(8,8,8)}
loc... |
instruction:
Make a cylinder that is magenta and pebble at (-5,5,5) size (1,1,1) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Pebble
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(1,1,1)
part.Position = Vector3.new(-5,5,5)
part.A... |
question:
Play a sound with volume 0.3, pitch 0.6, looped=true.
response:
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 0.3
sound.PlaybackSpeed = 0.6
sound.Looped = true
sound.Parent = workspace
sound:Play()
-- Sound will loop continuously |
start:
Create a part that is red, transparency 0, CanCollide=false, Reflectance=0.
output_text:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(255, 0, 0)
part.Transparency = 0
part.CanCollide = false
part.Reflectance = 0
part.Anchored = true
part.Parent = workspace |
start:
Tween Reflectance with Quad In easing, 0.25s duration, 1 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 1, true, 0)
local goal = {Reflectance = 0.9}
local tween... |
user:
Tween Size with Quart InOut easing, 0.25s duration, 3 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, true, 0)
local goal = {Size = Vector3.new(8,8,8)... |
query:
Create a TextButton saying "Settings" with Roboto 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,200,0,50)
elem.... |
input_text:
Make a red Wood part with a SpotLight effect attached in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
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 fx... |
user:
How do I create a leveling / experience system in Roblox Luau?
output:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local lvlUp = Instance.new("RemoteEvent")
lvlUp.Name = "LevelUp"
lvlUp.Parent = ReplicatedStorage
local function xpNeeded(lvl) return m... |
instruction:
Create an unanchored blue Wood Block part sized 2x2x4 at position -43,17,-11 in Roblox Luau.
result:
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(2,2,4)
part.Position = Vector3.new(-43,17,... |
query:
Create an unanchored pink Wood Block part sized 2x4x4 at position -43,16,-12 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,4,4)
part.Position = Vector3.new(-43,16,... |
user:
Create an anchored pink Plastic Block part sized 6x6x6 at position -22,83,-22 in Roblox Luau.
answer:
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(6,6,6)
part.Position = Vector3.new(-22,83... |
query:
Create a RemoteFunction called "GetServerTime" that returns data from the server to the client.
completion:
-- Server Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteFunction = Instance.new("RemoteFunction")
remoteFunction.Name = "GetServerTime"
remoteFunction.Parent = Replica... |
begin:
Tween Color with Elastic In easing, 5s duration, 3 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 3, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)... |
start:
Create an anchored orange Plastic Block part sized 12x6x4 at position 22,73,-32 in Roblox Luau.
completion:
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(12,6,4)
part.Position = Vector3.new(... |
user:
Create an unanchored blue Wood Block part sized 1x6x6 at position 1,13,29 in Roblox Luau.
model:
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,6,6)
part.Position = Vector3.new(1,13,29)
part.Anch... |
input:
Create an anchored white Plastic Block part sized 1x4x4 at position 23,76,-30 in Roblox Luau.
output_text:
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,4,4)
part.Position = Vector3.new(23,76,-30)... |
prompt:
Tween Transparency with Elastic In easing, 0.25s duration, infinite repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, -1, true, 0)
local goal = {Transparenc... |
input_text:
Create an unanchored yellow Wood Block part sized 2x6x2 at position -6,95,36 in Roblox Luau.
model:
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,2)
part.Position = Vector3.new(-6,95,3... |
instruction:
Tween Position with Quad In easing, 5s duration, 0 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, true, 0)
local goal = {Position = Vector3.new(10,5,0)... |
query:
Give me a script for Add a trail effect to a moving part.
output_text:
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 = V... |
user:
Create an unanchored purple Wood Block part sized 2x4x6 at position 38,53,27 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(2,4,6)
part.Position = Vector3.new(38,53,2... |
start:
Tween Reflectance with Quint In easing, 0.25s duration, 0 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0)
local goal = {Reflectance = 0.9}
local ... |
prompt:
Spawn a blue smoothplastic cylinder part at (10,50,-5) size (6,2,6) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.SmoothPlastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,2,6)
part.Position = Vector3.new(10,50,-5)
part... |
input:
Create an anchored teal Plastic Block part sized 2x4x10 at position 48,83,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,128,128)
part.Size = Vector3.new(2,4,10)
part.Position = Vector3.new(48,8... |
start:
Script a cylinder with wood material colored cyan at (-10,25,20) size (8,1,1) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(8,1,1)
part.Position = Vector3.new(-10,25,20)
pa... |
instruction:
Create a part that is gray, transparency 1, CanCollide=true, Reflectance=0.5.
solution:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(128, 128, 128)
part.Transparency = 1
part.CanCollide = true
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
question:
How do I Use raycasting to detect if the player is on the ground.
response:
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local function isOnGround(character)
local rootPart = character:FindFirstChild("HumanoidRootPart")
... |
query:
Create a red granite cylinder at (20,20,5) size (4,6,2) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Granite
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(4,6,2)
part.Position = Vector3.new(20,20,5)
part.Anchored = true
par... |
user:
Create a TextLabel saying "Equip" with Oswald font with background Color3.fromRGB(200,50,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.1,0)
elem.Posi... |
instruction:
Create an anchored pink Wood Block part sized 1x4x1 at position 22,81,9 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(1,4,1)
part.Position = Vector3.new(22,81,... |
instruction:
Create a TextButton saying "Cancel" with PatrickHand font with background Color3.fromRGB(0,0,0) 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.5,0,0,50)... |
instruction:
Tween Position with Quint InOut easing, 2.5s duration, 2 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Position = Vector3.ne... |
input_text:
Create an unanchored gold Wood Block part sized 8x2x2 at position 26,57,47 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(8,2,2)
part.Position = Vector3.new(26,57,47)
p... |
start:
Create an anchored orange Wood Block part sized 1x4x6 at position -47,80,40 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,4,6)
part.Position = Vector3.new(-47,80,40)... |
input:
Implement a way to Demonstrate Luau table creation, manipulation, and iteration.
finish:
-- Array-style table
local fruits = {"Apple", "Banana", "Cherry"}
table.insert(fruits, "Date")
table.remove(fruits, 2) -- Removes "Banana"
print(#fruits) -- Length: 3
-- Dictionary-style table
local player = {
name = "... |
input_text:
Create an anchored pink Wood Block part sized 8x6x4 at position -49,93,-19 in Roblox Luau.
output:
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,6,4)
part.Position = Vector3.new(-49,93... |
instruction:
Create an unanchored gold Plastic Block part sized 8x2x4 at position -9,64,-36 in Roblox Luau.
end:
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(8,2,4)
part.Position = Vector3.new(-9,... |
prompt:
Create an unanchored red Wood Block part sized 8x1x1 at position 19,6,35 in Roblox Luau.
response:
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,1,1)
part.Position = Vector3.new(19,6,35)
part.... |
input:
Tween Reflectance with Quart In easing, 3s duration, 0 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, true, 0)
local goal = {Reflectance = 0.9}
local tween =... |
instruction:
Tween Size with Quint In easing, 2.5s duration, 3 repeats, reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 3, true, 0)
local goal = {Size = Vector3.new(8,8,8)}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.