text stringlengths 54 19.6k |
|---|
prompt:
Make a cyan Slate part with a SpotLight effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
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... |
input:
Create an unanchored yellow Plastic Block part sized 6x2x8 at position -25,78,15 in Roblox Luau.
end:
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(6,2,8)
part.Position = Vector3.new(-25,78,... |
prompt:
Tween a part's CFrame with Quart Out easing over 5s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
local tween = TweenSe... |
user:
Spawn a black metal ball part at (-10,1,5) size (4,1,1) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Metal
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(4,1,1)
part.Position = Vector3.new(-10,1,5)
part.Anchored = false
part.Parent = w... |
instruction:
Create a part that is gray, transparency 0.75, CanCollide=false, Reflectance=0.5.
end:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(128, 128, 128)
part.Transparency = 0.75
part.CanCollide = false
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
user:
Create an anchored teal Plastic Block part sized 1x4x2 at position 32,5,-25 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,4,2)
part.Position = Vector3.new(32,5,-25)
... |
user:
Can you write code to Show useful math functions and operations in Luau.
completion:
-- 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.sq... |
input_text:
Create a purple smoothplastic cylinder at (20,10,-10) size (6,6,6) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.SmoothPlastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(6,6,6)
part.Position = Vector3.new(20,10,-... |
input:
Create an anchored gray Wood Block part sized 2x6x2 at position -7,32,-4 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,128,128)
part.Size = Vector3.new(2,6,2)
part.Position = Vector3.new(-7,32,-4... |
task:
Create a TextButton saying "Close" with Bangers font with background Color3.fromRGB(128,0,255) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,200,0,40)
elem.Po... |
task:
Create an unanchored white Plastic Block part sized 10x4x4 at position 45,76,16 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(10,4,4)
part.Position = Vector3.new(45,76,16)
part.A... |
start:
Tween a part's CFrame with Cubic Out easing over 0.5s in Roblox
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
local tween = Twee... |
input_text:
Create an anchored black Wood Block part sized 2x1x10 at position -48,42,28 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(2,1,10)
part.Position = Vector3.new(-48,42,28)
p... |
user:
Create a TextLabel saying "Exit" with Ubuntu font with background Color3.fromRGB(40,40,40) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0.1,0)
elem.Position... |
query:
Create an anchored white Plastic Block part sized 4x4x4 at position -26,5,50 in Roblox Luau.
result:
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,4,4)
part.Position = Vector3.new(-26,5,50)
part.A... |
start:
Build a system that a ScrollingFrame that contains multiple TextLabels as a list.
completion:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local scrollFr... |
input:
Tween a part's Size with Circular InOut easing over 5s in Roblox
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Cre... |
question:
Tween Color with Cubic InOut easing, 1.5s duration, 3 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.InOut, 3, true, 0)
local goal = {Color = Color3.fromR... |
task:
Create an unanchored orange Wood Block part sized 1x1x1 at position 14,37,-16 in Roblox Luau.
output:
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,1,1)
part.Position = Vector3.new(14,37,-16)
... |
input_text:
Tween Transparency with Quart Out easing, 4s duration, 2 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 2, false, 0)
local goal = {Transparency = 0.8... |
prompt:
Create a TextButton saying "OK" with SourceSansBold font with background Color3.fromRGB(50,200,50) 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.5,0,0,... |
prompt:
Create a TextLabel saying "Next" with PatrickHand 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,50)
elem.P... |
input:
Tween Color with Circular Out easing, 2s duration, 3 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 3, true, 0)
local goal = {Color = Color3.fromRGB(255,0,... |
task:
Create a TextButton saying "Start" with FredokaOne 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("TextButton")
elem.Size = UDim2.new(0.5,0,0.1,0)
ele... |
input:
Tween CFrame with Quad Out easing, 0.5s duration, 3 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 3, true, 0)
local goal = {CFrame = part.CFrame*CFrame.new(... |
input:
Make a orange CorrodedMetal part with a Smoke effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.CorrodedMetal
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
l... |
input:
Make a black Slate part with a Fire effect attached in Roblox Luau.
response:
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.ne... |
question:
Script for Attach a 3D sound to a part so it fades based on distance.
response:
local part = workspace:WaitForChild("SoundPart")
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 1
sound.Looped = true
sound.RollOffMode = Enum.RollOffMode.... |
instruction:
Create an anchored pink Wood Block part sized 12x2x2 at position -7,74,0 in Roblox Luau.
answer:
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(12,2,2)
part.Position = Vector3.new(-7,74,... |
start:
Create an unanchored red Plastic Block part sized 1x1x1 at position 31,15,-47 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(1,1,1)
part.Position = Vector3.new(31,15,-47... |
user:
Create a gray corrodedmetal part with Fire effect in Roblox
response:
local part = Instance.new("Part")
part.Material = Enum.Material.CorrodedMetal
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 = I... |
instruction:
Create an anchored yellow Wood Block part sized 4x4x8 at position 27,58,-29 in Roblox Luau.
solution:
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,4,8)
part.Position = Vector3.new(27,5... |
prompt:
Create a TextButton saying "Back" with Michroma font with background Color3.fromRGB(50,200,50) in Roblox GUI.
completion:
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)
e... |
start:
Create an unanchored purple Wood Block part sized 6x4x1 at position 14,25,-10 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(6,4,1)
part.Position = Vector3.new(14,25,-10)... |
input_text:
Apply a BodyVelocity of (-32, 12, -17) to a part.
end:
local part = workspace:WaitForChild("PhysicsPart")
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(-32, 12, -17)
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.P = 1250
bodyVeloc... |
begin:
Create an unanchored cyan Plastic Block part sized 12x6x6 at position 16,47,-1 in Roblox Luau.
response:
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,6,6)
part.Position = Vector3.new(16,... |
input:
Create an anchored gold Wood Block part sized 8x6x2 at position 13,9,-42 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(8,6,2)
part.Position = Vector3.new(13,9,-42)
part.... |
question:
Make a cylinder that is pink and concrete at (0,20,10) size (1,2,4) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Concrete
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(1,2,4)
part.Position = Vector3.new(0,20,10)
part... |
task:
Create an unanchored brown Wood Block part sized 1x1x10 at position 19,45,-42 in Roblox Luau.
end:
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,1,10)
part.Position = Vector3.new(19,45,-42)
pa... |
query:
Tween a part's Color with Quint InOut easing over 3s in Roblox
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Cre... |
user:
Create a black neon cylinder at (-5,5,20) size (6,1,1) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Neon
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(6,1,1)
part.Position = Vector3.new(-5,5,20)
part.Anchored = true
part.Parent = w... |
input:
Script a ball with brick material colored cyan at (-10,1,10) size (6,1,2) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Brick
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(6,1,2)
part.Position = Vector3.new(-10,1,10)
part.Anch... |
start:
Tween Color with Elastic Out easing, 0.75s duration, 1 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Color = Color3.fromRG... |
user:
Make a block that is blue and corrodedmetal at (0,1,0) size (1,6,4) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(1,6,4)
part.Position = Vector3.new(0,1,0)
part.Anchored... |
question:
Tween CFrame with Quad In easing, 1.5s duration, 0 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false, 0)
local goal = {CFrame = part.CFrame*CFram... |
user:
Tween Color with Circular In easing, 2.5s duration, 1 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 1, true, 0)
local goal = {Color = Color3.fromRGB(... |
query:
Tween Reflectance with Linear Out easing, 4s duration, 3 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 3, false, 0)
local goal = {Reflectance = 0.9}
l... |
task:
Create an anchored cyan Wood Block part sized 10x6x1 at position 16,93,22 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(10,6,1)
part.Position = Vector3.new(16,93,22)
pa... |
prompt:
Give me a script for server-side code to fire a RemoteEvent called "ScoreUpdate" to a specific player with data.
completion:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ScoreUpdate")
local function fireToPlayer(player, data)
remoteEven... |
question:
Teleport the player's character to position (46, 91, 39).
answer:
local Players = game:GetService("Players")
local function teleportPlayer(player, position)
local character = player.Character
if character then
local rootPart = character:FindFirstChild("HumanoidRootPart")
if rootPart ... |
input_text:
Make a cylinder that is green and brick at (20,1,5) size (4,6,8) in Roblox.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Brick
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(4,6,8)
part.Position = Vector3.new(20,1,5)
part.Anc... |
instruction:
Write Roblox Luau code to Connect two parts with a RodConstraint.
result:
local partA = workspace:WaitForChild("PartA")
local partB = workspace:WaitForChild("PartB")
local attachmentA = Instance.new("Attachment")
attachmentA.Parent = partA
local attachmentB = Instance.new("Attachment")
attachmentB.Paren... |
query:
Create an anchored yellow Plastic Block part sized 10x6x1 at position -33,62,-9 in Roblox Luau.
finish:
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,6,1)
part.Position = Vector3.new(-33,... |
question:
Create an anchored yellow Wood Block part sized 2x1x4 at position 38,19,18 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(2,1,4)
part.Position = Vector3.new(38,19,18)
par... |
start:
Spawn a cyan plastic cylinder part at (0,15,-5) size (4,4,2) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(4,4,2)
part.Position = Vector3.new(0,15,-5)
part.Anchored =... |
input:
Create an anchored white Wood Block part sized 2x4x8 at position 6,82,40 in Roblox Luau.
end:
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,8)
part.Position = Vector3.new(6,82,40)
part.Anchored = t... |
input_text:
Create an anchored pink Wood Block part sized 12x1x2 at position 4,94,44 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(12,1,2)
part.Position = Vector3.new(4,94,44... |
prompt:
Create a TextLabel saying "Welcome!" top-left in Roblox GUI
output_text:
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("TextLabe... |
input:
Create a TextLabel saying "Equip" with Michroma font with background Color3.fromRGB(50,200,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.P... |
start:
Create an unanchored blue Wood Block part sized 8x1x10 at position -10,25,4 in Roblox Luau.
end:
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(8,1,10)
part.Position = Vector3.new(-10,25,4)
part.A... |
start:
Create a TextButton saying "Yes" with SourceSansBold 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.5,0,0.1,0)
... |
question:
Tween Size with Cubic InOut easing, 0.5s duration, 3 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {Size = Vector3.... |
input_text:
Create an unanchored pink Wood Block part sized 2x6x6 at position 35,13,25 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(2,6,6)
part.Position = Vector3.new(35,13,... |
begin:
Create an unanchored green Wood Block part sized 12x4x1 at position -35,66,33 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(12,4,1)
part.Position = Vector3.new(-35,66,33)
... |
user:
Create a TextButton saying "Game Over" with RobotoMono 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,50)
e... |
task:
Create an unanchored brown Plastic Block part sized 10x2x4 at position 7,69,-13 in Roblox Luau.
model:
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(10,2,4)
part.Position = Vector3.new(7,69,-... |
question:
Script a block with corrodedmetal material colored teal at (-10,15,0) size (2,2,2) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(2,2,2)
part.Position = Vector3.ne... |
input:
Create an anchored gray Wood Block part sized 6x2x1 at position 30,89,0 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(6,2,1)
part.Position = Vector3.new(30,89,0)
part.... |
query:
Create an anchored green Plastic Block part sized 4x1x6 at position -7,45,-50 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,0)
part.Size = Vector3.new(4,1,6)
part.Position = Vector3.new(-7,45,-50... |
input_text:
Create a TextLabel saying "Delete" with RobotoMono font with background Color3.fromRGB(30,30,40) in Roblox GUI.
model:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0,60)
ele... |
question:
Script a ball with corrodedmetal material colored magenta at (5,20,-5) size (4,2,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(4,2,8)
part.Position = Vector3.... |
start:
Tween a part's Reflectance with Cubic In easing over 1s in Roblox
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.In)
local goal = {Reflectance = 0.9}
local tween = TweenService:Create(part, i... |
start:
Make a block that is gray and glass at (0,15,-5) size (6,1,8) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(6,1,8)
part.Position = Vector3.new(0,15,-5)
part.Anchored = tru... |
question:
Spawn a orange concrete block part at (-5,20,0) size (8,6,6) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Concrete
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(8,6,6)
part.Position = Vector3.new(-5,20,0)
part.Anchored = ... |
question:
Tween Position with Elastic InOut easing, 0.25s duration, 0 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 0, false, 0)
local goal = {Position = ... |
instruction:
Tween Transparency with Quart In easing, 2s duration, 2 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 2, false, 0)
local goal = {Transparency = 0.... |
query:
Create an anchored blue Plastic Block part sized 12x4x4 at position -49,34,18 in Roblox Luau.
response:
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,4)
part.Position = Vector3.new(-49,34... |
task:
Create an unanchored purple Wood Block part sized 10x1x8 at position -10,73,-46 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(10,1,8)
part.Position = Vector3.new(-10,73... |
begin:
Create an unanchored black Wood Block part sized 12x1x8 at position 36,91,-17 in Roblox Luau.
model:
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(12,1,8)
part.Position = Vector3.new(36,91,-17)
part.An... |
instruction:
Create a TextButton saying "Submit" with Oswald font with background Color3.fromRGB(30,30,40) 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)
e... |
instruction:
Create a part that is orange, transparency 0.5, CanCollide=true, Reflectance=0.5.
result:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(255, 165, 0)
part.Transparency = 0.5
part.CanCollide = true
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
query:
Tween Color with Circular InOut easing, 5s duration, 2 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Color = Color3.fromR... |
input_text:
Create an anchored pink Wood Block part sized 6x2x2 at position -39,75,-47 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,2,2)
part.Position = Vector3.new(-39,75... |
query:
Create an anchored brown Wood Block part sized 10x1x6 at position 8,74,16 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(10,1,6)
part.Position = Vector3.new(8,74,16)
... |
instruction:
Create a TextButton saying "No" with FredokaOne font with background Color3.fromRGB(255,128,0) in Roblox GUI.
output_text:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.2,0,0... |
input:
Tween Reflectance with Circular Out easing, 2s duration, 1 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Reflectance = 0.9}
... |
task:
Tween Position with Quart In easing, 4s duration, 1 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 1, true, 0)
local goal = {Position = Vector3.new(10,5,0)}... |
input_text:
Tween Position with Back Out easing, 2s duration, 0 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Position = Vector3.new(10,5,0... |
user:
Script a cylinder with cobblestone material colored brown at (0,1,5) size (2,2,6) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Cobblestone
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(2,2,6)
part.Position = Vector3.new(0,1... |
begin:
Tween Size with Quint Out easing, 4s duration, 0 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
loca... |
input:
Tween Color with Bounce InOut easing, 2.5s duration, infinite repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {Color = Color3.... |
input:
Apply a VectorForce of (478, 1362, 467) to a part using an Attachment.
output:
local part = workspace:WaitForChild("ForcePart")
local attachment = Instance.new("Attachment")
attachment.Parent = part
local vectorForce = Instance.new("VectorForce")
vectorForce.Force = Vector3.new(478, 1362, 467)
vectorForce.Att... |
input_text:
Create an unanchored green Wood Block part sized 6x1x1 at position 31,74,49 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(6,1,1)
part.Position = Vector3.new(31,74,49)
... |
start:
Create an unanchored purple Wood Block part sized 4x2x10 at position 45,18,45 in Roblox Luau.
result:
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(4,2,10)
part.Position = Vector3.new(45,18,45)... |
query:
Write a Roblox script to a round-based game system with 30s rounds and 10s intermission.
response:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ROUND_TIME = 30
local INTERMISSION = 10
local statusValue = Instance.new("StringValue")
statusValue... |
question:
Create a TextButton saying "Ready?" with Nunito 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("TextButton")
elem.Size = UDim2.new(0.3,0,0.08,0)... |
task:
Create an unanchored black Wood Block part sized 8x1x6 at position 49,83,-26 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(8,1,6)
part.Position = Vector3.new(49,83,-26)
part.Anch... |
instruction:
Create an unanchored blue Plastic Block part sized 2x2x10 at position -40,31,42 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(2,2,10)
part.Position = Vector3.new(... |
start:
How do I Set the player's WalkSpeed to 24 and JumpPower to 150.
end:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.WalkSpeed = 24
... |
user:
Tween Transparency with Quint InOut easing, 2.5s duration, infinite repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, -1, false, 0)
local goal = {Transpar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.