text
stringlengths
54
19.6k
input_text: Create a cyan fabric cylinder at (20,10,10) size (6,4,2) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Fabric part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(6,4,2) part.Position = Vector3.new(20,10,10) part.Anchored = tru...
user: Create an anchored gold Wood Block part sized 6x4x1 at position -48,41,15 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(6,4,1) part.Position = Vector3.new(-48,41,15) ...
begin: Spawn a lime neon cylinder part at (-5,1,-5) size (8,1,4) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(8,1,4) part.Position = Vector3.new(-5,1,-5) part.Anchored = false p...
task: Create an unanchored gold Plastic Block part sized 12x2x10 at position -7,64,14 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(12,2,10) part.Position = Vector3.new(-7,64...
input_text: Create a TextButton saying "Welcome!" with Roboto 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,60) el...
instruction: What's the code to Show useful math functions and operations in Luau. finish: -- Basic math print(math.abs(-5)) -- 5 print(math.ceil(4.2)) -- 5 print(math.floor(4.8)) -- 4 print(math.round(4.5)) -- 5 (Luau feature) print(math.max(3, 7, 1)) -- 7 print(math.min(3, 7, 1)) -- 1 print(math.sq...
prompt: Tween Reflectance with Elastic Out easing, 2s duration, infinite repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, -1, true, 0) local goal = {Reflectance = 0....
start: Tween Size with Cubic In easing, 3s duration, 2 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, true, 0) local goal = {Size = Vector3.new(8,8,8)} local ...
input: Create an unanchored orange Wood Block part sized 12x2x6 at position -15,81,36 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(12,2,6) part.Position = Vector3.new(-15,81,36...
task: Create a TextButton saying "No" 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("TextButton") elem.Size = UDim2.new(1,0,0,40) elem.Posi...
input: Tween Position with Quart Out easing, 0.25s duration, 0 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, true, 0) local goal = {Position = Vector3.new(1...
task: Create a TextButton saying "Undo" with Oswald 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("TextButton") elem.Size = UDim2.new(0.3,0,0,60) elem.Position...
question: Create an anchored pink Wood Block part sized 1x4x10 at position 3,53,9 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,100,200) part.Size = Vector3.new(1,4,10) part.Position = Vector3.new(3,53,...
begin: Tween a part's color to RGB(227, 44, 163) over 2.2 seconds. response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(227, 44...
input_text: Tween Size with Quad InOut easing, 1.5s duration, 1 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Size = Vector3.new(8...
query: Script a cylinder with corrodedmetal material colored black at (-10,1,0) size (4,2,2) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.CorrodedMetal part.Color = Color3.new(0,0,0) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(-10...
query: Create an anchored cyan Wood Block part sized 8x6x4 at position -46,35,45 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,6,4) part.Position = Vector3.new(-46,35,45) p...
instruction: Make a gray Wood part with a Smoke effect attached in Roblox Luau. response: 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...
prompt: Create an anchored cyan Plastic Block part sized 1x6x2 at position 33,41,-49 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(33,...
user: Tween a part's CFrame with Quad In easing over 5s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenServic...
prompt: Create an anchored brown Wood Block part sized 8x1x2 at position 16,40,17 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(8,1,2) part.Position = Vector3.new(16,40,17...
begin: Code a script that an enemy/NPC spawning system that spawns enemies at random spawn points on a timer. output_text: local ServerStorage = game:GetService("ServerStorage") local spawnFolder = workspace:WaitForChild("SpawnPoints") local enemyTemplate = ServerStorage:WaitForChild("Enemy") local MAX_ENEMIES = 10 ...
task: Create an anchored purple Plastic Block part sized 2x1x8 at position -3,12,18 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(-3,12,18)...
task: What is the difference between a Script and a LocalScript in Roblox? completion: Scripts and LocalScripts serve different purposes in Roblox: **Script (Server Script):** - Runs on the server - Has access to server-side services (DataStoreService, ServerStorage, etc.) - Can modify the game for all players - Cann...
input: Create a TextButton saying "Yes" with FredokaOne font with background Color3.fromRGB(50,50,80) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0,60) elem...
user: Create an unanchored teal Plastic Block part sized 4x1x1 at position 32,83,-27 in Roblox Luau. response: 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(4,1,1) part.Position = Vector3.new(32,83...
query: Create an unanchored red Plastic Block part sized 8x1x4 at position -24,88,31 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(8,1,4) part.Position = Vector3.new(-24,88,31...
input_text: Create an unanchored purple Wood Block part sized 12x2x8 at position -28,59,4 in Roblox Luau. finish: 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(12,2,8) part.Position = Vector3.new(-28,...
task: What's the code to a BillboardGui that shows the player's name above their head. finish: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local head = character:WaitForChild("Head") local billbo...
start: How do you get a reference to the LocalizationService service in Roblox? output_text: local LocalizationService = game:GetService("LocalizationService")
start: Create an unanchored brown Wood Block part sized 4x6x10 at position -34,45,-11 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(4,6,10) part.Position = Vector3.new(-34,45...
instruction: Create an anchored blue Plastic Block part sized 8x6x1 at position 40,49,-1 in Roblox Luau. result: 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,1) part.Position = Vector3.new(40,49...
input_text: Tween Reflectance with Quart In easing, 1.5s duration, 3 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 3, true, 0) local goal = {Reflectance = 0.9}...
user: Create an anchored white Plastic Block part sized 1x4x2 at position -48,32,-45 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(1,4,2) part.Position = Vector3.new(-48,32,-45) par...
user: Make a purple DiamondPlate part with a PointLight effect attached in Roblox Luau. completion: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate 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 = wo...
query: Tween a part's Reflectance with Quart InOut easing over 0.5s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut) local goal = {Reflectance = 0.9} local tween = TweenService:Create...
question: Create an anchored gray Wood Block part sized 12x2x10 at position -38,97,-45 in Roblox Luau. model: 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,2,10) part.Position = Vector3.new(-38,9...
task: Create an unanchored purple Wood Block part sized 8x4x2 at position -3,11,37 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,0,255) part.Size = Vector3.new(8,4,2) part.Position = Vector3.new(-3,11,3...
prompt: Create an anchored gray Wood Block part sized 12x6x1 at position 36,51,-31 in Roblox Luau. finish: 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,1) part.Position = Vector3.new(36,51,-31...
query: Create an anchored purple Plastic Block part sized 2x1x10 at position -44,35,-2 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,1,10) part.Position = Vector3.new...
input: Tween CFrame with Quad In easing, 0.75s duration, 3 repeats, reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame.ne...
input_text: Create an unanchored purple Wood Block part sized 4x2x6 at position -41,2,22 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(4,2,6) part.Position = Vector3.new(-41,2,...
input: Script for an Instance of type BillboardGui and configure its properties. model: local instance = Instance.new("BillboardGui") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
query: Tween Position with Quint In easing, 1.5s duration, 1 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 1, false, 0) local goal = {Position = Vector3.ne...
instruction: Apply a VectorForce of (233, 864, 30) to a part using an Attachment. completion: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(233, 864, 30) vectorFor...
begin: Create an anchored brown Plastic Block part sized 10x6x4 at position 34,23,10 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(10,6,4) part.Position = Vector3.new(34,2...
query: Create a TextLabel saying "Loading..." with PatrickHand font with background Color3.fromRGB(50,200,50) 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(1,0,0,...
user: Create an unanchored cyan Plastic Block part sized 8x1x4 at position -36,86,-6 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,1,4) part.Position = Vector3.new(-36,8...
start: Make a cylinder that is white and metal at (-10,10,20) size (8,4,6) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Metal part.Color = Color3.new(1,1,1) part.Size = Vector3.new(8,4,6) part.Position = Vector3.new(-10,10,20) part.Anchored = true ...
instruction: Tween Transparency with Circular In easing, 1s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.In, -1, false, 0) local goal = {T...
question: Create a gray sand part with PointLight effect in Roblox model: local part = Instance.new("Part") part.Material = Enum.Material.Sand 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 = Instance.new...
prompt: Make a purple Plastic part with a SpotLight effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 ...
instruction: Make a black Concrete part with a Sparkles effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 = ...
query: Create an unanchored brown Wood Block part sized 10x2x6 at position -5,32,-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(139,69,19) part.Size = Vector3.new(10,2,6) part.Position = Vector3.new(-5,3...
question: Create a pink wood part with Highlight effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 fx = Instance...
question: Create an unanchored blue Plastic Block part sized 6x6x2 at position -9,15,48 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(6,6,2) part.Position = Vector3.new(-9,1...
task: Create an unanchored cyan Plastic Block part sized 8x4x2 at position 18,90,44 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(8,4,2) part.Position = Vector3.new(18,90,44)...
input: Make a cylinder that is lime and foil at (-5,15,5) size (6,2,8) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(6,2,8) part.Position = Vector3.new(-5,15,5) part.Anchored...
input_text: Create an anchored brown Wood Block part sized 12x1x2 at position 0,80,39 in Roblox Luau. finish: 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(12,1,2) part.Position = Vector3.new(0,80,39)...
question: Tween a part's Reflectance with Quint In easing over 3s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.In) local goal = {Reflectance = 0.9} local tween = TweenService:Create(pa...
question: Create an anchored red Wood Block part sized 2x6x1 at position 34,83,-31 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(2,6,1) part.Position = Vector3.new(34,83,-31) p...
input_text: Tween Size with Bounce In easing, 3s duration, 2 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 2, false, 0) local goal = {Size = Vector3.new(8,8,8)} lo...
input: Create a pink grass block at (-5,25,10) size (1,4,1) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(1,4,1) part.Position = Vector3.new(-5,25,10) part.Anchored = true part.P...
user: Script for a BillboardGui that shows the player's name above their head. completion: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local head = character:WaitForChild("Head") local billboard ...
begin: Create an unanchored white Wood Block part sized 1x6x1 at position -5,40,16 in Roblox Luau. finish: 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(1,6,1) part.Position = Vector3.new(-5,40,16) part.Ancho...
start: Create an unanchored cyan Plastic Block part sized 12x6x8 at position 8,6,-45 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(12,6,8) part.Position = Vector3.new(8,6,-4...
input: Make a cyan Wood part with a PointLight effect attached in Roblox Luau. model: 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 = Ins...
task: Tween Color with Circular Out easing, 2s duration, infinite repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, -1, false, 0) local goal = {Color = Color...
task: Create an unanchored cyan Plastic Block part sized 2x1x1 at position -49,83,-30 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(2,1,1) part.Position = Vector3.new(-49,83...
prompt: Create a TextLabel saying "Shop" with Ubuntu font with background Color3.fromRGB(255,128,0) 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,150,0.1,0) elem.Pos...
instruction: Create a gray slate cylinder at (10,20,-10) size (6,4,2) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(6,4,2) part.Position = Vector3.new(10,20,-10) part.Anchored...
question: Create an anchored yellow Wood Block part sized 2x4x10 at position 27,13,-44 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(2,4,10) part.Position = Vector3.new(27,13,-4...
instruction: Create an unanchored teal Plastic Block part sized 4x2x2 at position -17,23,37 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(4,2,2) part.Position = Vector3.new(...
prompt: Write Roblox Luau code to Fade a part to invisible over 1.1 seconds using a tween. answer: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("FadePart") local tweenInfo = TweenInfo.new(1.1, Enum.EasingStyle.Linear) local goal = { Transparency = 1 } local tween = T...
question: Tween Position with Cubic In easing, 2s duration, 2 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, true, 0) local goal = {Position = Vector3.new(10,5,0)}...
start: Implement a way to a smoke particle effect attached to a part. completion: local part = workspace:WaitForChild("EffectPart") local particles = Instance.new("ParticleEmitter") particles.Color = ColorSequence.new(Color3.fromRGB(100, 100, 100)) particles.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1)...
prompt: Detect Tab key press to dash forward in Roblox completion: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Tab then print("Tab pressed - dash forward!") -- Ad...
prompt: Create an anchored orange Plastic Block part sized 2x2x2 at position -9,37,-7 in Roblox Luau. end: 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(2,2,2) part.Position = Vector3.new(-9,37,-7)...
begin: I need to a RemoteFunction called "GetInventory" that returns data from the server to the client. completion: -- Server Script local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteFunction = Instance.new("RemoteFunction") remoteFunction.Name = "GetInventory" remoteFunction.Parent = Replic...
begin: I need to Cast a ray from the player's camera in the look direction for 200 studs. result: 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 ...
question: Tween a part's Reflectance with Sine Out easing over 3s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) local goal = {Reflectance = 0.9} local tween = TweenService:Create(part, i...
prompt: Script a block with wood material colored purple at (-5,1,-10) size (6,2,4) in Roblox. 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,4) part.Position = Vector3.new(-5,1,-10) part.A...
instruction: Create a TextButton saying "Loading..." with Nunito font with background Color3.fromRGB(50,200,50) 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.3,0,0,6...
instruction: Tween Reflectance with Back Out easing, 0.25s duration, 2 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 2, true, 0) local goal = {Reflectance = 0.9} loc...
instruction: Tween Size with Quart Out easing, 5s duration, 1 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 1, true, 0) local goal = {Size = Vector3.new(8,8,8)...
begin: Tween Color with Exponential InOut easing, 2s duration, infinite repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Color ...
task: Spawn a brown marble block part at (-10,25,-5) size (6,4,4) in Roblox. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(6,4,4) part.Position = Vector3.new(-10,25,-5) part.Anchored = false...
query: Create an unanchored orange Wood Block part sized 4x1x1 at position 5,58,4 in Roblox Luau. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(4,1,1) part.Position = Vector3.new(5,58,4) par...
start: Tween a part's CFrame with Sine In easing over 1s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenSe...
prompt: Create a part that is silver, transparency 1, CanCollide=true, Reflectance=0.5. answer: local part = Instance.new("Part") part.Color = Color3.fromRGB(192, 192, 192) part.Transparency = 1 part.CanCollide = true part.Reflectance = 0.5 part.Anchored = true part.Parent = workspace
prompt: Tween Position with Linear InOut easing, 5s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Position = V...
start: Create an unanchored red Wood Block part sized 10x4x1 at position 26,33,37 in Roblox Luau. end: 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,4,1) part.Position = Vector3.new(26,33,37) part.An...
begin: Tween Position with Back In easing, 4s duration, 2 repeats, non-reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Back, Enum.EasingDirection.In, 2, false, 0) local goal = {Position = Vector3.new(10,5,0)}...
user: Create an anchored white Wood Block part sized 1x4x2 at position -9,10,-44 in Roblox Luau. finish: 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(1,4,2) part.Position = Vector3.new(-9,10,-44) part.Anchor...
prompt: Tween a part's CFrame with Back InOut easing over 1s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = Tween...
input_text: Create an anchored green Wood Block part sized 8x2x2 at position -50,82,-9 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(8,2,2) part.Position = Vector3.new(-50,82,-9)...
prompt: Tween Color with Back 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.Back, Enum.EasingDirection.In, 2, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} loc...
input_text: Create an anchored black Plastic Block part sized 6x4x2 at position 26,83,-12 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(6,4,2) part.Position = Vector3.new(26,83,-1...
begin: Make a block that is orange and granite at (10,1,0) size (6,4,4) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(6,4,4) part.Position = Vector3.new(10,1,0) part.Anchored = true...
prompt: Make a pink Wood part with a Fire effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 fx = ...