text
stringlengths
54
19.6k
input_text: Create an anchored gray Wood Block part sized 10x4x8 at position -27,57,-47 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(10,4,8) part.Position = Vector3.new(-27,5...
input: Detect Nine key press to activate a power in Roblox output: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Nine then print("Nine pressed - activate a power!") ...
query: Create an unanchored teal Plastic Block part sized 2x2x1 at position -10,70,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,128,128) part.Size = Vector3.new(2,2,1) part.Position = Vector3.new(-10,70,...
start: Make a block that is pink and marble at (20,50,-10) size (4,4,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(20,50,-10) part.Anchor...
begin: Create a TextButton saying "Delete" with FredokaOne font with background Color3.fromRGB(128,0,255) 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(1,0,0,60) elem....
prompt: Create an anchored yellow Plastic Block part sized 1x4x6 at position 15,96,36 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(1,4,6) part.Position = Vector3.new(15...
begin: Tween Size with Quad InOut easing, 0.25s duration, infinite repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Size = Vector3.new(8...
task: Tween CFrame with Bounce In easing, 0.25s duration, 2 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 2, true, 0) local goal = {CFrame = part.CFrame*CFrame.n...
question: Create an anchored red Wood Block part sized 1x4x4 at position -20,27,21 in Roblox Luau. finish: 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(1,4,4) part.Position = Vector3.new(-20,27,21) par...
question: Create an anchored gold Wood Block part sized 4x4x4 at position -31,35,-7 in Roblox Luau. end: 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,4) part.Position = Vector3.new(-31,35,-7) par...
start: Tween a part's Transparency with Exponential Out easing over 1s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:...
input: Create an anchored purple Wood Block part sized 6x1x4 at position -26,35,-37 in Roblox Luau. response: 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(6,1,4) part.Position = Vector3.new(-26,35,-3...
user: Make a ball that is purple and marble at (10,15,0) size (1,6,1) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,6,1) part.Position = Vector3.new(10,15,0) part.Anchored =...
instruction: Create a TextButton saying "Ready?" with Nunito font with background Color3.fromRGB(30,30,40) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.5,0,0,50) elem...
task: Create an unanchored gold Plastic Block part sized 12x2x4 at position 25,3,-10 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(12,2,4) part.Position = Vector3.new(25,3,-...
input: Create an unanchored cyan Wood Block part sized 6x4x2 at position 12,81,0 in Roblox Luau. solution: 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(6,4,2) part.Position = Vector3.new(12,81,0) par...
user: Create an unanchored green Plastic Block part sized 4x4x1 at position 34,55,12 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,1) part.Position = Vector3.new(34,55,1...
user: Teleport the player's character to position (-73, 83, 89). solution: local Players = game:GetService("Players") local function teleportPlayer(player, position) local character = player.Character if character then local rootPart = character:FindFirstChild("HumanoidRootPart") if rootPart t...
user: Create an unanchored red Wood Block part sized 6x1x1 at position -17,75,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,0,0) part.Size = Vector3.new(6,1,1) part.Position = Vector3.new(-17,75,13) part....
begin: Create a TextLabel saying "Next" with Roboto font with background Color3.fromRGB(50,50,80) 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.2,0,0,60) elem.Positio...
input: Tween a part's Reflectance with Linear InOut easing over 1s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenService:Create(p...
instruction: Create an anchored red Plastic Block part sized 10x6x10 at position 8,54,30 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(10,6,10) part.Position = Vector3.new...
start: Tween Position with Elastic Out easing, 2s duration, infinite repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, -1, true, 0) local goal = {Position = Vect...
task: Make a white DiamondPlate part with a Smoke effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate 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 =...
question: Create a TextButton saying "Play" with Nunito 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("TextButton") elem.Size = UDim2.new(1,0,0.08,0) elem.Posi...
task: Script a cylinder with brick material colored pink at (20,50,20) size (4,4,2) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Brick part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,4,2) part.Position = Vector3.new(20,50,20) par...
question: Create a TextLabel saying "Cancel" with Bangers font with background Color3.fromRGB(50,50,80) in Roblox GUI. answer: 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,50) elem....
start: Tween Position with Linear Out easing, 5s duration, 2 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 2, false, 0) local goal = {Position = Vector3.ne...
user: Spawn a white fabric block part at (10,10,20) size (1,6,1) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Fabric part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,6,1) part.Position = Vector3.new(10,10,20) part.Anchored = false part...
input: Create a cyan corrodedmetal part with Highlight effect in Roblox response: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 fx...
begin: Spawn a white foil cylinder part at (5,50,0) size (1,2,4) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Foil part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,2,4) part.Position = Vector3.new(5,50,0) part.Anchored = true part.Pa...
begin: Create a TextLabel saying "Save" with PatrickHand font with background Color3.fromRGB(30,30,40) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0.1,0) ele...
begin: Tween Position with Sine In easing, 0.5s duration, 0 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, true, 0) local goal = {Position = Vector3.new(10,5,0)} ...
start: Tween Size with Elastic InOut easing, 0.5s duration, infinite repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Size = Vect...
query: Create an anchored green Plastic Block part sized 2x6x4 at position -37,74,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,0) part.Size = Vector3.new(2,6,4) part.Position = Vector3.new(-37,74,14...
task: Create an unanchored purple Plastic Block part sized 4x2x2 at position -3,8,29 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,0,255) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(-3...
question: Write a Roblox script to a BillboardGui that shows the player's name above their head. result: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local head = character:WaitForChild("Head") lo...
prompt: Create an anchored orange Plastic Block part sized 4x1x6 at position 32,87,-32 in Roblox Luau. output: 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(4,1,6) part.Position = Vector3.new(32,87...
prompt: Make a brown DiamondPlate part with a Smoke effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace ...
input_text: Create a TextButton saying "Ready?" with PatrickHand font with background Color3.fromRGB(50,200,50) in Roblox GUI. finish: 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....
prompt: Tween Reflectance with Quart Out easing, 4s duration, infinite repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, -1, false, 0) local goal = {Reflectance = 0...
task: Create an anchored teal Plastic Block part sized 6x2x1 at position -38,72,-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(0,128,128) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(-38...
input_text: Create a brown concrete part with Fire effect in Roblox response: local part = Instance.new("Part") part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instan...
input: Create an anchored green Plastic Block part sized 4x4x10 at position -22,51,26 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,10) part.Position = Vector3.new(-22,5...
start: Create an anchored white Plastic Block part sized 8x1x8 at position 0,88,49 in Roblox Luau. output_text: 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,8) part.Position = Vector3.new(0,88,49) par...
task: Create an anchored gray Plastic Block part sized 12x4x4 at position -6,58,12 in Roblox Luau. result: 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(12,4,4) part.Position = Vector3.new(-6,58,...
query: Create a TextButton saying "Play" 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,150,0,60...
instruction: Create a TextLabel saying "Click Me" with LuckiestGuy 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,150,...
prompt: Create an anchored blue Plastic Block part sized 1x2x8 at position -19,26,-48 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,2,8) part.Position = Vector3.new(-19,26...
input: Create a TextButton saying "Ready?" top-right 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("TextButton") e...
input: Create an unanchored gray Wood Block part sized 10x6x4 at position -31,53,-10 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(10,6,4) part.Position = Vector3.new(-31,53,-...
input_text: Tween Reflectance with Linear In easing, 5s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 3, false, 0) local goal = {Reflectance = 0.9} loc...
begin: Create an unanchored purple Plastic Block part sized 8x6x10 at position 31,39,-20 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(8,6,10) part.Position = Vector3.new(...
question: Tween a part's Color with Linear InOut easing over 2s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenServi...
question: Tween Transparency with Quad Out easing, 2s duration, 3 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 3, false, 0) local goal = {Transparency = 0.8} ...
task: Create a RemoteFunction called "GetPlayerData" that returns data from the server to the client. completion: -- Server Script local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteFunction = Instance.new("RemoteFunction") remoteFunction.Name = "GetPlayerData" remoteFunction.Parent = Replicat...
instruction: Create an anchored gray Wood Block part sized 4x4x8 at position -23,13,8 in Roblox Luau. solution: 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(4,4,8) part.Position = Vector3.new(-23,1...
instruction: Tween a part's color to RGB(190, 227, 39) over 1.9 seconds. output: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(1.9, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(190...
begin: Create an anchored black Wood Block part sized 12x2x10 at position 44,10,22 in Roblox Luau. response: 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,2,10) part.Position = Vector3.new(44,10,22) part.A...
prompt: Create an unanchored black Plastic Block part sized 8x1x1 at position -22,56,-13 in Roblox Luau. end: 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,1,1) part.Position = Vector3.new(-22,56,-13) pa...
input_text: Create an anchored green Plastic Block part sized 8x1x6 at position 7,74,33 in Roblox Luau. answer: 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,1,6) part.Position = Vector3.new(7,74,3...
start: Tween Reflectance with Quart InOut easing, 5s duration, 3 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Reflectance = 0.9} l...
task: Create an unanchored teal Plastic Block part sized 2x4x8 at position -24,21,6 in Roblox Luau. finish: 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,4,8) part.Position = Vector3.new(-24,21,6...
start: Create an unanchored cyan Wood Block part sized 2x1x10 at position 3,65,-32 in Roblox Luau. solution: 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,1,10) part.Position = Vector3.new(3,65,-32)...
input_text: Create a TextLabel saying "Cancel" with LuckiestGuy font with background Color3.fromRGB(30,30,40) in Roblox GUI. answer: 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)...
question: Tween Color with Cubic In easing, 4s duration, infinite repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, -1, false, 0) local goal = {Color = Color3.fromRG...
task: Create an anchored white Wood Block part sized 2x1x4 at position -23,79,21 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(2,1,4) part.Position = Vector3.new(-23,79,21) part.Anch...
input: Create an anchored blue Plastic Block part sized 1x4x2 at position 48,48,-29 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(1,4,2) part.Position = Vector3.new(48,48,-29)...
input: Tween a part's Transparency with Circular In easing over 5s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Cre...
input: Create a ImageLabel bottom-center in Roblox GUI model: 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("ImageLabel") elem.Size = UD...
prompt: Implement a way to a snow particle effect attached to a part. completion: local part = workspace:WaitForChild("EffectPart") local particles = Instance.new("ParticleEmitter") particles.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255)) particles.Size = NumberSequence.new(0.3) particles.Lifetime = NumberR...
input: Make a script that Attach a 3D sound to a part so it fades based on distance. response: 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...
query: Create an unanchored yellow Wood Block part sized 1x4x4 at position -12,6,16 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(1,4,4) part.Position = Vector3.new(-12,6,16)...
instruction: Create an unanchored brown Plastic Block part sized 4x2x10 at position -28,25,-8 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(4,2,10) part.Position = Vector3...
prompt: Create a ProximityPrompt on a door part that says "Open Door" with hold duration 0.2s and max distance 10. solution: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Open Door" prompt.ObjectText = "Door" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDuration ...
question: Script a ball with grass material colored brown at (20,20,20) size (4,1,4) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,1,4) part.Position = Vector3.new(20,20,20) ...
input_text: Create an Instance of type BodyPosition and configure its properties. response: local instance = Instance.new("BodyPosition") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
instruction: Create an anchored gray Plastic Block part sized 8x6x8 at position -28,50,-3 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(8,6,8) part.Position = Vector3.ne...
task: Tween CFrame with Exponential Out easing, 4s duration, 3 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 3, true, 0) local goal = {CFrame = part.CFrame*CF...
instruction: Create a TextLabel saying "Delete" with FredokaOne font with background Color3.fromRGB(40,40,40) 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,150,0,60)...
user: Tween Position with Linear InOut easing, 2.5s duration, 2 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 2, true, 0) local goal = {Position = Vector3.ne...
task: Create an unanchored yellow Plastic Block part sized 1x2x10 at position 38,57,-6 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(1,2,10) part.Position = Vector3.new(38,5...
begin: Script a ball with granite material colored purple at (0,50,-5) size (6,1,4) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(6,1,4) part.Position = Vector3.new(0,50,-5) ...
instruction: Tween a part's Reflectance with Elastic In easing over 0.5s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Cr...
input: Write a Roblox script to Play a sound with volume 0.3, pitch 1.5, looped=true. answer: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.3 sound.PlaybackSpeed = 1.5 sound.Looped = true sound.Parent = workspace sound:Play() -- Sound will l...
user: Connect two parts with a HingeConstraint. completion: 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 = partB local constraint...
prompt: Help me a Frame with a UIListLayout (padding 10) containing 5 buttons. 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 = Instance.new("...
question: Spawn a lime ice block part at (-10,25,0) size (2,6,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(2,6,2) part.Position = Vector3.new(-10,25,0) part.Anchored = false...
question: Create a TextLabel saying "Loading..." with FredokaOne font with background Color3.fromRGB(255,128,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,150,0...
input_text: Tween Reflectance with Exponential Out easing, 4s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, false, 0) local goa...
instruction: Script a cylinder with neon material colored gray at (0,5,10) size (2,6,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(2,6,4) part.Position = Vector3.new(0,5,10)...
input_text: Create an anchored blue Wood Block part sized 2x4x6 at position 31,26,50 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(2,4,6) part.Position = Vector3.new(31,26,50) pa...
start: Create a blue plastic cylinder at (0,20,-10) size (2,4,4) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(2,4,4) part.Position = Vector3.new(0,20,-10) part.Anchored = tru...
prompt: Create an anchored cyan Plastic Block part sized 1x4x8 at position 28,4,37 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(1,4,8) part.Position = Vector3.new(28,4,...
instruction: Detect when a player dies and respawn them after 1 seconds. solution: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.Died:Co...
start: Create an anchored red Wood Block part sized 2x4x8 at position -7,41,1 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(2,4,8) part.Position = Vector3.new(-7,41,1) part.Ancho...
begin: Create an anchored white Plastic Block part sized 2x2x4 at position 16,54,-3 in Roblox Luau. output_text: 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(2,2,4) part.Position = Vector3.new(16,54,-3) p...
prompt: Tween Color with Bounce Out easing, 2.5s duration, 1 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 1, true, 0) local goal = {Color = Color3.fromRGB(255,0...
start: Tween Reflectance with Linear InOut easing, 0.25s duration, 0 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0) local goal = {Reflectance = 0...
user: Script for a clickable TextButton that says "Inventory" and prints a message when clicked. answer: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local butt...