text
stringlengths
54
19.6k
question: Make a block that is lime and sand at (20,50,10) size (2,4,8) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(2,4,8) part.Position = Vector3.new(20,50,10) part.Anchored = fa...
task: Create a TextBox saying "Equip" centered 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("TextBox") elem.Siz...
start: Create an unanchored green Wood Block part sized 8x4x4 at position -34,64,-39 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(8,4,4) part.Position = Vector3.new(-34,64,-...
input: Create a magenta woodplanks cylinder at (0,50,-5) size (6,2,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(6,2,4) part.Position = Vector3.new(0,50,-5) part.Anchore...
begin: Create a TextButton saying "Submit" with LuckiestGuy 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.3,0,0.1,0) ...
start: Spawn a cyan pebble cylinder part at (10,50,0) size (4,2,2) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(10,50,0) part.Anchored = true...
prompt: Tween Reflectance with Elastic In easing, 2s duration, 0 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 0, false, 0) local goal = {Reflectance = 0.9} ...
input: Tween Reflectance with Cubic In easing, 0.75s duration, 0 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, true, 0) local goal = {Reflectance = 0.9} loca...
query: Create an unanchored brown Plastic Block part sized 12x1x2 at position -33,11,-33 in Roblox Luau. output: 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(12,1,2) part.Position = Vector3.new(-3...
input_text: Apply a VectorForce of (416, 1529, 345) to a part using an Attachment. output_text: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(416, 1529, 345) vecto...
instruction: Tween Size with Cubic Out easing, 2.5s duration, 2 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 2, true, 0) local goal = {Size = Vector3.new(8,8,8)}...
query: Create an anchored pink Plastic Block part sized 12x4x6 at position -14,15,50 in Roblox Luau. model: 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,4,6) part.Position = Vector3.new(-14,1...
begin: Create an unanchored purple Wood Block part sized 4x2x8 at position -31,98,-27 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,2,8) part.Position = Vector3.new(-31,9...
start: Help me a projectile weapon that fires a ball at speed 150 dealing 30 damage on hit. output: local tool = script.Parent local damage = 30 local speed = 150 local debounce = false tool.Activated:Connect(function() if debounce then return end debounce = true local character = tool.Parent loc...
task: Tween Position with Quart In easing, 0.75s duration, 3 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 3, true, 0) local goal = {Position = Vector3.new(10,5,0...
instruction: Create an anchored green Plastic Block part sized 1x2x10 at position 50,73,-24 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,2,10) part.Position = Vector3.new(5...
instruction: Detect Backquote key press to trigger an action in Roblox result: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Backquote then print("Backquote pressed -...
question: Tween Reflectance with Bounce In easing, 0.75s duration, 1 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 1, false, 0) local goal = {Reflectanc...
input: Create an anchored yellow Wood Block part sized 10x1x4 at position 37,71,48 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(10,1,4) part.Position = Vector3.new(37,71,48) pa...
query: Create a TextButton saying "Undo" with SourceSansBold font with background Color3.fromRGB(30,30,40) 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,200,0....
start: Create an anchored pink Plastic Block part sized 6x6x1 at position -6,21,-17 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,6,1) part.Position = Vector3.new(-6,2...
start: Create a TextLabel saying "Menu" with PatrickHand 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("TextLabel") elem.Size = UDim2.new(0.3,0,0,40) elem.P...
prompt: Script a ball with corrodedmetal material colored brown at (-5,20,5) size (6,6,6) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(6,6,6) part.Position = Vector3.new(-5...
begin: Create an anchored blue Wood Block part sized 10x2x2 at position -15,26,-50 in Roblox Luau. result: 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,2,2) part.Position = Vector3.new(-15,26,-50) p...
query: Create an unanchored cyan Plastic Block part sized 1x2x8 at position 8,35,-1 in Roblox Luau. solution: 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,2,8) part.Position = Vector3.new(8,35,-...
input: Create an unanchored pink Plastic Block part sized 1x1x8 at position 49,15,17 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(1,1,8) part.Position = Vector3.new(49,...
input_text: Create an anchored gray Plastic Block part sized 2x1x1 at position 16,44,36 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(2,1,1) part.Position = Vector3.new(16...
input_text: Tween Color with Linear InOut easing, 3s duration, 2 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Color = Color3....
prompt: Create an anchored pink Wood Block part sized 12x6x1 at position -34,30,30 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(12,6,1) part.Position = Vector3.new(-34,3...
input: Create an anchored gold Plastic Block part sized 2x2x4 at position 35,47,0 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(2,2,4) part.Position = Vector3.new(35,47,0)...
start: Tween a part's Transparency with Elastic In easing over 3s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(par...
begin: Tween a part's Reflectance with Cubic Out easing over 2s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(pa...
prompt: Create a part that destroys itself after 9 seconds. answer: local part = Instance.new("Part") part.Position = Vector3.new(0, 10, 0) part.Anchored = true part.Parent = workspace task.delay(9, function() part:Destroy() end)
task: Create a part that is black, transparency 0.75, CanCollide=false, Reflectance=0. end: local part = Instance.new("Part") part.Color = Color3.fromRGB(0, 0, 0) part.Transparency = 0.75 part.CanCollide = false part.Reflectance = 0 part.Anchored = true part.Parent = workspace
task: Create a Luau script that will When a player touches a part, heal the player fully. finish: 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:Ge...
question: Create an anchored pink Plastic Block part sized 1x1x6 at position -48,19,25 in Roblox Luau. model: 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(1,1,6) part.Position = Vector3.new(-48,...
instruction: Make a white Plastic part with a SpotLight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Plastic part.Color = Color3.new(1,1,1) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx ...
instruction: Create an unanchored brown Plastic Block part sized 10x2x8 at position -24,88,-10 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,2,8) part.Position = Vect...
question: Create a Luau script that will Add a trail effect to a moving part. response: local part = workspace:WaitForChild("TrailPart") local attachment0 = Instance.new("Attachment") attachment0.Position = Vector3.new(0, 0.5, 0) attachment0.Parent = part local attachment1 = Instance.new("Attachment") attachment1.Po...
question: Create a TextLabel saying "Click Me" with Bangers 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,200,0.1,0) e...
prompt: Create an unanchored brown Plastic Block part sized 12x1x1 at position -32,93,12 in Roblox Luau. completion: 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(12,1,1) part.Position = Vector3.ne...
task: Tween Color with Sine InOut easing, 2s duration, 2 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Color = Color3.fromRGB(25...
user: Create a Luau script that will a ScreenGui with a TextLabel that says "Time: 0:00" using font Code at size 64. output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "Cu...
query: Make a pink Wood part with a PointLight effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = I...
prompt: Tween Size with Quad In easing, 0.25s duration, 1 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)} loca...
query: Create an unanchored yellow Wood Block part sized 10x1x6 at position -8,47,44 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(10,1,6) part.Position = Vector3.new(-8,47,44)...
prompt: Create a TextButton saying "Buy" with Michroma 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("TextButton") elem.Size = UDim2.new(0,150,0,40) elem.Pos...
question: Create an anchored purple Plastic Block part sized 2x2x1 at position -41,25,47 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(2,2,1) part.Position = Vector3.new(-41...
begin: Write Roblox Luau code to Fire a RemoteEvent to all connected players from the server. result: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("BroadcastEvent") local function broadcastToAll(message) remoteEvent:FireAllClients({ mess...
input_text: Tween Color with Sine In easing, 3s duration, 3 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 3, false, 0) local goal = {Color = Color3.fromRGB(255,0,...
begin: Create an unanchored cyan Wood Block part sized 12x2x8 at position -13,93,36 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,255) part.Size = Vector3.new(12,2,8) part.Position = Vector3.new(-13,93,3...
query: Tween Transparency with Quart In easing, 0.5s duration, 0 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, true, 0) local goal = {Transparency = 0.8} loca...
input_text: Create an anchored gray Wood Block part sized 4x6x4 at position -45,49,-24 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(4,6,4) part.Position = Vector3.new(-4...
start: Tween Size with Circular InOut easing, 4s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 2, true, 0) local goal = {Size = Vector3.new(8,8...
task: Create an anchored white Plastic Block part sized 1x4x6 at position 30,66,-45 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(1,4,6) part.Position = Vector3.new(30,66,-45) part....
start: Tween a part's Size with Exponential In easing over 2s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.In) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:C...
prompt: Create a pink diamondplate part with Fire effect in Roblox output_text: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx ...
instruction: Tween Transparency with Circular In easing, 4s duration, 1 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 1, false, 0) local goal = {Transparency ...
input_text: Make a gold DiamondPlate part with a Fire effect attached in Roblox Luau. response: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = worksp...
input: Create an anchored purple Plastic Block part sized 10x6x4 at position 32,14,36 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,6,4) part.Position = Vector3.new(32,14...
question: Tween Transparency with Linear InOut easing, 1s duration, infinite repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Transparenc...
prompt: Tween a part's Position 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 = {Position = Vector3.new(10,5,0)} local tween = TweenService:Cr...
instruction: Give me a script for Show different debounce patterns used in Roblox development. result: -- 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 = f...
prompt: Create an anchored black Wood Block part sized 8x1x1 at position 10,26,-38 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,1,1) part.Position = Vector3.new(10,26,-38) part.Anch...
user: Create an anchored gray Wood Block part sized 8x2x8 at position 42,42,-3 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(8,2,8) part.Position = Vector3.new(42,42,-3) part...
prompt: Script a cylinder with grass material colored magenta at (-5,25,5) size (8,4,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(8,4,4) part.Position = Vector3.new(-5,25,...
query: Create an anchored white Wood Block part sized 2x4x1 at position 12,23,10 in Roblox Luau. output_text: 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(2,4,1) part.Position = Vector3.new(12,23,10) part.An...
query: Create a TextButton saying "Delete" with RobotoMono font with background Color3.fromRGB(50,50,80) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0,50) ele...
user: Create an unanchored orange Wood Block part sized 10x6x1 at position -45,3,22 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(10,6,1) part.Position = Vector3.new(-45,3,22) ...
task: Create an unanchored red Wood Block part sized 6x2x4 at position -35,48,23 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,2,4) part.Position = Vector3.new(-35,48,23) p...
instruction: Tween a part's CFrame with Cubic In easing over 1s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = Twee...
user: Create a TextLabel saying "Equip" centered in Roblox GUI output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextLabel") elem.S...
query: Create an unanchored purple Plastic Block part sized 2x4x8 at position 47,41,-24 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(2,4,8) part.Position = Vector3.new(47,4...
start: Create a teal sand cylinder at (-10,5,5) size (4,6,1) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(4,6,1) part.Position = Vector3.new(-10,5,5) part.Anchored = true p...
task: Tween a part's Color with Bounce InOut 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.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = Tween...
instruction: Create an unanchored green Plastic Block part sized 10x1x8 at position 42,57,-45 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(10,1,8) part.Position = Vector3.new...
prompt: Create a Hammer tool that deals 20 damage when activated. finish: local tool = script.Parent local damage = 20 local debounce = false local cooldown = 0.5 tool.Activated:Connect(function() if debounce then return end debounce = true local character = tool.Parent local humanoid = character...
question: Create an unanchored white Wood Block part sized 10x4x10 at position 48,4,19 in Roblox Luau. answer: 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,4,10) part.Position = Vector3.new(48,4,19) part....
instruction: Write a Roblox script to a global leaderboard using OrderedDataStore for top players by Level. end: local DataStoreService = game:GetService("DataStoreService") local orderedStore = DataStoreService:GetOrderedDataStore("LevelLeaderboard") local function getTopPlayers(count) local success, pages = pca...
query: Script a cylinder with metal material colored orange at (-5,15,-10) size (6,2,8) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Metal part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(6,2,8) part.Position = Vector3.new(-5,15,...
question: Tween CFrame with Linear Out easing, 0.5s duration, infinite repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0) local goal = {CFrame = part.CFr...
prompt: Tween a part's Reflectance with Elastic In easing over 3s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, i...
instruction: Create a lime woodplanks ball at (10,50,-5) size (8,6,2) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(8,6,2) part.Position = Vector3.new(10,50,-5) part.Anchored = fa...
begin: Tween Transparency with Circular In easing, 3s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 3, true, 0) local goal = {Transparency = 0.8} lo...
begin: Build a system that Tween a part's color to RGB(255, 8, 123) over 2.3 seconds. output_text: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = ...
question: Create a pink wood unionoperation at position (15, 14, -1) with size (11, 14, 20), anchored=true. end: local part = Instance.new("UnionOperation") part.Size = Vector3.new(11, 14, 20) part.Position = Vector3.new(15, 14, -1) part.Color = Color3.fromRGB(255, 105, 180) part.Material = Enum.Material.Wood part.Anc...
begin: Tween a part's Position with Linear Out 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.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:Cre...
input: Create an unanchored green Wood Block part sized 10x2x10 at position -37,51,-49 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(10,2,10) part.Position = Vector3.new(-37,51...
question: Tween Transparency with Linear Out easing, 1.5s duration, 3 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 3, false, 0) local goal = {Transparency...
query: Tween Transparency with Back In easing, 0.75s duration, 2 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.In, 2, true, 0) local goal = {Transparency = 0.8} local twe...
task: Make a block that is green and neon at (5,25,-5) size (2,1,4) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(2,1,4) part.Position = Vector3.new(5,25,-5) part.Anchored = false par...
user: Create an unanchored black Wood Block part sized 1x2x6 at position 29,46,22 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(0,0,0) part.Size = Vector3.new(1,2,6) part.Position = Vector3.new(29,46,22) part.A...
input_text: Tween a part's Transparency with Quint In 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.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(part,...
task: Make a yellow Concrete part with a Fire effect attached in Roblox Luau. answer: 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 =...
start: Make a yellow Slate part with a SpotLight effect attached in Roblox Luau. response: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx...
input: Make a orange Slate part with a Fire effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx =...
question: Script a ball with concrete material colored black at (-5,25,5) size (2,2,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Concrete part.Color = Color3.new(0,0,0) part.Size = Vector3.new(2,2,4) part.Position = Vector3.new(-5,25,5) part.Anch...
question: Create a TextLabel saying "Play" with Oswald font with background Color3.fromRGB(255,128,0) 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,200,0,60) elem.Po...
begin: Create a TextLabel saying "Retry" with Creepster font with background Color3.fromRGB(50,200,50) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.5,0,0,40) elem.P...
query: Create a round-based game system with 90s rounds and 20s intermission. result: local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ROUND_TIME = 90 local INTERMISSION = 20 local statusValue = Instance.new("StringValue") statusValue.Name = "GameStatus"...