text stringlengths 54 19.6k |
|---|
query:
Tween Color with Quint InOut easing, 1.5s duration, 1 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 1, true, 0)
local goal = {Color = Color3.fromRGB(255,... |
input_text:
Tween CFrame with Sine InOut easing, 2s duration, infinite repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {CFrame = part.CFrame*C... |
start:
Implement a way to a tween that loops infinite times.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("LoopPart")
local tweenInfo = TweenInfo.new(
1, -- Duration
Enum.EasingStyle.Sine, -- EasingStyle
Enum.Ea... |
prompt:
Create an unanchored gray Plastic Block part sized 4x2x10 at position 18,44,-40 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(4,2,10)
part.Position = Vector3.n... |
prompt:
Create an unanchored purple Plastic Block part sized 6x2x8 at position 49,42,-47 in Roblox Luau.
completion:
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,2,8)
part.Position = Vector3.new... |
begin:
Tween Position with Linear Out easing, 4s duration, infinite repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
local goal = {Position = Vect... |
input:
Spawn a yellow concrete block part at (-5,5,5) size (6,1,4) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Concrete
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(6,1,4)
part.Position = Vector3.new(-5,5,5)
part.Anchored = fal... |
input_text:
Create a TextLabel saying "Cancel" with RobotoMono font with background Color3.fromRGB(200,50,50) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,150,0.08,... |
question:
Create an unanchored gold Wood Block part sized 8x1x8 at position -13,4,-47 in Roblox Luau.
response:
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,1,8)
part.Position = Vector3.new(-13,4,-... |
task:
Make a teal 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(0,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = I... |
instruction:
Create an unanchored green Wood Block part sized 12x1x1 at position -6,97,0 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,1,1)
part.Position = Vector3.new(-6,97,0... |
instruction:
Tween Reflectance with Quart InOut easing, 1.5s duration, 2 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Reflecta... |
query:
How do I use AngularVelocity in Roblox? It constant spin.
response:
local partA = workspace.PartA
local partB = workspace.PartB
local a0 = Instance.new("Attachment")
a0.Parent = partA
local a1 = Instance.new("Attachment")
a1.Parent = partB
local constraint = Instance.new("AngularVelocity")
constraint.Attachment... |
instruction:
Tween Size with Sine Out easing, 1s duration, infinite repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, true, 0)
local goal = {Size = Vector3.new(8,8,8... |
begin:
Create a TextLabel saying "Back" with PatrickHand font with background Color3.fromRGB(0,120,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,200,0,60)
e... |
instruction:
Make a cyan Plastic part with a SpotLight effect attached in Roblox Luau.
response:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
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
... |
start:
Create a ScreenGui with a TextLabel that says "Welcome!" using font Fantasy at size 32.
completion:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
screenGui... |
begin:
Create an unanchored purple Wood Block part sized 4x4x8 at position 14,21,-49 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,4,8)
part.Position = Vector3.new(14,21,-49)... |
begin:
I need to Implement an OOP class pattern in Luau for a game entity.
completion:
-- ModuleScript: Entity
local Entity = {}
Entity.__index = Entity
export type EntityData = {
name: string,
health: number,
maxHealth: number,
damage: number,
speed: number,
}
function Entity.new(data: EntityDat... |
prompt:
Make a yellow Slate part with a PointLight effect attached in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local ... |
task:
Tween a part's CFrame with Quint Out easing over 3s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
local tween = Twee... |
start:
Create an unanchored white Plastic Block part sized 2x6x10 at position -28,48,21 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(2,6,10)
part.Position = Vector3.new(-28,48,21)
... |
query:
Create an unanchored teal Plastic Block part sized 1x4x8 at position 32,6,42 in Roblox Luau.
solution:
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,8)
part.Position = Vector3.new(32,6,4... |
start:
Create a TextLabel saying "Save" with Oswald 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("TextLabel")
elem.Size = UDim2.new(0.2,0,0.08,0)
elem.P... |
task:
Create an anchored cyan Plastic Block part sized 10x4x4 at position 46,71,9 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(10,4,4)
part.Position = Vector3.new(46,71,9)
par... |
start:
Create an anchored gold Plastic Block part sized 6x1x2 at position -11,89,-4 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(6,1,2)
part.Position = Vector3.new(-11,89,-... |
query:
Implement a way to a clickable TextButton that says "Restart" and prints a message when clicked.
end:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local ... |
user:
Create an unanchored teal Plastic Block part sized 6x4x6 at position -32,34,-36 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(6,4,6)
part.Position = Vector3.new(-32,34... |
task:
Tween Size with Bounce In easing, 2.5s duration, infinite repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, -1, true, 0)
local goal = {Size = Vector3.new(8,8,8)... |
prompt:
Create a ProximityPrompt on a teleporter part that says "Use Teleporter" with hold duration 1.6s and max distance 15.
completion:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Use Teleporter"
prompt.ObjectText = "Teleporter"
prompt.KeyboardKeyCode = Enum.KeyCod... |
instruction:
Create a ProximityPrompt on a chest part that says "Open Chest" with hold duration 1.3s and max distance 10.
model:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Open Chest"
prompt.ObjectText = "Chest"
prompt.KeyboardKeyCode = Enum.KeyCode.E
prompt.HoldDur... |
input:
Implement a way to Weld two parts together so they move as one.
model:
local partA = workspace:WaitForChild("PartA")
local partB = workspace:WaitForChild("PartB")
local weld = Instance.new("WeldConstraint")
weld.Part0 = partA
weld.Part1 = partB
weld.Parent = partA
-- partA should be anchored, partB will follo... |
prompt:
Tween a part's size to (15, 7, 11) over 2.6 seconds.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("ScalePart")
local tweenInfo = TweenInfo.new(2.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {
Size = Vector3.new(15, 7, 11)
}
local t... |
input:
Script for a ScreenGui with a TextLabel that says "Health: 100" using font Garamond at size 32.
output_text:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
... |
prompt:
Create an anchored green Plastic Block part sized 2x1x2 at position 8,83,-47 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(2,1,2)
part.Position = Vector3.new(8,83,... |
user:
Make a white CorrodedMetal part with a Smoke effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx... |
instruction:
Create an anchored cyan Wood Block part sized 6x6x2 at position -6,90,0 in Roblox Luau.
end:
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,6,2)
part.Position = Vector3.new(-6,90,0)
part... |
prompt:
Create an anchored green Wood Block part sized 12x4x4 at position -19,5,-35 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,0)
part.Size = Vector3.new(12,4,4)
part.Position = Vector3.new(-19,5,-35)... |
user:
Make a ball that is magenta and fabric at (-10,50,-5) size (1,6,1) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Fabric
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(1,6,1)
part.Position = Vector3.new(-10,50,-5)
part.Anchored = ... |
input:
Create a TextLabel saying "Ready?" with Nunito font with background Color3.fromRGB(200,50,50) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,150,0.08,0)
elem.Posi... |
prompt:
Create an anchored yellow Plastic Block part sized 2x6x8 at position -6,67,-14 in Roblox Luau.
model:
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(2,6,8)
part.Position = Vector3.new(-6,67,... |
input_text:
Create a TextLabel saying "Menu" with PatrickHand 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(0,200,0.1,... |
query:
Create a silver plastic cornerwedgepart at position (4, 52, 9) with size (4, 14, 12), anchored=true.
response:
local part = Instance.new("CornerWedgePart")
part.Size = Vector3.new(4, 14, 12)
part.Position = Vector3.new(4, 52, 9)
part.Color = Color3.fromRGB(192, 192, 192)
part.Material = Enum.Material.Plastic
pa... |
input:
Script a block with wood material colored orange at (10,1,10) size (8,6,1) in Roblox.
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(8,6,1)
part.Position = Vector3.new(10,1,10)
part.Anch... |
input_text:
Create a purple plastic cylinder at (-10,50,-10) size (4,6,4) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(4,6,4)
part.Position = Vector3.new(-10,50,-10)
part.A... |
instruction:
Create an unanchored red Wood Block part sized 10x6x4 at position -19,85,-9 in Roblox Luau.
output:
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(10,6,4)
part.Position = Vector3.new(-19,85,... |
query:
Tween Color with Linear InOut 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.Linear, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Color = Color3.fro... |
user:
Tween a part's CFrame with Circular InOut easing over 2s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut)
local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)}
local tw... |
input:
Create an anchored cyan Wood Block part sized 6x2x4 at position 21,79,-24 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,2,4)
part.Position = Vector3.new(21,79,-24)
par... |
instruction:
Create an unanchored white Wood Block part sized 1x4x10 at position 49,50,40 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(1,4,10)
part.Position = Vector3.new(49,50,40)
par... |
begin:
Make a teal Plastic part with a Fire effect attached in Roblox Luau.
output:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = In... |
task:
Create an anchored green Wood Block part sized 1x1x2 at position 21,81,-26 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(1,1,2)
part.Position = Vector3.new(21,81,-26)
... |
question:
Create a red neon part with Smoke effect in Roblox
finish:
local part = Instance.new("Part")
part.Material = Enum.Material.Neon
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 = Instance.new("Smoke")... |
begin:
Tween Size with Elastic InOut easing, 1s duration, 1 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Size = Vector3.new(... |
input_text:
Make a purple Wood part with a Highlight effect attached in Roblox Luau.
response:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
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... |
input:
Give me a script for a smooth third-person camera that follows the player.
output:
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local OFFSET = Vector3.new(0, 8, 12)
local SMOOTHNESS = 0.2
... |
user:
Create an unanchored white Plastic Block part sized 8x1x10 at position 8,16,39 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(8,1,10)
part.Position = Vector3.new(8,16,39)
part.A... |
input_text:
Spawn a teal ice ball part at (20,10,5) size (2,6,1) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Ice
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(2,6,1)
part.Position = Vector3.new(20,10,5)
part.Anchored = true
part.... |
instruction:
Tween a part's Position with Elastic InOut easing over 5s in Roblox
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenS... |
begin:
Create an unanchored black Wood Block part sized 4x2x8 at position 39,34,22 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(4,2,8)
part.Position = Vector3.new(39,34,22)
part.Anc... |
query:
Create a TextLabel saying "Resume" with Oswald font with background Color3.fromRGB(0,120,255) in Roblox GUI.
answer:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0,150,0.08,0)
elem.P... |
start:
Create an anchored brown Plastic Block part sized 10x1x10 at position -9,64,32 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(10,1,10)
part.Position = Vector3.new(-9,6... |
instruction:
Create a pink concrete part with Fire effect in Roblox
model:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
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 = workspace
local fx = Instanc... |
query:
Create an anchored red Wood Block part sized 1x2x6 at position 10,21,29 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(1,2,6)
part.Position = Vector3.new(10,21,29)
part.Anch... |
input:
Create a gold plastic cylinder at (10,5,-10) size (1,4,2) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(1,4,2)
part.Position = Vector3.new(10,5,-10)
part.Anchored = f... |
query:
Create an anchored purple Wood Block part sized 1x4x1 at position 40,11,-25 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(1,4,1)
part.Position = Vector3.new(40,11,-25)
pa... |
start:
Create an unanchored purple Wood Block part sized 8x2x6 at position 33,18,-35 in Roblox Luau.
finish:
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(8,2,6)
part.Position = Vector3.new(33,18,-35)... |
prompt:
Create a TextLabel saying "Next" with Ubuntu font with background Color3.fromRGB(200,50,50) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.2,0,0.08,0)
elem.Posit... |
task:
Create an anchored pink Wood Block part sized 2x6x1 at position -27,19,45 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(2,6,1)
part.Position = Vector3.new(-27,19,45... |
start:
Create an anchored yellow Plastic Block part sized 2x1x2 at position 16,50,21 in Roblox Luau.
response:
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(2,1,2)
part.Position = Vector3.new(16,50... |
prompt:
Create a TextBox saying "Play" top-right in Roblox GUI
output:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local elem = Instance.new("TextBox")
elem.Siz... |
task:
Create a TextLabel saying "Click Me" 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("TextLabel")
el... |
user:
Create a TextLabel saying "Pause" with Ubuntu font with background Color3.fromRGB(40,40,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(0.2,0,0,40)
elem.Positio... |
input:
Create an unanchored black Wood Block part sized 4x1x1 at position -4,52,41 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(4,1,1)
part.Position = Vector3.new(-4,52,41)
part.Anc... |
start:
How do I Tween a GUI frame to slide in from the left side of the screen.
result:
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
scre... |
prompt:
Tween a part's Color with Elastic In easing over 1s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.In)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Cre... |
user:
Detect RightControl key press to trigger an action in Roblox
completion:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.RightControl then
print("RightControl pre... |
query:
Write Roblox Luau code to Detect when a player dies and respawn them after 3 seconds.
solution:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
... |
query:
Make a teal Concrete part with a Highlight effect attached in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
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
lo... |
begin:
Create an anchored pink Plastic Block part sized 4x2x10 at position -10,94,-42 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,2,10)
part.Position = Vector3.new... |
task:
Create a TextLabel saying "Loading..." top-left 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("TextLabel")
e... |
question:
Create a part that is purple, transparency 0.75, CanCollide=true, Reflectance=0.5.
response:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(128, 0, 128)
part.Transparency = 0.75
part.CanCollide = true
part.Reflectance = 0.5
part.Anchored = true
part.Parent = workspace |
input:
Make a script that a ScrollingFrame that contains multiple TextLabels as a list.
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 scrollFr... |
prompt:
Code a script that an NPC that pathfinds to the nearest player.
output_text:
local PathfindingService = game:GetService("PathfindingService")
local Players = game:GetService("Players")
local npc = script.Parent
local humanoid = npc:WaitForChild("Humanoid")
local rootPart = npc:WaitForChild("HumanoidRootPart")... |
input_text:
Create an anchored blue Wood Block part sized 8x4x4 at position -2,27,0 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(8,4,4)
part.Position = Vector3.new(-2,27,0)
part... |
instruction:
Create a TextLabel saying "Welcome!" with Bangers 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("TextLabel")
elem.Size = UDim2.new(0,150,0,60)
... |
task:
Make a ball that is gold and forcefield at (20,1,-5) size (2,6,4) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(2,6,4)
part.Position = Vector3.new(20,1,-5)
part.Anchored ... |
input_text:
Tween Position with Sine InOut easing, 4s duration, 1 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Position = Vect... |
task:
Create a TextBox saying "Equip" bottom-center in Roblox GUI
finish:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local elem = Instance.new("TextBox")
elem.... |
user:
Create a orange concrete part at position (47, 43, -37) with size (9, 5, 7), anchored=true.
result:
local part = Instance.new("Part")
part.Size = Vector3.new(9, 5, 7)
part.Position = Vector3.new(47, 43, -37)
part.Color = Color3.fromRGB(255, 165, 0)
part.Material = Enum.Material.Concrete
part.Anchored = true
part... |
query:
Create an anchored yellow Plastic Block part sized 8x4x6 at position 0,45,48 in Roblox Luau.
response:
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(8,4,6)
part.Position = Vector3.new(0,45,4... |
user:
Create an unanchored orange Wood Block part sized 10x1x6 at position -22,80,39 in Roblox Luau.
result:
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,6)
part.Position = Vector3.new(-22,80,39... |
prompt:
Create an anchored yellow Wood Block part sized 6x4x6 at position -36,25,-14 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(6,4,6)
part.Position = Vector3.new(-36,25,-14)... |
user:
Create an unanchored white Plastic Block part sized 1x6x4 at position 11,22,-22 in Roblox Luau.
finish:
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,6,4)
part.Position = Vector3.new(11,22,-22)
par... |
question:
Tween Reflectance with Cubic In easing, 5s duration, 1 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 1, true, 0)
local goal = {Reflectance = 0.9}
loca... |
user:
Tween Color with Linear Out easing, 5s duration, 1 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, false, 0)
local goal = {Color = Color3.fromRGB(255,0,... |
instruction:
Tween Reflectance with Quad InOut easing, 1s duration, infinite repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {Reflectance =... |
start:
Tween CFrame with Quint Out easing, 1s duration, 0 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0)
local goal = {CFrame = part.CFrame*CFrame... |
input_text:
Show me how to an auto-balancing team system that assigns players to Red or Blue teams.
finish:
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
-- Create teams
local redTeam = Instance.new("Team")
redTeam.Name = "Red"
redTeam.TeamColor = BrickColor.new("Bright red")
redTe... |
input_text:
Create a TextButton saying "Back" with SourceSansBold 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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.