text
stringlengths
54
19.6k
user: Make a white Concrete part with a PointLight effect attached in Roblox Luau. output: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 = In...
start: Create a TextLabel saying "Back" with Bangers font with background Color3.fromRGB(128,0,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,200,0.1,0) elem.P...
task: Create an anchored brown Plastic Block part sized 10x2x6 at position 28,74,7 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,2,6) part.Position = Vector3.new(28,74,7)...
prompt: Implement a way to an ImageLabel inside a ScreenGui with a Roblox asset image. completion: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local imageLabel...
begin: Create a TextLabel saying "Menu" with Michroma font with background Color3.fromRGB(128,0,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.2,0,0,60) elem.P...
prompt: Create an unanchored brown Plastic Block part sized 6x6x6 at position -16,19,40 in Roblox Luau. output: 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(6,6,6) part.Position = Vector3.new(-16,...
query: Tween a part to position (8, 30, 2) over 1.3 seconds using Back easing (InOut). model: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 1.3, Enum.EasingStyle.Back, Enum.EasingDirection.InOut ) local goal = { ...
prompt: Tween a part's CFrame with Back InOut easing over 5s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenSer...
query: Tween Size with Quint In easing, 5s duration, 2 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 2, true, 0) local goal = {Size = Vector3.new(8,8,8)} local twe...
input_text: Make a red CorrodedMetal part with a Sparkles effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 = works...
input_text: Create an unanchored brown Plastic Block part sized 8x2x10 at position -27,90,35 in Roblox Luau. end: 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(8,2,10) part.Position = Vector3.new(-...
instruction: Create a part that is maroon, transparency 0.25, CanCollide=false, Reflectance=0. end: local part = Instance.new("Part") part.Color = Color3.fromRGB(128, 0, 0) part.Transparency = 0.25 part.CanCollide = false part.Reflectance = 0 part.Anchored = true part.Parent = workspace
start: Create an anchored orange Plastic Block part sized 1x2x4 at position 44,84,46 in Roblox Luau. finish: 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(1,2,4) part.Position = Vector3.new(44,84,4...
input_text: Tween a part's Position with Circular Out easing over 1s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.Out) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenS...
query: Tween a part's Reflectance with Back In easing over 5s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Back, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, inf...
query: Detect A key press to open inventory in Roblox finish: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.A then print("A pressed - open inventory!") -- Add your ...
instruction: Create an unanchored yellow Plastic Block part sized 8x1x10 at position 16,27,21 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(8,1,10) part.Position = Vector3...
input_text: Tween a part's Reflectance with Sine In easing over 5s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(p...
start: Tween Color with Sine Out easing, 0.75s duration, 0 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0) local goal = {Color = Color3.fromRG...
instruction: Create a TextButton saying "Ready?" with SourceSansBold 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(0,15...
instruction: Tween Color with Quart Out easing, 2s duration, 3 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, false, 0) local goal = {Color = Color3.fromRGB(2...
input_text: Create a TextLabel saying "Close" with Oswald font with background Color3.fromRGB(255,128,0) 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.5,0,0,60) el...
input: Create an unanchored black Plastic Block part sized 8x2x10 at position -4,45,-26 in Roblox Luau. completion: 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,2,10) part.Position = Vector3.new(-4,45,-...
start: Create a purple plastic block at (-5,20,-5) size (1,6,8) in Roblox. 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(1,6,8) part.Position = Vector3.new(-5,20,-5) part.Anchored = fa...
start: Tween Color with Circular In easing, 2.5s duration, 0 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, true, 0) local goal = {Color = Color3.fromRGB(...
input: Tween Reflectance with Elastic InOut easing, 1.5s duration, infinite 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.InOut, -1, false, 0) local goal = {Refl...
instruction: Tween Position with Linear In easing, 3s duration, infinite repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 0) local goal = {Position = Vector3...
input: Tween CFrame with Linear In easing, 4s duration, 2 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 2, true, 0) local goal = {CFrame = part.CFrame*CFrame.ne...
user: Make a teal Slate part with a Highlight effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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...
prompt: How do you get a reference to the SoundService service in Roblox? response: local SoundService = game:GetService("SoundService")
query: Tween Color with Quart Out easing, 0.25s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, -1, false, 0) local goal = {Color = Color3.f...
begin: Script a block with woodplanks material colored blue at (-5,15,-5) size (8,4,6) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.WoodPlanks part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,4,6) part.Position = Vector3.new(-5,1...
user: Make a cylinder that is teal and diamondplate at (0,1,0) size (2,6,6) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(2,6,6) part.Position = Vector3.new(0,1,0) part.A...
user: Create an unanchored blue Plastic Block part sized 10x6x6 at position 23,46,23 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(10,6,6) part.Position = Vector3.new(23,46,23...
input: Tween Color with Linear In easing, 1.5s duration, 2 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 2, false, 0) local goal = {Color = Color3.fromRGB(255...
start: Create an unanchored gray Wood Block part sized 1x1x10 at position 42,36,22 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(1,1,10) part.Position = Vector3.new(42,36,22)...
input: Create a sparkle particle effect attached to a part. finish: local part = workspace:WaitForChild("EffectPart") local particles = Instance.new("ParticleEmitter") particles.Color = ColorSequence.new(Color3.fromRGB(255, 255, 100)) particles.Size = NumberSequence.new(0.5) particles.Lifetime = NumberRange.new(0.3, ...
begin: Create a TextButton saying "Score: 0" with RobotoMono font with background Color3.fromRGB(200,50,50) in Roblox GUI. output: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0,60) ...
prompt: Create an anchored green Wood Block part sized 8x4x10 at position -19,28,-29 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(8,4,10) part.Position = Vector3.new(-19,28,...
task: Create a ScreenGui with a TextLabel that says "Level 1" using font Fantasy at size 64. finish: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.Paren...
query: Script a block with granite material colored gray at (0,5,10) size (1,2,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(1,2,4) part.Position = Vector3.new(0,5,10) par...
input_text: Create a TextLabel saying "Cancel" with SourceSansBold font with background Color3.fromRGB(50,200,50) 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...
task: Tween Color with Quart InOut easing, 2.5s duration, 1 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Color = Color3.fromRGB(...
input: Create an anchored pink Plastic Block part sized 12x4x4 at position 3,14,15 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(12,4,4) part.Position = Vector3.new(3,14,1...
query: Create an anchored cyan Wood Block part sized 1x6x4 at position -21,59,-10 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(1,6,4) part.Position = Vector3.new(-21,59,-10) p...
input_text: Create an unanchored blue Plastic Block part sized 6x4x1 at position 16,84,6 in Roblox Luau. completion: 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(6,4,1) part.Position = Vector3.new(1...
query: Create an anchored blue Plastic Block part sized 12x6x2 at position 28,29,32 in Roblox Luau. end: 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(12,6,2) part.Position = Vector3.new(28,29,32) pa...
input_text: Create a TextLabel saying "Ready?" with RobotoMono font with background Color3.fromRGB(40,40,40) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0...
input: Tween Size with Sine In easing, 0.75s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 3, false, 0) local goal = {Size = Vector3.new(8,8,8)} local...
input: Tween Reflectance with Linear In easing, 0.5s duration, 0 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) local goal = {Reflectance = 0.9}...
user: Script a ball with fabric material colored white at (-5,15,-10) size (1,4,4) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Fabric part.Color = Color3.new(1,1,1) part.Size = Vector3.new(1,4,4) part.Position = Vector3.new(-5,15,-10) part.Anchored...
input_text: Create an unanchored purple Plastic Block part sized 1x2x8 at position -19,95,-45 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(1,2,8) part.Position = Vector3.ne...
input: Tween Size with Quint InOut easing, 2s duration, 1 repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Size = Vector3.new(8,8,8)} ...
input: Tween CFrame with Quint In easing, 0.75s duration, infinite repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quint, Enum.EasingDirection.In, -1, false, 0) local goal = {CFrame = part.CFr...
begin: Tween Size with Quart InOut easing, 4s duration, infinite repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Size = Vector3.new(8,8...
user: Give me a script for Connect two parts with a RopeConstraint. model: 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 l...
query: Create an unanchored pink Wood Block part sized 8x4x6 at position -36,57,-35 in Roblox Luau. model: 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(8,4,6) part.Position = Vector3.new(-36,57,-35...
query: Tween Color with Back InOut easing, 2.5s duration, infinite repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Color = Color3.from...
input: Tween a part's Reflectance with Exponential In easing over 2s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Crea...
start: Script for an Instance of type Smoke and configure its properties. result: local instance = Instance.new("Smoke") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
prompt: Make a red DiamondPlate part with a Fire effect attached in Roblox Luau. result: 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 = workspace local...
question: Create an unanchored yellow Plastic Block part sized 10x4x2 at position 41,24,-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,255,0) part.Size = Vector3.new(10,4,2) part.Position = Vector...
instruction: Create a TextButton saying "Exit" with Oswald font with background Color3.fromRGB(255,128,0) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.2,0,0,5...
input_text: Tween a part's Color with Back InOut easing over 1s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenSe...
task: Make a white Concrete part with a SpotLight effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 ...
query: Tween Color with Cubic In easing, 4s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} lo...
begin: I need to Cast a ray from the player's camera in the look direction for 100 studs. finish: local Players = game:GetService("Players") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local mouse = player:GetMouse() local function castRay() local origin = camera.CFrame.Position ...
input: Create an anchored cyan Wood Block part sized 4x2x6 at position -21,86,-15 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,255,255) part.Size = Vector3.new(4,2,6) part.Position = Vector3.new(-21,86,-...
question: Create an anchored yellow Plastic Block part sized 1x1x2 at position -14,46,49 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,1,2) part.Position = Vector3.new...
instruction: Detect when the player presses the Q key using UserInputService. output_text: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Q then print...
input: Make a block that is lime and foil at (-5,25,-10) size (2,6,1) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(2,6,1) part.Position = Vector3.new(-5,25,-10) part.Anchored =...
question: Create a TextButton saying "Welcome!" top-right in Roblox GUI answer: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextButto...
question: Create an unanchored blue Plastic Block part sized 8x6x6 at position -49,93,-32 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,6,6) part.Position = Vector3.new(-49,...
query: Create an anchored brown Plastic Block part sized 2x2x4 at position -8,12,-44 in Roblox Luau. solution: 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,2,4) part.Position = Vector3.new(-8,12...
input: Create a TextButton saying "Pause" with LuckiestGuy font with background Color3.fromRGB(200,50,50) 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.2,0,0,40) el...
instruction: Detect O key press to sprint in Roblox model: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.O then print("O pressed - sprint!") -- Add your sprint code...
task: Create an unanchored white Plastic Block part sized 8x6x1 at position -49,23,3 in Roblox Luau. result: 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,6,1) part.Position = Vector3.new(-49,23,3) part....
input_text: Apply a BodyVelocity of (-33, 90, -21) to a part. completion: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-33, 90, -21) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bo...
user: Create an unanchored red Wood Block part sized 2x4x2 at position 2,53,8 in Roblox Luau. output: 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,2) part.Position = Vector3.new(2,53,8) part.Anchor...
user: Create an anchored purple Plastic Block part sized 6x4x8 at position -16,20,-2 in Roblox Luau. output: 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(6,4,8) part.Position = Vector3.new(-16,20,...
query: Create an anchored green Wood Block part sized 2x1x10 at position 35,32,37 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,0) part.Size = Vector3.new(2,1,10) part.Position = Vector3.new(35,32,37) pa...
task: Create a Luau script that will When a player touches a part, teleport the player to the spawn. end: local part = script.Parent local debounce = {} part.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") local player =...
start: Create an unanchored purple Wood Block part sized 2x1x1 at position -14,46,-41 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,1,1) part.Position = Vector3.new(-14,46,...
instruction: Create an anchored yellow Plastic Block part sized 8x6x8 at position 31,30,-44 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(8,6,8) part.Position = Vector3.ne...
prompt: Spawn a yellow smoothplastic block part at (-10,25,0) size (4,2,2) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(-10,25,0) part.A...
start: Create an NPC that wanders randomly within a defined area. response: local PathfindingService = game:GetService("PathfindingService") local npc = script.Parent local humanoid = npc:WaitForChild("Humanoid") local rootPart = npc:WaitForChild("HumanoidRootPart") local WANDER_RADIUS = 30 local HOME_POSITION = roo...
prompt: I need to Fire a RemoteEvent to all connected players from the server. response: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("BroadcastEvent") local function broadcastToAll(message) remoteEvent:FireAllClients({ message = message...
input_text: Create an anchored purple Wood Block part sized 10x2x1 at position -23,7,-23 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(10,2,1) part.Position = Vector3.new(-23,7...
user: Create an anchored gray Wood Block part sized 6x4x6 at position -25,17,16 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(6,4,6) part.Position = Vector3.new(-25,17,16) ...
start: Tween Position with Bounce InOut easing, 0.25s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Position...
input: Tween a part's Transparency with Sine In easing over 1s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(part, inf...
start: Fade a part to invisible over 1.2 seconds using a tween. result: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("FadePart") local tweenInfo = TweenInfo.new(1.2, Enum.EasingStyle.Linear) local goal = { Transparency = 1 } local tween = TweenService:Create(part, tw...
prompt: Create a TextLabel saying "Play" with SourceSansBold font with background Color3.fromRGB(128,0,255) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0.0...
task: Create a TextButton saying "Play" with Oswald font with background Color3.fromRGB(255,128,0) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0.08,0) el...
user: Create an unanchored brown Plastic Block part sized 1x4x4 at position -36,91,7 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(1,4,4) part.Position = Vector3.new(-36...
start: Create an anchored blue Plastic Block part sized 12x6x6 at position 33,53,-36 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(12,6,6) part.Position = Vector3.new(33,53,-3...
prompt: Create an anchored yellow Plastic Block part sized 6x6x1 at position -48,48,-8 in Roblox Luau. end: 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,1) part.Position = Vector3.new(-48,48,-...
begin: Spawn a cyan ice block part at (-5,1,-5) size (6,6,8) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(6,6,8) part.Position = Vector3.new(-5,1,-5) part.Anchored = false part.Pa...
start: Create an anchored cyan Wood Block part sized 10x4x2 at position -3,62,22 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,255,255) part.Size = Vector3.new(10,4,2) part.Position = Vector3.new(-3,62,22...
input: Make a black Plastic part with a Highlight effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 = In...