text
stringlengths
54
19.6k
instruction: Create a ScreenGui with a TextLabel that says "Score: 0" using font Highway at size 14. output_text: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" sc...
begin: Tween Position with Back Out easing, 0.5s duration, infinite repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, -1, true, 0) local goal = {Position = Vector3.new(10...
query: Tween Reflectance with Quart Out easing, 4s duration, 2 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.Out, 2, false, 0) local goal = {Reflectance = 0.9} local...
input: Tween Transparency with Sine Out easing, 4s duration, infinite repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, false, 0) local goal = {Transparency...
prompt: Create a round-based game system with 90s rounds and 5s intermission. output: local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ROUND_TIME = 90 local INTERMISSION = 5 local statusValue = Instance.new("StringValue") statusValue.Name = "GameStatus" ...
start: Build a system that an NPC that wanders randomly within a defined area. finish: local PathfindingService = game:GetService("PathfindingService") local npc = script.Parent local humanoid = npc:WaitForChild("Humanoid") local rootPart = npc:WaitForChild("HumanoidRootPart") local WANDER_RADIUS = 30 local HOME_POS...
input_text: Create an unanchored green Wood Block part sized 2x1x6 at position 46,4,-21 in Roblox Luau. output_text: 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,6) part.Position = Vector3.new(46,4...
question: Code a script that Apply a VectorForce of (289, 598, 356) to a part using an Attachment. solution: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(289, 598...
query: Make a script that Fire a RemoteEvent to all connected players from the server. answer: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("BroadcastEvent") local function broadcastToAll(message) remoteEvent:FireAllClients({ message = m...
begin: Create a TextButton saying "Delete" with SourceSansBold font with background Color3.fromRGB(50,200,50) 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,40) e...
input: Create an unanchored cyan Plastic Block part sized 10x2x1 at position 31,19,-12 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(10,2,1) part.Position = Vector3.new...
prompt: Tween Color with Bounce In easing, 1.5s duration, 0 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 0, false, 0) local goal = {Color = Color3.fromRGB(...
task: Tween Size with Bounce Out easing, 0.5s duration, infinite repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, -1, true, 0) local goal = {Size = Vector3.new(8,8,...
start: Add a BlurEffect post-processing effect to the game's Lighting. completion: local Lighting = game:GetService("Lighting") local effect = Instance.new("BlurEffect") effect.Size = 10 effect.Parent = Lighting
input_text: Tween a part's Position with Linear Out easing over 5s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenSer...
input_text: Tween Reflectance with Exponential Out easing, 0.5s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, false, 0) local goa...
question: Give me a script for an enemy/NPC spawning system that spawns enemies at random spawn points on a timer. answer: local ServerStorage = game:GetService("ServerStorage") local spawnFolder = workspace:WaitForChild("SpawnPoints") local enemyTemplate = ServerStorage:WaitForChild("Enemy") local MAX_ENEMIES = 10 ...
instruction: Create a blue fabric part with Smoke effect in Roblox answer: local part = Instance.new("Part") part.Material = Enum.Material.Fabric 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 local fx = Instance.new(...
input_text: Create a heal particle effect attached to a part. output_text: local part = workspace:WaitForChild("EffectPart") local particles = Instance.new("ParticleEmitter") particles.Color = ColorSequence.new(Color3.fromRGB(0, 255, 100)) particles.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5), Numbe...
query: Tween Transparency with Quint Out easing, 3s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, -1, false, 0) local goal = {Transparency = ...
start: Create an unanchored blue Plastic Block part sized 12x6x8 at position -45,5,-12 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(12,6,8) part.Position = Vector3.new(-...
task: Create an unanchored purple Wood Block part sized 8x1x8 at position 8,41,-29 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(8,1,8) part.Position = Vector3.new(8,41,-29) pa...
query: Tween a part's size to (19, 3, 5) over 3.9 seconds. output_text: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(3.9, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(19, 3, 5) } local...
prompt: Create an unanchored gray Wood Block part sized 12x4x1 at position -2,61,-2 in Roblox Luau. output_text: 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(12,4,1) part.Position = Vector3.new(-2,...
input_text: Tween Transparency with Cubic In easing, 0.75s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, -1, false, 0) local goal = {Transp...
start: Create an unanchored black Wood Block part sized 1x4x4 at position -23,28,-36 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(1,4,4) part.Position = Vector3.new(-23,28,-36) part.A...
task: Create an anchored blue Wood Block part sized 2x2x8 at position -11,75,19 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(2,2,8) part.Position = Vector3.new(-11,75,19) part.An...
input: Tween Reflectance with Sine InOut easing, 5s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Reflectance = 0.9} local ...
prompt: Create a part that destroys itself after 7 seconds. end: local part = Instance.new("Part") part.Position = Vector3.new(0, 10, 0) part.Anchored = true part.Parent = workspace task.delay(7, function() part:Destroy() end)
start: How do you get a reference to the TweenService service in Roblox? solution: local TweenService = game:GetService("TweenService")
begin: Create an anchored brown Wood Block part sized 12x1x8 at position 18,46,0 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(12,1,8) part.Position = Vector3.new(18,46,0) part....
task: Create an anchored cyan Wood Block part sized 10x2x10 at position 7,29,23 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,255) part.Size = Vector3.new(10,2,10) part.Position = Vector3.new(7,29,23) part...
begin: Tween CFrame with Sine InOut easing, 0.75s duration, infinite repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, false, 0) local goal = {CFrame = pa...
task: Tween a part's Reflectance with Quart Out easing over 5s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, ...
prompt: Tween Color with Cubic InOut easing, 0.75s duration, 2 repeats, non-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, 2, false, 0) local goal = {Color = Color3....
prompt: Create a lime pebble ball at (20,50,0) size (6,4,6) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(6,4,6) part.Position = Vector3.new(20,50,0) part.Anchored = false part.Parent...
user: Tween a part's Reflectance with Back InOut easing over 0.5s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenService:Create(pa...
query: Create an anchored black Plastic Block part sized 6x6x2 at position -44,40,17 in Roblox Luau. completion: 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(6,6,2) part.Position = Vector3.new(-44,40,17) ...
task: Tween a part's Transparency with Circular In easing over 3s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(par...
prompt: Make a purple DiamondPlate part with a SpotLight effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = worksp...
prompt: Create a TextLabel saying "Play" with RobotoMono font with background Color3.fromRGB(50,200,50) 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.3,0,0.1,0) elem...
input: Create an anchored cyan Plastic Block part sized 2x6x1 at position -45,22,13 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,255) part.Size = Vector3.new(2,6,1) part.Position = Vector3.new(-45,22,13...
start: Create an unanchored brown Wood Block part sized 6x2x2 at position 38,68,-29 in Roblox Luau. answer: 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,2) part.Position = Vector3.new(38,68,-29) ...
start: Script a block with glass material colored gold at (20,25,20) size (6,1,1) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Glass part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(6,1,1) part.Position = Vector3.new(20,25,20) part.Ancho...
start: Make a purple CorrodedMetal part with a SpotLight effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent =...
user: Tween Reflectance with Quart Out easing, 3s duration, 1 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 1, true, 0) local goal = {Reflectance = 0.9} local ...
start: Implement a way to a RemoteFunction called "ValidatePurchase" that returns data from the server to the client. model: -- Server Script local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteFunction = Instance.new("RemoteFunction") remoteFunction.Name = "ValidatePurchase" remoteFunction.Par...
prompt: Create an unanchored cyan Plastic Block part sized 10x1x4 at position -14,98,6 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(10,1,4) part.Position = Vector3.new(-1...
input: Create an anchored green Wood Block part sized 12x2x10 at position -5,61,-28 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(12,2,10) part.Position = Vector3.new(-5,61,-28) ...
input_text: Create a magenta woodplanks part with Sparkles effect in Roblox model: local part = Instance.new("Part") part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx =...
question: Create an unanchored red Plastic Block part sized 2x1x4 at position -23,84,13 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(2,1,4) part.Position = Vector3.new(-23,84...
start: Tween CFrame with Cubic InOut easing, 1s duration, 0 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 0, true, 0) local goal = {CFrame = part.CFrame*CFra...
prompt: Create an anchored pink Wood Block part sized 10x4x2 at position 33,98,8 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(10,4,2) part.Position = Vector3.new(33,98,8) pa...
instruction: Tween Position with Quad Out 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.Quad, Enum.EasingDirection.Out, 0, false, 0) local goal = {Position = Vector3.new(...
prompt: Create a TextButton saying "Click Me" with Ubuntu font with background Color3.fromRGB(255,128,0) 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,150,0.1,...
start: Create a brown foil part with PointLight effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.Foil 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("P...
input: Make a cylinder that is black and forcefield at (20,10,20) size (2,2,8) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.ForceField part.Color = Color3.new(0,0,0) part.Size = Vector3.new(2,2,8) part.Position = Vector3.new(20,10,20) part.Anchored...
task: Create a TextButton saying "Menu" with LuckiestGuy font with background Color3.fromRGB(0,0,0) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.2,0,0.1,0) elem....
task: Create an anchored purple Plastic Block part sized 2x4x10 at position -10,53,-45 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(2,4,10) part.Position = Vector3.new(...
question: Create an Instance of type SelectionBox and configure its properties. finish: local instance = Instance.new("SelectionBox") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
user: Tween Color with Back InOut easing, 0.5s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Color = Color3.fromRGB(255...
instruction: Tween Size with Cubic Out easing, 1s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)}...
query: Tween a part's Transparency with Back Out easing over 2s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Create(part,...
instruction: Give me a script for Apply a BodyVelocity of (-41, 95, -44) to a part. model: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-41, 95, -44) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVel...
task: Tween Color with Exponential Out easing, 0.75s duration, 0 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, true, 0) local goal = {Color = Color3.fro...
user: Create an unanchored green Wood Block part sized 10x4x8 at position -15,91,23 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(10,4,8) part.Position = Vector3.new(-15,91,23)...
query: Create an unanchored brown Plastic Block part sized 12x2x10 at position -32,94,43 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(12,2,10) part.Position = Vector3.new(-...
question: Tween Color with Cubic InOut easing, 0.25s duration, infinite repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Color = Co...
task: Tween Reflectance with Linear InOut easing, 1.5s duration, 0 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0) local goal = {Reflectance = 0.9}...
user: Tween a part's Color with Elastic InOut easing over 5s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenService...
instruction: Tween Position with Quint In easing, 4s duration, 2 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 2, false, 0) local goal = {Position = Vector3.new(10,...
input: Tween Position with Quad In easing, 3s duration, 2 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 2, true, 0) local goal = {Position = Vector3.new(10,5,0)} loca...
input: Create an anchored purple Plastic Block part sized 4x6x8 at position 22,13,17 in Roblox Luau. solution: 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(4,6,8) part.Position = Vector3.new(22,13...
begin: Create an unanchored white Wood Block part sized 8x1x6 at position -50,62,-30 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(8,1,6) part.Position = Vector3.new(-50,62,-30) part.A...
user: Create an unanchored blue Wood Block part sized 6x2x10 at position 4,58,9 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(6,2,10) part.Position = Vector3.new(4,58,9) part.Anc...
user: Make a cylinder that is cyan and woodplanks at (-5,15,0) size (2,4,6) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,4,6) part.Position = Vector3.new(-5,15,0) part.Anch...
input: Create an unanchored yellow Plastic Block part sized 12x1x1 at position -11,21,1 in Roblox Luau. answer: 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,1) part.Position = Vector3.new(-11...
input_text: Create an anchored black Plastic Block part sized 6x1x10 at position 20,66,21 in Roblox Luau. completion: 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(6,1,10) part.Position = Vector3.new(20,66...
input: Create a TextLabel saying "Help" with Bangers font with background Color3.fromRGB(0,0,0) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.2,0,0,60) elem.Position = ...
task: Spawn a brown foil ball part at (20,10,10) size (4,2,2) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(20,10,10) part.Anchored = false part.Pa...
input: Create an anchored blue Wood Block part sized 6x4x6 at position -5,11,-13 in Roblox Luau. output_text: 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(6,4,6) part.Position = Vector3.new(-5,11,-13) ...
user: Tween Reflectance with Cubic In easing, 1s duration, 1 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 1, true, 0) local goal = {Reflectance = 0.9} local tween = Tw...
input_text: Script for an enemy/NPC spawning system that spawns enemies at random spawn points on a timer. output: local ServerStorage = game:GetService("ServerStorage") local spawnFolder = workspace:WaitForChild("SpawnPoints") local enemyTemplate = ServerStorage:WaitForChild("Enemy") local MAX_ENEMIES = 10 local SP...
question: Create an unanchored green Plastic Block part sized 1x1x4 at position 3,84,-38 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(1,1,4) part.Position = Vector3.new(3,84,-38...
begin: Create an anchored black Plastic Block part sized 6x4x8 at position -6,56,3 in Roblox Luau. response: 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(6,4,8) part.Position = Vector3.new(-6,56,3) part.A...
task: Create a TextBox saying "Close" 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...
begin: Tween Transparency with Cubic InOut easing, 0.5s duration, 3 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Transparency = ...
user: Tween a part's Reflectance with Circular In easing over 2s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Circular, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part...
question: Make a white Concrete part with a Fire effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 = Inst...
user: Tween a part's Reflectance with Back Out easing over 0.5s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, ...
user: Write Roblox Luau code to a clickable TextButton that says "Cancel" and prints a message when clicked. output_text: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = play...
query: Create an unanchored orange Plastic Block part sized 2x2x8 at position -38,81,50 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(2,2,8) part.Position = Vector3.new(-38,...
begin: Make a cylinder that is green and smoothplastic at (-5,10,10) size (8,2,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(8,2,4) part.Position = Vector3.new(-5,10,10...
query: Script a block with cobblestone material colored blue at (10,15,-5) size (2,1,2) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Cobblestone part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(2,1,2) part.Position = Vector3.new(10,15,-...
query: Create an anchored purple Plastic Block part sized 10x4x1 at position -6,4,11 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(10,4,1) part.Position = Vector3.new(-6,4,1...
question: Tween Color with Quad In easing, 2.5s duration, 1 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 1, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)}...
task: Create a TextLabel saying "Loading..." with Michroma font with background Color3.fromRGB(50,200,50) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0.1,0) ...
instruction: Tween Transparency with Exponential InOut easing, 2.5s duration, 0 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, 0, false, 0) local goal ...
start: Create an anchored orange Wood Block part sized 4x4x2 at position -1,37,27 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(4,4,2) part.Position = Vector3.new(-1,37,27) p...
input_text: Create an anchored teal Plastic Block part sized 2x1x10 at position 18,48,39 in Roblox Luau. output: 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(2,1,10) part.Position = Vector3.new(18...