text
stringlengths
54
19.6k
input_text: Create an anchored black Wood Block part sized 6x2x10 at position 30,13,-8 in Roblox Luau. completion: 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(6,2,10) part.Position = Vector3.new(30,13,-8) p...
instruction: Create a brown marble ball at (5,15,5) size (4,4,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(5,15,5) part.Anchored = true part....
query: How do I create a day/night cycle? answer: local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local CYCLE_SPEED = 1 -- 1 = real-time, 60 = 1 minute per game day RunService.Heartbeat:Connect(function(deltaTime) local increment = deltaTime * CYCLE_SPEED / 60 -- Con...
begin: Show me how to When a player touches a part, teleport the player to the spawn. solution: 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:GetS...
query: Spawn a white slate cylinder part at (10,15,-5) size (2,1,8) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Slate part.Color = Color3.new(1,1,1) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(10,15,-5) part.Anchored = false part.Pa...
begin: Create a purple woodplanks ball at (0,5,-5) size (2,6,4) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,6,4) part.Position = Vector3.new(0,5,-5) part.Anchored = true ...
start: Create a TextLabel saying "Play" with Creepster font with background Color3.fromRGB(0,0,0) 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.Positi...
input_text: Tween CFrame with Quad InOut easing, 2.5s duration, 2 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 2, true, 0) local goal = {CFrame = part.CFrame*...
question: Create a TextLabel saying "Game Over" with RobotoMono font with background Color3.fromRGB(50,50,80) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0...
input: Create an anchored blue Wood Block part sized 1x4x6 at position 24,16,-40 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(1,4,6) part.Position = Vector3.new(24,16,-40) part....
query: Tween Transparency with Elastic Out easing, 0.75s duration, 2 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 2, true, 0) local goal = {Transparency = 0.8}...
query: Create a Luau script that will Show common Luau string operations and manipulation. result: -- String concatenation local first = "Hello" local second = "World" local combined = first .. " " .. second -- String interpolation (Luau feature) local name = "Player" local level = 5 local message = `{name} is level ...
begin: Create an anchored gray Plastic Block part sized 10x4x1 at position -45,61,43 in Roblox Luau. solution: 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(10,4,1) part.Position = Vector3.new(-4...
input_text: Create an unanchored yellow Plastic Block part sized 12x1x8 at position 45,78,-3 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(12,1,8) part.Position = Vector3....
input: Create an unanchored green Wood Block part sized 4x1x2 at position -41,43,-33 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(4,1,2) part.Position = Vector3.new(-41,43,-33...
instruction: Create a Luau script that will an auto-balancing team system that assigns players to Red or Blue teams. result: local Players = game:GetService("Players") local Teams = game:GetService("Teams") -- Create teams local redTeam = Instance.new("Team") redTeam.Name = "Red" redTeam.TeamColor = BrickColor.new("B...
task: Create a TextLabel saying "Resume" with SourceSansBold 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.5,0,0,50) e...
instruction: Create an anchored orange Plastic Block part sized 10x6x4 at position -34,12,-8 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,128,0) part.Size = Vector3.new(10,6,4) part.Position = Vecto...
input_text: Create an unanchored green Wood Block part sized 1x6x2 at position -11,31,44 in Roblox Luau. answer: 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(1,6,2) part.Position = Vector3.new(-11,31,4...
task: Tween Color with Exponential In easing, 0.25s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 1, false, 0) local goal = {Color = Color3.f...
instruction: Create an anchored gold Wood Block part sized 4x4x6 at position -48,64,0 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,6) part.Position = Vector3.new(-48,64,0)...
query: Create an anchored red Plastic Block part sized 4x6x8 at position -44,84,19 in Roblox Luau. response: 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(4,6,8) part.Position = Vector3.new(-44,84,19...
begin: Create an unanchored cyan Plastic Block part sized 1x2x6 at position -27,15,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,6) part.Position = Vector3.new(-27,1...
user: Help me Set up collision groups so players don't collide with each other. model: local PhysicsService = game:GetService("PhysicsService") local Players = game:GetService("Players") -- Create collision groups PhysicsService:RegisterCollisionGroup("Players") PhysicsService:RegisterCollisionGroup("Default") -- Di...
user: Create an unanchored gray Plastic Block part sized 2x1x8 at position -6,29,42 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,128,128) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(-...
task: Tween Size with Circular Out easing, 1s duration, 2 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 2, true, 0) local goal = {Size = Vector3.new(8,8,8)} loca...
instruction: Tween Reflectance with Linear Out easing, 1.5s duration, 3 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 3, true, 0) local goal = {Reflectance = 0.9...
input: Create an unanchored orange Plastic Block part sized 4x2x1 at position 30,96,-31 in Roblox Luau. result: 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(4,2,1) part.Position = Vector3.new(30,9...
prompt: Create a ProximityPrompt on a switch part that says "Activate Switch" with hold duration 0.5s and max distance 7. solution: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Activate Switch" prompt.ObjectText = "Switch" prompt.KeyboardKeyCode = Enum.KeyCode.F promp...
user: Spawn a orange woodplanks block part at (-5,5,-5) size (4,1,8) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(4,1,8) part.Position = Vector3.new(-5,5,-5) part.Anchored = fal...
query: Create a tween that loops 3 times and reverses. answer: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("LoopPart") local tweenInfo = TweenInfo.new( 1, -- Duration Enum.EasingStyle.Sine, -- EasingStyle Enum.EasingDirect...
task: Create a TextLabel saying "Play" with Roboto font with background Color3.fromRGB(255,128,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.2,0,0,60) elem.Position ...
query: Tween Size with Quint In 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.Quint, Enum.EasingDirection.In, 1, false, 0) local goal = {Size = Vector3.new(8,8...
task: Create an anchored gray Wood Block part sized 4x4x4 at position 37,56,44 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(4,4,4) part.Position = Vector3.new(37,56,44) part.An...
user: Create an unanchored gold Plastic Block part sized 1x2x4 at position -32,46,-14 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(1,2,4) part.Position = Vector3.new(-3...
input: Create an unanchored blue Wood Block part sized 8x1x6 at position 10,30,16 in Roblox Luau. output: 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(8,1,6) part.Position = Vector3.new(10,30,16) part....
user: Create a TextButton saying "Retry" with Bangers 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("TextButton") elem.Size = UDim2.new(1,0,0.08,0) elem.Po...
prompt: I need to a clickable TextButton that says "Play" and prints a message when clicked. output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local button =...
instruction: Create an unanchored gray Wood Block part sized 10x4x6 at position 34,50,16 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(10,4,6) part.Position = Vector3.new(34,50,...
query: Create an anchored gold Plastic Block part sized 1x1x2 at position -26,9,-48 in Roblox Luau. response: 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,1,2) part.Position = Vector3.new(-26,9,...
user: Create an unanchored purple Wood Block part sized 2x2x1 at position -16,64,34 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,2,1) part.Position = Vector3.new(-16,64,34) ...
task: Create an unanchored teal Plastic Block part sized 6x4x4 at position -10,91,17 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(6,4,4) part.Position = Vector3.new(-10,91,17)...
task: Create an unanchored orange Wood Block part sized 8x6x2 at position -38,7,33 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(8,6,2) part.Position = Vector3.new(-38,7,33) ...
instruction: Create an unanchored green Plastic Block part sized 10x4x10 at position 5,12,-22 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(10,4,10) part.Position = Vector3.new(5...
input_text: Create a magenta grass part with Fire effect in Roblox finish: local part = Instance.new("Part") part.Material = Enum.Material.Grass 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 = Instance.new...
input: Create a brown metal part with Sparkles effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.Metal part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.new("S...
user: Create an unanchored blue Plastic Block part sized 4x2x10 at position -31,20,22 in Roblox Luau. end: 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(4,2,10) part.Position = Vector3.new(-31,20,22)...
query: Make a block that is gold and concrete at (0,15,20) size (6,1,4) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(6,1,4) part.Position = Vector3.new(0,15,20) part.Anchored =...
input: Set the player's WalkSpeed to 24 and JumpPower to 75. answer: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.WalkSpeed = 24 humanoi...
start: Tween Reflectance with Back In easing, 0.75s duration, infinite repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.In, -1, false, 0) local goal = {Reflectance = ...
task: Script a block with metal material colored gray at (5,5,20) size (4,4,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Metal part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(5,5,20) part.Anc...
task: Create an unanchored blue Wood Block part sized 4x6x2 at position -19,7,30 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(4,6,2) part.Position = Vector3.new(-19,7,30) part.An...
start: Tween a part's CFrame with Back Out easing over 1s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = Tween...
task: Tween a part's Size with Elastic InOut easing over 2s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(...
instruction: Create a TextButton saying "No" with Nunito font with background Color3.fromRGB(40,40,40) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0,50) ele...
input_text: Make a red Slate part with a SpotLight effect attached in Roblox Luau. solution: 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...
query: Tween CFrame with Exponential Out 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.Exponential, Enum.EasingDirection.Out, 1, false, 0) local goal = {CFrame...
input: Create an unanchored yellow Plastic Block part sized 2x2x1 at position -39,88,-10 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(2,2,1) part.Position = Vector3.new(-39,...
instruction: Tween Size with Back InOut easing, 4s duration, infinite repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Size = Vector3.new...
query: Tween Reflectance with Cubic In easing, 3s duration, 3 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 3, false, 0) local goal = {Reflectance = 0.9} lo...
question: Tween CFrame with Exponential Out easing, 1.5s duration, infinite repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, false, 0) local goal = {CFram...
instruction: Create an anchored yellow Plastic Block part sized 8x1x1 at position 23,90,-36 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,255,0) part.Size = Vector3.new(8,1,1) part.Position = Vector3...
query: Create an anchored white Wood Block part sized 1x2x8 at position -24,22,-50 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(1,2,8) part.Position = Vector3.new(-24,22,-50) part.Anc...
instruction: Script a cylinder with marble material colored red at (0,25,-5) size (6,4,2) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(6,4,2) part.Position = Vector3.new(0,25,-5...
query: Spawn a black brick ball part at (-5,5,20) size (2,1,8) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Brick part.Color = Color3.new(0,0,0) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(-5,5,20) part.Anchored = false part.Parent = ...
query: Create an unanchored green Wood Block part sized 2x1x4 at position 16,54,32 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(2,1,4) part.Position = Vector3.new(16,54,32) pa...
start: Script a ball with cobblestone material colored brown at (-5,25,5) size (2,1,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Cobblestone part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(2,1,2) part.Position = Vector3.new(-5...
prompt: Tween Position with Sine InOut easing, 3s duration, infinite repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Position = Vector3....
start: Tween CFrame with Back In easing, 1s duration, 3 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In, 3, false, 0) local goal = {CFrame = part.CFrame*CFrame.new(0,...
instruction: Create an unanchored gray Plastic Block part sized 4x1x4 at position -46,86,-1 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(4,1,4) part.Position = Vector3.ne...
prompt: Create a TextButton saying "Buy" with FredokaOne font with background Color3.fromRGB(30,30,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....
begin: Apply a VectorForce of (407, 912, 40) to a part using an Attachment. answer: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(407, 912, 40) vectorForce.Attachm...
question: Tween Color with Linear Out easing, 0.75s duration, 1 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true, 0) local goal = {Color = Color3.fromRGB(2...
question: Create a part that destroys itself after 8 seconds. result: local part = Instance.new("Part") part.Position = Vector3.new(0, 10, 0) part.Anchored = true part.Parent = workspace task.delay(8, function() part:Destroy() end)
input_text: Create a TextButton saying "Loading..." with Bangers font with background Color3.fromRGB(200,50,50) 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(1,0,0.1,...
start: Create an unanchored purple Wood Block part sized 8x4x1 at position 6,47,15 in Roblox Luau. model: 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,4,1) part.Position = Vector3.new(6,47,15) part...
start: Create an anchored cyan Wood Block part sized 2x2x1 at position 30,99,-25 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,2,1) part.Position = Vector3.new(30,99,-25) par...
query: Create a TextButton saying "Click Me" with Roboto font with background Color3.fromRGB(128,0,255) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0.1,0) e...
instruction: Create an unanchored orange Plastic Block part sized 10x6x2 at position -48,9,-25 in Roblox Luau. output: 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,6,2) part.Position = Vector3....
instruction: Create a yellow grass ball at (-5,5,-10) size (4,4,4) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(-5,5,-10) part.Anchored = false part...
question: Tween a part's Size with Elastic In easing over 0.5s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Crea...
begin: Create a TextLabel saying "Shop" with FredokaOne font with background Color3.fromRGB(200,50,50) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0.08,0) el...
user: Detect F7 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.F7 then print("F7 pressed - dash forward!") -- Add your da...
input_text: Tween a part's Color with Quint 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.Quint, Enum.EasingDirection.Out) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = Tween...
begin: Create an unanchored purple Wood Block part sized 2x6x1 at position 18,69,-21 in Roblox Luau. model: 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,6,1) part.Position = Vector3.new(18,69,-21) ...
query: Create an unanchored cyan Plastic Block part sized 1x4x2 at position -30,14,3 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,255) part.Size = Vector3.new(1,4,2) part.Position = Vector3.new(-30,14,...
input: Tween Size with Bounce InOut easing, 0.25s duration, 0 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Size = Vector3.new(8,8,8...
task: Create an unanchored yellow Wood Block part sized 12x4x4 at position -5,29,43 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(12,4,4) part.Position = Vector3.new(-5,29,...
input_text: Create an unanchored yellow Wood Block part sized 6x6x8 at position 14,93,44 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(6,6,8) part.Position = Vector3.new(14,93,...
task: Set the game lighting to night (ClockTime=0) with appropriate ambient. output_text: local Lighting = game:GetService("Lighting") Lighting.ClockTime = 0 Lighting.Brightness = 0.5 Lighting.Ambient = Color3.fromRGB(30, 30, 50) Lighting.OutdoorAmbient = Color3.fromRGB(50, 50, 70) Lighting.FogEnd = 500 Lighting.FogC...
input: Tween a part's Position with Quad InOut easing over 5s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:Cr...
instruction: Create an anchored red Plastic Block part sized 6x2x10 at position 24,77,-45 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(6,2,10) part.Position = Vector3.new(24,...
input_text: Make a cylinder that is black and cobblestone at (0,1,5) size (8,6,4) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Cobblestone part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,6,4) part.Position = Vector3.new(0,1,5) part.Ancho...
input: Script a cylinder with grass material colored yellow at (-5,20,-5) size (6,2,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(-5,20,-5)...
user: Create a TextLabel saying "Yes" with Roboto font with background Color3.fromRGB(50,50,80) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,60) elem.Position = ...
prompt: Teleport the player's character to position (89, 97, -91). result: local Players = game:GetService("Players") local function teleportPlayer(player, position) local character = player.Character if character then local rootPart = character:FindFirstChild("HumanoidRootPart") if rootPart t...
prompt: Tween Transparency with Quart In 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.In, 1, false, 0) local goal = {Transparency = 0.8} ...
input_text: Tween Transparency with Circular InOut easing, 1.5s duration, 3 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Trans...
user: Create an anchored orange Wood Block part sized 8x2x6 at position 49,52,-26 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(8,2,6) part.Position = Vector3.new(49,52,-26) pa...
input: Create a TextLabel saying "Loading..." with RobotoMono font with background Color3.fromRGB(50,200,50) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0,6...