text
stringlengths
54
19.6k
input: Create an anchored red Plastic Block part sized 6x2x2 at position 24,62,14 in Roblox Luau. end: 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(6,2,2) part.Position = Vector3.new(24,62,14) part....
user: Tween Size with Linear In easing, 2s duration, 1 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)} local...
question: Tween Transparency with Exponential In easing, 4s duration, infinite repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Exponential, Enum.EasingDirection.In, -1, true, 0) local goal = {Tr...
begin: Create a TextLabel saying "Shop" top-right 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("TextLabel") ele...
input_text: Create an unanchored brown Wood Block part sized 10x1x8 at position 1,81,45 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,1,8) part.Position = Vector3.new(1,81,4...
instruction: Tween a part's color to RGB(234, 18, 150) over 1.0 seconds. end: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(1.0, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(234, 1...
prompt: Create a TextLabel saying "Score: 0" with GothamBold font with background Color3.fromRGB(30,30,40) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,50) ...
input_text: Tween Color with Exponential Out easing, 0.75s duration, 3 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 3, false, 0) local goal = {Color = ...
task: Create a TextButton saying "Next" with LuckiestGuy font with background Color3.fromRGB(255,128,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,200,0,60) ...
question: Create an anchored cyan Plastic Block part sized 2x1x10 at position 6,74,7 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,1,10) part.Position = Vector3.new(6,...
start: Attach a 3D sound to a part so it fades based on distance. solution: 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.RollOffMode.InverseTapered...
task: Tween a part's Position with Elastic Out easing over 1s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService...
input: Create an unanchored gray Wood Block part sized 1x1x1 at position 8,80,6 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(1,1,1) part.Position = Vector3.new(8,80,6) part....
question: Create an unanchored pink Plastic Block part sized 1x2x4 at position 31,63,33 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(1,2,4) part.Position = Vector3.ne...
instruction: Create an anchored green Wood Block part sized 10x6x4 at position 39,95,-44 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,0) part.Size = Vector3.new(10,6,4) part.Position = Vector3.new(39,95,-44)...
task: Create a TextLabel saying "Save" with Nunito 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("TextLabel") elem.Size = UDim2.new(1,0,0,50) elem.Posi...
instruction: Tween Reflectance with Bounce InOut easing, 3s duration, 3 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Reflect...
user: Create a purple fabric cylinder at (-5,15,10) size (8,4,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Fabric part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(8,4,4) part.Position = Vector3.new(-5,15,10) part.Anchored = true...
begin: Create a TextButton saying "Menu" with Nunito 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.5,0,0.08,0) elem.P...
instruction: Implement a way to Tween a part's color to RGB(33, 148, 153) over 2.6 seconds. answer: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.6, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color =...
input_text: Detect E key press to sprint in Roblox answer: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.E then print("E pressed - sprint!") -- Add your sprint code...
user: Tween Position with Elastic Out easing, 2s duration, 2 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 2, true, 0) local goal = {Position = Vector3.new(10,5,0...
prompt: Create an anchored gray Plastic Block part sized 6x1x8 at position -49,23,30 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,8) part.Position = Vector3.new(...
instruction: Create an unanchored pink Wood Block part sized 1x6x2 at position -39,97,-33 in Roblox Luau. completion: 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(1,6,2) part.Position = Vector3.new...
start: Create an anchored black Plastic Block part sized 12x1x4 at position 5,99,-32 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(12,1,4) part.Position = Vector3.new(5,99,-32) part....
instruction: Create an anchored blue Plastic Block part sized 1x4x4 at position 49,21,-11 in Roblox Luau. solution: 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,4) part.Position = Vector3.new(49...
prompt: Create an unanchored cyan Plastic Block part sized 6x4x1 at position -2,6,4 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(6,4,1) part.Position = Vector3.new(-2,6,4) ...
question: Tween Reflectance with Circular In easing, 0.5s duration, 0 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, true, 0) local goal = {Reflectance = 0.9} ...
query: Create an unanchored red Wood Block part sized 12x6x4 at position -26,87,-48 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,0,0) part.Size = Vector3.new(12,6,4) part.Position = Vector3.new(-26,87,...
input_text: Script a block with pebble material colored green at (10,10,5) size (4,4,6) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,6) part.Position = Vector3.new(10,10,5) part...
question: Tween Size with Back Out easing, 1.5s duration, infinite repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, -1, false, 0) local goal = {Size = Vector3.new...
prompt: Create an unanchored yellow Wood Block part sized 1x4x8 at position 23,63,38 in Roblox Luau. model: 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,8) part.Position = Vector3.new(23,63,38) p...
input: Set the player's WalkSpeed to 32 and JumpPower to 75. result: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.WalkSpeed = 32 humanoi...
task: Create an anchored brown Wood Block part sized 1x2x8 at position -2,4,6 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,2,8) part.Position = Vector3.new(-2,4,6) part.Anch...
start: Create a TextLabel saying "Ready?" with GothamBold font with background Color3.fromRGB(0,0,0) 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(1,0,0,50) elem.Posit...
input: How do I create a trading system between players in Roblox Luau? output: local RS = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local tradeReq = Instance.new("RemoteEvent") tradeReq.Name = "TradeRequest" tradeReq.Parent = RS local tradeAcc = Instance.new("RemoteEvent") tradeA...
prompt: Tween Reflectance with Linear In easing, 5s duration, 1 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, false, 0) local goal = {Reflectance = 0.9} loca...
prompt: Script a cylinder with foil material colored blue at (0,5,-5) size (4,4,1) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,4,1) part.Position = Vector3.new(0,5,-5) part.A...
input_text: Create an anchored pink Plastic Block part sized 10x6x2 at position 36,1,30 in Roblox Luau. response: 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,6,2) part.Position = Vector3.new...
task: Tween Reflectance with Elastic InOut easing, 4s duration, infinite repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Reflectance = 0.9...
question: Create an anchored brown Plastic Block part sized 2x4x4 at position 47,55,20 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(2,4,4) part.Position = Vector3.new(47,...
user: Create an anchored cyan Plastic Block part sized 12x2x2 at position 43,10,-48 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,255) part.Size = Vector3.new(12,2,2) part.Position = Vector3.new(43,10,-...
task: Create a gold marble part with Sparkles effect in Roblox output: local part = Instance.new("Part") part.Material = Enum.Material.Marble 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 = workspace local fx = Instance.new("S...
begin: Spawn a white cobblestone cylinder part at (-5,5,10) size (1,2,1) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Cobblestone part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,2,1) part.Position = Vector3.new(-5,5,10) part.Anchored = f...
user: Tween a part's Transparency with Sine InOut easing over 5s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Create...
prompt: Create an unanchored gold Plastic Block part sized 2x4x6 at position -32,27,-12 in Roblox Luau. answer: 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,6) part.Position = Vector3.new(-32,...
prompt: Create a TextLabel saying "Buy" with LuckiestGuy font with background Color3.fromRGB(50,200,50) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0,40) elem.Posit...
task: Create a TextButton saying "Pause" with Ubuntu 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,200,0,40) elem...
user: Make a block that is blue and granite at (10,1,-10) size (8,1,2) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,1,2) part.Position = Vector3.new(10,1,-10) part.Anchored = fa...
query: Create an anchored orange Plastic Block part sized 2x4x6 at position -18,11,-3 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(2,4,6) part.Position = Vector3.new(-1...
start: Create an anchored red Plastic Block part sized 1x1x4 at position 36,95,19 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,4) part.Position = Vector3.new(36,95,19) ...
start: Tween a part's Position with Quint InOut easing over 2s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:...
instruction: Create an anchored pink Wood Block part sized 1x4x2 at position -2,56,-38 in Roblox Luau. response: 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(1,4,2) part.Position = Vector3.new(-2,5...
question: Create an unanchored red Wood Block part sized 10x2x10 at position -50,8,11 in Roblox Luau. result: 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(10,2,10) part.Position = Vector3.new(-50,8,11)...
question: Create an unanchored teal Plastic Block part sized 2x6x1 at position -15,11,49 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(2,6,1) part.Position = Vector3.new(-15,11...
query: Create an anchored brown Plastic Block part sized 12x6x1 at position -5,38,-13 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(12,6,1) part.Position = Vector3.new(-5,...
query: Create a red neon part with Sparkles effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.Neon 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("Spa...
instruction: Play a sound with volume 0.4, pitch 1.8, looped=false. output_text: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.4 sound.PlaybackSpeed = 1.8 sound.Looped = false sound.Parent = workspace sound:Play() -- Clean up when done if no...
question: Create an anchored orange Wood Block part sized 2x4x8 at position -40,94,38 in Roblox Luau. model: 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,4,8) part.Position = Vector3.new(-40,94,38)...
query: Tween a part's size to (20, 18, 3) over 2.3 seconds. output: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(2.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(20, 18, 3) } local tw...
begin: Tween CFrame with Back In easing, 1s duration, 0 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0) local goal = {CFrame = part.CFrame*CFrame.new...
begin: Create a purple glass block at (5,5,5) size (1,6,2) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Glass part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(5,5,5) part.Anchored = true part.Paren...
start: Create an anchored red Wood Block part sized 6x1x6 at position 12,92,8 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(6,1,6) part.Position = Vector3.new(12,92,8) part.Anc...
input_text: Create an anchored yellow Wood Block part sized 1x4x6 at position 34,69,6 in Roblox Luau. model: 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,6) part.Position = Vector3.new(34,69,6) p...
begin: Script a ball with smoothplastic material colored purple at (-10,25,10) size (1,1,2) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,1,2) part.Position = Vector3.new(...
instruction: Tween Color with Quart Out easing, 2.5s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 2, true, 0) local goal = {Color = Color3.fromRG...
user: Tween Color with Exponential InOut easing, 2s duration, 1 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Color = Color3....
start: Create an anchored cyan Plastic Block part sized 1x1x10 at position -38,98,-45 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(1,1,10) part.Position = Vector3.new(-38...
begin: Create an anchored black Wood Block part sized 1x1x6 at position -46,85,23 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(0,0,0) part.Size = Vector3.new(1,1,6) part.Position = Vector3.new(-46,85,23) part....
begin: Tween a part's Size with Bounce In easing over 3s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.In) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(part, ...
query: Create an unanchored teal Plastic Block part sized 6x6x6 at position 21,85,31 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(6,6,6) part.Position = Vector3.new(21,85,3...
query: Create a gray wood part with Highlight effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.ne...
input: Create a TextLabel saying "Game Over" with PatrickHand font with background Color3.fromRGB(255,128,0) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.5,0,0....
instruction: Tween a part's size to (10, 13, 20) over 2.0 seconds. solution: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(2.0, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(10, 13, 20) }...
input_text: Show me how to a global leaderboard using OrderedDataStore for top players by Wins. completion: local DataStoreService = game:GetService("DataStoreService") local orderedStore = DataStoreService:GetOrderedDataStore("WinsLeaderboard") local function getTopPlayers(count) local success, pages = pcall(fun...
user: Create an anchored orange Plastic Block part sized 8x1x4 at position 42,41,-16 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(8,1,4) part.Position = Vector3.new(42,41...
query: Tween a part's Size with Quad InOut easing over 1s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(...
instruction: Create a Luau script that will an Instance of type Sparkles and configure its properties. output_text: local instance = Instance.new("Sparkles") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
prompt: Tween Reflectance with Sine In easing, 0.5s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 2, true, 0) local goal = {Reflectance = 0.9} local...
input: How do I create a wave-based enemy spawner in Roblox Luau? response: local Players = game:GetService("Players") local SS = game:GetService("ServerStorage") local RS = game:GetService("ReplicatedStorage") local status = Instance.new("StringValue") status.Name = "WaveStatus" status.Parent = RS local enemies = {} ...
input: Create a ProximityPrompt on a npc part that says "Talk to NPC" with hold duration 0.7s and max distance 5. response: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Talk to NPC" prompt.ObjectText = "NPC" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDuration ...
input_text: Create an anchored black Wood Block part sized 8x1x2 at position 26,63,-12 in Roblox Luau. output_text: 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(8,1,2) part.Position = Vector3.new(26,63,-12) ...
input_text: Create an anchored gold Plastic Block part sized 8x1x1 at position -4,90,25 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,1,1) part.Position = Vector3.new(...
input_text: Create an anchored orange Plastic Block part sized 12x4x10 at position -5,23,-28 in Roblox Luau. end: 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,10) part.Position = Vector3.new(...
task: Create an unanchored gold Wood Block part sized 8x2x6 at position -25,91,27 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,2,6) part.Position = Vector3.new(-25,91,27) ...
instruction: Tween Position with Sine In easing, 0.5s duration, 0 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0) local goal = {Position = Vector3....
question: Create an unanchored brown Plastic Block part sized 12x2x2 at position 41,65,-16 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(12,2,2) part.Position = Vector3.ne...
input: Make a ball that is blue and ice at (-10,50,10) size (2,6,6) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(2,6,6) part.Position = Vector3.new(-10,50,10) part.Anchored = true ...
task: Create a green pebble part with Highlight effect in Roblox output_text: local part = Instance.new("Part") part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.n...
start: Create an anchored cyan Wood Block part sized 1x6x8 at position -4,11,-5 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(1,6,8) part.Position = Vector3.new(-4,11,-5) part.A...
begin: Create a TextLabel saying "Menu" with Ubuntu font with background Color3.fromRGB(0,0,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,200,0,40) elem.Position ...
task: Create an unanchored black Plastic Block part sized 2x4x1 at position -9,94,9 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(2,4,1) part.Position = Vector3.new(-9,94,9) part....
query: Tween Color with Quint InOut easing, 2.5s duration, infinite repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Color = Color3...
begin: Tween Size with Quart InOut easing, 3s duration, 3 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Size = Vector3.new(8,8,8)} l...
begin: Tween a part's size to (18, 9, 5) over 2.7 seconds. solution: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(2.7, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(18, 9, 5) } local tw...
question: Create a TextLabel saying "Click Me" with RobotoMono font with background Color3.fromRGB(40,40,40) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0.1,0) el...
begin: Tween Transparency with Back InOut easing, 2.5s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Transparency = 0.8} ...
prompt: Create an unanchored gold Wood Block part sized 6x1x10 at position 3,32,-24 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(6,1,10) part.Position = Vector3.new(3,32,-24...
input: Tween CFrame with Quint In easing, 1.5s duration, 1 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 1, true, 0) local goal = {CFrame = part.CFrame*CFrame....
instruction: Create an anchored black Plastic Block part sized 6x2x10 at position 42,42,11 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(6,2,10) part.Position = Vector3.new(42,42,...