text
stringlengths
54
19.6k
input: Code a script that a lime fabric wedgepart at position (-48, 14, -4) with size (20, 11, 16), anchored=false. finish: local part = Instance.new("WedgePart") part.Size = Vector3.new(20, 11, 16) part.Position = Vector3.new(-48, 14, -4) part.Color = Color3.fromRGB(0, 255, 0) part.Material = Enum.Material.Fabric par...
input_text: Tween Transparency with Elastic Out easing, 1s duration, infinite repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, -1, false, 0) local goal = {Tran...
prompt: Tween Position with Circular InOut easing, 0.25s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Position = Ve...
input: Create a TextButton saying "Undo" with GothamBold font with background Color3.fromRGB(0,0,0) in Roblox GUI. model: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0,50) elem.Posi...
instruction: Create an unanchored pink Plastic Block part sized 6x2x1 at position 6,28,2 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(6...
instruction: Create an anchored pink Plastic Block part sized 10x4x1 at position 47,100,-29 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(10,4,1) part.Position = Vector3.n...
begin: Make a red Plastic part with a Fire effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 = Insta...
query: Create an anchored pink Wood Block part sized 10x1x4 at position -41,33,19 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,1,4) part.Position = Vector3.new(-41,33,19)...
prompt: Create an anchored gold Plastic Block part sized 2x1x2 at position -11,4,1 in Roblox Luau. end: 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,1,2) part.Position = Vector3.new(-11,4,1) par...
instruction: Spawn a gray woodplanks ball part at (-5,5,-5) size (8,1,2) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(8,1,2) part.Position = Vector3.new(-5,5,-5) part.Anchore...
instruction: Create an unanchored gold Plastic Block part sized 2x4x10 at position -39,1,2 in Roblox Luau. model: 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,10) part.Position = Vector3.new(-...
start: Create an unanchored cyan Wood Block part sized 8x2x6 at position 49,91,-8 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(8,2,6) part.Position = Vector3.new(49,91,-8) par...
question: Create a part that destroys itself after 2 seconds. response: local part = Instance.new("Part") part.Position = Vector3.new(0, 10, 0) part.Anchored = true part.Parent = workspace task.delay(2, function() part:Destroy() end)
instruction: Create an anchored white Plastic Block part sized 4x2x6 at position -3,11,27 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(1,1,1) part.Size = Vector3.new(4,2,6) part.Position = Vector3.new(-3,11,27...
input_text: Create an anchored cyan Plastic Block part sized 8x2x10 at position 30,9,-24 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,2,10) part.Position = Vector3.new(...
prompt: Create a TextButton saying "Buy" with SourceSansBold 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("TextButton") elem.Size = UDim2.new(0.3,0,0,60) ele...
begin: Create a blue glass part with Fire effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.Glass 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("Fire") f...
task: Create an anchored gold Plastic Block part sized 12x4x2 at position 5,26,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,215,0) part.Size = Vector3.new(12,4,2) part.Position = Vector3.new(5,26,13) ...
question: Create a TextButton saying "Buy" with Nunito font with background Color3.fromRGB(50,200,50) 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) elem...
prompt: Create an anchored green Plastic Block part sized 10x1x2 at position 34,44,48 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(10,1,2) part.Position = Vector3.new(34,44...
user: Create an unanchored black Wood Block part sized 12x6x2 at position 17,100,38 in Roblox Luau. solution: 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(12,6,2) part.Position = Vector3.new(17,100,38) part....
query: Create an unanchored yellow Wood Block part sized 12x1x8 at position -12,29,-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(255,255,0) part.Size = Vector3.new(12,1,8) part.Position = Vector3.new(-1...
begin: Tween CFrame with Quart Out easing, 3s duration, 0 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, true, 0) local goal = {CFrame = part.CFrame*CFrame.new(0,...
start: Create an anchored purple Plastic Block part sized 12x6x2 at position 29,7,-5 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(12,6,2) part.Position = Vector3.new(29,7...
start: Create an anchored green Wood Block part sized 12x6x2 at position -3,2,-35 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(12,6,2) part.Position = Vector3.new(-3,2,-35) part...
start: Make a script that a beam connecting two parts. model: local partA = workspace:WaitForChild("BeamStart") local partB = workspace:WaitForChild("BeamEnd") local attachment0 = Instance.new("Attachment") attachment0.Parent = partA local attachment1 = Instance.new("Attachment") attachment1.Parent = partB local be...
input_text: Create a global leaderboard using OrderedDataStore for top players by Kills. completion: local DataStoreService = game:GetService("DataStoreService") local orderedStore = DataStoreService:GetOrderedDataStore("KillsLeaderboard") local function getTopPlayers(count) local success, pages = pcall(function(...
begin: Create an unanchored white Wood Block part sized 12x1x4 at position -45,10,-9 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(12,1,4) part.Position = Vector3.new(-45,10,-9) part.A...
prompt: Create an anchored brown Plastic Block part sized 10x4x4 at position -13,8,-3 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,4,4) part.Position = Vector3.new(-13...
input_text: Create an unanchored black Plastic Block part sized 1x2x4 at position 46,19,-43 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(1,2,4) part.Position = Vector3.new(46,19,-4...
query: Create an unanchored red Wood Block part sized 4x2x10 at position -3,34,30 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(4,2,10) part.Position = Vector3.new(-3,34,30) pa...
start: Tween a part's Reflectance with Linear InOut easing over 0.5s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenService:Cr...
instruction: Create a TextLabel saying "Retry" with Michroma font with background Color3.fromRGB(50,200,50) in Roblox GUI. model: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,150,0,60) el...
question: Create an unanchored black Wood Block part sized 6x4x10 at position -45,78,-16 in Roblox Luau. output: 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,4,10) part.Position = Vector3.new(-45,78,-16) p...
query: Tween Reflectance with Cubic InOut easing, 1s duration, 1 repeats, non-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, 1, false, 0) local goal = {Reflectance = 0...
instruction: Create an anchored yellow Plastic Block part sized 6x1x8 at position 1,7,22 in Roblox Luau. completion: 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,8) part.Position = Vector3.new...
instruction: How do I use NoCollisionConstraint in Roblox? It prevents two parts colliding. output: local partA = workspace.PartA local partB = workspace.PartB local a0 = Instance.new("Attachment") a0.Parent = partA local a1 = Instance.new("Attachment") a1.Parent = partB local constraint = Instance.new("NoCollisionCon...
instruction: Create a TextLabel saying "Close" with Ubuntu 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("TextLabel") elem.Size = UDim2.new(1,0,0,40) elem...
prompt: Tween Reflectance with Elastic Out easing, 0.25s duration, 2 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 2, false, 0) local goal = {Reflectance = ...
start: Create a TextBox saying "Shop" bottom-center in Roblox GUI output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextBox") elem....
question: Create an anchored brown Wood Block part sized 6x4x2 at position 10,60,-9 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(6,4,2) part.Position = Vector3.new(10,60,-9) part...
input_text: Tween Transparency with Sine In easing, 0.75s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.In, -1, false, 0) local goal = {Tran...
input_text: Create an anchored gray Wood Block part sized 2x1x4 at position -7,58,46 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(2,1,4) part.Position = Vector3.new(-7,58,...
input_text: Create an anchored pink Wood Block part sized 2x2x4 at position -12,81,-11 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(2,2,4) part.Position = Vector3.new(-12,81...
instruction: Create an anchored red Wood Block part sized 4x4x1 at position -35,7,46 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(4,4,1) part.Position = Vector3.new(-35,7,46...
input: Tween a part's Transparency with Circular InOut easing over 1s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Cr...
instruction: Create an anchored purple Wood Block part sized 2x4x1 at position -32,12,-9 in Roblox Luau. output: 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,4,1) part.Position = Vector3.new(-32,12...
user: Apply a BodyVelocity of (-10, 36, -3) to a part. response: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-10, 36, -3) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVelocity...
question: I need to a smoke particle effect attached to a part. response: local part = workspace:WaitForChild("EffectPart") local particles = Instance.new("ParticleEmitter") particles.Color = ColorSequence.new(Color3.fromRGB(100, 100, 100)) particles.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), Number...
input: Create a TextButton saying "Click Me" with Roboto 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(1,0,0,50) elem.Posit...
user: Create an unanchored red Plastic Block part sized 10x1x2 at position -36,34,-28 in Roblox Luau. model: 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(10,1,2) part.Position = Vector3.new(-36,34,-...
prompt: Give the player a ForceField that lasts 3 seconds. completion: local Players = game:GetService("Players") local function giveForceField(player, duration) local character = player.Character if not character then return end local existingFF = character:FindFirstChildOfClass("ForceField") if...
prompt: Tween Size with Elastic In easing, 0.5s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 3, true, 0) local goal = {Size = Vector3.new(8,8,8)} local...
query: Create an anchored gold Wood Block part sized 8x1x6 at position -12,34,-24 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,1,6) part.Position = Vector3.new(-12,34,-24) pa...
start: Create an unanchored gold Plastic Block part sized 4x2x10 at position -4,54,31 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(4,2,10) part.Position = Vector3.new(-4,54...
prompt: How do I create a quest system in Roblox Luau? answer: local QS = {} QS.__index = QS function QS.new() return setmetatable({Quests={}, Completed={}}, QS) end function QS:Add(q) self.Quests[q.Id] = {Info=q, Progress=0, Done=false} end function QS:Update(id, amt) local q = self.Quests[id] if not q or q.Do...
input_text: Create an anchored yellow Plastic Block part sized 10x4x4 at position -13,73,36 in Roblox Luau. output: 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(10,4,4) part.Position = Vector3.new...
start: Create an anchored pink Wood Block part sized 2x2x2 at position -22,87,31 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(2,2,2) part.Position = Vector3.new(-22,87,31) p...
instruction: Create an anchored white Plastic Block part sized 8x4x4 at position -27,74,-34 in Roblox Luau. response: 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,4,4) part.Position = Vector3.new(-27,74...
task: Create an anchored pink Wood Block part sized 10x2x10 at position -35,48,42 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(10,2,10) part.Position = Vector3.new(-35,48,42...
prompt: Tween CFrame with Exponential InOut easing, 2.5s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, false, 0) local goal = {CFrame = ...
begin: Spawn a orange neon ball part at (5,50,5) size (1,2,4) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(1,2,4) part.Position = Vector3.new(5,50,5) part.Anchored = false part.Paren...
query: Spawn a lime slate ball part at (-10,10,5) size (6,4,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(6,4,2) part.Position = Vector3.new(-10,10,5) part.Anchored = true p...
prompt: Spawn a gold foil cylinder part at (0,25,20) size (8,2,6) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,2,6) part.Position = Vector3.new(0,25,20) part.Anchored = true pa...
task: Create a TextBox saying "Welcome!" centered in Roblox GUI answer: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextBox") elem.Si...
query: Create a ScreenGui with a TextLabel that says "Press Play" using font SciFi at size 14. completion: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui...
input: Tween Transparency with Bounce Out easing, 2.5s duration, 0 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0) local goal = {Transparency...
start: Tween Size with Cubic InOut easing, 0.25s duration, 2 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Size = Vector3.new(8,...
instruction: Tween Reflectance with Sine Out easing, 3s duration, infinite repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, true, 0) local goal = {Reflectance = 0.9...
start: Create a TextLabel saying "Start" with PatrickHand font with background Color3.fromRGB(128,0,255) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0.08,...
input_text: Create a TextButton saying "Yes" with Oswald font with background Color3.fromRGB(50,200,50) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.3,0,0,40) el...
query: Spawn a gray plastic block part at (-10,15,0) size (4,6,6) in Roblox. 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(4,6,6) part.Position = Vector3.new(-10,15,0) part.Anchored ...
user: Tween Color with Bounce Out easing, 2.5s duration, infinite repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, -1, false, 0) local goal = {Color = Color3....
task: Write server-side code to fire a RemoteEvent called "AbilityUsed" to a specific player with data. completion: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("AbilityUsed") local function fireToPlayer(player, data) remoteEvent:FireClient(play...
input_text: Create an unanchored gray Wood Block part sized 8x1x8 at position 30,25,-8 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(8,1,8) part.Position = Vector3.new(30,25,...
instruction: Create an anchored cyan Wood Block part sized 8x1x8 at position -11,58,2 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,255) part.Size = Vector3.new(8,1,8) part.Position = Vector3.new(-11,58,2) ...
input_text: Create an anchored yellow Wood Block part sized 1x4x2 at position 4,85,-50 in Roblox Luau. response: 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(1,4,2) part.Position = Vector3.new(4,85,-...
start: Create an unanchored cyan Wood Block part sized 2x6x10 at position 48,13,-21 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,6,10) part.Position = Vector3.new(48,13,...
user: Create an anchored pink Wood Block part sized 2x1x10 at position 39,27,16 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(2,1,10) part.Position = Vector3.new(39,27,16) pa...
begin: Create an anchored brown Plastic Block part sized 10x2x1 at position -39,28,-33 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,2,1) part.Position = Vector3.new(-39,...
begin: Create a yellow corrodedmetal part with Smoke effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = I...
begin: Create an unanchored yellow Wood Block part sized 12x4x8 at position 42,96,38 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(12,4,8) part.Position = Vector3.new(42,96,38)...
prompt: Tween Size with Exponential InOut easing, 3s duration, 1 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Size = Vec...
input: Create an anchored black Wood Block part sized 4x1x8 at position 34,44,-32 in Roblox Luau. output: 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,1,8) part.Position = Vector3.new(34,44,-32) part.Ancho...
input_text: Make a block that is orange and brick at (20,25,0) size (2,2,4) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Brick part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(2,2,4) part.Position = Vector3.new(20,25,0) part.Anch...
begin: Tween a part's Reflectance with Quad In easing over 0.5s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, in...
user: Implement a way to Show different ways to define and use functions in Luau. response: -- Basic function local function greet(name) return "Hello, " .. name .. "!" end -- Function with multiple returns local function divide(a, b) if b == 0 then return nil, "Cannot divide by zero" end retu...
begin: Script a block with glass material colored black at (20,20,-5) size (8,1,1) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Glass part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,1,1) part.Position = Vector3.new(20,20,-5) part.Anchored ...
question: Show me how to create a day/night cycle. solution: 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 ...
question: Create an unanchored black Plastic Block part sized 2x6x1 at position 49,80,-20 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(2,6,1) part.Position = Vector3.new(49,80,-20)...
start: Tween Color with Exponential In easing, 5s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 3, false, 0) local goal = {Color = Color3.fromRGB(...
input: Spawn a cyan marble cylinder part at (-10,25,-5) size (1,6,2) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(-10,25,-5) part.Anchor...
question: Tween Transparency with Quad Out easing, 3s duration, 0 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, true, 0) local goal = {Transparency = 0.8} local t...
input_text: Create an unanchored cyan Plastic Block part sized 8x2x2 at position 15,66,7 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,255) part.Size = Vector3.new(8,2,2) part.Position = Vector3.new(15,66,...
input: Create an anchored gray Plastic Block part sized 6x1x6 at position 29,6,-19 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(6,1,6) part.Position = Vector3.new(29...
begin: Build a system that Demonstrate Luau control flow: if/elseif/else, loops, and conditionals. end: -- If/elseif/else local health = 75 if health > 80 then print("Healthy") elseif health > 40 then print("Wounded") elseif health > 0 then print("Critical") else print("Dead") end -- Ternary-like patt...
question: Create an anchored black Wood Block part sized 6x4x2 at position -43,58,22 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(6,4,2) part.Position = Vector3.new(-43,58,22) part.An...
query: Implement create a quest system in Roblox answer: local QS = {} QS.__index = QS function QS.new() return setmetatable({Quests={}, Completed={}}, QS) end function QS:Add(q) self.Quests[q.Id] = {Info=q, Progress=0, Done=false} end function QS:Update(id, amt) local q = self.Quests[id] if not q or q.Done the...
input: Script a block with grass material colored teal at (10,1,20) size (8,2,1) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(8,2,1) part.Position = Vector3.new(10,1,20) part.Anch...
prompt: Tween Position with Sine Out easing, 1s duration, 1 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0) local goal = {Position = Vector3.new(10,5,...