text
stringlengths
54
19.6k
start: Tween Color with Exponential In easing, 3s duration, 3 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 3, false, 0) local goal = {Color = Color3.fromR...
instruction: Tween CFrame with Sine Out easing, 2s duration, 2 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 2, false, 0) local goal = {CFrame = part.CFrame*CFram...
prompt: Create a purple neon ball at (5,15,0) size (4,4,6) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,6) part.Position = Vector3.new(5,15,0) part.Anchored = false part.Parent ...
user: Create an unanchored white Plastic Block part sized 8x1x4 at position -44,68,4 in Roblox Luau. model: 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,1,4) part.Position = Vector3.new(-44,68,4) part.A...
question: Create a TextLabel saying "Play" centered in Roblox GUI finish: 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("TextLabel") ele...
question: Make a cylinder that is blue and diamondplate at (-10,50,5) size (8,1,6) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,1,6) part.Position = Vector3.new(-10,50...
instruction: How do I Show common Luau string operations and manipulation. end: -- String concatenation local first = "Hello" local second = "World" local combined = first .. " " .. second -- String interpolation (Luau feature) local name = "Player" local level = 5 local message = `{name} is level {level}` -- String...
question: Script a cylinder with concrete material colored green at (10,50,10) size (6,2,8) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(6,2,8) part.Position = Vector3.new(10,...
input_text: Create a TextButton saying "Click Me" with Bangers font with background Color3.fromRGB(0,0,0) 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.1,0)...
query: Tween Size with Sine Out easing, 5s duration, infinite repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, true, 0) local goal = {Size = Vector3.new(8,8,8)} l...
input_text: Create a teal brick ball at (10,15,-5) size (6,2,4) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Brick part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(6,2,4) part.Position = Vector3.new(10,15,-5) part.Anchored = true part.P...
begin: Tween a part's CFrame with Elastic In easing over 1s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenS...
user: Create an unanchored pink Plastic Block part sized 12x6x4 at position -24,89,11 in Roblox Luau. end: 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(12,6,4) part.Position = Vector3.new(-24,89...
instruction: Create an anchored blue Plastic Block part sized 2x4x1 at position 12,72,47 in Roblox Luau. finish: 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,4,1) part.Position = Vector3.new(12,72...
start: Create an anchored brown Plastic Block part sized 10x4x2 at position 28,66,1 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(10,4,2) part.Position = Vector3.new(28,66,1...
input: Make a block that is green and plastic at (-5,1,0) size (8,4,2) in Roblox. result: 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(8,4,2) part.Position = Vector3.new(-5,1,0) part.Anchored = true...
start: Create an anchored cyan Wood Block part sized 4x4x10 at position -39,18,-15 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(4,4,10) part.Position = Vector3.new(-39,18,-15)...
start: Create an unanchored brown Wood Block part sized 8x4x4 at position -18,82,15 in Roblox Luau. finish: 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,4,4) part.Position = Vector3.new(-18,82,15) ...
input: Tween CFrame with Sine In easing, 1.5s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 2, true, 0) local goal = {CFrame = part.CFrame*CFrame.ne...
input_text: Script a block with grass material colored blue at (-10,1,-5) size (8,4,2) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,4,2) part.Position = Vector3.new(-10,1,-5) part....
query: Tween a part's CFrame with Sine InOut easing over 5s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenS...
question: Create a TextButton saying "Next" 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("TextButton") elem.Size = UDim2.new(1,0,0,50) elem.P...
begin: Spawn a magenta neon ball part at (-10,1,0) size (4,2,2) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(-10,1,0) part.Anchored = false part.Pare...
query: Help me Add a Highlight effect to a model or part to make it glow. finish: local model = workspace:WaitForChild("TargetModel") local highlight = Instance.new("Highlight") highlight.FillColor = Color3.fromRGB(255, 255, 0) highlight.FillTransparency = 0.5 highlight.OutlineColor = Color3.fromRGB(255, 200, 0) high...
prompt: Make a cylinder that is red and plastic at (-5,10,-5) size (8,1,2) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(8,1,2) part.Position = Vector3.new(-5,10,-5) part.Anchor...
task: Script a ball with metal material colored cyan at (5,20,5) size (4,4,2) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Metal part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,4,2) part.Position = Vector3.new(5,20,5) part.Anchored ...
start: Tween a part's Size with Sine Out easing over 3s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(part...
user: Create an anchored gold Wood Block part sized 4x4x8 at position -12,71,-15 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,8) part.Position = Vector3.new(-12,71,-15) ...
user: Create an unanchored pink Wood Block part sized 4x1x8 at position -45,46,-33 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(4,1,8) part.Position = Vector3.new(-45,46,-33...
begin: Create an unanchored purple Wood Block part sized 8x6x10 at position 1,43,-42 in Roblox Luau. answer: 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,6,10) part.Position = Vector3.new(1,43,-42)...
input: Create a TextButton saying "Score: 0" with Bangers font with background Color3.fromRGB(200,50,50) in Roblox GUI. output: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0.1,0) el...
question: Create a TextButton saying "Loading..." top-right 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("TextBut...
input: Create an unanchored black Plastic Block part sized 8x6x8 at position -24,70,16 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,6,8) part.Position = Vector3.new(-24,70,16) pa...
begin: Fade a part to invisible over 2.9 seconds using a tween. output: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("FadePart") local tweenInfo = TweenInfo.new(2.9, Enum.EasingStyle.Linear) local goal = { Transparency = 1 } local tween = TweenService:Create(part, tw...
task: Tween CFrame with Bounce In easing, 4s duration, infinite repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, -1, true, 0) local goal = {CFrame = part.CFrame*CFra...
task: Create a TextLabel saying "OK" with Roboto font with background Color3.fromRGB(255,128,0) in Roblox GUI. finish: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,60) elem.Position...
input_text: Tween CFrame with Elastic In easing, 2.5s duration, 0 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 0, true, 0) local goal = {CFrame = part.CFram...
question: Create an unanchored green Wood Block part sized 10x4x10 at position 30,28,13 in Roblox Luau. finish: 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,10) part.Position = Vector3.new(30,28,1...
begin: Script a block with slate material colored magenta at (-10,10,-10) size (1,6,8) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(1,6,8) part.Position = Vector3.new(-10,10,...
query: Create an anchored gray Wood Block part sized 10x2x1 at position 35,52,-33 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(10,2,1) part.Position = Vector3.new(35,52,-33)...
prompt: Create an unanchored gray Plastic Block part sized 4x1x1 at position 49,58,-48 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(4,1,1) part.Position = Vector3.new(4...
instruction: Create an anchored gray Wood Block part sized 2x1x10 at position -38,22,-50 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(2,1,10) part.Position = Vector3.new(-38...
user: Create a TextButton saying "Click Me" with Michroma 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("TextButton") elem.Size = UDim2.new(0.5,0,0.08,0) el...
input: Script a ball with ice material colored orange at (20,25,10) size (6,4,1) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(6,4,1) part.Position = Vector3.new(20,25,10) part.Anchore...
start: Create a ScreenGui with a TextLabel that says "Game Over" using font Highway at size 18. result: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.Pa...
prompt: Tween Color with Linear InOut easing, 2s duration, 2 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 2, true, 0) local goal = {Color = Color3.fromRGB(255,0...
start: Create an anchored yellow Plastic Block part sized 8x4x8 at position -13,6,-14 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(8,4,8) part.Position = Vector3.new(-13,6,...
prompt: Create an anchored orange Plastic Block part sized 10x1x2 at position 7,35,-21 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(10,1,2) part.Position = Vector3.new(7,...
input_text: Script a cylinder with slate material colored orange at (20,25,0) size (1,6,2) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(20,...
user: Create an unanchored pink Plastic Block part sized 2x2x1 at position 20,12,-7 in Roblox Luau. result: 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(2,2,1) part.Position = Vector3.new(20,12,...
task: Create an anchored white Wood Block part sized 1x6x8 at position 38,33,37 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,6,8) part.Position = Vector3.new(38,33,37) part.Anchor...
question: Create an anchored cyan Wood Block part sized 1x1x4 at position -41,65,6 in Roblox Luau. finish: 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(1,1,4) part.Position = Vector3.new(-41,65,6) pa...
instruction: Tween Position with Sine Out easing, 2.5s duration, 0 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, true, 0) local goal = {Position = Vector3.new(1...
task: Create a TextLabel saying "Cancel" with Roboto font with background Color3.fromRGB(0,0,0) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.2,0,0.08,0) elem.Posi...
begin: Tween Position with Linear In easing, 0.75s duration, 3 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 3, true, 0) local goal = {Position = Vector3.new(10,...
prompt: Tween Reflectance with Elastic InOut easing, 3s duration, 1 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Reflectance = 0.9} l...
user: Tween CFrame with Quint In easing, 5s duration, 3 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 3, false, 0) local goal = {CFrame = part.CFrame*CFrame.new(...
instruction: Tween Transparency with Exponential Out easing, 3s duration, 2 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 2, false, 0) local goal = {Transpar...
input: Tween Color with Back Out easing, 0.5s duration, 1 repeats, reversing in Roblox. response: 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 = {Color = Color3.fromRGB(255,0,0)...
user: Create an unanchored orange Wood Block part sized 10x6x10 at position 19,33,34 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(10,6,10) part.Position = Vector3.new(19,33,34...
question: Create an unanchored orange Plastic Block part sized 12x2x4 at position 50,92,-5 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,2,4) part.Position = Vector3...
query: Create an anchored pink Wood Block part sized 4x1x4 at position -49,75,-12 in Roblox Luau. result: 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(4,1,4) part.Position = Vector3.new(-49,75,-12)...
start: Create an anchored orange Wood Block part sized 4x4x6 at position 41,78,35 in Roblox Luau. output: 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,6) part.Position = Vector3.new(41,78,35) par...
start: Create an anchored cyan Wood Block part sized 1x4x8 at position 18,94,-35 in Roblox Luau. finish: 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(1,4,8) part.Position = Vector3.new(18,94,-35) par...
prompt: Create an anchored cyan Wood Block part sized 2x6x2 at position 42,99,25 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(2,6,2) part.Position = Vector3.new(42,99,25) part....
instruction: Script for Show different debounce patterns used in Roblox development. result: -- Simple boolean debounce local debounce = false local function onTouch(hit) if debounce then return end debounce = true -- Do something print("Touched!") task.wait(1) debounce = false end ...
begin: Create an unanchored yellow Wood Block part sized 4x6x8 at position -12,62,-13 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,6,8) part.Position = Vector3.new(-12,62,-1...
start: How do I an explosion with blast pressure 100 and radius 10 at a part's position. result: local part = workspace:WaitForChild("ExplosionPart") local explosion = Instance.new("Explosion") explosion.Position = part.Position explosion.BlastPressure = 100 explosion.BlastRadius = 10 explosion.DestroyJointRadiusPerc...
prompt: Create a TextButton saying "Start" with PatrickHand font with background Color3.fromRGB(128,0,255) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0.08,0) el...
user: Create an unanchored blue Plastic Block part sized 8x2x4 at position 8,71,-32 in Roblox Luau. answer: 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(8,2,4) part.Position = Vector3.new(8,71,-32) ...
task: Tween Transparency with Linear In easing, 0.25s duration, 3 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 3, false, 0) local goal = {Transparency = 0.8...
instruction: Create a TextButton saying "OK" with Nunito font with background Color3.fromRGB(50,200,50) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0.1,0...
user: Create a TextButton saying "Pause" with SourceSansBold 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("TextButton") elem.Size = UDim2.new(0.2,0,0...
input_text: Create an unanchored yellow Wood Block part sized 2x1x2 at position -40,33,36 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(2,1,2) part.Position = Vector3.new(-40,3...
user: Create an explosion with blast pressure 25 and radius 20 at a part's position. model: local part = workspace:WaitForChild("ExplosionPart") local explosion = Instance.new("Explosion") explosion.Position = part.Position explosion.BlastPressure = 25 explosion.BlastRadius = 20 explosion.DestroyJointRadiusPercent = ...
task: Create a TextLabel saying "Undo" with Michroma font with background Color3.fromRGB(50,50,80) 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,150,0.08,0) ele...
input_text: Help me Use DataStore UpdateAsync to safely increment a player's coins. answer: local DataStoreService = game:GetService("DataStoreService") local dataStore = DataStoreService:GetDataStore("PlayerCoins") local function addCoins(userId, amount) local success, newValue = pcall(function() return ...
question: Tween CFrame with Sine Out easing, 3s duration, 1 repeats, reversing in Roblox. result: 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 = {CFrame = part.CFrame*CFrame.new(0...
start: Create an anchored gray Wood Block part sized 2x1x2 at position -6,83,31 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(2,1,2) part.Position = Vector3.new(-6,83,31) part...
prompt: Tween a part's Size with Quad 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.Quad, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create...
question: Create a TextLabel saying "Shop" with RobotoMono font with background Color3.fromRGB(40,40,40) 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,200,0,50) elem...
input: Tween a part's Transparency with Quart In easing over 2s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(pa...
query: Create an unanchored cyan Plastic Block part sized 4x6x6 at position 46,21,-14 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(4,6,6) part.Position = Vector3.new(46,21,...
prompt: Script a ball with concrete material colored cyan at (0,50,-5) size (4,2,1) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,2,1) part.Position = Vector3.new(0,50,-5) part...
query: Create a brown grass block at (-5,5,5) size (6,6,8) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(6,6,8) part.Position = Vector3.new(-5,5,5) part.Anchored = true part.P...
question: Create an anchored blue Wood Block part sized 8x4x1 at position -9,76,-48 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,4,1) part.Position = Vector3.new(-9,76,-48) part....
question: Tween Size with Bounce InOut easing, 2s duration, 3 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Size = Vector3.new...
input_text: Script for a rounded Frame with corner radius 24 and a stroke thickness of 2. result: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local frame = Ins...
input: Create an anchored black Wood Block part sized 4x6x2 at position -18,82,-21 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(4,6,2) part.Position = Vector3.new(-18,82,-21) part.Anch...
query: Tween a part's Reflectance with Back Out easing over 3s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, inf...
instruction: Create an unanchored pink Wood Block part sized 2x6x4 at position 10,62,-13 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(2,6,4) part.Position = Vector3.new(10,6...
input_text: Implement a way to a ScreenGui with a TextLabel that says "Loading..." using font SourceSans at size 64. response: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "...
task: Create a green foil block at (0,25,-10) size (4,1,8) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,1,8) part.Position = Vector3.new(0,25,-10) part.Anchored = false part.P...
input_text: Tween Transparency with Quad InOut easing, 0.5s duration, infinite repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Transpare...
question: Create an anchored purple Plastic Block part sized 2x2x6 at position 45,97,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(2,2,6) part.Position = Vector3.new(45,9...
start: Make a gold CorrodedMetal part with a Highlight effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = work...
question: Create a TextButton saying "Next" with FredokaOne font with background Color3.fromRGB(0,120,255) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0,50) e...
instruction: Create a TextButton saying "Yes" with Roboto font with background Color3.fromRGB(128,0,255) 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(1,0,0,50) e...
input_text: Tween Position with Exponential InOut easing, 0.75s duration, infinite repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, -1, true, 0) local goa...
instruction: Create an unanchored green Wood Block part sized 8x6x2 at position -30,42,-1 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(8,6,2) part.Position = Vector3.new(-30,42,...