text
stringlengths
54
19.6k
user: Create an anchored purple Plastic Block part sized 8x2x1 at position -12,62,50 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(8,2,1) part.Position = Vector3.new(-12,62,...
task: Make a blue DiamondPlate part with a SpotLight effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace...
task: Create an anchored brown Wood Block part sized 2x2x2 at position 3,23,-28 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(2,2,2) part.Position = Vector3.new(3,23,-28) part.Anc...
start: Tween a part's Reflectance with Circular Out easing over 5s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create...
begin: Create an unanchored brown Wood Block part sized 12x4x10 at position -3,47,-20 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(12,4,10) part.Position = Vector3.new(-3,47...
input_text: Create a TextLabel saying "Undo" with Creepster font with background Color3.fromRGB(200,50,50) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,50) elem....
instruction: Create an anchored black Plastic Block part sized 8x2x6 at position -9,88,23 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,2,6) part.Position = Vector3.new(-9,88,23) ...
prompt: Create an anchored green Wood Block part sized 1x6x4 at position 46,32,29 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,6,4) part.Position = Vector3.new(46,32,29) part.A...
user: Tween Size with Quart In easing, 4s duration, 1 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)} local t...
user: Create an unanchored purple Plastic Block part sized 6x4x2 at position -27,88,24 in Roblox Luau. response: 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(6,4,2) part.Position = Vector3.new(-27...
query: Create a TextButton saying "Exit" with Bangers font with background Color3.fromRGB(50,50,80) 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) elem....
begin: Create an unanchored gold Wood Block part sized 8x4x2 at position -32,41,42 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,4,2) part.Position = Vector3.new(-32,41,42) p...
task: Make a teal CorrodedMetal part with a Fire effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace loc...
begin: Tween Color with Bounce InOut easing, 1.5s duration, 2 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Color = Color3.fro...
start: Create an anchored blue Wood Block part sized 12x4x10 at position -44,77,-50 in Roblox Luau. end: 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,4,10) part.Position = Vector3.new(-44,77,-50) pa...
user: Create a TextButton saying "Continue" with Michroma font with background Color3.fromRGB(255,128,0) 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,200,0.1,0) el...
instruction: Create an anchored green Plastic Block part sized 6x2x2 at position 5,76,1 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(6,2,2) part.Position = Vector3.new(5,76,1)...
input: Tween a part's CFrame with Exponential In easing over 5s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Exponential, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween ...
input: Create a ScreenGui with a TextLabel that says "Level 1" using font Code at size 48. answer: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.Parent ...
prompt: Write a Roblox script to client code that listens for the "DamageEvent" RemoteEvent from the server. output_text: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("DamageEvent") remoteEvent.OnClientEvent:Connect(function(data) print("Receive...
input_text: Create an anchored green Plastic Block part sized 1x1x2 at position 25,96,43 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,1,2) part.Position = Vector3.new(2...
question: Create an unanchored brown Wood Block part sized 10x1x4 at position -6,83,50 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,1,4) part.Position = Vector3.new(-6,83,50...
input: Script a ball with pebble material colored magenta at (20,25,-5) size (4,4,2) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,4,2) part.Position = Vector3.new(20,25,-5) ...
question: Create an anchored black Wood Block part sized 6x2x6 at position 45,68,-21 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(6,2,6) part.Position = Vector3.new(45,68,-21) part.An...
input_text: Create a camera shake effect for explosions or impacts. output_text: local RunService = game:GetService("RunService") local camera = workspace.CurrentCamera local shakeData = { intensity = 0, duration = 0, elapsed = 0, active = false } local function shakeCamera(intensity, duration) s...
user: Create a TextButton saying "Cancel" 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.2,0,0.08,0) elem.P...
task: Create a purple wood ball at (20,15,0) size (8,2,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(8,2,1) part.Position = Vector3.new(20,15,0) part.Anchored = true part.Parent =...
begin: Tween CFrame with Exponential InOut easing, 2.5s duration, 2 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 2, false, 0) local goal = {CFrame = ...
question: Create an unanchored red Plastic Block part sized 1x2x8 at position -2,13,-5 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(1,2,8) part.Position = Vector3.new(-2,...
task: Create a TextButton saying "Equip" with Ubuntu font with background Color3.fromRGB(30,30,40) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0,50) elem.Positio...
question: Tween Position with Quad InOut easing, 0.25s duration, 0 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0) local goal = {Position = Vecto...
instruction: Create an unanchored black Wood Block part sized 4x4x6 at position 22,82,-11 in Roblox Luau. answer: 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(4,4,6) part.Position = Vector3.new(22,82,-11) pa...
begin: Create an unanchored green Plastic Block part sized 6x6x10 at position 7,5,-43 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(6,6,10) part.Position = Vector3.new(7,5...
begin: Create an anchored orange Plastic Block part sized 8x4x6 at position 44,94,-11 in Roblox Luau. finish: 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,6) part.Position = Vector3.new(44,94,...
prompt: Make a pink DiamondPlate part with a Highlight effect attached in Roblox Luau. output: 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 = works...
start: Create an unanchored brown Wood Block part sized 8x2x4 at position 24,22,40 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(8,2,4) part.Position = Vector3.new(24,22,40) pa...
input_text: Tween a part's Position with Cubic Out easing over 1s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService...
query: Tween Size with Bounce In easing, 3s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 3, true, 0) local goal = {Size = Vector3.new(8,8,8)} local tween ...
task: Script a ball with smoothplastic material colored lime at (5,20,10) size (8,1,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(8,1,1) part.Position = Vector3.new(5,20,...
prompt: Create a ProximityPrompt on a switch part that says "Activate Switch" with hold duration 1.4s and max distance 7. finish: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Activate Switch" prompt.ObjectText = "Switch" prompt.KeyboardKeyCode = Enum.KeyCode.F prompt....
query: Implement a way to a custom Signal/Event class in Luau for communication between scripts. solution: -- ModuleScript: Signal local Signal = {} Signal.__index = Signal function Signal.new() local self = setmetatable({}, Signal) self._connections = {} self._nextId = 1 return self end function Sig...
prompt: Create an unanchored gray Wood Block part sized 1x4x10 at position -27,4,33 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(1,4,10) part.Position = Vector3.new(-27,...
input_text: Create an unanchored white Wood Block part sized 12x6x10 at position -7,44,-10 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(12,6,10) part.Position = Vector3.new(-7,44,-10) pa...
input: Create a black wood block at (0,5,5) size (1,6,8) in Roblox. response: 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,6,8) part.Position = Vector3.new(0,5,5) part.Anchored = true part.Parent = workspa...
instruction: Make a ball that is teal and neon at (5,15,20) size (6,2,1) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(5,15,20) part.Anchored = true p...
instruction: Tween Color with Sine In easing, 3s duration, 0 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0) local goal = {Color = Color3.fromRGB(255...
input: Script a block with slate material colored brown at (10,25,-5) size (1,6,2) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(10,25,-5) part.A...
query: Create an unanchored white Plastic Block part sized 2x2x8 at position 11,99,-2 in Roblox Luau. completion: 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(2,2,8) part.Position = Vector3.new(11,99,-2) ...
instruction: Create a part that is brown, transparency 0.25, CanCollide=false, Reflectance=0. response: local part = Instance.new("Part") part.Color = Color3.fromRGB(139, 69, 19) part.Transparency = 0.25 part.CanCollide = false part.Reflectance = 0 part.Anchored = true part.Parent = workspace
begin: Tween CFrame with Circular InOut easing, 4s duration, infinite repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, -1, true, 0) local goal = {CFrame = part.CF...
task: Create an anchored brown Plastic Block part sized 1x6x2 at position -30,19,-28 in Roblox Luau. finish: 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(1,6,2) part.Position = Vector3.new(-30,19,...
task: Apply a BodyVelocity of (-10, 62, -45) to a part. finish: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-10, 62, -45) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVelocity...
input_text: Create a TextLabel saying "Game Over" with Michroma font with background Color3.fromRGB(0,120,255) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,...
begin: Create an anchored gray Wood Block part sized 10x4x10 at position -1,73,35 in Roblox Luau. response: 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,10) part.Position = Vector3.new(-1,73,3...
start: Create a TextButton saying "Score: 0" with LuckiestGuy font with background Color3.fromRGB(40,40,40) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.3,0,0,50) ele...
question: Create a TextLabel saying "Pause" with LuckiestGuy font with background Color3.fromRGB(255,128,0) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0.1,0...
user: Create an anchored purple Plastic Block part sized 1x2x4 at position -20,27,-42 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,2,4) part.Position = Vector3.new(-20,27...
input_text: Tween a part's Color with Cubic Out easing over 5s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenService:C...
task: Create an unanchored black Plastic Block part sized 12x4x1 at position -33,65,27 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(12,4,1) part.Position = Vector3.new(-33,65,27) p...
task: Create an explosion with blast pressure 10 and radius 5 at a part's position. result: local part = workspace:WaitForChild("ExplosionPart") local explosion = Instance.new("Explosion") explosion.Position = part.Position explosion.BlastPressure = 10 explosion.BlastRadius = 5 explosion.DestroyJointRadiusPercent = 0...
question: Create an anchored white Plastic Block part sized 8x2x6 at position -27,71,-17 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(8,2,6) part.Position = Vector3.new(-27,71,-17)...
begin: Tween Size with Linear InOut easing, 0.5s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Size = Vector3...
task: Create a TextBox saying "Shop" top-left in Roblox GUI result: 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.Size =...
instruction: Create a TextLabel saying "Back" with SourceSansBold font with background Color3.fromRGB(40,40,40) 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,20...
question: Tween CFrame with Bounce Out easing, 1.5s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, true, 0) local goal = {CFrame = part.CFrame*CF...
task: Make a block that is lime and pebble at (20,50,5) size (6,6,6) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(6,6,6) part.Position = Vector3.new(20,50,5) part.Anchored = true...
prompt: Create an unanchored blue Plastic Block part sized 6x1x10 at position 6,16,9 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(6,1,10) part.Position = Vector3.new(6,16,9) ...
instruction: Create a TextLabel saying "OK" with Oswald 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.2,0,0.1,0) elem....
begin: Create an unanchored yellow Wood Block part sized 8x2x2 at position -17,90,-19 in Roblox Luau. answer: 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(8,2,2) part.Position = Vector3.new(-17,90,-1...
begin: Tween Transparency with Circular Out easing, 0.25s duration, 1 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 1, false, 0) local goal = {Transparenc...
instruction: Create an anchored orange Plastic Block part sized 6x4x8 at position -17,92,23 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(6,4,8) part.Position = Vector3.new(...
question: Create a lime smoothplastic cylinder at (10,5,0) size (8,4,6) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(8,4,6) part.Position = Vector3.new(10,5,0) part.Anc...
input_text: Create an anchored green Plastic Block part sized 4x2x1 at position -39,96,17 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,2,1) part.Position = Vector3.new(-39,9...
start: Create a TextLabel saying "Cancel" with Bangers font with background Color3.fromRGB(0,120,255) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0.1,0) elem.Posi...
instruction: Create an unanchored yellow Wood Block part sized 6x6x6 at position 46,98,49 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(6,6,6) part.Position = Vector3.new(46,98...
input: Tween Size with Linear In easing, 1s duration, 1 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)} lo...
instruction: Make a cylinder that is cyan and smoothplastic at (10,10,10) size (6,2,2) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(6,2,2) part.Position = Vector3.new(1...
input: Check if a player owns a specific GamePass and grant them a bonus. response: local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local GAMEPASS_ID = 0 -- Replace with your GamePass ID Players.PlayerAdded:Connect(function(player) local success, ownsPa...
user: Create a ProximityPrompt on a chest part that says "Open Chest" with hold duration 0.1s and max distance 15. output_text: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Open Chest" prompt.ObjectText = "Chest" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDura...
query: What's the code to an Instance of type Fire and configure its properties. output: local instance = Instance.new("Fire") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
begin: Tween CFrame with Bounce In easing, 1s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 2, true, 0) local goal = {CFrame = part.CFrame*CFrame.ne...
user: Create an unanchored gold Plastic Block part sized 2x4x8 at position 17,43,-42 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(2,4,8) part.Position = Vector3.new(17,43...
prompt: Tween Reflectance with Quint In easing, 0.75s duration, 2 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 2, false, 0) local goal = {Reflectance = 0.9} ...
start: Spawn a yellow pebble block part at (5,50,20) size (6,1,6) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(6,1,6) part.Position = Vector3.new(5,50,20) part.Anchored = tru...
task: Create an unanchored yellow Plastic Block part sized 6x1x1 at position -14,64,26 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(6,1,1) part.Position = Vector3.new(-14,6...
start: Tween CFrame with Exponential In easing, 1s duration, 0 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 0, false, 0) local goal = {CFrame = part.CFram...
start: Tween Color with Bounce In easing, 1.5s duration, 1 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 1, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} l...
input: Tween Reflectance with Cubic InOut easing, 0.75s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Reflect...
task: Make a cylinder that is brown and plastic at (-10,50,0) size (8,1,1) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(8,1,1) part.Position = Vector3.new(-10,50,0) part....
start: Create an unanchored green Plastic Block part sized 6x6x1 at position 37,73,32 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,0) part.Size = Vector3.new(6,6,1) part.Position = Vector3.new(37,73,...
prompt: Create an unanchored gold Plastic Block part sized 1x4x4 at position 21,91,-46 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(1,4,4) part.Position = Vector3.new(21,91...
input_text: Create an unanchored blue Wood Block part sized 10x4x8 at position 39,73,-38 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(10,4,8) part.Position = Vector3.new(39,73,-...
question: Create a TextLabel saying "Welcome!" 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("TextLabel") elem.Size = UDim2.new(0.5,0,0,40) elem...
input: Create an anchored brown Wood Block part sized 6x2x4 at position -30,13,37 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(6,2,4) part.Position = Vector3.new(-30,13,37) pa...
begin: Create an anchored red Plastic Block part sized 1x6x1 at position -30,48,-5 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(1,6,1) part.Position = Vector3.new(-30,48,-5) ...
task: Create a TextButton saying "Game Over" with Roboto font with background Color3.fromRGB(40,40,40) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0,60) e...
start: What's the code to a ProximityPrompt on a teleporter part that says "Use Teleporter" with hold duration 1.9s and max distance 15. output_text: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Use Teleporter" prompt.ObjectText = "Teleporter" prompt.KeyboardKeyCode =...
begin: Create an anchored pink Plastic Block part sized 4x2x1 at position 14,74,16 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,100,200) part.Size = Vector3.new(4,2,1) part.Position = Vector3.new(14...
start: Create an unanchored purple Plastic Block part sized 12x4x10 at position 21,22,12 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(12,4,10) part.Position = Vector3.n...
question: Tween CFrame with Circular Out easing, 0.25s duration, 0 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 0, false, 0) local goal = {CFrame = part....