text
stringlengths
54
19.6k
instruction: Create a ScreenGui with a TextLabel that says "Press Play" using font Cartoon at size 24. end: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGu...
query: Create a TextButton saying "Retry" with Ubuntu font with background Color3.fromRGB(0,120,255) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.3,0,0,50) elem.Po...
user: Create a TextLabel saying "Delete" with GothamBold 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.3,0,0.1,0) elem.Po...
start: Create an unanchored gold Wood Block part sized 2x4x4 at position -23,55,-18 in Roblox Luau. finish: 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(2,4,4) part.Position = Vector3.new(-23,55,-18)...
question: Write client code to invoke the "GetPlayerData" RemoteFunction and handle the response. output_text: -- LocalScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteFunction = ReplicatedStorage:WaitForChild("GetPlayerData") local success, result = pcall(function() return remote...
begin: Write Roblox Luau code to a ScreenGui with a TextLabel that says "Game Over" using font Garamond at size 48. end: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "Custom...
query: Create an anchored gold Plastic Block part sized 8x6x1 at position -25,77,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(8,6,1) part.Position = Vector3.new(-25,77,1) pa...
instruction: Create an unanchored gray Wood Block part sized 6x6x4 at position 6,95,-32 in Roblox Luau. model: 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(6,6,4) part.Position = Vector3.new(6,95,-...
start: Tween Size with Sine Out easing, 3s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, true, 0) local goal = {Size = Vector3.new(8,8,8)} local twe...
start: Create an unanchored blue Plastic Block part sized 2x6x10 at position -26,28,44 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(2,6,10) part.Position = Vector3.new(-...
instruction: Tween Size with Quart Out easing, 4s duration, 0 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, false, 0) local goal = {Size = Vector3.new(8,...
instruction: Tween Transparency with Quint Out easing, 0.25s duration, infinite repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, -1, true, 0) local goal = {Transpar...
begin: Tween Transparency with Quint InOut easing, 0.5s duration, 3 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Transparency = 0.8} ...
input: Tween a part's Size with Exponential InOut easing over 5s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = Tween...
question: Create an unanchored teal Plastic Block part sized 1x6x8 at position 16,86,24 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(1,6,8) part.Position = Vector3.new(16,8...
task: Tween Position with Sine Out easing, 1s duration, 3 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, true, 0) local goal = {Position = Vector3.new(10,5,0)}...
question: Create an unanchored gray Plastic Block part sized 8x4x4 at position -41,31,42 in Roblox Luau. completion: 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(8,4,4) part.Position = Vector3.n...
user: Create an unanchored brown Wood Block part sized 1x6x1 at position -24,12,14 in Roblox Luau. solution: 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(1,6,1) part.Position = Vector3.new(-24,12,14)...
user: Create an anchored blue Plastic Block part sized 1x4x10 at position 25,89,30 in Roblox Luau. completion: 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(1,4,10) part.Position = Vector3.new(25,89,...
input: Create a TextButton saying "Pause" with SourceSansBold font with background Color3.fromRGB(200,50,50) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.2,0,0.0...
task: Create a TextButton saying "Welcome!" with FredokaOne 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("TextButton") elem.Size = UDim2.new(0,150,0.0...
start: Create an anchored green Wood Block part sized 6x2x4 at position -25,63,-27 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(6,2,4) part.Position = Vector3.new(-25,63,-27) pa...
query: Make a ball that is pink and granite at (5,5,0) size (4,6,6) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,6,6) part.Position = Vector3.new(5,5,0) part.Anchored = true ...
query: Create an unanchored orange Wood Block part sized 2x6x8 at position 0,14,24 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(2,6,8) part.Position = Vector3.new(0,14,24) par...
begin: Create an anchored yellow Plastic Block part sized 10x2x10 at position -26,15,-8 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(10,2,10) part.Position = Vector3.new(-2...
input: Create a brown wood block at (10,5,-10) size (8,6,2) in Roblox. 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(8,6,2) part.Position = Vector3.new(10,5,-10) part.Anchored = true part.Paren...
question: Create an anchored black Wood Block part sized 12x1x2 at position -4,99,7 in Roblox Luau. model: 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,1,2) part.Position = Vector3.new(-4,99,7) part.Ancho...
begin: Create a white wood part with Sparkles effect in Roblox output: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 = Instance.new("Sparkles") ...
query: Create a tween that loops infinite times. result: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("LoopPart") local tweenInfo = TweenInfo.new( 1, -- Duration Enum.EasingStyle.Sine, -- EasingStyle Enum.EasingDirection.In...
query: Tween Transparency with Bounce Out easing, 2.5s duration, infinite repeats, non-reversing in Roblox. end: 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 = {Transparency...
input: Create an anchored cyan Wood Block part sized 10x4x8 at position -24,63,25 in Roblox Luau. end: 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,4,8) part.Position = Vector3.new(-24,63,25) part...
task: Create an unanchored yellow Plastic Block part sized 8x4x2 at position 11,45,21 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(8,4,2) part.Position = Vector3.new(11,45,21)...
instruction: Create an unanchored gold Plastic Block part sized 8x6x4 at position -15,98,41 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,6,4) part.Position = Vector3....
prompt: Create an anchored cyan Plastic Block part sized 10x6x8 at position -10,55,-29 in Roblox Luau. output: 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,6,8) part.Position = Vector3.new(-10,...
question: Create a TextLabel saying "Start" with Michroma font with background Color3.fromRGB(50,200,50) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,50) elem...
task: Tween Transparency with Bounce Out 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.Bounce, Enum.EasingDirection.Out, 0, true, 0) local goal = {Transparency = 0.8}...
begin: Tween Reflectance with Back Out easing, 2s duration, 0 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0) local goal = {Reflectance = 0.9} local t...
input_text: Tween a part's CFrame with Cubic In easing over 2s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = Tween...
start: Create an unanchored red Plastic Block part sized 4x4x6 at position -5,55,2 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,0,0) part.Size = Vector3.new(4,4,6) part.Position = Vector3.new(-5,55,...
prompt: Create an unanchored orange Plastic Block part sized 12x4x1 at position 49,36,-43 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(12,4,1) part.Position = Vector3....
prompt: Create an unanchored teal Plastic Block part sized 4x4x1 at position -39,60,-25 in Roblox Luau. response: 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(4,4,1) part.Position = Vector3.new(-3...
task: Create an unanchored gray Wood Block part sized 2x2x8 at position -38,88,-31 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(2,2,8) part.Position = Vector3.new(-38,88,-31) p...
query: Create an anchored pink Plastic Block part sized 4x2x2 at position -35,97,7 in Roblox Luau. completion: 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,2) part.Position = Vector3.new(-35...
instruction: Tween Position with Sine Out easing, 3s duration, 2 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 2, false, 0) local goal = {Position = Vector3...
query: Create an unanchored blue Plastic Block part sized 10x2x1 at position 6,22,38 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(10,2,1) part.Position = Vector3.new(6,2...
instruction: Create an anchored pink Plastic Block part sized 4x6x10 at position -46,51,-8 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(4,6,10) part.Position = Vector3.ne...
question: Spawn a orange pebble block part at (0,15,20) size (1,6,1) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(1,6,1) part.Position = Vector3.new(0,15,20) part.Anchored =...
user: Create a red marble part with Highlight effect in Roblox model: local part = Instance.new("Part") part.Material = Enum.Material.Marble 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 = Instance.new("High...
begin: Create an unanchored green Plastic Block part sized 6x1x6 at position 40,82,3 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(6,1,6) part.Position = Vector3.new(40,82,3) ...
instruction: Create an unanchored black Plastic Block part sized 6x2x2 at position -31,18,-17 in Roblox Luau. solution: 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,2,2) part.Position = Vector3.new(-31,...
begin: Write a Roblox script to Connect two parts with a HingeConstraint. result: local partA = workspace:WaitForChild("PartA") local partB = workspace:WaitForChild("PartB") local attachmentA = Instance.new("Attachment") attachmentA.Parent = partA local attachmentB = Instance.new("Attachment") attachmentB.Parent = p...
user: Create an anchored cyan Wood Block part sized 10x1x1 at position -48,2,45 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,255) part.Size = Vector3.new(10,1,1) part.Position = Vector3.new(-48,2,45) part...
task: Tween Color with Exponential InOut easing, 1.5s duration, 1 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Color = Col...
task: Create a TextLabel saying "Close" with FredokaOne font with background Color3.fromRGB(200,50,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,50) elem.Po...
begin: Apply a BodyVelocity of (-33, 79, 12) to a part. model: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-33, 79, 12) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVelocity.P...
task: Find all parts inside a Region3 box. output: local min = Vector3.new(-10, 0, -10) local max = Vector3.new(10, 20, 10) local overlapParams = OverlapParams.new() local parts = workspace:GetPartBoundsInBox( CFrame.new((min + max) / 2), max - min, overlapParams ) for _, part in ipairs(parts) do pr...
input: Create a ScreenGui with a TextLabel that says "Press Play" using font Highway at size 24. finish: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.P...
instruction: Create a TextButton saying "Resume" with Roboto font with background Color3.fromRGB(30,30,40) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0,50) e...
instruction: Make a brown CorrodedMetal part with a PointLight effect attached in Roblox Luau. finish: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 ...
begin: Tween Size with Bounce InOut easing, 4s duration, infinite repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Size = Vector3.new...
input_text: Make a cylinder that is lime and marble at (5,50,5) size (6,1,8) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(6,1,8) part.Position = Vector3.new(5,50,5) part.Ancho...
input_text: Create an unanchored white Wood Block part sized 6x4x8 at position -30,66,-29 in Roblox Luau. output: 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(6,4,8) part.Position = Vector3.new(-30,66,-29) p...
input_text: Give me a script for server-side code to fire a RemoteEvent called "HealEvent" to a specific player with data. result: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("HealEvent") local function fireToPlayer(player, data) remoteEvent:Fi...
task: Create an anchored red Plastic Block part sized 1x1x6 at position 25,55,-46 in Roblox Luau. solution: 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,1,6) part.Position = Vector3.new(25,55,-46)...
start: Tween Color with Quart Out easing, 4s duration, 3 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, false, 0) local goal = {Color = Color3.fromRGB(255,0...
task: Create a TextBox saying "Start" top-left 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...
task: Create a TextButton saying "Save" with FredokaOne font with background Color3.fromRGB(200,50,50) 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,150,0,50) e...
start: Tween Reflectance with Linear Out easing, 2.5s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 3, true, 0) local goal = {Reflectance = 0.9} lo...
start: Tween Transparency with Elastic InOut easing, 1s duration, 1 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Transparency = 0...
query: Tween CFrame with Exponential InOut easing, 2.5s duration, 3 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 3, false, 0) local goal = {CFrame ...
begin: Make a white Wood part with a Smoke effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 = Instance.new("S...
begin: Tween Size with Cubic Out easing, 3s duration, 0 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0) local goal = {Size = Vector3.new(8,8,8)} local...
instruction: Create a TextButton saying "Game Over" with LuckiestGuy font with background Color3.fromRGB(30,30,40) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(...
task: Create an unanchored gray Wood Block part sized 6x4x4 at position 0,26,-39 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(6,4,4) part.Position = Vector3.new(0,26,-3...
begin: Create a TextButton saying "Game Over" with Bangers font with background Color3.fromRGB(0,0,0) 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.5,0,0.1,0) e...
query: Code a script that Demonstrate Luau control flow: if/elseif/else, loops, and conditionals. completion: -- 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-lik...
prompt: How do I an Instance of type BodyForce and configure its properties. answer: local instance = Instance.new("BodyForce") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
query: Create an anchored brown Wood Block part sized 6x4x10 at position -43,97,2 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(6,4,10) part.Position = Vector3.new(-43,97,2) ...
query: Tween a part's Transparency with Quad In easing over 3s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(part, inf...
question: Create an unanchored green Wood Block part sized 2x6x10 at position -2,60,-11 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,0) part.Size = Vector3.new(2,6,10) part.Position = Vector3.new(-2,60,-1...
prompt: Make a cyan Slate part with a PointLight effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local...
start: Create an unanchored blue Wood Block part sized 8x2x8 at position 3,55,37 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,2,8) part.Position = Vector3.new(3,55,37) part....
query: Create a TextLabel saying "OK" with RobotoMono font with background Color3.fromRGB(0,120,255) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,50) elem.Pos...
start: Make a ball that is brown and concrete at (0,10,5) size (2,1,8) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(0,10,5) part.Anchored = fa...
input: Tween a part's Color with Quint In easing over 2s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.In) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenService:Create...
user: Tween a part's Transparency with Linear InOut easing over 2s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Create(...
task: Create a purple ice block at (10,20,20) size (1,6,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,6,1) part.Position = Vector3.new(10,20,20) part.Anchored = false part.Paren...
start: Tween Transparency with Bounce InOut easing, 2s duration, 1 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Transparency = 0.8} loc...
question: What's the code to a DataStore system that saves a full player profile table with multiple stats and inventory. end: local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local dataStore = DataStoreService:GetDataStore("PlayerProfiles") local DEFAULT_DATA =...
query: Tween a part's Reflectance with Linear Out easing over 1s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part,...
instruction: Make a red Wood part with a Highlight effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 ...
task: Spawn a brown wood cylinder part at (-10,25,0) size (4,1,6) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,1,6) part.Position = Vector3.new(-10,25,0) part.Anchored = f...
question: Create an anchored cyan Wood Block part sized 8x6x8 at position -34,95,-16 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(8,6,8) part.Position = Vector3.new(-34,95...
start: Tween Position with Quart In 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.Quart, Enum.EasingDirection.In, 0, true, 0) local goal = {Position = Vector3.new(10,...
input: Give me a script for Attach a 3D sound to a part so it fades based on distance. answer: local part = workspace:WaitForChild("SoundPart") local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 1 sound.Looped = true sound.RollOffMode = Enum.RollOff...
instruction: Script a ball with slate material colored red at (0,20,20) size (8,6,4) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(8,6,4) part.Position = Vector3.new(0,20,20) part.A...
input_text: Create an unanchored black Wood Block part sized 4x6x10 at position 11,80,-29 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,6,10) part.Position = Vector3.new(11,80,-29) p...
start: Tween a part's CFrame with Quart In easing over 5s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenSer...
query: Create an unanchored pink Wood Block part sized 8x4x1 at position 20,62,-44 in Roblox Luau. answer: 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(8,4,1) part.Position = Vector3.new(20,62,-44)...
question: Tween a part's CFrame with Back InOut easing over 3s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = T...