text
stringlengths
54
19.6k
query: Create an anchored green Plastic Block part sized 8x2x4 at position 6,68,16 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,0) part.Size = Vector3.new(8,2,4) part.Position = Vector3.new(6,68,16...
instruction: Create an unanchored gold Plastic Block part sized 2x6x1 at position 3,23,21 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,6,1) part.Position = Vector3.new(3,...
question: Create a TextButton saying "Click Me" with Oswald 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,6...
instruction: Create an anchored purple Plastic Block part sized 4x4x1 at position -28,14,-38 in Roblox Luau. solution: 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,4,1) part.Position = Vector3.n...
begin: Create an unanchored blue Plastic Block part sized 1x4x1 at position 22,28,9 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(1,4,1) part.Position = Vector3.new(22,28,9) p...
instruction: Create an unanchored pink Wood Block part sized 1x1x8 at position -13,29,-46 in Roblox Luau. solution: 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,1,8) part.Position = Vector3.new(-...
start: Write a Roblox script to Tween a part to position (-19, 13, -9) over 2.1 seconds using Sine easing (In). result: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 2.1, Enum.EasingStyle.Sine, Enum.EasingDirection....
instruction: Create an unanchored gold Plastic Block part sized 4x1x10 at position 24,62,22 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(4,1,10) part.Position = Vector3.new...
begin: Tween Position with Quad Out easing, 3s duration, 3 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 3, true, 0) local goal = {Position = Vector3.new(10,5,0)} loc...
user: Build a system that Show common Luau string operations and manipulation. response: -- String concatenation local first = "Hello" local second = "World" local combined = first .. " " .. second -- String interpolation (Luau feature) local name = "Player" local level = 5 local message = `{name} is level {level}` ...
instruction: Create an unanchored gold Plastic Block part sized 2x2x8 at position -3,2,-14 in Roblox Luau. model: 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,2,8) part.Position = Vector3.new(-3...
input_text: Create a Luau script that will an NPC that pathfinds to the nearest player. answer: local PathfindingService = game:GetService("PathfindingService") local Players = game:GetService("Players") local npc = script.Parent local humanoid = npc:WaitForChild("Humanoid") local rootPart = npc:WaitForChild("Humanoi...
task: Create a TextLabel saying "Buy" bottom-center 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("TextLabel") e...
user: Create an anchored yellow Plastic Block part sized 12x2x1 at position 47,32,37 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(12,2,1) part.Position = Vector3.new(4...
instruction: Create an unanchored green Plastic Block part sized 12x6x10 at position 15,51,19 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(12,6,10) part.Position = Vector3.ne...
instruction: Apply a VectorForce of (417, 825, 136) to a part using an Attachment. solution: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(417, 825, 136) vectorFor...
question: Make a red DiamondPlate part with a PointLight effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate 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 = workspa...
prompt: Create an anchored purple Wood Block part sized 2x6x10 at position 21,61,-33 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(2,6,10) part.Position = Vector3.new(21,61,-...
query: Give the player a ForceField that lasts 12 seconds. result: local Players = game:GetService("Players") local function giveForceField(player, duration) local character = player.Character if not character then return end local existingFF = character:FindFirstChildOfClass("ForceField") if exi...
start: Spawn a gray grass ball part at (10,25,5) size (6,1,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(6,1,2) part.Position = Vector3.new(10,25,5) part.Anchored = false ...
task: Tween CFrame with Sine Out easing, 1.5s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame.new(0,10...
input: Create an Instance of type SurfaceGui and configure its properties. output: local instance = Instance.new("SurfaceGui") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
instruction: Create a custom chat command that handles '/give' to give items to players. answer: local TextChatService = game:GetService("TextChatService") local Players = game:GetService("Players") local textChatCommands = TextChatService:WaitForChild("TextChatCommands", 5) if not textChatCommands then textChatC...
begin: Make a blue Concrete part with a PointLight effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx =...
begin: Write client code that listens for the "NotifyPlayer" RemoteEvent from the server. solution: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("NotifyPlayer") remoteEvent.OnClientEvent:Connect(function(data) print("Received NotifyPlayer from s...
task: Give me a script for Tween a part's color to RGB(102, 21, 161) over 2.8 seconds. end: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3....
instruction: Create an unanchored purple Plastic Block part sized 2x2x10 at position 0,31,20 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,2,10) part.Position = Vector3.ne...
task: Tween CFrame with Back InOut easing, 2.5s duration, 0 repeats, reversing in Roblox. model: 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 = {CFrame = part.CFrame*CFrame.ne...
prompt: Create an anchored green Wood Block part sized 4x4x2 at position 11,5,-4 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,2) part.Position = Vector3.new(11,5,-4) par...
prompt: Create a white diamondplate cylinder at (-5,10,5) size (1,4,6) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.DiamondPlate part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,4,6) part.Position = Vector3.new(-5,10,5) part.Anchored = f...
task: Make a cylinder that is blue and granite at (20,15,10) size (6,6,1) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(6,6,1) part.Position = Vector3.new(20,15,10) part.Anchore...
task: Create a ProximityPrompt on a chest part that says "Open Chest" with hold duration 1.4s and max distance 5. solution: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Open Chest" prompt.ObjectText = "Chest" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDuration...
start: Write a Roblox script to a purple pebble wedgepart at position (15, 63, -39) with size (12, 8, 5), anchored=true. finish: local part = Instance.new("WedgePart") part.Size = Vector3.new(12, 8, 5) part.Position = Vector3.new(15, 63, -39) part.Color = Color3.fromRGB(128, 0, 128) part.Material = Enum.Material.Pebbl...
begin: Create a TextButton saying "Click Me" with LuckiestGuy font with background Color3.fromRGB(0,120,255) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.2,0,...
instruction: Spawn a brown plastic ball part at (5,1,-10) size (1,6,8) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,6,8) part.Position = Vector3.new(5,1,-10) part.Anchored ...
task: Tween Position with Quad Out easing, 1.5s duration, 0 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, true, 0) local goal = {Position = Vector3.new(10,5,0)}...
prompt: Tween Color with Cubic InOut 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.Cubic, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Color = Color3.fromRG...
begin: Create a teal concrete block at (-10,20,5) size (8,4,8) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(8,4,8) part.Position = Vector3.new(-10,20,5) part.Anchored = true par...
task: Create a TextLabel saying "Click Me" with Roboto font with background Color3.fromRGB(50,50,80) 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.1,0) elem.Po...
prompt: Create a TextButton saying "Help" with SourceSansBold font with background Color3.fromRGB(200,50,50) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,...
question: Create an unanchored yellow Wood Block part sized 1x6x10 at position 20,33,-17 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(1,6,10) part.Position = Vector3.new(20,33...
user: Use raycasting to detect if the player is on the ground. end: local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local function isOnGround(character) local rootPart = character:FindFirstChild("HumanoidRootPart") if not rootPart...
start: Create a TextLabel saying "Cancel" with PatrickHand font with background Color3.fromRGB(200,50,50) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0.08,0) elem.P...
query: Create an anchored white Plastic Block part sized 2x2x1 at position -39,62,34 in Roblox Luau. completion: 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,1) part.Position = Vector3.new(-39,62,34) ...
task: Tween Color with Elastic In easing, 4s duration, 0 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,...
input: Create an unanchored gold Plastic Block part sized 4x4x6 at position 19,42,-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(4,4,6) part.Position = Vector3.new(19,42,...
instruction: Make a ball that is magenta and wood at (20,1,-5) size (4,1,4) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,1,4) part.Position = Vector3.new(20,1,-5) part.Anchored = tru...
task: Make a gray Concrete part with a Fire effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 = In...
instruction: Create a TextLabel saying "Shop" with GothamBold font with background Color3.fromRGB(0,120,255) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,50...
input_text: Make a gold CorrodedMetal part with a Fire effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace...
query: Tween Position with Circular Out easing, 2.5s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 3, true, 0) local goal = {Position = Vector3.new(10...
user: Create a TextButton saying "Welcome!" top-left 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...
start: Create an unanchored blue Wood Block part sized 4x6x1 at position 18,38,-31 in Roblox Luau. output_text: 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(4,6,1) part.Position = Vector3.new(18,38,-31...
question: Tween Reflectance with Bounce Out easing, 2.5s duration, infinite repeats, reversing in Roblox. answer: 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 = {Reflectance ...
task: Tween a part's Position with Cubic Out easing over 0.5s in Roblox result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:C...
query: Create an unanchored gold Plastic Block part sized 2x1x4 at position 7,46,-39 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(2,1,4) part.Position = Vector3.new(7,...
question: Create an anchored orange Plastic Block part sized 10x1x4 at position -25,18,49 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(10,1,4) part.Position = Vector3....
task: Create a TextLabel saying "Close" with FredokaOne font with background Color3.fromRGB(255,128,0) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0.08,0) elem.Po...
task: Create an anchored white Wood Block part sized 8x6x10 at position -40,45,37 in Roblox Luau. answer: 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,6,10) part.Position = Vector3.new(-40,45,37) part.Anch...
start: Tween Transparency with Cubic Out easing, 0.25s duration, infinite repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, -1, false, 0) local goal = {Transpare...
instruction: Create a TextLabel saying "Play" with PatrickHand 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(0.2,0,0.1,0) el...
task: Create a TextButton saying "Score: 0" top-left in Roblox GUI completion: 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...
question: Create a teal forcefield part with Highlight effect in Roblox end: local part = Instance.new("Part") part.Material = Enum.Material.ForceField part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Insta...
user: Create an anchored white Plastic Block part sized 12x6x1 at position -2,29,-17 in Roblox Luau. solution: 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(12,6,1) part.Position = Vector3.new(-2,29,-17) p...
query: Make a ball that is purple and cobblestone at (10,15,-10) size (2,6,8) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Cobblestone part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,6,8) part.Position = Vector3.new(10,15,-10) par...
question: Make a blue Concrete part with a Highlight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local...
question: Create an unanchored brown Wood Block part sized 8x4x2 at position 48,36,42 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(8,4,2) part.Position = Vector3.new(48,36,42)...
input: Create a clickable TextButton that says "Next Level" and prints a message when clicked. result: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local button...
prompt: Create an unanchored red Wood Block part sized 4x6x10 at position 25,72,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,0,0) part.Size = Vector3.new(4,6,10) part.Position = Vector3.new(25,72,16) p...
input_text: Tween Position with Quad In easing, 2.5s duration, 3 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 3, false, 0) local goal = {Position = Vector3.new...
prompt: Create an anchored gray Wood Block part sized 4x2x4 at position 48,88,39 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,2,4) part.Position = Vector3.new(48,88,39) ...
task: Detect PageDown key press to interact in Roblox output: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.PageDown then print("PageDown pressed - interact!") -- A...
question: Create a TextButton saying "Loading..." with RobotoMono font with background Color3.fromRGB(40,40,40) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0,...
input: Tween Reflectance with Quint Out easing, 2s duration, 1 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 1, false, 0) local goal = {Reflectance = 0.9} loc...
question: Write Roblox Luau code to a ScreenGui with a TextLabel that says "Level 1" using font Code at size 48. finish: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "Custom...
question: Implement a way to an Instance of type ClickDetector and configure its properties. end: local instance = Instance.new("ClickDetector") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
prompt: Create an anchored red Plastic Block part sized 8x4x6 at position -30,23,2 in Roblox Luau. finish: 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(8,4,6) part.Position = Vector3.new(-30,23,2) p...
user: Create an anchored gray Wood Block part sized 8x1x6 at position 14,9,-22 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(8,1,6) part.Position = Vector3.new(14,9,-22) pa...
input_text: Create an unanchored orange Wood Block part sized 8x6x1 at position -44,57,-16 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(8,6,1) part.Position = Vector3.new(-44,...
instruction: Create an unanchored green Wood Block part sized 4x6x1 at position 32,92,-1 in Roblox Luau. response: 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(4,6,1) part.Position = Vector3.new(32,92,...
start: Create an anchored pink Wood Block part sized 1x1x4 at position -39,92,-16 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,1,4) part.Position = Vector3.new(-39,92,...
begin: Create a TextButton saying "Delete" with PatrickHand 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("TextButton") elem.Size = UDim2.new(0.5,0,0.1,0) e...
prompt: Create a brown ice part with PointLight effect in Roblox model: local part = Instance.new("Part") part.Material = Enum.Material.Ice 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 = Instance.new("Poi...
task: Create an anchored white Wood Block part sized 6x4x6 at position 23,52,25 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(6,4,6) part.Position = Vector3.new(23,52,25) part.Anchor...
start: Create an unanchored yellow Plastic Block part sized 6x6x6 at position 42,7,24 in Roblox Luau. model: 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(6,6,6) part.Position = Vector3.new(42,7,24...
begin: Write server code that listens for the "PlayerAction" RemoteEvent and validates the sender. completion: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("PlayerAction") remoteEvent.OnServerEvent:Connect(function(player, data) if not player or...
query: Make a ball that is green and ice at (20,10,-10) size (8,4,1) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(8,4,1) part.Position = Vector3.new(20,10,-10) part.Anchored = true par...
user: Create an unanchored brown Plastic Block part sized 2x6x2 at position 11,93,38 in Roblox Luau. completion: 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,6,2) part.Position = Vector3.new(11,...
question: Create a TextLabel saying "Menu" with LuckiestGuy font with background Color3.fromRGB(50,50,80) 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.5,0,0,60) e...
task: Tween Position with Back Out easing, 3s duration, 1 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 1, true, 0) local goal = {Position = Vector3.new(10,5,0)} l...
instruction: Create an anchored blue Plastic Block part sized 4x6x2 at position -30,31,-28 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(4,6,2) part.Position = Vector3.new(-30...
start: Create an anchored yellow Wood Block part sized 6x4x10 at position -46,21,35 in Roblox Luau. result: 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(6,4,10) part.Position = Vector3.new(-46,21,35)...
query: Tween Transparency with Sine In easing, 0.5s duration, 0 repeats, reversing in Roblox. solution: 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 = {Transparency = 0.8} local ...
begin: Create an anchored gray Wood Block part sized 6x6x10 at position -45,73,-49 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(6,6,10) part.Position = Vector3.new(-45,73,-4...
user: Tween a part to position (-28, 26, -7) over 3.7 seconds using Back easing (In). completion: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 3.7, Enum.EasingStyle.Back, Enum.EasingDirection.In ) local goal = { ...
instruction: Create a TextButton saying "Delete" with Ubuntu 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("TextButton") elem.Size = UDim2.new(1,0,0,50) ele...
input: Make a block that is magenta and smoothplastic at (20,5,10) size (6,2,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(6,2,2) part.Position = Vector3.new(20,5,1...
query: Create an anchored blue Plastic Block part sized 1x2x2 at position -40,61,-48 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(1,2,2) part.Position = Vector3.new(-40,...
start: Create an unanchored cyan Plastic Block part sized 1x1x6 at position -28,6,-13 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(1,1,6) part.Position = Vector3.new(-28,6,...
input: Create a black cobblestone trusspart at position (3, 80, 23) with size (20, 3, 15), anchored=true. output_text: local part = Instance.new("TrussPart") part.Size = Vector3.new(20, 3, 15) part.Position = Vector3.new(3, 80, 23) part.Color = Color3.fromRGB(0, 0, 0) part.Material = Enum.Material.Cobblestone part.Anc...