text
stringlengths
54
19.6k
input: Tween Transparency with Circular In easing, 0.75s duration, infinite repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Circular, Enum.EasingDirection.In, -1, true, 0) local goal = {Transparen...
task: Encode a Lua table to JSON and decode JSON back to a table using HttpService. finish: local HttpService = game:GetService("HttpService") -- Encode table to JSON string local data = { name = "Player1", score = 100, items = {"Sword", "Shield"} } local jsonString = HttpService:JSONEncode(data) print(js...
prompt: Create an unanchored red Wood Block part sized 1x1x1 at position -16,83,3 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(1,1,1) part.Position = Vector3.new(-16,83,3) p...
question: Tween a part's Transparency with Quart Out easing over 1s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Create(part,...
query: Create an anchored yellow Plastic Block part sized 4x6x8 at position 14,59,-20 in Roblox Luau. result: 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(4,6,8) part.Position = Vector3.new(14,59,...
begin: Tween Color with Elastic InOut easing, 5s duration, 3 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Color = Color3.fromR...
user: Tween a part's Reflectance with Circular In easing over 0.5s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Cre...
prompt: Make a purple Wood part with a Fire effect attached in Roblox Luau. output: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 = Insta...
prompt: Create a magenta diamondplate block at (-5,5,-5) size (4,1,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,1,1) part.Position = Vector3.new(-5,5,-5) part.Anchored...
question: Create a white metal block at (0,15,20) size (6,6,4) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Metal part.Color = Color3.new(1,1,1) part.Size = Vector3.new(6,6,4) part.Position = Vector3.new(0,15,20) part.Anchored = true part.Parent = ...
query: Create an unanchored brown Wood Block part sized 6x2x10 at position -25,36,-44 in Roblox Luau. output_text: 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(6,2,10) part.Position = Vector3.new(-25...
question: Create an unanchored gold Wood Block part sized 2x4x2 at position 26,53,14 in Roblox Luau. completion: 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(2,4,2) part.Position = Vector3.new(26,53,...
question: Create an unanchored gold Plastic Block part sized 6x6x10 at position -23,65,40 in Roblox Luau. response: 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(6,6,10) part.Position = Vector3.new...
start: How do I an Instance of type WeldConstraint and configure its properties. result: local instance = Instance.new("WeldConstraint") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
input_text: Create an anchored orange Plastic Block part sized 6x2x8 at position -35,2,40 in Roblox Luau. result: 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(6,2,8) part.Position = Vector3.new(-3...
question: Tween Size with Quad InOut easing, 4s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Size = Vector3.new(8,8,8)} lo...
start: Tween Position with Cubic Out easing, 2.5s duration, infinite repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, -1, false, 0) local goal = {Position =...
prompt: Create a TextButton saying "Play" with LuckiestGuy font with background Color3.fromRGB(0,0,0) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.3,0,0.08,0) elem.Po...
start: Create a TextLabel saying "Game Over" with Michroma font with background Color3.fromRGB(50,200,50) 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.2,0,0,40)...
query: Tween a part's Position with Quint In easing over 1s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.In) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:C...
query: Create a TextButton saying "OK" with Michroma font with background Color3.fromRGB(0,120,255) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0.08,0) elem.Positi...
task: Create a orange forcefield ball at (20,25,0) size (8,2,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.ForceField part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(8,2,4) part.Position = Vector3.new(20,25,0) part.Anchored = true...
start: Create an anchored purple Wood Block part sized 6x4x4 at position -8,53,44 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(6,4,4) part.Position = Vector3.new(-8,53,44) par...
query: Create an unanchored yellow Plastic Block part sized 1x1x6 at position -3,56,1 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(1,1,6) part.Position = Vector3.new(-3,5...
start: Create an unanchored black Wood Block part sized 4x6x8 at position 42,66,45 in Roblox Luau. output: 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(4,6,8) part.Position = Vector3.new(42,66,45) part.Ancho...
query: Create a TextButton saying "Loading..." with Roboto 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.5,0,0,4...
task: Make a blue Wood part with a Highlight effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 = Instance....
query: Create a TextLabel saying "Exit" with Ubuntu font with background Color3.fromRGB(30,30,40) 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.1,0) elem.Pos...
prompt: Create an anchored blue Wood Block part sized 8x2x6 at position 34,46,-7 in Roblox Luau. model: 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(8,2,6) part.Position = Vector3.new(34,46,-7) part.An...
prompt: Play a sound with volume 0.1, pitch 1.1, looped=true. end: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.1 sound.PlaybackSpeed = 1.1 sound.Looped = true sound.Parent = workspace sound:Play() -- Sound will loop continuously
start: Make a block that is teal and forcefield at (5,15,10) size (1,1,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.ForceField part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(1,1,4) part.Position = Vector3.new(5,15,10) part.Anch...
start: Create a orange fabric ball at (-10,1,10) size (2,6,6) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Fabric part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(2,6,6) part.Position = Vector3.new(-10,1,10) part.Anchored = true part.P...
begin: What's the code to Cast a ray from the player's camera in the look direction for 50 studs. output: local Players = game:GetService("Players") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local mouse = player:GetMouse() local function castRay() local origin = camera.CFrame.Posit...
instruction: Create an unanchored blue Plastic Block part sized 8x1x10 at position -35,83,-31 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(8,1,10) part.Position = Vector3.new...
question: Tween Reflectance with Linear In easing, 3s duration, 0 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) local goal = {Reflectance = 0....
prompt: Script a cylinder with corrodedmetal material colored magenta at (20,5,20) size (8,1,6) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(8,1,6) part.Position = Vect...
begin: Create a ScreenGui with a TextLabel that says "Level 1" using font Highway at size 64. answer: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.Pare...
question: How do I an enemy/NPC spawning system that spawns enemies at random spawn points on a timer. answer: local ServerStorage = game:GetService("ServerStorage") local spawnFolder = workspace:WaitForChild("SpawnPoints") local enemyTemplate = ServerStorage:WaitForChild("Enemy") local MAX_ENEMIES = 10 local SPAWN_...
start: Create an unanchored brown Wood Block part sized 1x6x6 at position 3,52,-38 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,6,6) part.Position = Vector3.new(3,52,-38...
begin: Create a red granite ball at (10,10,0) size (2,2,2) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(2,2,2) part.Position = Vector3.new(10,10,0) part.Anchored = true part.Parent...
begin: Tween Transparency with Linear Out easing, 4s duration, 1 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true, 0) local goal = {Transparency = 0.8} loca...
question: Create an unanchored pink Plastic Block part sized 1x1x2 at position 28,26,-34 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(1,1,2) part.Position = Vector3.new(28,2...
task: Create an unanchored black Plastic Block part sized 2x4x10 at position 43,24,-48 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(2,4,10) part.Position = Vector3.new(43,24,-4...
input: Make a ball that is gray and brick at (20,1,-5) size (8,6,2) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Brick part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(8,6,2) part.Position = Vector3.new(20,1,-5) part.Anchored = tru...
user: Tween Color with Cubic Out easing, 1s duration, 0 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} local ...
start: Tween Size with Quint Out easing, 5s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, -1, true, 0) local goal = {Size = Vector3.new(8,8,8...
query: Create an anchored red Wood Block part sized 12x4x8 at position -29,71,-26 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(12,4,8) part.Position = Vector3.new(-29,71,-26) ...
prompt: Tween Position with Cubic In easing, 0.25s duration, 0 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, false, 0) local goal = {Position = Vector3.new...
input_text: Tween Color with Elastic InOut easing, 3s duration, 3 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Color = Color...
user: How do I Give the player a ForceField that lasts 5 seconds. completion: 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")...
query: Create a orange grass part with Highlight effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.Grass 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....
start: Create a TextLabel saying "Next" with FredokaOne font with background Color3.fromRGB(0,0,0) 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.5,0,0,60) elem....
prompt: Create a TextButton saying "Pause" with Ubuntu 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.5,0,0,50) elem.P...
prompt: Tween Transparency with Exponential InOut easing, 0.25s duration, 1 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Tra...
begin: Create a TextLabel saying "Yes" with RobotoMono 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(1,0,0,50) elem.Posi...
instruction: Tween Reflectance with Elastic Out easing, 1s duration, 0 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0) local goal = {Reflectance = ...
begin: Create an anchored pink Plastic Block part sized 6x6x10 at position 49,99,37 in Roblox Luau. output: 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(6,6,10) part.Position = Vector3.new(49,99...
input_text: Create an anchored gold Plastic Block part sized 8x4x2 at position -49,87,12 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(8,4,2) part.Position = Vector3.new(-49...
instruction: Create an unanchored brown Plastic Block part sized 1x6x4 at position 3,40,-11 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,6,4) part.Position = Vector3....
task: Script a cylinder with glass material colored cyan at (-10,50,20) size (2,4,4) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Glass part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,4,4) part.Position = Vector3.new(-10,50,20...
input_text: Create an anchored black Wood Block part sized 2x2x10 at position -28,61,41 in Roblox Luau. output: 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,2,10) part.Position = Vector3.new(-28,61,41) par...
question: Create an anchored white Wood Block part sized 4x6x10 at position -39,66,48 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(4,6,10) part.Position = Vector3.new(-39,66,48) part....
input: Create an anchored pink Wood Block part sized 6x1x10 at position 36,37,-22 in Roblox Luau. end: 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(6,1,10) part.Position = Vector3.new(36,37,-22) pa...
question: Create an unanchored blue Wood Block part sized 10x2x6 at position 17,43,22 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(10,2,6) part.Position = Vector3.new(17,43,22) ...
input: Create a TextLabel saying "OK" with Nunito 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("TextLabel") elem.Size = UDim2.new(0.3,0,0,40) elem.Po...
instruction: Tween CFrame with Cubic InOut easing, 3s duration, 2 repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, false, 0) local goal = {CFrame = part.CFram...
task: Create an unanchored white Plastic Block part sized 4x6x1 at position -5,86,0 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(4,6,1) part.Position = Vector3.new(-5,86,0) part....
begin: Tween Position with Elastic InOut easing, 2s duration, 1 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Position = Vector3....
input_text: Create a TextBox saying "Game Over" centered 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("TextBox") ...
instruction: Create an unanchored brown Wood Block part sized 6x6x10 at position -24,57,-32 in Roblox Luau. response: 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(6,6,10) part.Position = Vector3.new(...
start: Tween a part's Position with Back InOut 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.InOut) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:...
input_text: Create an unanchored teal Plastic Block part sized 1x4x1 at position 12,72,5 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(1,4,1) part.Position = Vector3.new(12,...
start: Create an unanchored purple Wood Block part sized 1x1x6 at position -42,19,-41 in Roblox Luau. model: 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(1,1,6) part.Position = Vector3.new(-42,19,-41...
user: Tween Color with Sine In easing, 0.25s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 3, false, 0) local goal = {Color = Color3.fromRGB(255,0,0)}...
question: Create an unanchored blue Plastic Block part sized 6x4x4 at position -39,61,-6 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(6,4,4) part.Position = Vector3.new(-39,6...
query: Create an unanchored black Wood Block part sized 12x4x6 at position 48,88,5 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(0,0,0) part.Size = Vector3.new(12,4,6) part.Position = Vector3.new(48,88,5) part.Anc...
task: Make a script that an Instance of type Weld and configure its properties. solution: local instance = Instance.new("Weld") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
input_text: Create an unanchored gold Plastic Block part sized 12x6x4 at position 33,39,14 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(12,6,4) part.Position = Vector3.new(...
query: Make a purple CorrodedMetal part with a Highlight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 = work...
instruction: Tween a part's Reflectance with Quint InOut easing over 1s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenService:Cr...
begin: Create a TextLabel saying "Retry" with Michroma 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("TextLabel") elem.Size = UDim2.new(1,0,0.1,0) elem.Pos...
input: Create an unanchored gold Wood Block part sized 4x4x10 at position -26,63,27 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,10) part.Position = Vector3.new(-26,63,27) pa...
question: Make a gray Concrete part with a PointLight effect attached in Roblox Luau. solution: 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 = workspac...
task: Create a TextLabel saying "Buy" with Creepster 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,150,0.1,0) elem...
query: Create an anchored white Wood Block part sized 8x1x1 at position -40,24,-20 in Roblox Luau. model: 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,1,1) part.Position = Vector3.new(-40,24,-20) part.Anch...
question: Make a cyan Wood part with a SpotLight effect attached in Roblox Luau. output: local part = Instance.new("Part") part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = ...
user: Create a TextButton saying "Cancel" with Roboto font with background Color3.fromRGB(30,30,40) 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,150,0,40) elem.Pos...
task: Make a green CorrodedMetal part with a PointLight effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 = wo...
question: Create an anchored green Plastic Block part sized 10x1x10 at position -4,87,42 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(10,1,10) part.Position = Vector3.new(-...
begin: Create an unanchored blue Wood Block part sized 4x6x4 at position -34,66,24 in Roblox Luau. finish: 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,4) part.Position = Vector3.new(-34,66,24) par...
input: Create a round-based game system with 30s rounds and 20s intermission. answer: local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ROUND_TIME = 30 local INTERMISSION = 20 local statusValue = Instance.new("StringValue") statusValue.Name = "GameStatus"...
start: Create an anchored gold Plastic Block part sized 6x2x1 at position -11,17,-24 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(6,2,1) part.Position = Vector3.new(-11,17,...
begin: How do you get a reference to the StarterGui service in Roblox? finish: local StarterGui = game:GetService("StarterGui")
task: Tween a part's Color with Quart InOut easing over 5s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenService...
input: Create a TextButton saying "Buy" centered 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") elem....
input_text: Tween Color with Quad In easing, 2s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 3, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)}...
instruction: Write a Roblox script to When a player touches a part, teleport the player to the spawn. model: local part = script.Parent local debounce = {} part.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") local playe...
user: Create an unanchored blue Wood Block part sized 12x2x2 at position 20,85,-19 in Roblox Luau. model: 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(12,2,2) part.Position = Vector3.new(20,85,-19) par...
begin: Tween a part's Transparency with Linear Out easing over 3s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Create(p...
start: Create a yellow diamondplate meshpart at position (0, 16, 35) with size (11, 8, 9), anchored=false. model: local part = Instance.new("MeshPart") part.Size = Vector3.new(11, 8, 9) part.Position = Vector3.new(0, 16, 35) part.Color = Color3.fromRGB(255, 255, 0) part.Material = Enum.Material.DiamondPlate part.Ancho...