text stringlengths 54 19.6k |
|---|
begin:
Tween Size with Quad InOut easing, 4s duration, 0 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
local tw... |
question:
Create a TextBox saying "Close" top-right 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("TextBox")
... |
begin:
Create an anchored gray Wood Block part sized 1x6x6 at position -33,44,-27 in Roblox Luau.
result:
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(1,6,6)
part.Position = Vector3.new(-33,44,-27)... |
question:
Write Roblox Luau code to an ImageLabel inside a ScreenGui with a Roblox asset image.
output:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local image... |
input:
Create a ProximityPrompt on a coin part that says "Collect Coin" with hold duration 0.6s and max distance 15.
response:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Collect Coin"
prompt.ObjectText = "Coin"
prompt.KeyboardKeyCode = Enum.KeyCode.E
prompt.HoldDura... |
start:
Script a cylinder with woodplanks material colored blue at (5,1,10) size (6,2,4) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,2,4)
part.Position = Vector3.new(5,1,1... |
begin:
Spawn a pink diamondplate cylinder part at (5,5,0) size (2,2,1) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(2,2,1)
part.Position = Vector3.new(5,5,0)
part.Anch... |
input_text:
Create an anchored gray Plastic Block part sized 8x4x1 at position -37,95,-44 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(8,4,1)
part.Position = Vector3.new(... |
begin:
Create a TextLabel saying "Next" with Nunito font with background Color3.fromRGB(0,120,255) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.2,0,0,60)
elem.Posit... |
query:
Create an unanchored red Wood Block part sized 6x6x8 at position 29,86,29 in Roblox Luau.
completion:
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(6,6,8)
part.Position = Vector3.new(29,86,29)
pa... |
prompt:
Create a TextButton saying "Yes" with Michroma font with background Color3.fromRGB(0,120,255) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,150,0.1,0)
elem.... |
user:
Create an anchored blue Wood Block part sized 10x6x6 at position -3,10,46 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(10,6,6)
part.Position = Vector3.new(-3,10,46)
part.An... |
prompt:
Script a cylinder with wood material colored white at (-5,15,0) size (2,4,6) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Wood
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(2,4,6)
part.Position = Vector3.new(-5,15,0)
part.Anch... |
input:
Create a blue slate part with Highlight effect in Roblox
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance.new("Hig... |
prompt:
Script a block with neon material colored orange at (-10,25,-5) size (4,4,4) in Roblox.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(-10,25,-5)... |
prompt:
Create an unanchored gold Wood Block part sized 1x6x2 at position 42,2,44 in Roblox Luau.
solution:
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,2)
part.Position = Vector3.new(42,2,44)
pa... |
input:
Create an unanchored white Wood Block part sized 6x1x8 at position -9,90,-37 in Roblox Luau.
output:
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(6,1,8)
part.Position = Vector3.new(-9,90,-37)
part.Anc... |
query:
Create an unanchored cyan Wood Block part sized 4x4x8 at position 6,56,13 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,255)
part.Size = Vector3.new(4,4,8)
part.Position = Vector3.new(6,56,13)
... |
start:
Create an explosion with blast pressure 100 and radius 20 at a part's position.
answer:
local part = workspace:WaitForChild("ExplosionPart")
local explosion = Instance.new("Explosion")
explosion.Position = part.Position
explosion.BlastPressure = 100
explosion.BlastRadius = 20
explosion.DestroyJointRadiusPercen... |
input_text:
Create a red woodplanks block at (20,10,10) size (8,2,4) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,2,4)
part.Position = Vector3.new(20,10,10)
part.Anchored = f... |
instruction:
Create a TextLabel saying "Click Me" with SourceSansBold font with background Color3.fromRGB(30,30,40) in Roblox GUI.
end:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.2,0,0,... |
start:
Create an anchored gray Wood Block part sized 10x6x2 at position 32,52,23 in Roblox Luau.
result:
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(10,6,2)
part.Position = Vector3.new(32,52,23)
p... |
question:
Create an anchored green Wood Block part sized 2x2x6 at position -44,82,-32 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(2,2,6)
part.Position = Vector3.new(-44,82,-3... |
begin:
Make a teal Slate part with a Fire effect attached in Roblox Luau.
response:
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 = Inst... |
task:
Tween Position with Circular In easing, 1s duration, infinite repeats, reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.In, -1, true, 0)
local goal = {Position = Vecto... |
input_text:
Create a TextLabel saying "OK" with Creepster font with background Color3.fromRGB(0,120,255) 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.2,0,0.08,... |
input:
Create a TextLabel saying "Shop" bottom-center 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")
e... |
question:
When a player touches a part, heal the player fully.
end:
local part = script.Parent
local debounce = {}
part.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
local player = game:GetService("Players"):GetPlayerF... |
query:
Create a TextButton saying "Save" with Bangers 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("TextButton")
elem.Size = UDim2.new(0.5,0,0,40)
elem.Posit... |
prompt:
Create a TextButton saying "Ready?" with Ubuntu 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,60)
elem... |
user:
Tween Position with Exponential 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.Exponential, Enum.EasingDirection.InOut, 1, true, 0)
local goal = {Position = Ve... |
question:
Create an unanchored pink Wood Block part sized 8x4x8 at position -5,25,-7 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(8,4,8)
part.Position = Vector3.new(-5,25,-7... |
instruction:
Create create a minimap in Roblox
result:
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Parent = player:WaitForChild("PlayerGui")
local mm = Instance.new("Frame")
mm.Size = UDim2.new(... |
user:
Create a magenta slate cylinder at (20,50,5) size (8,6,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(8,6,8)
part.Position = Vector3.new(20,50,5)
part.Anchored = true
... |
query:
Create an unanchored cyan Plastic Block part sized 1x1x2 at position 32,30,8 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(1,1,2)
part.Position = Vector3.new(32,3... |
start:
Create an anchored teal Plastic Block part sized 12x4x2 at position -32,61,4 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(12,4,2)
part.Position = Vector3.new(-32,61,4)
... |
task:
Create an unanchored cyan Plastic Block part sized 6x2x1 at position -25,80,49 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,255)
part.Size = Vector3.new(6,2,1)
part.Position = Vector3.new(-25,80,... |
query:
Script for an NPC that pathfinds to the nearest player.
output:
local PathfindingService = game:GetService("PathfindingService")
local Players = game:GetService("Players")
local npc = script.Parent
local humanoid = npc:WaitForChild("Humanoid")
local rootPart = npc:WaitForChild("HumanoidRootPart")
local FOLLOW... |
question:
Create a TextButton saying "Exit" with Michroma 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,200,0,50)
elem... |
begin:
Create a purple forcefield cylinder at (20,50,5) size (1,6,6) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(1,6,6)
part.Position = Vector3.new(20,50,5)
part.Anchored... |
query:
I need to Use CollectionService to tag and manage groups of objects.
finish:
local CollectionService = game:GetService("CollectionService")
-- Tag objects
local function setupLava(part)
part.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character and character:... |
query:
Spawn a green corrodedmetal cylinder part at (10,5,5) size (8,4,2) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(8,4,2)
part.Position = Vector3.new(10,5,5)
part.Anc... |
instruction:
Create an unanchored gold Wood Block part sized 8x2x4 at position -37,36,8 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,2,4)
part.Position = Vector3.new(-37,36,... |
question:
Create an unanchored yellow Plastic Block part sized 6x2x1 at position -1,65,7 in Roblox Luau.
output:
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,1)
part.Position = Vector3.new(-1,... |
user:
Create a TextLabel saying "Retry" with LuckiestGuy 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("TextLabel")
elem.Size = UDim2.new(0.3,0,0.08,0)
elem.Posit... |
query:
Tween a part's Color with Quint In 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.In)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Create(pa... |
instruction:
Write Roblox Luau code to a DataStore script to save and load a player's Wins value.
solution:
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local dataStore = DataStoreService:GetDataStore("PlayerData")
Players.PlayerAdded:Connect(function(player... |
instruction:
Create an unanchored cyan Wood Block part sized 8x1x4 at position -17,7,-16 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,255)
part.Size = Vector3.new(8,1,4)
part.Position = Vector3.new(-17,... |
input_text:
Tween Color with Cubic In easing, 2s duration, 0 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)}
... |
question:
Create a TextLabel saying "Shop" centered 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("TextLabel"... |
task:
Create a TextButton saying "OK" with Ubuntu font with background Color3.fromRGB(0,0,0) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.2,0,0,60)
elem.Position =... |
question:
Create a TextLabel saying "Pause" with PatrickHand font with background Color3.fromRGB(50,50,80) in Roblox GUI.
finish:
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,50)
el... |
input:
Create a Luau script that will a part that is maroon, transparency 1, CanCollide=false, Reflectance=0.
output_text:
local part = Instance.new("Part")
part.Color = Color3.fromRGB(128, 0, 0)
part.Transparency = 1
part.CanCollide = false
part.Reflectance = 0
part.Anchored = true
part.Parent = workspace |
query:
Create a TextButton saying "Yes" with Oswald font with background Color3.fromRGB(128,0,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,200,0.08,0)
elem.... |
input_text:
Tween a part's size to (2, 6, 15) over 2.0 seconds.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("ScalePart")
local tweenInfo = TweenInfo.new(2.0, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {
Size = Vector3.new(2, 6, 15)
}
... |
begin:
Create an anchored purple Plastic Block part sized 12x1x8 at position -15,97,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,0,255)
part.Size = Vector3.new(12,1,8)
part.Position = Vector3.new(... |
instruction:
Spawn a black granite cylinder part at (-10,20,0) size (6,2,4) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Granite
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(6,2,4)
part.Position = Vector3.new(-10,20,0)
part.Anchored ... |
start:
Create a TextButton saying "Help" with Ubuntu font with background Color3.fromRGB(0,120,255) 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.08,0)
e... |
instruction:
Create an anchored yellow Plastic Block part sized 2x6x2 at position 48,17,5 in Roblox Luau.
solution:
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,2)
part.Position = Vector3.new(... |
instruction:
Create an anchored pink Wood Block part sized 8x2x8 at position -48,8,-47 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,100,200)
part.Size = Vector3.new(8,2,8)
part.Position = Vector3.new(-... |
prompt:
Create an unanchored black Plastic Block part sized 8x4x2 at position 48,40,-29 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(8,4,2)
part.Position = Vector3.new(48,40,-29)... |
task:
Create a TextLabel saying "Equip" with FredokaOne font with background Color3.fromRGB(200,50,50) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.5,0,0,60)
elem.P... |
begin:
Tween Reflectance with Sine Out easing, 4s duration, 0 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Reflectance = 0.9}
local tween ... |
prompt:
Create an unanchored green Plastic Block part sized 12x6x4 at position -33,9,41 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(12,6,4)
part.Position = Vector3.new(-33,9... |
query:
Tween a part's Color with Linear InOut easing over 0.5s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenServ... |
input:
Create a TextLabel saying "Start" with GothamBold font with background Color3.fromRGB(200,50,50) in Roblox GUI.
response:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.3,0,0,50)
ele... |
task:
Create a TextLabel saying "Delete" with LuckiestGuy font with background Color3.fromRGB(40,40,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.2,0,0.08,0)
ele... |
begin:
Can you write code to a ScreenGui with a TextLabel that says "Press Play" using font SciFi at size 14.
model:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"... |
task:
Tween a part's Position with Elastic Out easing over 2s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:C... |
instruction:
Tween Size with Circular In easing, 4s duration, 0 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, true, 0)
local goal = {Size = Vector3.new(8,8,8)}... |
instruction:
Create a TextLabel saying "Cancel" with Nunito font with background Color3.fromRGB(40,40,40) in Roblox GUI.
answer:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0,50)
elem.... |
task:
Create an anchored purple Plastic Block part sized 12x2x6 at position 28,51,25 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(12,2,6)
part.Position = Vector3.new(28,5... |
prompt:
Demonstrate Luau table creation, manipulation, and iteration.
end:
-- Array-style table
local fruits = {"Apple", "Banana", "Cherry"}
table.insert(fruits, "Date")
table.remove(fruits, 2) -- Removes "Banana"
print(#fruits) -- Length: 3
-- Dictionary-style table
local player = {
name = "Hero",
health = 1... |
start:
Create a TextLabel saying "Score: 0" with SourceSansBold font with background Color3.fromRGB(200,50,50) in Roblox GUI.
solution:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0.1,... |
user:
Create an anchored green Wood Block part sized 6x1x2 at position -32,35,45 in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(6,1,2)
part.Position = Vector3.new(-32,35,45)
p... |
input_text:
Create an anchored green Plastic Block part sized 12x1x2 at position -48,33,-23 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(12,1,2)
part.Position = Vector3.new(-... |
begin:
Create a TextLabel saying "Yes" with Ubuntu 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.1,0)
elem.P... |
question:
Tween a part's Position with Sine In easing over 3s in Roblox
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:Creat... |
input_text:
Tween Color with Linear In easing, 2s duration, 1 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)... |
query:
Script a block with grass material colored orange at (10,15,-10) size (8,4,2) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Grass
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(8,4,2)
part.Position = Vector3.new(10,15,-10)
par... |
task:
Create an anchored white Plastic Block part sized 10x6x6 at position -37,34,29 in Roblox Luau.
output:
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,6,6)
part.Position = Vector3.new(-37,34,29)
par... |
instruction:
Make a cylinder that is yellow and corrodedmetal at (10,1,0) size (2,4,2) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(2,4,2)
part.Position = Vector3.new(10,1... |
instruction:
Create a TextButton saying "Submit" with Michroma font with background Color3.fromRGB(50,200,50) 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,150,0,... |
prompt:
Create an anchored yellow Plastic Block part sized 6x1x10 at position -4,71,-14 in Roblox Luau.
output:
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,1,10)
part.Position = Vector3.new(-4,... |
begin:
Make a yellow Concrete part with a Smoke effect attached in Roblox Luau.
output:
local part = Instance.new("Part")
part.Material = Enum.Material.Concrete
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 fx... |
input:
Make a block that is teal and glass at (-5,25,0) size (8,6,4) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(8,6,4)
part.Position = Vector3.new(-5,25,0)
part.Anchored = tru... |
begin:
Script a block with woodplanks material colored cyan at (20,5,10) size (4,2,8) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(4,2,8)
part.Position = Vector3.new(20,5,10)
pa... |
prompt:
Create an unanchored white Wood Block part sized 8x6x1 at position -1,84,-27 in Roblox Luau.
solution:
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(8,6,1)
part.Position = Vector3.new(-1,84,-27)
part.... |
input_text:
Make a block that is green and diamondplate at (0,15,10) size (8,1,6) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(8,1,6)
part.Position = Vector3.new(0,15,10)
par... |
query:
Create an anchored green Plastic Block part sized 8x4x8 at position -34,77,40 in Roblox Luau.
model:
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(8,4,8)
part.Position = Vector3.new(-34,77,40)... |
task:
Create an Instance of type WeldConstraint and configure its properties.
answer:
local instance = Instance.new("WeldConstraint")
-- Configure properties as needed
instance.Parent = workspace:WaitForChild("TargetPart")
-- To remove later:
-- instance:Destroy() |
prompt:
Create a TextLabel saying "Resume" with Bangers font with background Color3.fromRGB(40,40,40) 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,40)
elem.Posit... |
question:
Tween a part's Size with Sine In easing over 3s in Roblox
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Create(part, i... |
task:
Use FindFirstChildOfClass to find by exact class in player.Character in Roblox
completion:
local result = player.Character:FindFirstChildOfClass("Humanoid")
if typeof(result) ~= "table" then
if result then print("Found:", result.Name) end
end |
task:
Create a TextButton saying "Click Me" 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("TextButto... |
query:
Create an unanchored brown Wood Block part sized 6x4x6 at position -18,91,21 in Roblox Luau.
model:
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(6,4,6)
part.Position = Vector3.new(-18,91,21)
p... |
start:
Tween Transparency with Cubic In easing, 3s duration, 0 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, false, 0)
local goal = {Transparency = 0.8}
loc... |
instruction:
Tween Reflectance with Quad 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.Quad, Enum.EasingDirection.In, 1, false, 0)
local goal = {Reflectance = 0.9}
... |
prompt:
Create an anchored gray Wood Block part sized 12x2x6 at position 39,36,38 in Roblox Luau.
end:
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(12,2,6)
part.Position = Vector3.new(39,36,38)
par... |
input:
Create an unanchored green Plastic Block part sized 6x4x10 at position 9,97,22 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(6,4,10)
part.Position = Vector3.new(9,97,22... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.