text stringlengths 54 19.6k |
|---|
user:
How do you get a reference to the HttpService service in Roblox?
end:
local HttpService = game:GetService("HttpService") |
question:
Create a TextLabel saying "Equip" with SourceSansBold 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(0.2,0,0.... |
query:
Make a gray CorrodedMetal part with a Highlight effect attached in Roblox Luau.
output:
local part = Instance.new("Part")
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = work... |
user:
Spawn a lime grass ball part at (-5,15,-5) size (4,2,4) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Grass
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(4,2,4)
part.Position = Vector3.new(-5,15,-5)
part.Anchored = false
part.P... |
user:
Create a pink cobblestone cornerwedgepart at position (-38, 6, 33) with size (3, 15, 18), anchored=true.
response:
local part = Instance.new("CornerWedgePart")
part.Size = Vector3.new(3, 15, 18)
part.Position = Vector3.new(-38, 6, 33)
part.Color = Color3.fromRGB(255, 105, 180)
part.Material = Enum.Material.Cobbl... |
question:
Tween Reflectance with Circular InOut easing, 5s duration, 0 repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0)
local goal = {Reflectance... |
begin:
Create an unanchored teal Plastic Block part sized 6x4x8 at position -45,17,13 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(6,4,8)
part.Position = Vector3.new(-45,17... |
task:
Create a green brick part with Fire effect in Roblox
response:
local part = Instance.new("Part")
part.Material = Enum.Material.Brick
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 = Instance.new("Fire")... |
user:
Create a TextButton saying "OK" with Ubuntu font with background Color3.fromRGB(40,40,40) 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(0,150,0,40)
elem.Positio... |
question:
Create a TextLabel saying "Yes" with Ubuntu font with background Color3.fromRGB(50,50,80) 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.3,0,0,40)
elem... |
start:
Create a TextButton saying "Play" with Ubuntu font with background Color3.fromRGB(50,50,80) 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.5,0,0,40)
elem.Posi... |
input:
Make a ball that is gold and slate at (5,15,5) size (2,4,8) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(2,4,8)
part.Position = Vector3.new(5,15,5)
part.Anchored = true
part... |
start:
Create a TextLabel saying "Resume" with SourceSansBold font with background Color3.fromRGB(50,200,50) 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,150,0.08,0... |
task:
Create a TextLabel saying "Pause" with PatrickHand font with background Color3.fromRGB(200,50,50) 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.5,0,0,60)
elem.... |
begin:
Create a Frame with a UIListLayout (padding 6) containing 5 buttons.
finish:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local frame = Instance.new("Fra... |
query:
Create an unanchored blue Plastic Block part sized 2x4x10 at position 10,71,17 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(2,4,10)
part.Position = Vector3.new(10,71,1... |
query:
Tween a part's Color with Linear In easing over 3s in Roblox
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:Create(... |
user:
Write server-side code to fire a RemoteEvent called "ItemPickup" to a specific player with data.
answer:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ItemPickup")
local function fireToPlayer(player, data)
remoteEvent:FireClient(player, da... |
user:
Create an anchored white Plastic Block part sized 10x1x8 at position 23,74,33 in Roblox Luau.
answer:
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,1,8)
part.Position = Vector3.new(23,74,33)
part.... |
prompt:
Create an anchored pink Plastic Block part sized 10x1x4 at position 24,38,9 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(10,1,4)
part.Position = Vector3.new(24,... |
user:
Create a TextLabel saying "Play" with Nunito font with background Color3.fromRGB(255,128,0) 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,60)
elem.Positi... |
question:
Create a TextLabel saying "Welcome!" with RobotoMono 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("TextLabel")
elem.Size = UDim2.new(0,200,0,6... |
input_text:
Add a Highlight effect to a model or part to make it glow.
finish:
local model = workspace:WaitForChild("TargetModel")
local highlight = Instance.new("Highlight")
highlight.FillColor = Color3.fromRGB(255, 255, 0)
highlight.FillTransparency = 0.5
highlight.OutlineColor = Color3.fromRGB(255, 200, 0)
highlig... |
prompt:
Help me Show different debounce patterns used in Roblox development.
finish:
-- Simple boolean debounce
local debounce = false
local function onTouch(hit)
if debounce then return end
debounce = true
-- Do something
print("Touched!")
task.wait(1)
debounce = false
end
-- Per-p... |
start:
Create a TextButton saying "Equip" with Oswald font with background Color3.fromRGB(50,200,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,200,0.08,0)
elem.P... |
begin:
Apply a BodyVelocity of (-41, 95, -44) to a part.
finish:
local part = workspace:WaitForChild("PhysicsPart")
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(-41, 95, -44)
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.P = 1250
bodyVelocit... |
query:
Create a TextButton saying "Help" with RobotoMono font with background Color3.fromRGB(50,50,80) 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.2,0,0,60)
elem.... |
input_text:
Tween Color with Circular Out easing, 3s duration, 1 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 1, true, 0)
local goal = {Color = Color3.fromRGB(2... |
question:
Tween Color with Sine Out easing, 2.5s duration, 0 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, true, 0)
local goal = {Color = Color3.fromRGB(255,0... |
start:
Create a TextButton saying "Delete" with Bangers font with background Color3.fromRGB(30,30,40) 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,150,0.1,0)
elem.... |
question:
Create an unanchored red Plastic Block part sized 2x4x1 at position 37,69,46 in Roblox Luau.
completion:
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(2,4,1)
part.Position = Vector3.new(37,... |
user:
Create a pink fabric block at (20,20,-5) size (4,4,4) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Fabric
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(20,20,-5)
part.Anchored = false
part... |
user:
Create a TextButton saying "Shop" with Oswald font with background Color3.fromRGB(40,40,40) in Roblox GUI.
result:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.2,0,0,60)
elem.Posit... |
task:
Create an unanchored pink Wood Block part sized 10x4x1 at position -46,31,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,100,200)
part.Size = Vector3.new(10,4,1)
part.Position = Vector3.new(-46,31,39... |
question:
Create a TextButton saying "Exit" with LuckiestGuy font with background Color3.fromRGB(50,50,80) 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.1,0)
e... |
start:
Create an unanchored brown Plastic Block part sized 4x6x8 at position 26,15,50 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(4,6,8)
part.Position = Vector3.new(26,15,... |
begin:
Create an unanchored pink Plastic Block part sized 8x2x1 at position 24,14,-50 in Roblox Luau.
response:
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(8,2,1)
part.Position = Vector3.new(24... |
user:
Create a brown metal ball at (-10,15,5) size (1,6,2) in Roblox.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Metal
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(1,6,2)
part.Position = Vector3.new(-10,15,5)
part.Anchored = false
part.Pa... |
instruction:
Create an unanchored teal Plastic Block part sized 4x1x2 at position 32,18,-50 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,128,128)
part.Size = Vector3.new(4,1,2)
part.Position = Vector3... |
prompt:
Create an unanchored gold Wood Block part sized 10x1x1 at position 1,70,-43 in Roblox Luau.
end:
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(10,1,1)
part.Position = Vector3.new(1,70,-43)
par... |
user:
Tween Size with Quart InOut easing, 0.5s duration, 1 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Size = Vector3.new(8,8,8... |
input:
Create an unanchored white Plastic Block part sized 10x2x6 at position 31,44,3 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(10,2,6)
part.Position = Vector3.new(31,44,3)
part.... |
user:
Create an anchored blue Wood Block part sized 12x6x6 at position -49,44,-26 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(12,6,6)
part.Position = Vector3.new(-49,44,-26)
pa... |
instruction:
Tween a part's Color with Sine InOut easing over 3s in Roblox
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService:C... |
input_text:
Create an unanchored orange Plastic Block part sized 10x2x2 at position -35,12,-30 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(10,2,2)
part.Position = Vector... |
query:
Create an anchored pink Wood Block part sized 4x4x10 at position -45,4,43 in Roblox Luau.
model:
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,4,10)
part.Position = Vector3.new(-45,4,43)
pa... |
begin:
Create an unanchored brown Plastic Block part sized 8x1x8 at position 28,46,-11 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(8,1,8)
part.Position = Vector3.new(28,46,... |
query:
Make a gray DiamondPlate part with a Smoke effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.DiamondPlate
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
... |
input_text:
Create an anchored teal Plastic Block part sized 10x4x10 at position 48,65,-48 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,128,128)
part.Size = Vector3.new(10,4,10)
part.Position = Vector... |
user:
Create an unanchored white Wood Block part sized 10x2x6 at position 4,69,47 in Roblox Luau.
completion:
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(10,2,6)
part.Position = Vector3.new(4,69,47)
part.An... |
instruction:
Create a teal neon cylinder at (10,5,20) size (4,1,8) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(0,128,128)
part.Size = Vector3.new(4,1,8)
part.Position = Vector3.new(10,5,20)
part.Anchored = true
... |
prompt:
Make a block that is pink and ice at (10,10,20) size (1,4,4) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Ice
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(1,4,4)
part.Position = Vector3.new(10,10,20)
part.Anchored = fals... |
user:
Create an anchored gold Plastic Block part sized 4x6x8 at position 21,79,38 in Roblox Luau.
completion:
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,6,8)
part.Position = Vector3.new(21,79,... |
begin:
Create an unanchored yellow Plastic Block part sized 4x1x8 at position -45,83,48 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(4,1,8)
part.Position = Vector3.new(-45,83,... |
input_text:
Create an unanchored white Plastic Block part sized 8x1x6 at position 19,5,14 in Roblox Luau.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(8,1,6)
part.Position = Vector3.new(19,5,... |
question:
Write Roblox Luau code to Use Instance Attributes to store custom data on parts.
output_text:
-- Setting attributes
local part = workspace:WaitForChild("MyPart")
part:SetAttribute("Health", 100)
part:SetAttribute("Team", "Red")
part:SetAttribute("IsActive", true)
part:SetAttribute("Damage", 25.5)
-- Gettin... |
input:
Create an unanchored yellow Plastic Block part sized 4x4x4 at position 15,72,-37 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,255,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(15,72... |
question:
Spawn a cyan sand ball part at (0,20,0) size (6,4,1) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Sand
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(6,4,1)
part.Position = Vector3.new(0,20,0)
part.Anchored = true
part.Pare... |
instruction:
Tween a part's Reflectance with Quad Out easing over 3s in Roblox
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {Reflectance = 0.9}
local tween = TweenService:Create(part... |
start:
Detect Five key press to use an ability in Roblox
answer:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.Five then
print("Five pressed - use an ability!")
-- ... |
task:
Create an unanchored blue Plastic Block part sized 2x6x2 at position -5,90,8 in Roblox Luau.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(2,6,2)
part.Position = Vector3.new(-5,90,8)
... |
question:
Make a red Slate part with a Fire effect attached in Roblox Luau.
model:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instanc... |
user:
Tween CFrame with Quint Out easing, 1.5s duration, 3 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 3, true, 0)
local goal = {CFrame = part.CFrame*CFrame.new(0,... |
query:
Create a TextLabel saying "Equip" with Bangers font with background Color3.fromRGB(50,200,50) in Roblox GUI.
completion:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.2,0,0,50)
elem... |
prompt:
Create an unanchored gold Wood Block part sized 4x6x8 at position 16,64,-23 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(4,6,8)
part.Position = Vector3.new(16,64,-23)
p... |
question:
Create a TextLabel saying "Delete" with Ubuntu 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("TextLabel")
elem.Size = UDim2.new(0,150,0.1,0)
elem.P... |
input_text:
Make a cylinder that is white and woodplanks at (-5,25,0) size (6,4,1) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.WoodPlanks
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(6,4,1)
part.Position = Vector3.new(-5,25,0)
part.... |
input_text:
Implement a way to a custom chat command that handles '/give' to give items to players.
result:
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local textChatCommands = TextChatService:WaitForChild("TextChatCommands", 5)
if not textChatCommands then
... |
begin:
Build a system that server-side code to fire a RemoteEvent called "ChatEvent" to a specific player with data.
response:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ChatEvent")
local function fireToPlayer(player, data)
remoteEvent:FireCl... |
task:
Create an unanchored orange Plastic Block part sized 2x4x8 at position -44,51,30 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(2,4,8)
part.Position = Vector3.new(-44,51,3... |
query:
Build a system that an explosion with blast pressure 25 and radius 50 at a part's position.
response:
local part = workspace:WaitForChild("ExplosionPart")
local explosion = Instance.new("Explosion")
explosion.Position = part.Position
explosion.BlastPressure = 25
explosion.BlastRadius = 50
explosion.DestroyJoin... |
input:
Make a cylinder that is gold and forcefield at (5,25,-5) size (1,2,1) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.ForceField
part.Color = Color3.fromRGB(255,215,0)
part.Size = Vector3.new(1,2,1)
part.Position = Vector3.new(5,25,-5)
part.... |
user:
Tween a part's Size with Back Out easing over 1s in Roblox
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
local goal = {Size = Vector3.new(8,8,8)}
local tween = TweenService:Create(part, inf... |
start:
Create an unanchored blue Wood Block part sized 2x2x10 at position -32,61,-11 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(2,2,10)
part.Position = Vector3.new(-32,61,-11)
... |
task:
Create a pink wood ball at (10,5,-5) size (4,2,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,100,200)
part.Size = Vector3.new(4,2,8)
part.Position = Vector3.new(10,5,-5)
part.Anchored = false
part.Paren... |
input:
Tween Color with Quad InOut easing, 0.25s duration, 1 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Color = Color3.fr... |
input:
Tween Reflectance with Quad In easing, 0.75s duration, 3 repeats, non-reversing in Roblox.
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 3, false, 0)
local goal = {Reflectance = 0.9}
l... |
input:
Tween a part's Position with Quint InOut easing over 3s in Roblox
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
local goal = {Position = Vector3.new(10,5,0)}
local tween = TweenService:... |
start:
Tween CFrame with Bounce Out easing, 2.5s duration, 0 repeats, non-reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0)
local goal = {CFrame = part.CFrame*CF... |
instruction:
Script a block with glass material colored brown at (20,15,10) size (6,6,8) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Glass
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(6,6,8)
part.Position = Vector3.new(20,15,10... |
query:
Tween a part's Reflectance with Bounce Out easing over 0.5s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out)
local goal = {Reflectance = 0.9}
local tween = TweenService:Cre... |
input_text:
Create an unanchored cyan Wood Block part sized 10x1x2 at position -38,95,25 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(10,1,2)
part.Position = Vector3.new(-38... |
prompt:
Create an anchored gray Wood Block part sized 10x6x10 at position 36,13,50 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(10,6,10)
part.Position = Vector3.new(36,13,50... |
begin:
Create a TextLabel saying "Settings" with Roboto 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,150,0,40)
elem.P... |
task:
Create a TextButton saying "Retry" with Nunito font with background Color3.fromRGB(255,128,0) in Roblox GUI.
model:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.3,0,0,60)
elem.Posi... |
query:
Create a TextLabel saying "Exit" with Bangers font with background Color3.fromRGB(30,30,40) 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(1,0,0,60)
elem.Positio... |
query:
Tween Transparency with Quint Out 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.Quint, Enum.EasingDirection.Out, 3, false, 0)
local goal = {Transparency = 0.... |
task:
Code a script that Tween a GUI frame to slide in from the left side of the screen.
completion:
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("Scr... |
begin:
Create a TextLabel saying "Score: 0" 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... |
task:
Create a TextLabel saying "Delete" with Creepster font with background Color3.fromRGB(128,0,255) 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,150,0.08,0)
elem... |
instruction:
Tween a part's Color with Quint InOut easing over 5s in Roblox
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
local goal = {Color = Color3.fromRGB(255,0,0)}
local tween = TweenService... |
user:
Spawn a magenta neon cylinder part at (0,15,10) size (1,4,6) in Roblox.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(255,0,255)
part.Size = Vector3.new(1,4,6)
part.Position = Vector3.new(0,15,10)
part.Anchored = false... |
question:
Create a magenta woodplanks part with Smoke effect in Roblox
output:
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 = Ins... |
query:
Create an anchored green Plastic Block part sized 4x6x1 at position -50,27,-12 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(4,6,1)
part.Position = Vector3.new(-50,27,-1... |
question:
Create an anchored white Plastic Block part sized 4x4x1 at position 31,64,6 in Roblox Luau.
answer:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.new(1,1,1)
part.Size = Vector3.new(4,4,1)
part.Position = Vector3.new(31,64,6)
part.... |
task:
Create an anchored orange Plastic Block part sized 8x4x1 at position -31,1,2 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,128,0)
part.Size = Vector3.new(8,4,1)
part.Position = Vector3.new(-31,1,2... |
start:
Create an anchored green Plastic Block part sized 10x6x4 at position -1,11,-3 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(10,6,4)
part.Position = Vector3.new(-1,11,... |
input_text:
Create a ProximityPrompt on a item part that says "Pick Up Item" with hold duration 0.4s and max distance 15.
output:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Pick Up Item"
prompt.ObjectText = "Item"
prompt.KeyboardKeyCode = Enum.KeyCode.F
prompt.HoldD... |
task:
Create a ProximityPrompt on a npc part that says "Talk to NPC" with hold duration 1.6s and max distance 7.
completion:
local part = script.Parent
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = "Talk to NPC"
prompt.ObjectText = "NPC"
prompt.KeyboardKeyCode = Enum.KeyCode.E
prompt.HoldDuration... |
prompt:
Create a TextBox saying "Game Over" bottom-center in Roblox GUI
end:
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")
el... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.