text stringlengths 54 19.6k |
|---|
input:
Tween Transparency with Exponential Out 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.Exponential, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Transparency ... |
task:
Create an unanchored cyan Wood Block part sized 1x2x1 at position -32,4,-9 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,255)
part.Size = Vector3.new(1,2,1)
part.Position = Vector3.new(-32,4,-9)
part... |
task:
Tween CFrame with Elastic Out easing, 5s duration, 2 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 2, true, 0)
local goal = {CFrame = part.CFrame*CFrame.new(0,... |
start:
Tween CFrame with Quad In easing, 3s duration, 0 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, true, 0)
local goal = {CFrame = part.CFrame*CFrame.new(0,10,0)}
... |
prompt:
How do I a custom Signal/Event class in Luau for communication between scripts.
model:
-- ModuleScript: Signal
local Signal = {}
Signal.__index = Signal
function Signal.new()
local self = setmetatable({}, Signal)
self._connections = {}
self._nextId = 1
return self
end
function Signal:Connect(... |
question:
Create an unanchored orange Wood Block part sized 12x4x2 at position 24,67,39 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(12,4,2)
part.Position = Vector3.new(24,67,... |
input:
Create an anchored gold Wood Block part sized 2x2x8 at position 39,16,39 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(2,2,8)
part.Position = Vector3.new(39,16,39)
part.... |
question:
Create an anchored green Plastic Block part sized 2x4x2 at position -31,88,10 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,0)
part.Size = Vector3.new(2,4,2)
part.Position = Vector3.new(-31,... |
question:
Create an unanchored green Plastic Block part sized 10x6x6 at position -47,41,-38 in Roblox Luau.
result:
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(10,6,6)
part.Position = Vector3.new(-... |
start:
Create an anchored gray Wood Block part sized 6x1x8 at position 2,49,-15 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(6,1,8)
part.Position = Vector3.new(2,49,-15)... |
question:
Tween CFrame with Elastic In easing, 0.75s duration, infinite 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.In, -1, true, 0)
local goal = {CFrame = pa... |
input:
Create an unanchored brown Wood Block part sized 12x4x1 at position -48,79,11 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(12,4,1)
part.Position = Vector3.new(-48,79,11)
p... |
question:
Make a orange Concrete part with a Smoke effect attached in Roblox Luau.
response:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
loc... |
user:
Tween Transparency with Quart In easing, 0.75s duration, infinite repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.In, -1, true, 0)
local goal = {Transparency = 0.8... |
start:
Tween Transparency with Quint In easing, 3s duration, 0 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0)
local goal = {Transparency = 0.8}
local... |
task:
Spawn a gold neon block part at (10,20,-5) size (2,2,4) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(2,2,4)
part.Position = Vector3.new(10,20,-5)
part.Anchored = true
part.Pa... |
input_text:
What's the code to a ScrollingFrame that contains multiple TextLabels as a list.
output:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local scrollFr... |
task:
Create a TextButton saying "Play" with Ubuntu font with background Color3.fromRGB(128,0,255) in Roblox GUI.
completion:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.2,0,0,50)
elem.... |
input_text:
Tween Transparency with Linear In easing, 2.5s duration, 0 repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, true, 0)
local goal = {Transparency = 0.8}... |
task:
Make a white Slate part with a Highlight effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
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 = Instance.... |
question:
Use FindFirstChildOfClass to find by exact class in game.ReplicatedStorage in Roblox
solution:
local result = game.ReplicatedStorage:FindFirstChildOfClass("BasePart")
if typeof(result) ~= "table" then
if result then print("Found:", result.Name) end
end |
input_text:
Create a brown glass cylinder at (-5,20,5) size (6,4,6) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(6,4,6)
part.Position = Vector3.new(-5,20,5)
part.Anchored = t... |
instruction:
Tween Transparency with Quint In easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 1, false, 0)
local goal = {Transparenc... |
prompt:
Create an anchored brown Plastic Block part sized 6x2x8 at position 41,67,-36 in Roblox Luau.
finish:
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(6,2,8)
part.Position = Vector3.new(41,67,... |
start:
Create a TextButton saying "Play" with PatrickHand font with background Color3.fromRGB(0,120,255) 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,150,0,40)
e... |
input_text:
Create an unanchored gray Plastic Block part sized 8x6x1 at position -21,13,-20 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(8,6,1)
part.Position = Vector3.ne... |
instruction:
Create a TextLabel saying "Menu" with FredokaOne font with background Color3.fromRGB(200,50,50) in Roblox GUI.
output_text:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.5,0,0... |
input:
Create an anchored green Wood Block part sized 10x4x4 at position 26,37,-32 in Roblox Luau.
response:
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(10,4,4)
part.Position = Vector3.new(26,37,-32)
... |
question:
Create an unanchored white Plastic Block part sized 4x1x8 at position -23,66,1 in Roblox Luau.
completion:
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,1,8)
part.Position = Vector3.new(-23,66,... |
query:
Create an unanchored brown Wood Block part sized 4x1x10 at position -8,91,9 in Roblox Luau.
output:
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(4,1,10)
part.Position = Vector3.new(-8,91,9)
pa... |
user:
Tween Transparency with Back In 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.Back, Enum.EasingDirection.In, 3, false, 0)
local goal = {Transparency = 0.8}
lo... |
user:
Make a pink Plastic part with a Smoke effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
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 = ... |
user:
Tween CFrame with Elastic InOut easing, 5s duration, infinite repeats, non-reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, -1, false, 0)
local goal = {CFrame = part.... |
instruction:
Create a TextLabel saying "OK" 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("TextLabel")
elem.Size = UDim2.new(0.3,0,0,60)
elem.... |
question:
Implement a way to Lock the camera to first person mode.
model:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- Force first person
player.CameraMode = Enum.CameraMode.LockFirstPerson
player.CameraMinZoomDistance = 0.5
player.CameraMaxZoomDistance = 0.5 |
start:
Create an anchored gray Plastic Block part sized 12x4x8 at position 7,80,-3 in Roblox Luau.
answer:
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(12,4,8)
part.Position = Vector3.new(7,80,-... |
user:
Tween Position with Quart In easing, 4s duration, infinite repeats, reversing in Roblox.
result:
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... |
instruction:
Tween a part's Color with Quad Out easing over 5s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Cr... |
task:
Can you write code to Add a DepthOfFieldEffect post-processing effect to the game's Lighting.
end:
local Lighting = game:GetService("Lighting")
local effect = Instance.new("DepthOfFieldEffect")
effect.FarIntensity = 0.3
effect.FocusDistance = 50
effect.InFocusRadius = 30
effect.NearIntensity = 0.5
effect.Parent... |
instruction:
Tween a part's Transparency with Back InOut easing over 3s in Roblox
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.InOut)
local goal = {Transparency = 0.8}
local tween = TweenService:Create(... |
prompt:
Make a black Plastic part with a PointLight effect attached in Roblox Luau.
model:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
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 = Ins... |
query:
Tween Size with Exponential In easing, 2s duration, 3 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 3, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
lo... |
task:
Teleport the player's character to position (-60, 57, 67).
finish:
local Players = game:GetService("Players")
local function teleportPlayer(player, position)
local character = player.Character
if character then
local rootPart = character:FindFirstChild("HumanoidRootPart")
if rootPart the... |
prompt:
Create an anchored cyan Wood Block part sized 10x6x8 at position -50,35,38 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,255)
part.Size = Vector3.new(10,6,8)
part.Position = Vector3.new(-50,35,38)
... |
start:
Create a custom Signal/Event class in Luau for communication between scripts.
model:
-- ModuleScript: Signal
local Signal = {}
Signal.__index = Signal
function Signal.new()
local self = setmetatable({}, Signal)
self._connections = {}
self._nextId = 1
return self
end
function Signal:Connect(cal... |
instruction:
Create an unanchored white Plastic Block part sized 10x4x1 at position 40,35,27 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(10,4,1)
part.Position = Vector3.new(40,35,... |
prompt:
Create an anchored gold Plastic Block part sized 8x1x6 at position 15,30,2 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(8,1,6)
part.Position = Vector3.new(15,30,2)
... |
prompt:
Create an unanchored purple Plastic Block part sized 6x4x1 at position -5,71,-2 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(6,4,1)
part.Position = Vector3.new(-5... |
input_text:
Create an unanchored yellow Wood Block part sized 8x6x8 at position -23,37,10 in Roblox Luau.
completion:
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(8,6,8)
part.Position = Vector3.new(-... |
begin:
Create a TextButton saying "Exit" with PatrickHand font with background Color3.fromRGB(0,0,0) in Roblox GUI.
finish:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(1,0,0,60)
elem.Posi... |
begin:
Create an anchored gold Wood Block part sized 1x6x8 at position 28,16,-43 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(1,6,8)
part.Position = Vector3.new(28,16,-43)... |
input:
Create an anchored cyan Plastic Block part sized 8x6x6 at position 36,16,18 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(8,6,6)
part.Position = Vector3.new(36,16,18)... |
task:
Tween Reflectance with Cubic InOut easing, 2.5s duration, 0 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 0, true, 0)
local goal = {Reflectance = 0.9}
loc... |
user:
Create an unanchored yellow Wood Block part sized 6x4x8 at position -33,51,3 in Roblox Luau.
response:
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,8)
part.Position = Vector3.new(-33,51,3)
... |
input_text:
Create a TextLabel saying "Welcome!" with Roboto font with background Color3.fromRGB(255,128,0) 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.2,0,0,4... |
start:
Create a TextButton saying "Settings" with Oswald font with background Color3.fromRGB(128,0,255) 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,150,0.1,0)
elem... |
user:
Create an anchored pink Plastic Block part sized 10x2x8 at position 30,23,-10 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,100,200)
part.Size = Vector3.new(10,2,8)
part.Position = Vector3.new(... |
begin:
Create an anchored yellow Wood Block part sized 6x2x1 at position 5,63,-25 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(6,2,1)
part.Position = Vector3.new(5,63,-25)
p... |
input:
Tween Position with Circular In easing, 0.5s duration, 1 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 1, false, 0)
local goal = {Position = Vector3.n... |
prompt:
Create an anchored gray Plastic Block part sized 8x6x4 at position 10,75,12 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(8,6,4)
part.Position = Vector3.new(10,75,... |
question:
Create a pink forcefield cylinder at (20,10,0) size (8,6,8) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(8,6,8)
part.Position = Vector3.new(20,10,0)
part.Ancho... |
instruction:
Create an anchored red Wood Block part sized 1x1x4 at position 7,90,5 in Roblox Luau.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(1,1,4)
part.Position = Vector3.new(7,90,5)
p... |
begin:
Create a Shield tool that deals 40 damage when activated.
solution:
local tool = script.Parent
local damage = 40
local debounce = false
local cooldown = 0.5
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = tool.Parent
local humanoid = characte... |
start:
Create an anchored gold Wood Block part sized 1x2x1 at position -34,80,-49 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(1,2,1)
part.Position = Vector3.new(-34,80,-49)
pa... |
user:
Create a TextButton saying "Game Over" with LuckiestGuy font with background Color3.fromRGB(40,40,40) in Roblox GUI.
response:
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... |
user:
Tween Transparency with Quart InOut easing, 0.75s duration, 2 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Transparency = ... |
begin:
Create an unanchored pink Wood Block part sized 2x6x10 at position -1,90,-37 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(2,6,10)
part.Position = Vector3.new(-1,90,-3... |
task:
Tween Color with Sine Out easing, 0.25s duration, 1 repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0)
local goal = {Color = Color3.fromRGB(255,... |
question:
Create a TextButton saying "Menu" with LuckiestGuy font with background Color3.fromRGB(40,40,40) in Roblox GUI.
response:
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... |
input:
Create a TextButton saying "Next" with Michroma font with background Color3.fromRGB(200,50,50) 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,150,0,40)
elem.Po... |
query:
Create an anchored red Plastic Block part sized 6x1x10 at position -43,75,44 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(6,1,10)
part.Position = Vector3.new(-43,75,44)... |
input_text:
Create a part that is white, transparency 0.5, CanCollide=true, Reflectance=0.
output:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(255, 255, 255)
part.Transparency = 0.5
part.CanCollide = true
part.Reflectance = 0
part.Anchored = true
part.Parent = workspace |
input:
Tween Size with Linear InOut 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.Linear, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {Size = Vector3.new(8,8,8)... |
question:
Create a TextLabel saying "Buy" top-left in Roblox GUI
answer:
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")
elem... |
begin:
Tween Position with Cubic In easing, 0.25s duration, 0 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, true, 0)
local goal = {Position = Vector3.new(10,5,... |
input:
Script for a script that clones a part from ServerStorage and places it at a random position in the workspace.
response:
local ServerStorage = game:GetService("ServerStorage")
local template = ServerStorage:WaitForChild("TemplatePart")
local clone = template:Clone()
clone.Position = Vector3.new(
math.rando... |
input_text:
Play a sound with volume 0.4, pitch 1.6, looped=false.
output:
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 0.4
sound.PlaybackSpeed = 1.6
sound.Looped = false
sound.Parent = workspace
sound:Play()
-- Clean up when done
if not soun... |
question:
Create a TextButton saying "OK" 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("TextButton")
elem.Size = UDim2.new(0,200,0,60)
elem.... |
begin:
Tween a part's Transparency with Quad Out easing over 2s in Roblox
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {Transparency = 0.8}
local tween = TweenService:Create(part,... |
instruction:
Create an unanchored pink Wood Block part sized 1x6x4 at position 50,32,24 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(1,6,4)
part.Position = Vector3.new(5... |
question:
Create a TextButton saying "Score: 0" with Bangers font with background Color3.fromRGB(0,0,0) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(1,0,0.1,0)
elem.Pos... |
prompt:
Create an unanchored gray Wood Block part sized 4x1x4 at position -14,42,-33 in Roblox Luau.
answer:
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(4,1,4)
part.Position = Vector3.new(-14,42,-... |
task:
Tween Color with Back Out easing, 3s duration, 1 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tw... |
query:
Make a orange Concrete part with a PointLight effect attached in Roblox Luau.
response:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
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... |
instruction:
Tween Size with Elastic InOut easing, 1s duration, 3 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, 3, false, 0)
local goal = {Size = Vector... |
instruction:
Create a TextButton saying "Settings" with PatrickHand font with background Color3.fromRGB(200,50,50) 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,150,... |
task:
Create an anchored gold Plastic Block part sized 10x1x10 at position 27,87,-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,215,0)
part.Size = Vector3.new(10,1,10)
part.Position = Vector3.new(2... |
input_text:
Create an unanchored teal Plastic Block part sized 6x1x2 at position 24,88,32 in Roblox Luau.
end:
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,1,2)
part.Position = Vector3.new(24,88... |
start:
Write Roblox Luau code to a part that destroys itself after 2 seconds.
finish:
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Anchored = true
part.Parent = workspace
task.delay(2, function()
part:Destroy()
end) |
instruction:
Can you write code to an Instance of type Texture and configure its properties.
completion:
local instance = Instance.new("Texture")
-- Configure properties as needed
instance.Parent = workspace:WaitForChild("TargetPart")
-- To remove later:
-- instance:Destroy() |
task:
Detect C key press to crouch in Roblox
solution:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.C then
print("C pressed - crouch!")
-- Add your crouch code her... |
start:
Tween Position with Bounce InOut easing, 2.5s duration, 2 repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Position = Vector... |
instruction:
Tween Transparency with Cubic In easing, 0.5s duration, 3 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 3, true, 0)
local goal = {Transparency = 0.8}
... |
question:
Create an anchored brown Plastic Block part sized 2x6x1 at position 28,8,-37 in Roblox Luau.
finish:
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(2,6,1)
part.Position = Vector3.new(28,8,... |
input:
Create a TextButton saying "Save" with Ubuntu font with background Color3.fromRGB(128,0,255) 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.3,0,0,60)
elem.Posi... |
start:
Create an anchored orange Wood Block part sized 12x6x6 at position -23,37,25 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(12,6,6)
part.Position = Vector3.new(-23,37,2... |
begin:
Create an unanchored black Wood Block part sized 8x2x1 at position -8,65,11 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(8,2,1)
part.Position = Vector3.new(-8,65,11)
part.Anchored... |
input:
Script a block with grass material colored red at (10,20,-10) size (6,1,8) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Grass
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(6,1,8)
part.Position = Vector3.new(10,20,-10)
part.Anch... |
input:
Create an anchored yellow Wood Block part sized 10x6x2 at position -13,6,22 in Roblox Luau.
output:
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(10,6,2)
part.Position = Vector3.new(-13,6,22)
p... |
user:
Create an unanchored gray Plastic Block part sized 12x4x1 at position -9,46,-16 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(12,4,1)
part.Position = Vector3.new(-9,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.