text
stringlengths
54
19.6k
question: Create a TextLabel saying "Ready?" with SourceSansBold font with background Color3.fromRGB(40,40,40) 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.2,0,0,40...
user: Create an anchored gold Plastic Block part sized 12x1x6 at position 25,11,38 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(12,1,6) part.Position = Vector3.new(25,11,38...
prompt: Create a TextButton saying "Click Me" with LuckiestGuy 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("TextButton") elem.Size = UDim2.new(0,200,0.1,0) ...
input_text: Tween Reflectance with Bounce Out easing, 1.5s duration, infinite repeats, non-reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, -1, false, 0) local goal = {Refle...
user: Give me a script for a rounded Frame with corner radius 12 and a stroke thickness of 4. model: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local frame = ...
input_text: Create an unanchored purple Wood Block part sized 6x2x10 at position -5,97,-14 in Roblox Luau. output: 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,2,10) part.Position = Vector3.new(-5,...
task: Tween a part's color to RGB(62, 24, 122) over 1.5 seconds. finish: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(62, 24, 122...
user: Create a yellow wood cylinder at (-10,20,-10) size (1,4,8) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(1,4,8) part.Position = Vector3.new(-10,20,-10) part.Anchored = ...
start: Create an unanchored gray Wood Block part sized 12x6x2 at position 35,26,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(128,128,128) part.Size = Vector3.new(12,6,2) part.Position = Vector3.new(35,2...
prompt: Create an anchored cyan Wood Block part sized 10x4x4 at position 32,40,-8 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(10,4,4) part.Position = Vector3.new(32,40,-8) ...
task: Tween a part's Color with Linear In easing over 0.5s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = TweenService:C...
instruction: Make a block that is red and cobblestone at (20,1,-10) size (4,2,8) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Cobblestone part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(4,2,8) part.Position = Vector3.new(20,1,-10) part...
input: Tween Size with Quad Out easing, 0.25s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, -1, false, 0) local goal = {Size = Vector3....
start: Spawn a yellow neon block part at (-10,1,-10) size (2,4,1) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(2,4,1) part.Position = Vector3.new(-10,1,-10) part.Anchored = true pa...
start: Create a TextBox saying "Equip" top-right in Roblox GUI solution: 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") elem.S...
prompt: Spawn a gray corrodedmetal ball part at (-5,1,0) size (2,6,8) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(2,6,8) part.Position = Vector3.new(-5,1,0) part.Ancho...
prompt: Tween Color with Circular InOut easing, 4s duration, 3 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Color = Color3.from...
start: Create an anchored black Wood Block part sized 4x2x10 at position 26,5,47 in Roblox Luau. completion: 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,2,10) part.Position = Vector3.new(26,5,47) part.Anc...
begin: Create a TextLabel saying "No" with Roboto 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,200,0,40) elem.Posit...
prompt: Create an unanchored brown Plastic Block part sized 6x6x10 at position -11,79,-7 in Roblox Luau. model: 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,10) part.Position = Vector3.new(-11...
instruction: Create an unanchored gray Plastic Block part sized 1x4x1 at position -44,22,9 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(1,4,1) part.Position = Vector3.new...
instruction: Tween CFrame with Quad Out easing, 4s duration, 3 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame.ne...
input_text: Tween Size with Linear Out easing, 3s duration, infinite repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0) local goal = {Size = Vector3.new(...
instruction: Code a script that a Wand tool that deals 40 damage when activated. solution: local tool = script.Parent local damage = 40 local debounce = false local cooldown = 0.5 tool.Activated:Connect(function() if debounce then return end debounce = true local character = tool.Parent local hum...
question: Tween CFrame with Back InOut easing, 1.5s duration, infinite repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1, false, 0) local goal = {CFrame = p...
query: Script for a ScrollingFrame that contains multiple TextLabels as a list. output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local scrollFrame = Instanc...
query: Create an anchored green Plastic Block part sized 4x1x1 at position 4,72,48 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,1,1) part.Position = Vector3.new(4,72,48) part....
query: Create a purple ice part with Sparkles effect in Roblox finish: local part = Instance.new("Part") part.Material = Enum.Material.Ice 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 = Instance.new("Spar...
begin: Create an unanchored brown Plastic Block part sized 8x6x4 at position 20,21,11 in Roblox Luau. result: 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,6,4) part.Position = Vector3.new(20,21,...
task: Create an anchored black Wood Block part sized 4x2x1 at position -8,83,38 in Roblox Luau. end: 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,2,1) part.Position = Vector3.new(-8,83,38) part.Anchored = ...
task: What's the code to a ScreenGui with a TextLabel that says "Score: 0" using font SourceSans at size 24. finish: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui"...
question: Code a script that an auto-balancing team system that assigns players to Red or Blue teams. result: local Players = game:GetService("Players") local Teams = game:GetService("Teams") -- Create teams local redTeam = Instance.new("Team") redTeam.Name = "Red" redTeam.TeamColor = BrickColor.new("Bright red") red...
instruction: Create a TextButton saying "Yes" with Roboto 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("TextButton") elem.Size = UDim2.new(0,150,0,40) el...
instruction: Tween Color with Quad Out easing, 2.5s duration, 3 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 3, true, 0) local goal = {Color = Color3.fromRGB(255,...
user: Create an unanchored yellow Wood Block part sized 12x2x1 at position -45,69,-20 in Roblox Luau. model: 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(12,2,1) part.Position = Vector3.new(-45,69,-2...
input: Create an unanchored red Plastic Block part sized 12x2x1 at position 46,57,28 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,0,0) part.Size = Vector3.new(12,2,1) part.Position = Vector3.new(46,...
task: Tween a part's Size with Back InOut easing over 0.5s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(p...
start: Code a script that an Instance of type WeldConstraint and configure its properties. end: local instance = Instance.new("WeldConstraint") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
task: Create an anchored orange Wood Block part sized 12x6x1 at position 29,72,35 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(12,6,1) part.Position = Vector3.new(29,72,35) pa...
user: Create an unanchored white Wood Block part sized 2x2x6 at position 39,91,-18 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(2,2,6) part.Position = Vector3.new(39,91,-18) part.Anch...
user: Create a gold pebble ball at (-5,20,-10) size (8,1,2) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(8,1,2) part.Position = Vector3.new(-5,20,-10) part.Anchored = true part.Pa...
query: Create an anchored yellow Wood Block part sized 12x4x2 at position -9,8,30 in Roblox Luau. solution: 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(12,4,2) part.Position = Vector3.new(-9,8,30) p...
input_text: Tween Reflectance with Circular InOut easing, 3s duration, 0 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Reflectance = ...
begin: Create an anchored teal Plastic Block part sized 8x2x2 at position 24,1,17 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(8,2,2) part.Position = Vector3.new(24,1,17) p...
input_text: Create a TextButton saying "Help" with Michroma font with background Color3.fromRGB(255,128,0) in Roblox GUI. model: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,150,0,60) el...
task: Tween a part's Transparency with Linear Out easing over 1s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Create(...
input: Create a TextButton saying "Cancel" with SourceSansBold 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.3,0,0,40...
instruction: Create an unanchored red Wood Block part sized 8x2x8 at position 1,76,-45 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(8,2,8) part.Position = Vector3.new(1,76,...
user: Create an anchored teal Plastic Block part sized 10x6x10 at position -7,24,-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,128,128) part.Size = Vector3.new(10,6,10) part.Position = Vector3.new(-7,24...
input_text: Create an anchored red Wood Block part sized 10x6x8 at position -48,89,-33 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(10,6,8) part.Position = Vector3.new(-48,8...
start: Make a teal DiamondPlate part with a Fire effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate 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 loc...
input: Create an anchored orange Wood Block part sized 10x2x1 at position -24,22,50 in Roblox Luau. answer: 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(10,2,1) part.Position = Vector3.new(-24,22,50)...
begin: Detect Space key press to open inventory in Roblox answer: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Space then print("Space pressed - open inventory!") ...
prompt: How do you get a reference to the StarterPlayer service in Roblox? response: local StarterPlayer = game:GetService("StarterPlayer")
user: Tween Color with Back InOut easing, 0.75s duration, 3 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Color = Color3.fromRGB(255,0...
begin: Tween a part's Transparency with Cubic Out easing over 0.5s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Create(p...
query: Tween Size with Quart In easing, 2s duration, 2 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 2, false, 0) local goal = {Size = Vector3.new(8,8,8)} loca...
query: Tween Position with Circular In easing, 3s duration, 0 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, true, 0) local goal = {Position = Vector3.new(10,...
question: Tween Position with Sine InOut easing, 2s duration, 3 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 3, false, 0) local goal = {Position = Vector3...
begin: Create an anchored gray Plastic Block part sized 12x2x2 at position -4,23,32 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(12,2,2) part.Position = Vector3.new(-4,23...
begin: Tween Position with Quint InOut easing, 1.5s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Position = Vector3.n...
task: Create a TextLabel saying "No" with RobotoMono 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("TextLabel") elem.Size = UDim2.new(0.2,0,0,40) elem.Position = ...
prompt: Create an unanchored black Wood Block part sized 8x6x6 at position -9,67,10 in Roblox Luau. end: 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(8,6,6) part.Position = Vector3.new(-9,67,10) part.Anchore...
instruction: Create a TextLabel saying "Play" with Bangers 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(0.2,0,0,60) ele...
begin: Create a ScreenGui with a TextLabel that says "Time: 0:00" using font Code at size 64. output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CustomGui" screenGui.Pare...
start: Create an unanchored purple Plastic Block part sized 10x1x2 at position -2,10,7 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(10,1,2) part.Position = Vector3.new(-2...
input_text: Create a TextLabel saying "Help" with Roboto 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.3,0,0,50) elem.Posi...
question: Create an unanchored yellow Plastic Block part sized 12x4x4 at position 8,73,-43 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(12,4,4) part.Position = Vector3.ne...
query: Create an unanchored teal Plastic Block part sized 6x2x2 at position -8,31,10 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(6,2,2) part.Position = Vector3.new(-8,...
task: Apply a BodyVelocity of (-31, 35, -8) to a part. end: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-31, 35, -8) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVelocity.Pare...
prompt: Tween Size with Cubic InOut easing, 4s duration, 2 repeats, reversing in Roblox. output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, true, 0) local goal = {Size = Vector3.new(8,8,8)} loca...
start: Script for a ModuleScript that implements a simple inventory system. model: -- ModuleScript in ReplicatedStorage local InventoryModule = {} local inventories = {} function InventoryModule.create(player) inventories[player.UserId] = { items = {}, maxSlots = 20 } end function InventoryM...
input: Create a TextButton saying "Resume" with PatrickHand font with background Color3.fromRGB(128,0,255) 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,200,0,40) e...
prompt: Create an unanchored blue Plastic Block part sized 4x6x8 at position -46,30,-14 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(4,6,8) part.Position = Vector3.new(-46,30,-1...
user: Make a yellow Plastic part with a SpotLight effect attached in Roblox Luau. output: local part = Instance.new("Part") part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local f...
instruction: Tween a part's Transparency with Quad Out easing over 3s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = {Transparency = 0.8} local tween = TweenService:Crea...
prompt: Make a purple Slate part with a Fire effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = I...
question: Create an unanchored white Plastic Block part sized 12x6x4 at position -14,84,45 in Roblox Luau. output: 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,4) part.Position = Vector3.new(-14,84,4...
input_text: Create a ImageLabel centered in Roblox GUI output_text: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("ImageLabel") elem.Siz...
begin: Make a pink Concrete part with a Fire effect attached in Roblox Luau. response: local part = Instance.new("Part") part.Material = Enum.Material.Concrete part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local f...
begin: Write a Roblox script to Prompt a player to purchase a developer product and handle the receipt. solution: local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local PRODUCT_ID = 0 -- Replace with your Developer Product ID local function promptPurchase(pl...
user: Create an anchored green Wood Block part sized 2x2x4 at position -42,63,-42 in Roblox Luau. model: 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,2,4) part.Position = Vector3.new(-42,63,-42) part...
query: Tween Size with Sine InOut easing, 4s duration, 2 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Size = Vector3.new(8,8,8)} local...
task: Create an unanchored white Plastic Block part sized 10x2x1 at position 36,66,12 in Roblox Luau. answer: 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(10,2,1) part.Position = Vector3.new(36,66,12) par...
input_text: Create an anchored blue Plastic Block part sized 12x6x10 at position -36,13,-20 in Roblox Luau. response: 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,10) part.Position = Vector3.ne...
instruction: Create an anchored gray Wood Block part sized 2x6x8 at position 34,91,46 in Roblox Luau. output_text: 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(2,6,8) part.Position = Vector3.new(34...
start: Create an unanchored gold Plastic Block part sized 12x2x1 at position 8,85,4 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(12,2,1) part.Position = Vector3.new(8,85,4)...
user: Create an unanchored gold Plastic Block part sized 12x6x8 at position -25,54,1 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(12,6,8) part.Position = Vector3.new(-25,54...
query: Tween Color with Exponential Out easing, 0.25s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, -1, false, 0) local goal = {...
prompt: Spawn a green pebble ball part at (-10,25,10) size (1,1,2) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Pebble part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,1,2) part.Position = Vector3.new(-10,25,10) part.Anchored = false part...
begin: Script a cylinder with slate material colored cyan at (5,50,-10) size (6,4,6) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(6,4,6) part.Position = Vector3.new(5,50,-10)...
task: Make a gray Wood part with a Highlight effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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...
input_text: Tween a part's Reflectance with Circular InOut easing over 0.5s in Roblox output: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenSer...
begin: Create a RemoteFunction called "GetInventory" that returns data from the server to the client. model: -- Server Script local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteFunction = Instance.new("RemoteFunction") remoteFunction.Name = "GetInventory" remoteFunction.Parent = ReplicatedStor...
query: Create a TextButton saying "Click Me" with RobotoMono font with background Color3.fromRGB(0,0,0) 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.3,0,0.1,0) ele...
begin: Create an unanchored blue Wood Block part sized 1x4x4 at position 47,13,30 in Roblox Luau. response: 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(1,4,4) part.Position = Vector3.new(47,13,30) par...
start: Create an unanchored gray Wood Block part sized 2x2x6 at position -27,69,-23 in Roblox Luau. end: 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(2,2,6) part.Position = Vector3.new(-27,69,-23) ...
begin: Tween CFrame with Quint In easing, 0.5s duration, 0 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0) local goal = {CFrame = part.CFrame*CFrame.new(...
prompt: Create an unanchored yellow Plastic Block part sized 12x4x2 at position 8,17,15 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(12,4,2) part.Position = Vector3.new(8...
input_text: Make a red Wood part with a Fire effect attached in Roblox Luau. completion: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 fx = In...