text
stringlengths
54
19.6k
start: Create an anchored gray Wood Block part sized 12x6x6 at position -5,78,13 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,6) part.Position = Vector3.new(-5,78,...
start: Make a cylinder that is orange and corrodedmetal at (10,25,20) size (2,4,4) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(2,4,4) part.Position = Vector3.new(10,25,20...
begin: Tween Reflectance with Quart In easing, 4s duration, 3 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 3, false, 0) local goal = {Reflectance = 0.9} local tw...
task: Tween Reflectance with Cubic InOut easing, 1.5s duration, 2 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 2, false, 0) local goal = {Reflectance = 0.9...
instruction: Create an anchored brown Plastic Block part sized 6x2x2 at position 49,42,-32 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,2,2) part.Position = Vector3.new(49...
input: Tween Color with Sine Out easing, 0.75s duration, 2 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 2, true, 0) local goal = {Color = Color3.fromRGB(255...
question: Create an unanchored red Plastic Block part sized 12x2x8 at position 30,31,-15 in Roblox Luau. output: 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,8) part.Position = Vector3.new(30,3...
begin: Create an anchored cyan Plastic Block part sized 6x6x4 at position -27,67,-42 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(6,6,4) part.Position = Vector3.new(-27,67,...
task: Tween Color with Bounce Out easing, 5s duration, 1 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 1, true, 0) local goal = {Color = Color3.fromRGB(255,0,0...
begin: Create an anchored black Plastic Block part sized 8x4x6 at position 6,6,-21 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(0,0,0) part.Size = Vector3.new(8,4,6) part.Position = Vector3.new(6,6,-21) part.Anc...
begin: Create an unanchored teal Plastic Block part sized 4x4x10 at position 48,59,36 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(4,4,10) part.Position = Vector3.new(48,59...
task: Create a teal marble part with Smoke effect in Roblox model: local part = Instance.new("Part") part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(0,128,128) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.new("Smoke...
start: Tween Reflectance with Back Out easing, 5s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 3, false, 0) local goal = {Reflectance = 0.9} local twee...
start: Create a TextLabel saying "Score: 0" with Nunito font with background Color3.fromRGB(200,50,50) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,150,0,40) el...
user: Make a block that is purple and brick at (20,1,10) size (8,4,6) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Brick part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(8,4,6) part.Position = Vector3.new(20,1,10) part.Anchored = true pa...
instruction: Create a TextLabel saying "Start" with Nunito 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("TextLabel") elem.Size = UDim2.new(1,0,0.1,0) elem.Po...
begin: Create an unanchored red Wood Block part sized 12x4x4 at position -50,26,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(12,4,4) part.Position = Vector3.new(-50,26,31) ...
input: Tween CFrame with Circular In easing, 0.5s duration, 3 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame...
task: Tween Transparency with Elastic Out easing, 5s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 3, false, 0) local goal = {Transparency = 0.8} loc...
input_text: Create a black granite part with Sparkles effect in Roblox finish: local part = Instance.new("Part") part.Material = Enum.Material.Granite 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 = Instance.new("...
user: Create a TextLabel saying "Pause" with Michroma font with background Color3.fromRGB(50,200,50) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,60) elem.Pos...
task: Spawn a green plastic ball part at (5,50,10) size (1,2,8) in Roblox. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,2,8) part.Position = Vector3.new(5,50,10) part.Anchored = true part.P...
query: Create an anchored black Plastic Block part sized 10x4x6 at position -5,81,-12 in Roblox Luau. output_text: 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(10,4,6) part.Position = Vector3.new(-5,81,-1...
user: Make a pink Slate part with a PointLight effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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 = ...
prompt: Create a Luau script that will client code that listens for the "AbilityUsed" RemoteEvent from the server. end: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("AbilityUsed") remoteEvent.OnClientEvent:Connect(function(data) print("Received ...
prompt: Script a cylinder with concrete material colored white at (-5,10,5) size (4,2,1) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Concrete part.Color = Color3.new(1,1,1) part.Size = Vector3.new(4,2,1) part.Position = Vector3.new(-5,10,5) part.A...
task: I need to a DataStore script to save and load a player's Deaths value. output_text: local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local dataStore = DataStoreService:GetDataStore("PlayerData") Players.PlayerAdded:Connect(function(player) local key = ...
input_text: Make a gray Slate part with a Highlight effect attached in Roblox Luau. solution: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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 loc...
query: Create a TextLabel saying "Delete" with Ubuntu font with background Color3.fromRGB(200,50,50) in Roblox GUI. output: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,50) elem.Pos...
prompt: Create an unanchored pink Wood Block part sized 10x1x8 at position -22,57,41 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(10,1,8) part.Position = Vector3.new(-2...
begin: Create an unanchored white Plastic Block part sized 4x2x2 at position -39,19,10 in Roblox Luau. response: 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,2,2) part.Position = Vector3.new(-39,19,10) ...
instruction: Help me Add a BloomEffect post-processing effect to the game's Lighting. model: local Lighting = game:GetService("Lighting") local effect = Instance.new("BloomEffect") effect.Intensity = 0.5 effect.Size = 24 effect.Threshold = 0.8 effect.Parent = Lighting
input: Create an unanchored purple Wood Block part sized 12x4x2 at position 34,89,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(12,4,2) part.Position = Vector3.new(34,8...
begin: Create an anchored green Wood Block part sized 1x6x10 at position -24,83,-46 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(1,6,10) part.Position = Vector3.new(-24,83,-...
task: Create a TextButton saying "Shop" with Nunito font with background Color3.fromRGB(30,30,40) 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,40) elem.Position =...
prompt: How do you get a reference to the Chat service in Roblox? output_text: local Chat = game:GetService("Chat")
instruction: Create an anchored purple Plastic Block part sized 12x6x10 at position 40,57,12 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(12,6,10) part.Position = Vect...
task: Tween a part's Size with Sine In easing over 1s in Roblox response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Create(part, inf...
input_text: Tween CFrame with Quart InOut easing, 5s duration, 1 repeats, reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 1, true, 0) local goal = {CFrame = part.CFrame*CFram...
question: Create an anchored gold Plastic Block part sized 10x1x2 at position -18,63,13 in Roblox Luau. solution: 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(10,1,2) part.Position = Vector3.new(-...
question: Tween Transparency with Quart In easing, 2.5s duration, infinite repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In, -1, true, 0) local goal = {Transparency = ...
begin: Create an anchored gray Plastic Block part sized 10x1x1 at position -16,26,-8 in Roblox Luau. completion: 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(10,1,1) part.Position = Vector3.new(...
input: Create an anchored pink Wood Block part sized 6x2x1 at position 44,21,5 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(44,21,5) par...
start: Tween Size with Linear In easing, 1.5s duration, 1 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, true, 0) local goal = {Size = Vector3.new(8,8,8)} local...
input: Spawn a blue neon block part at (-10,5,5) size (1,6,2) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(1,6,2) part.Position = Vector3.new(-10,5,5) part.Anchored = false part....
begin: Tween Reflectance with Circular Out easing, 3s duration, 1 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 1, true, 0) local goal = {Reflectance = 0.9}...
prompt: Create an anchored white Wood Block part sized 6x6x1 at position 22,97,-33 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(6,6,1) part.Position = Vector3.new(22,97,-33) part.Anch...
input: Create an anchored green Plastic Block part sized 1x2x6 at position 32,82,26 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,0) part.Size = Vector3.new(1,2,6) part.Position = Vector3.new(32,82,26) ...
user: Create an unanchored gold Plastic Block part sized 6x2x4 at position -41,3,49 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(6,2,4) part.Position = Vector3.new(-41...
query: Create an unanchored gold Wood Block part sized 8x4x1 at position -9,71,11 in Roblox Luau. response: 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(8,4,1) part.Position = Vector3.new(-9,71,11) p...
question: Tween Transparency with Quart InOut easing, 0.75s duration, 1 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 1, true, 0) local goal = {Transparency = ...
input_text: Tween Color with Quint InOut easing, 2s duration, infinite repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Color = Col...
input_text: Spawn a brown neon cylinder part at (-10,15,0) size (1,1,8) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,1,8) part.Position = Vector3.new(-10,15,0) part.Anchor...
instruction: Tween a part's color to RGB(203, 242, 129) over 0.6 seconds. end: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(203, ...
input_text: Create a TextButton saying "Score: 0" with Oswald 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("TextButton") elem.Size = UDim2.new(0.5,0,0,60...
start: How do I use task.spawn, task.defer, and task.delay? end: -- task.spawn: Runs a function immediately in a new thread task.spawn(function() print("This runs immediately in a new thread") task.wait(5) print("This runs after 5 seconds") end) print("This also runs immediately, doesn't wait for spawn") ...
start: Tween a part's CFrame with Quint In easing over 0.5s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween = TweenServ...
question: Tween a part's Position with Back InOut easing over 2s in Roblox finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.InOut) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService...
query: Write a DataStore script to save and load a player's Kills value. completion: local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local dataStore = DataStoreService:GetDataStore("PlayerData") Players.PlayerAdded:Connect(function(player) local key = "Play...
prompt: Create a TextLabel saying "Shop" with Creepster font with background Color3.fromRGB(40,40,40) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.3,0,0,50) elem....
user: Create an anchored cyan Plastic Block part sized 8x4x4 at position 32,10,45 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,255) part.Size = Vector3.new(8,4,4) part.Position = Vector3.new(32,10,45) par...
task: Create an anchored gold Plastic Block part sized 6x4x10 at position 24,45,-5 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(6,4,10) part.Position = Vector3.new(24,45,-5...
question: Create a TextLabel saying "Welcome!" with Nunito font with background Color3.fromRGB(255,128,0) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0,40) ele...
task: Create a TextButton saying "Settings" with FredokaOne font with background Color3.fromRGB(255,128,0) in Roblox GUI. end: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0,50) elem.P...
instruction: Create an anchored green Plastic Block part sized 4x2x6 at position 49,73,26 in Roblox Luau. finish: 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,2,6) part.Position = Vector3.new(49,7...
input: What's the code to a tween that loops 10 times. end: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("LoopPart") local tweenInfo = TweenInfo.new( 1, -- Duration Enum.EasingStyle.Sine, -- EasingStyle Enum.EasingDirection...
question: Make a teal CorrodedMetal part with a SpotLight effect attached in Roblox Luau. completion: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal 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 =...
input_text: Create an unanchored brown Wood Block part sized 2x1x10 at position -43,77,-24 in Roblox Luau. end: 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(2,1,10) part.Position = Vector3.new(-43,77...
instruction: Create an unanchored blue Wood Block part sized 4x1x1 at position 44,49,-24 in Roblox Luau. completion: 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,1,1) part.Position = Vector3.new(44,4...
instruction: Make a ball that is lime and fabric at (-10,15,-10) size (1,4,4) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Fabric part.Color = Color3.fromRGB(0,255,128) part.Size = Vector3.new(1,4,4) part.Position = Vector3.new(-10,15,-10) part.An...
instruction: Create an unanchored gray Plastic Block part sized 6x4x10 at position 49,21,-48 in Roblox Luau. result: 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(6,4,10) part.Position = Vector3....
input_text: Tween Reflectance with Sine InOut easing, 0.75s duration, 0 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0) local goal = {Reflectance...
input_text: Create a TextLabel saying "Buy" with Oswald font with background Color3.fromRGB(0,120,255) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,60) elem...
task: Create a lime fabric part with Fire effect in Roblox finish: local part = Instance.new("Part") part.Material = Enum.Material.Fabric part.Color = Color3.fromRGB(0,255,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("Fire"...
query: Create an anchored green Plastic Block part sized 8x1x8 at position -9,78,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,255,0) part.Size = Vector3.new(8,1,8) part.Position = Vector3.new(-9,78,...
task: Tween CFrame with Elastic InOut easing, 0.75s duration, 3 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 3, false, 0) local goal = {CFrame = pa...
user: Write Roblox Luau code to Cast a ray from the player's camera in the look direction for 200 studs. completion: local Players = game:GetService("Players") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local mouse = player:GetMouse() local function castRay() local origin = camera.C...
query: Tween Size with Back 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.Back, Enum.EasingDirection.Out, 0, false, 0) local goal = {Size = Vector3.new(8,8,8)} local ...
task: Tween a part's color to RGB(43, 184, 34) over 2.9 seconds. response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.9, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(43, 184, ...
question: Create an unanchored blue Plastic Block part sized 2x1x4 at position 28,69,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,0,255) part.Size = Vector3.new(2,1,4) part.Position = Vector3.new(28...
prompt: Create an anchored white Plastic Block part sized 4x1x4 at position 34,16,45 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(1,1,1) part.Size = Vector3.new(4,1,4) part.Position = Vector3.new(34,16,45) p...
input: Create an unanchored gold Wood Block part sized 1x4x8 at position -19,10,-28 in Roblox Luau. result: 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(1,4,8) part.Position = Vector3.new(-19,10,-28)...
input: Create an unanchored blue Wood Block part sized 12x1x4 at position -2,44,45 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(12,1,4) part.Position = Vector3.new(-2,44,45) par...
query: Script a cylinder with ice material colored magenta at (20,10,5) size (6,1,2) in Roblox. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(6,1,2) part.Position = Vector3.new(20,10,5)...
user: Create a red sand ball at (0,20,0) size (4,1,2) in Roblox. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(4,1,2) part.Position = Vector3.new(0,20,0) part.Anchored = true part.Parent = work...
question: Create a pink glass ball at (20,20,5) size (2,1,8) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Glass part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(20,20,5) part.Anchored = true part.Par...
input: Implement a way to a tween that loops 10 times. output: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("LoopPart") local tweenInfo = TweenInfo.new( 1, -- Duration Enum.EasingStyle.Sine, -- EasingStyle Enum.EasingDirect...
prompt: Create an anchored purple Plastic Block part sized 10x6x10 at position 9,30,1 in Roblox Luau. result: 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,6,10) part.Position = Vector3.new(9,30...
user: Create a TextButton saying "Shop" with Roboto font with background Color3.fromRGB(200,50,50) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0,40) elem.Po...
prompt: Create an unanchored purple Wood Block part sized 6x1x1 at position 33,83,1 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(6,1,1) part.Position = Vector3.new(33,83,1) pa...
start: Create an unanchored black Plastic Block part sized 2x6x4 at position -26,68,37 in Roblox Luau. answer: 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,6,4) part.Position = Vector3.new(-26,68,37) pa...
prompt: Create an anchored teal Plastic Block part sized 6x6x8 at position -44,25,-31 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,6,8) part.Position = Vector3.new(-4...
instruction: Create a TextLabel saying "Close" with Ubuntu font with background Color3.fromRGB(40,40,40) 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,50) elem...
instruction: Tween CFrame with Sine In easing, 0.25s duration, 0 repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0) local goal = {CFrame = part.CFrame*...
prompt: Create a brown corrodedmetal part with PointLight effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace loc...
question: Tween CFrame with Quart Out easing, 0.75s duration, 3 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame....
query: Create an anchored white Plastic Block part sized 2x1x8 at position 10,79,26 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.new(1,1,1) part.Size = Vector3.new(2,1,8) part.Position = Vector3.new(10,79,26) part.Anch...
input: Script a ball with smoothplastic material colored magenta at (20,15,20) size (4,4,8) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(255,0,255) part.Size = Vector3.new(4,4,8) part.Position = Vector3.new(...
task: Make a yellow Wood part with a SpotLight effect attached in Roblox Luau. answer: local part = Instance.new("Part") part.Material = Enum.Material.Wood 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 fx = In...
input_text: Create an anchored pink Plastic Block part sized 2x2x6 at position -38,43,-24 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(2,2,6) part.Position = Vector3.new(...