text
stringlengths
54
19.6k
question: Detect F11 key press to crouch in Roblox output_text: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.F11 then print("F11 pressed - crouch!") -- Add your cr...
query: Create a TextButton saying "OK" with LuckiestGuy font with background Color3.fromRGB(0,120,255) 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,200,0,50) elem....
begin: Create an anchored black Plastic Block part sized 10x2x10 at position 21,92,-48 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(10,2,10) part.Position = Vector3.new(21,92,-48...
query: Tween a part to position (19, 21, 13) over 2.2 seconds using Sine easing (Out). response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 2.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out ) local goal = { ...
begin: Create an unanchored teal Plastic Block part sized 12x4x8 at position 24,32,-25 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(12,4,8) part.Position = Vector3.new(24,32,-...
user: Tween Color with Linear In easing, 1.5s duration, 3 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 3, false, 0) local goal = {Color = Color3.fromRGB(255,...
query: Tween Position with Exponential Out easing, 3s duration, infinite repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, false, 0) local goal = {Po...
input_text: Tween Position with Quad Out easing, 0.5s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0) local goal = {Position = Vector3.ne...
question: Create a cyan neon meshpart at position (-24, 91, -7) with size (9, 10, 20), anchored=true. output: local part = Instance.new("MeshPart") part.Size = Vector3.new(9, 10, 20) part.Position = Vector3.new(-24, 91, -7) part.Color = Color3.fromRGB(0, 255, 255) part.Material = Enum.Material.Neon part.Anchored = tru...
instruction: Make a green Slate part with a Fire effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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 = I...
begin: Detect H key press to sprint in Roblox output: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.H then print("H pressed - sprint!") -- Add your sprint code here...
user: Create an anchored orange Wood Block part sized 4x6x2 at position -15,54,-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,6,2) part.Position = Vector3.new(-15,54,-35) ...
instruction: What's the code to Tween a part to position (-9, 8, 12) over 3.4 seconds using Elastic easing (Out). completion: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 3.4, Enum.EasingStyle.Elastic, Enum.EasingD...
user: Create a TextButton saying "Menu" with SourceSansBold 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("TextButton") elem.Size = UDim2.new(0,150,0.1,0) ...
prompt: Tween Position with Elastic Out easing, 0.25s duration, infinite repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, -1, false, 0) local goal = {Position...
instruction: Create an anchored cyan Plastic Block part sized 8x6x8 at position 32,93,29 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,6,8) part.Position = Vector3.new(32,93,...
query: Make a block that is black and forcefield at (0,50,10) size (4,1,1) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.ForceField part.Color = Color3.new(0,0,0) part.Size = Vector3.new(4,1,1) part.Position = Vector3.new(0,50,10) part.Anchored = tr...
begin: Create a TextLabel saying "Save" with FredokaOne font with background Color3.fromRGB(0,120,255) 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,60) elem.P...
question: Create an unanchored brown Wood Block part sized 4x6x1 at position 34,13,35 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,6,1) part.Position = Vector3.new(34,13,3...
prompt: Tween Color with Exponential InOut easing, 2s duration, infinite repeats, non-reversing in Roblox. response: 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 = {Col...
begin: Create an anchored black Wood Block part sized 2x4x1 at position -9,17,-13 in Roblox Luau. finish: 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(2,4,1) part.Position = Vector3.new(-9,17,-13) part.Ancho...
begin: Write a Roblox script to Demonstrate Luau table creation, manipulation, and iteration. output: -- Array-style table local fruits = {"Apple", "Banana", "Cherry"} table.insert(fruits, "Date") table.remove(fruits, 2) -- Removes "Banana" print(#fruits) -- Length: 3 -- Dictionary-style table local player = { na...
input: Create an unanchored teal Plastic Block part sized 8x4x2 at position 8,91,34 in Roblox Luau. result: 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(8,4,2) part.Position = Vector3.new(8,91,34)...
start: Create an anchored green Wood Block part sized 8x6x1 at position -37,56,41 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(8,6,1) part.Position = Vector3.new(-37,56,41) part...
user: Apply a BodyVelocity of (47, 10, 2) to a part. output_text: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(47, 10, 2) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVelocity....
task: Create a TextLabel saying "No" with Nunito font with background Color3.fromRGB(50,200,50) 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.5,0,0,60) elem.Position...
begin: Implement a way to Set the player's WalkSpeed to 100 and JumpPower to 100. response: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.WalkSpe...
prompt: Tween Color with Cubic Out easing, 0.5s duration, 1 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 1, true, 0) local goal = {Color = Color3.fromRGB(255...
start: Tween Reflectance with Circular In easing, 4s duration, 3 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 3, true, 0) local goal = {Reflectance = 0.9} local ...
user: Create an unanchored red Wood Block part sized 8x6x4 at position 2,42,-17 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(8,6,4) part.Position = Vector3.new(2,42,-17) par...
query: Teleport the player's character to position (-65, 5, 40). end: local Players = game:GetService("Players") local function teleportPlayer(player, position) local character = player.Character if character then local rootPart = character:FindFirstChild("HumanoidRootPart") if rootPart then ...
instruction: Give me a script for an Instance of type Texture and configure its properties. output_text: local instance = Instance.new("Texture") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
begin: Make a ball that is magenta and grass at (-5,1,10) size (1,4,1) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(1,4,1) part.Position = Vector3.new(-5,1,10) part.Anchored = fals...
prompt: Tween Reflectance with Quint Out easing, 1s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 3, true, 0) local goal = {Reflectance = 0.9} local tween ...
input: Write client code that listens for the "AbilityUsed" RemoteEvent from the server. completion: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("AbilityUsed") remoteEvent.OnClientEvent:Connect(function(data) print("Received AbilityUsed from se...
input_text: Tween Color with Quad In 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.Quad, Enum.EasingDirection.In, -1, false, 0) local goal = {Color = Color3.fr...
task: Tween a part's Transparency with Quart InOut easing over 3s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Create(pa...
input_text: Create an unanchored gray Wood Block part sized 10x1x6 at position 1,54,3 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(10,1,6) part.Position = Vector3.new(1,54...
instruction: Create a TextButton saying "Undo" with GothamBold font with background Color3.fromRGB(0,120,255) 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(1,0,0.08,0...
prompt: Create an unanchored white Wood Block part sized 8x2x6 at position 36,94,4 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(8,2,6) part.Position = Vector3.new(36,94,4) part.Anchor...
query: Create an unanchored black Plastic Block part sized 6x1x8 at position -23,41,-48 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(6,1,8) part.Position = Vector3.new(-23,41,-48...
query: Create an unanchored gold Plastic Block part sized 2x4x1 at position -23,94,6 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(2,4,1) part.Position = Vector3.new(-23,94,...
query: Create an unanchored green Wood Block part sized 10x6x10 at position -7,55,36 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(10,6,10) part.Position = Vector3.new(-7,55,36) ...
start: Create an anchored red Wood Block part sized 12x2x1 at position 48,90,-49 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(12,2,1) part.Position = Vector3.new(48,90,-49) part...
instruction: Tween Position with Cubic InOut easing, 0.5s duration, 2 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, true, 0) local goal = {Position = Vector3...
query: How do you get a reference to the PhysicsService service in Roblox? output: local PhysicsService = game:GetService("PhysicsService")
query: Make a gold Slate part with a PointLight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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 = ...
user: Tween CFrame with Quad In easing, 2s duration, 0 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, true, 0) local goal = {CFrame = part.CFrame*CFrame.new(0,10,0)...
task: Tween Reflectance with Bounce In easing, 2.5s duration, 0 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 0, true, 0) local goal = {Reflectance = 0.9} local...
task: Create an anchored orange Wood Block part sized 12x2x4 at position -26,49,31 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(12,2,4) part.Position = Vector3.new(-26,49,31) ...
input: Create a orange metal block at (-10,25,20) size (4,1,8) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Metal part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(4,1,8) part.Position = Vector3.new(-10,25,20) part.Anchored = true part...
query: Create a cyan marble ball at (10,15,20) size (8,2,1) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,2,1) part.Position = Vector3.new(10,15,20) part.Anchored = true part.P...
prompt: Create a TextButton saying "Delete" with SourceSansBold font with background Color3.fromRGB(0,120,255) 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.3,0,0,4...
input: Make a ball that is green and glass at (5,20,5) size (1,6,6) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Glass part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,6,6) part.Position = Vector3.new(5,20,5) part.Anchored = true part....
task: Tween a part's Position with Elastic In easing over 1s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.In) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:Crea...
task: Tween Reflectance with Exponential Out easing, 2s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, true, 0) local goal = {Reflec...
task: Create a blue slate block at (5,1,20) size (4,6,4) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,6,4) part.Position = Vector3.new(5,1,20) part.Anchored = true part.Parent...
prompt: Tween Color with Quad InOut easing, 5s duration, 0 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)}...
question: Tween Size with Quad In easing, 4s duration, infinite repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.In, -1, false, 0) local goal = {Size = Vector3.new(8,8,8...
prompt: Make a block that is magenta and grass at (-5,5,-5) size (2,2,8) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(2,2,8) part.Position = Vector3.new(-5,5,-5) part.Anchored = fals...
question: Create an anchored orange Wood Block part sized 12x2x2 at position -4,27,45 in Roblox Luau. end: 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(12,2,2) part.Position = Vector3.new(-4,27,45) p...
start: Tween Color with Elastic Out easing, 1.5s duration, 3 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 3, false, 0) local goal = {Color = Color3.fromRGB...
start: Tween a part to position (-29, 29, 28) over 0.7 seconds using Exponential easing (InOut). completion: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 0.7, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOu...
prompt: Make a purple Slate part with a Sparkles effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = In...
query: Create an unanchored pink Plastic Block part sized 8x4x1 at position -43,77,1 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(8,4,1) part.Position = Vector3.new(-43,7...
begin: Make a black Wood part with a Highlight effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.Wood part.Color = Color3.new(0,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.n...
input_text: Apply a VectorForce of (8, 113, 272) to a part using an Attachment. finish: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(8, 113, 272) vectorForce.Atta...
start: Tween a part's Position with Quint Out easing over 5s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:Cr...
user: Tween a part's size to (1, 12, 18) over 2.5 seconds. response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(1, 12, 18) } local t...
input: Create a TextButton saying "Buy" top-right in Roblox GUI response: 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") el...
prompt: Spawn a teal pebble block part at (10,5,-5) size (8,1,4) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(8,1,4) part.Position = Vector3.new(10,5,-5) part.Anchored = false pa...
input_text: Tween a part's CFrame with Sine InOut easing over 2s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween =...
input_text: Create an anchored gray Wood Block part sized 10x4x4 at position -25,28,-7 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,4,4) part.Position = Vector3.new(-25,2...
input: Create a TextButton saying "Help" with Roboto font with background Color3.fromRGB(50,200,50) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.2,0,0,60) elem.P...
start: Play a sound with volume 0.5, pitch 0.9, looped=true. completion: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.5 sound.PlaybackSpeed = 0.9 sound.Looped = true sound.Parent = workspace sound:Play() -- Sound will loop continuously
input: Create an unanchored purple Plastic Block part sized 8x2x10 at position -8,57,-8 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(8,2,10) part.Position = Vector3.ne...
instruction: Make a cylinder that is white and sand at (10,1,20) size (2,4,4) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Sand part.Color = Color3.new(1,1,1) part.Size = Vector3.new(2,4,4) part.Position = Vector3.new(10,1,20) part.Anchored = tru...
input: Create a rounded Frame with corner radius 12 and a stroke thickness of 1. finish: 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...
user: Create an anchored gray Plastic Block part sized 4x1x10 at position 11,56,1 in Roblox Luau. output: 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,10) part.Position = Vector3.new(11,56,1...
prompt: Create an unanchored brown Plastic Block part sized 4x4x8 at position 16,39,22 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,4,8) part.Position = Vector3.new(16,...
question: Tween a part's Size with Quad InOut easing over 2s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(part...
query: Create a TextButton saying "Play" with RobotoMono font with background Color3.fromRGB(0,120,255) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.3,0,0,50) elem...
question: Create an anchored purple Wood Block part sized 4x1x4 at position -19,27,-22 in Roblox Luau. result: 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(4,1,4) part.Position = Vector3.new(-19,27,-...
instruction: Play a sound with volume 0.7, pitch 1.3, looped=false. model: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.7 sound.PlaybackSpeed = 1.3 sound.Looped = false sound.Parent = workspace sound:Play() -- Clean up when done if not soun...
task: Tween Position with Linear Out easing, 1.5s duration, infinite repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0) local goal = {Position = Vector...
prompt: Create a TextLabel saying "Loading..." with Oswald font with background Color3.fromRGB(0,0,0) in Roblox GUI. model: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,150,0,60) elem.Pos...
start: Create an unanchored blue Plastic Block part sized 10x6x8 at position 39,38,-48 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(10,6,8) part.Position = Vector3.new(39,38,...
prompt: Create an unanchored pink Plastic Block part sized 8x2x8 at position -15,34,33 in Roblox Luau. model: 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(8,2,8) part.Position = Vector3.new(-15,...
user: Create an anchored red Plastic Block part sized 6x6x10 at position -33,34,-36 in Roblox Luau. answer: 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,6,10) part.Position = Vector3.new(-33,34,-3...
begin: Make a ball that is brown and ice at (10,5,0) size (1,2,8) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,2,8) part.Position = Vector3.new(10,5,0) part.Anchored = true pa...
query: Create an anchored pink Wood Block part sized 12x4x4 at position 2,8,24 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(12,4,4) part.Position = Vector3.new(2,8,24) part....
prompt: Create a orange sand part with Fire effect in Roblox finish: local part = Instance.new("Part") part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(255,128,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("Fire"...
task: Create an unanchored green Plastic Block part sized 2x4x4 at position -39,11,-39 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(2,4,4) part.Position = Vector3.new(-39,1...
question: Create an unanchored gold Wood Block part sized 4x2x8 at position -2,81,-31 in Roblox Luau. result: 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,2,8) part.Position = Vector3.new(-2,81,-31...
task: Create an anchored teal Plastic Block part sized 10x1x2 at position 44,40,37 in Roblox Luau. result: 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(10,1,2) part.Position = Vector3.new(44,40,37...
task: Create a green sand cylinder at (0,20,-5) size (2,4,4) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(2,4,4) part.Position = Vector3.new(0,20,-5) part.Anchored = true part...
question: Make a ball that is white and marble at (5,20,20) size (6,2,8) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Marble part.Color = Color3.new(1,1,1) part.Size = Vector3.new(6,2,8) part.Position = Vector3.new(5,20,20) part.Anchored = false par...
query: Make a cylinder that is white and corrodedmetal at (-10,15,5) size (6,4,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.CorrodedMetal part.Color = Color3.new(1,1,1) part.Size = Vector3.new(6,4,1) part.Position = Vector3.new(-10,15,5) part...
prompt: Create an unanchored cyan Wood Block part sized 4x2x1 at position -35,37,-15 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,2,1) part.Position = Vector3.new(-35,37,-15) p...
question: Give me a script for Tween a part to position (-22, 2, -12) over 4.1 seconds using Bounce easing (Out). answer: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 4.1, Enum.EasingStyle.Bounce, Enum.EasingDirect...