text stringlengths 54 19.6k |
|---|
user:
How do you get a reference to the Lighting service in Roblox?
answer:
local Lighting = game:GetService("Lighting") |
task:
Spawn a pink woodplanks cylinder part at (0,10,-5) size (6,4,2) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(6,4,2)
part.Position = Vector3.new(0,10,-5)
part.Ancho... |
instruction:
Create an unanchored red Plastic Block part sized 1x2x10 at position 27,34,-45 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,0,0)
part.Size = Vector3.new(1,2,10)
part.Position = Vector3.... |
prompt:
Create an anchored white Wood Block part sized 12x4x8 at position -48,54,34 in Roblox Luau.
result:
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(12,4,8)
part.Position = Vector3.new(-48,54,34)
part.An... |
begin:
Create a TextButton saying "Back" with PatrickHand font with background Color3.fromRGB(128,0,255) in Roblox GUI.
output:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,150,0,50)
ele... |
user:
Create an unanchored cyan Wood Block part sized 6x4x1 at position -12,30,-13 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,4,1)
part.Position = Vector3.new(-12,30,-13)
par... |
begin:
Tween Position with Linear InOut easing, 5s duration, 3 repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {Position = Vector3.ne... |
prompt:
Create a TextLabel saying "Buy" with SourceSansBold font with background Color3.fromRGB(200,50,50) 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(1,0,0.08,0... |
input_text:
Tween a part to position (10, 7, 3) over 0.8 seconds using Sine easing (In).
solution:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("MovingPart")
local tweenInfo = TweenInfo.new(
0.8,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In
)
local goal = {
... |
prompt:
Tween Transparency with Quint In easing, 2s duration, 2 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 2, false, 0)
local goal = {Transparency = 0.8}
lo... |
query:
Tween Size with Cubic InOut easing, 5s duration, 1 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Size = Vector3.new(8,8,8)}
loc... |
input:
Create an anchored gold Plastic Block part sized 12x6x2 at position 4,27,-6 in Roblox Luau.
result:
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(12,6,2)
part.Position = Vector3.new(4,27,-6)... |
start:
Create an anchored purple Plastic Block part sized 10x4x6 at position -7,59,50 in Roblox Luau.
result:
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(10,4,6)
part.Position = Vector3.new(-7,59... |
begin:
Create an anchored gray Wood Block part sized 1x6x1 at position 43,16,-8 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(1,6,1)
part.Position = Vector3.new(43,16,-8)
part.A... |
task:
Create an anchored cyan Plastic Block part sized 8x2x6 at position -9,66,-40 in Roblox Luau.
output_text:
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,2,6)
part.Position = Vector3.new(-9,6... |
user:
Create an unanchored gold Wood Block part sized 1x4x1 at position 20,25,12 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,4,1)
part.Position = Vector3.new(20,25,12)
... |
question:
Create an unanchored gold Plastic Block part sized 1x4x1 at position -10,74,-34 in Roblox Luau.
solution:
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(1,4,1)
part.Position = Vector3.new(... |
begin:
Create a red forcefield block at (5,15,10) size (6,1,8) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(6,1,8)
part.Position = Vector3.new(5,15,10)
part.Anchored = false
pa... |
input_text:
Create a magenta woodplanks part with Highlight effect in Roblox
result:
local part = Instance.new("Part")
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx... |
start:
Tween Transparency with Quart 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.Quart, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Transparency = 0.8}
local... |
input_text:
Create an unanchored cyan Wood Block part sized 8x2x1 at position 49,81,-36 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,2,1)
part.Position = Vector3.new(49,81... |
begin:
Create a TextLabel saying "Back" with LuckiestGuy font with background Color3.fromRGB(128,0,255) in Roblox GUI.
response:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(1,0,0,50)
elem.... |
user:
Make a green Slate part with a PointLight effect attached in Roblox Luau.
completion:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx ... |
begin:
Tween Size with Exponential In easing, 3s duration, 3 repeats, reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 3, true, 0)
local goal = {Size = Vector3.new(8,8,8)}... |
begin:
Code a script that Check if a player owns a specific GamePass and grant them a bonus.
completion:
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local GAMEPASS_ID = 0 -- Replace with your GamePass ID
Players.PlayerAdded:Connect(function(player)
... |
start:
Script a block with sand material colored white at (20,5,20) size (6,2,1) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Sand
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(6,2,1)
part.Position = Vector3.new(20,5,20)
part.Anchored = ... |
begin:
Create an unanchored purple Wood Block part sized 8x2x2 at position 40,99,8 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(8,2,2)
part.Position = Vector3.new(40,99,8)
p... |
query:
Create a ScreenGui with a TextLabel that says "Press Play" using font GothamBold at size 48.
end:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGui"
screenGui.P... |
user:
Create a TextButton saying "Submit" with PatrickHand 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("TextButton")
elem.Size = UDim2.new(0.2,0,0.08,0)
... |
start:
Make a ball that is gray and fabric at (10,25,10) size (4,6,4) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Fabric
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(4,6,4)
part.Position = Vector3.new(10,25,10)
part.Anchored = f... |
input:
Create an explosion with blast pressure 50 and radius 50 at a part's position.
model:
local part = workspace:WaitForChild("ExplosionPart")
local explosion = Instance.new("Explosion")
explosion.Position = part.Position
explosion.BlastPressure = 50
explosion.BlastRadius = 50
explosion.DestroyJointRadiusPercent =... |
input:
Create a TextButton saying "No" with RobotoMono font with background Color3.fromRGB(40,40,40) in Roblox GUI.
completion:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0,150,0.08,0)
e... |
question:
Create an anchored pink Wood Block part sized 4x1x10 at position 42,59,-15 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,1,10)
part.Position = Vector3.new(42,59,-... |
begin:
Create an anchored teal Plastic Block part sized 6x6x2 at position 16,41,5 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(6,6,2)
part.Position = Vector3.new(16,41,5)... |
begin:
Make a ball that is gray and forcefield at (-5,25,-10) size (2,4,2) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(2,4,2)
part.Position = Vector3.new(-5,25,-10)
part.Ancho... |
query:
Create a TextButton saying "Start" with Oswald 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(0.5,0,0.08,0)
elem.Positio... |
prompt:
Create an anchored yellow Wood Block part sized 4x4x1 at position 1,2,28 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(4,4,1)
part.Position = Vector3.new(1,2,28)
part.A... |
prompt:
Create an unanchored green Plastic Block part sized 12x4x8 at position 48,75,44 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,0)
part.Size = Vector3.new(12,4,8)
part.Position = Vector3.new(48,75,44... |
begin:
Create an unanchored black Plastic Block part sized 2x4x6 at position -17,70,-4 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(2,4,6)
part.Position = Vector3.new(-17,70,-4)
... |
input:
Create an anchored green Plastic Block part sized 1x4x10 at position -34,2,-5 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(1,4,10)
part.Position = Vector3.new(-34,2,-5... |
question:
Create an unanchored red Wood Block part sized 8x4x1 at position 3,4,17 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,4,1)
part.Position = Vector3.new(3,4,17)
part.... |
task:
What's the code to a global leaderboard using OrderedDataStore for top players by Wins.
end:
local DataStoreService = game:GetService("DataStoreService")
local orderedStore = DataStoreService:GetOrderedDataStore("WinsLeaderboard")
local function getTopPlayers(count)
local success, pages = pcall(function()
... |
input:
Tween a part's Position 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 = {Position = Vector3.new(10,5,0)}
local tween = TweenSe... |
input_text:
Tween Position with Sine Out easing, 3s duration, 3 repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, false, 0)
local goal = {Position = Vector3.new(1... |
prompt:
Code a script that Fire a RemoteEvent to all connected players from the server.
end:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("BroadcastEvent")
local function broadcastToAll(message)
remoteEvent:FireAllClients({
message = mes... |
begin:
Tween CFrame with Quart In easing, 2s duration, 0 repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, true, 0)
local goal = {CFrame = part.CFrame*CFrame.new(0,10... |
user:
Play a sound with volume 0.8, pitch 0.9, looped=false.
model:
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 0.8
sound.PlaybackSpeed = 0.9
sound.Looped = false
sound.Parent = workspace
sound:Play()
-- Clean up when done
if not sound.Loope... |
query:
Make a script that an ImageLabel inside a ScreenGui with a Roblox asset image.
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 imageLabel... |
input:
Create a TextButton saying "Shop" with Nunito font with background Color3.fromRGB(200,50,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(1,0,0,50)
elem.Posit... |
instruction:
Create an unanchored pink Plastic Block part sized 2x1x6 at position -13,3,-10 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(2,1,6)
part.Position = Vector3.ne... |
task:
Tween Reflectance with Linear Out easing, 0.75s duration, infinite repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
local goal = {Refle... |
begin:
Spawn a green corrodedmetal block part at (-10,15,20) size (8,4,8) in Roblox.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(8,4,8)
part.Position = Vector3.new(-10,15,20)
part.Anchor... |
instruction:
Script a cylinder with marble material colored blue at (-5,10,20) size (8,2,2) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Marble
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(8,2,2)
part.Position = Vector3.new(-5,... |
prompt:
Tween a part's Size with Linear In easing over 0.5s in Roblox
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Create(p... |
task:
Create a Luau script that will an enemy/NPC spawning system that spawns enemies at random spawn points on a timer.
output:
local ServerStorage = game:GetService("ServerStorage")
local spawnFolder = workspace:WaitForChild("SpawnPoints")
local enemyTemplate = ServerStorage:WaitForChild("Enemy")
local MAX_ENEMIES... |
user:
Tween Transparency with Cubic Out easing, 1s duration, 0 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
local goal = {Transparency = 0.8}... |
task:
Tween CFrame with Quint In easing, 3s duration, 0 repeats, reversing in Roblox.
answer:
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 = {CFrame = part.CFrame*CFrame.new(0,10,... |
input_text:
Create an anchored yellow Wood Block part sized 1x6x1 at position 38,13,34 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(1,6,1)
part.Position = Vector3.new(38,13,34... |
start:
Create an anchored green Wood Block part sized 4x1x4 at position -25,20,-26 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(4,1,4)
part.Position = Vector3.new(-25,20,-26)
par... |
begin:
Detect LeftAlt key press to dash forward in Roblox
finish:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.LeftAlt then
print("LeftAlt pressed - dash forward!")
... |
start:
Create a TextButton saying "Cancel" with Nunito font with background Color3.fromRGB(40,40,40) 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(1,0,0.1,0)
elem... |
input_text:
Create a TextButton saying "Equip" 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("TextBu... |
question:
Tween Position with Quint In easing, 1s duration, 3 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 3, false, 0)
local goal = {Position = Vector3.new(1... |
task:
Write a Roblox script to a projectile weapon that fires a ball at speed 50 dealing 50 damage on hit.
solution:
local tool = script.Parent
local damage = 50
local speed = 50
local debounce = false
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = too... |
question:
Show me how to 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("ScreenG... |
prompt:
Create an unanchored cyan Wood Block part sized 2x1x6 at position 27,34,-14 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(2,1,6)
part.Position = Vector3.new(27,34,-14... |
input:
Tween CFrame with Linear Out easing, 0.25s duration, 2 repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 2, false, 0)
local goal = {CFrame = part.CFrame*... |
user:
Create a TextLabel saying "Start" with Nunito font with background Color3.fromRGB(0,0,0) in Roblox GUI.
response:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.5,0,0.1,0)
elem.Positi... |
input:
Create a TextButton saying "Start" with FredokaOne font with background Color3.fromRGB(0,0,0) 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.5,0,0.1,0)
elem... |
start:
Create an unanchored pink Wood Block part sized 2x1x4 at position -8,77,-38 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(2,1,4)
part.Position = Vector3.new(-8,77,-38)... |
question:
Make a ball that is blue and smoothplastic at (-5,15,-5) size (6,4,1) in Roblox.
completion:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.SmoothPlastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(6,4,1)
part.Position = Vector3.new(-5,15,-5)
... |
task:
Create an anchored red Wood Block part sized 2x2x8 at position -4,81,35 in Roblox Luau.
result:
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(2,2,8)
part.Position = Vector3.new(-4,81,35)
part.Anch... |
start:
Tween Reflectance with Cubic InOut easing, 2s duration, 2 repeats, reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Reflectance = 0.9}
lo... |
instruction:
Spawn a lime glass cylinder part at (-10,50,10) size (8,4,6) in Roblox.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(8,4,6)
part.Position = Vector3.new(-10,50,10)
part.Anchor... |
input_text:
Create an anchored pink Plastic Block part sized 12x2x2 at position 26,7,34 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(12,2,2)
part.Position = Vector3.new(2... |
query:
Make a script that an NPC that wanders randomly within a defined area.
answer:
local PathfindingService = game:GetService("PathfindingService")
local npc = script.Parent
local humanoid = npc:WaitForChild("Humanoid")
local rootPart = npc:WaitForChild("HumanoidRootPart")
local WANDER_RADIUS = 30
local HOME_POSI... |
begin:
Create an anchored white Plastic Block part sized 4x2x1 at position -30,50,31 in Roblox Luau.
solution:
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,2,1)
part.Position = Vector3.new(-30,50,31)
pa... |
input_text:
Create a purple pebble wedgepart at position (15, 63, -39) with size (12, 8, 5), anchored=true.
answer:
local part = Instance.new("WedgePart")
part.Size = Vector3.new(12, 8, 5)
part.Position = Vector3.new(15, 63, -39)
part.Color = Color3.fromRGB(128, 0, 128)
part.Material = Enum.Material.Pebble
part.Anchor... |
question:
Create an unanchored gray Wood Block part sized 10x6x6 at position -19,95,-34 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(10,6,6)
part.Position = Vector3.new(... |
task:
Create an unanchored purple Wood Block part sized 2x1x8 at position 36,55,-31 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(2,1,8)
part.Position = Vector3.new(36,55,-31)
... |
begin:
Tween CFrame with Circular InOut easing, 5s duration, 0 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, true, 0)
local goal = {CFrame = part.CFrame*C... |
instruction:
Create a TextLabel saying "Delete" with Roboto 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,200,0,60)
elem.Posi... |
input_text:
Create an unanchored purple Plastic Block part sized 1x6x8 at position -27,97,18 in Roblox Luau.
output_text:
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(1,6,8)
part.Position = Vector... |
begin:
Create a tween that loops infinite times and reverses.
output:
local TweenService = game:GetService("TweenService")
local part = workspace:WaitForChild("LoopPart")
local tweenInfo = TweenInfo.new(
1, -- Duration
Enum.EasingStyle.Sine, -- EasingStyle
Enum.Easin... |
instruction:
Tween Position with Sine InOut easing, 3s duration, 2 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 2, false, 0)
local goal = {Position = Vector3.... |
input:
Script a block with cobblestone material colored green at (0,5,0) size (4,4,8) in Roblox.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Cobblestone
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(4,4,8)
part.Position = Vector3.new(0,5,0)
par... |
start:
Create an anchored gold Plastic Block part sized 4x1x4 at position 3,23,12 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(4,1,4)
part.Position = Vector3.new(3,23,12)
part... |
query:
Create an anchored green Plastic Block part sized 10x6x2 at position 0,65,-3 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(10,6,2)
part.Position = Vector3.new(0,65,-3)
... |
question:
Tween a part's Transparency with Sine InOut easing over 0.5s in Roblox
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local goal = {Transparency = 0.8}
local tween = TweenService:Crea... |
begin:
Script a ball with woodplanks material colored green at (5,10,-10) size (2,2,8) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(2,2,8)
part.Position = Vector3.new(5,10,-10)
... |
question:
Tween Reflectance with Bounce In easing, 1.5s duration, 0 repeats, non-reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 0, false, 0)
local goal = {Reflectance = 0.9}... |
begin:
Create an unanchored blue Plastic Block part sized 8x4x2 at position -31,58,18 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(8,4,2)
part.Position = Vector3.new(-31,58... |
prompt:
Create an anchored green Wood Block part sized 8x2x8 at position 1,95,28 in Roblox Luau.
output:
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(8,2,8)
part.Position = Vector3.new(1,95,28)
part.An... |
query:
Create an anchored yellow Wood Block part sized 2x1x10 at position 41,48,22 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(2,1,10)
part.Position = Vector3.new(41,48,22)
p... |
start:
Create an anchored purple Plastic Block part sized 1x1x8 at position 18,49,-21 in Roblox Luau.
finish:
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(1,1,8)
part.Position = Vector3.new(18,49,... |
user:
Create an unanchored green Plastic Block part sized 12x2x4 at position 41,19,-13 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,2,4)
part.Position = Vector3.new(41,19,... |
input_text:
Create a teal pebble trusspart at position (-20, 34, -8) with size (15, 3, 10), anchored=false.
end:
local part = Instance.new("TrussPart")
part.Size = Vector3.new(15, 3, 10)
part.Position = Vector3.new(-20, 34, -8)
part.Color = Color3.fromRGB(0, 128, 128)
part.Material = Enum.Material.Pebble
part.Anchored... |
question:
Create an unanchored pink Plastic Block part sized 6x1x1 at position -44,96,10 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(6,1,1)
part.Position = Vector3.new... |
instruction:
Create a TextLabel saying "Click Me" bottom-center in Roblox GUI
solution:
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("T... |
start:
Create an anchored gray Plastic Block part sized 6x6x10 at position 2,31,-28 in Roblox Luau.
end:
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(6,6,10)
part.Position = Vector3.new(2,31,-28... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.