text
stringlengths
54
19.6k
start: Create an unanchored blue Wood Block part sized 8x2x4 at position -11,95,-49 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(8,2,4) part.Position = Vector3.new(-11,95,-4...
question: Create a TextButton saying "Cancel" with RobotoMono font with background Color3.fromRGB(0,120,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.5,0,0.1,0...
query: Make a gold Slate part with a Fire effect attached in Roblox Luau. model: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instanc...
instruction: Create a green diamondplate part with Fire effect in Roblox output_text: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local f...
user: Create an unanchored purple Plastic Block part sized 6x1x10 at position 22,50,36 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(6,1,10) part.Position = Vector3.new(22,50...
instruction: Create an anchored orange Plastic Block part sized 10x2x4 at position 40,90,27 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(10,2,4) part.Position = Vector3.new...
question: Apply a BodyVelocity of (-21, 58, 22) to a part. completion: local part = workspace:WaitForChild("PhysicsPart") local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(-21, 58, 22) bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) bodyVelocity.P = 1250 bodyVe...
input_text: Create an unanchored cyan Wood Block part sized 6x1x6 at position 36,26,-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(0,255,255) part.Size = Vector3.new(6,1,6) part.Position = Vector3.new(36...
begin: Create an anchored black Wood Block part sized 6x2x4 at position 8,73,31 in Roblox Luau. output_text: 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(6,2,4) part.Position = Vector3.new(8,73,31) part.Anch...
question: Code a script that make a kill/death tracking system. output: local Players = game:GetService("Players") local function setupLeaderstats(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local kills = Instance.new("IntValue")...
input: Spawn a yellow ice block part at (-10,25,-10) size (6,6,1) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Ice part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(6,6,1) part.Position = Vector3.new(-10,25,-10) part.Anchored = true ...
question: Write Roblox Luau code to Teleport the player's character to position (46, 91, 39). end: local Players = game:GetService("Players") local function teleportPlayer(player, position) local character = player.Character if character then local rootPart = character:FindFirstChild("HumanoidRootPart...
begin: Create a TextLabel saying "Game Over" with Roboto font with background Color3.fromRGB(200,50,50) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0,60) el...
user: Create a TextLabel saying "Back" with FredokaOne font with background Color3.fromRGB(50,200,50) 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.Posit...
instruction: Create an anchored black Wood Block part sized 4x1x2 at position 4,16,-37 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,1,2) part.Position = Vector3.new(4,16,-37) pa...
question: Create an anchored cyan Plastic Block part sized 4x1x8 at position 15,100,-28 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,255) part.Size = Vector3.new(4,1,8) part.Position = Vector3.new(15...
instruction: Create an unanchored orange Plastic Block part sized 8x4x4 at position -8,1,47 in Roblox Luau. result: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(8,4,4) part.Position = Vector3.new(...
query: Create a TextLabel saying "Score: 0" with Ubuntu font with background Color3.fromRGB(255,128,0) in Roblox GUI. completion: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,60) el...
task: Tween Reflectance with Linear In easing, 2.5s duration, 0 repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, true, 0) local goal = {Reflectance = 0.9} local t...
input: Create a TextLabel saying "Submit" with Roboto font with background Color3.fromRGB(0,120,255) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0.1,0) elem....
start: Create a TextButton saying "Back" with GothamBold 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.3,0,0,60) elem.Po...
query: Tween Color with Circular Out easing, 5s duration, 0 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)}...
input_text: Make a gold Slate part with a SpotLight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Slate part.Color = Color3.fromRGB(255,215,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local f...
start: What's the code to Fade a part to invisible over 2.5 seconds using a tween. output_text: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("FadePart") local tweenInfo = TweenInfo.new(2.5, Enum.EasingStyle.Linear) local goal = { Transparency = 1 } local tween = Twee...
input_text: Create an unanchored brown Plastic Block part sized 10x1x1 at position 34,86,-41 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(10,1,1) part.Position = Vector...
user: Create an unanchored pink Plastic Block part sized 2x6x6 at position -27,58,-45 in Roblox Luau. solution: 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,6,6) part.Position = Vector3.new(-2...
task: Create an unanchored yellow Wood Block part sized 1x1x1 at position 32,90,5 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,255,0) part.Size = Vector3.new(1,1,1) part.Position = Vector3.new(32,90,5)...
task: Detect J key press to trigger an action in Roblox output_text: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.J then print("J pressed - trigger an action!") --...
start: Create an auto-balancing team system that assigns players to Red or Blue teams. model: 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") redTeam.AutoAssigna...
begin: Script a cylinder with corrodedmetal material colored blue at (5,50,10) size (4,2,4) in Roblox. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(4,2,4) part.Position = Vector3.ne...
prompt: Tween Transparency with Linear InOut easing, 0.5s duration, infinite repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true, 0) local goal = {Trans...
prompt: Create a TextLabel saying "Continue" with Oswald font with background Color3.fromRGB(40,40,40) 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.1,0) e...
question: Create an unanchored cyan Plastic Block part sized 12x2x10 at position 0,29,48 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,255) part.Size = Vector3.new(12,2,10) part.Position = Vector3.new(0...
user: Tween Reflectance with Bounce Out easing, 0.75s duration, 0 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0) local goal = {Reflectance = 0.9} l...
start: Spawn a pink foil ball part at (10,20,5) size (2,1,1) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Foil part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(2,1,1) part.Position = Vector3.new(10,20,5) part.Anchored = false part.Paren...
query: Tween Position with Elastic In easing, 2s duration, 1 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 1, false, 0) local goal = {Position = Vector3.new(10,...
task: Make a pink 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(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 = Inst...
input_text: Create an unanchored pink Wood Block part sized 12x1x1 at position 46,4,-7 in Roblox Luau. result: 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(12,1,1) part.Position = Vector3.new(46,4,...
query: Create a TextButton saying "Back" with Nunito font with background Color3.fromRGB(50,200,50) 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.2,0,0.08,0) elem.Posi...
input: Help me a ProximityPrompt on a coin part that says "Collect Coin" with hold duration 1.9s and max distance 10. output: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Collect Coin" prompt.ObjectText = "Coin" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDurat...
question: Tween CFrame with Linear Out easing, 3s duration, 1 repeats, reversing in Roblox. finish: 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 = {CFrame = part.CFrame*CFrame.n...
start: Create an anchored purple Wood Block part sized 4x4x2 at position 6,83,38 in Roblox Luau. solution: 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,4,2) part.Position = Vector3.new(6,83,38) par...
prompt: Create an anchored blue Wood Block part sized 10x2x8 at position 8,60,23 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(10,2,8) part.Position = Vector3.new(8,60,23) part.A...
task: Spawn a black marble block part at (-5,20,20) size (4,6,8) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Marble part.Color = Color3.new(0,0,0) part.Size = Vector3.new(4,6,8) part.Position = Vector3.new(-5,20,20) part.Anchored = false part.Pa...
question: Create an unanchored white Plastic Block part sized 1x6x8 at position 29,85,15 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(1,6,8) part.Position = Vector3.new(29,85,1...
task: Make a teal DiamondPlate part with a PointLight effect attached in Roblox Luau. output_text: 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 = wor...
begin: Create an unanchored cyan Wood Block part sized 10x4x10 at position -40,19,1 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,255) part.Size = Vector3.new(10,4,10) part.Position = Vector3.new(-40,1...
user: Tween Reflectance with Circular InOut easing, 2.5s duration, 3 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Reflectance = 0....
task: Create an anchored black Plastic Block part sized 8x4x10 at position -36,95,-44 in Roblox Luau. result: 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,10) part.Position = Vector3.new(-36,95,-44) p...
instruction: Create an anchored yellow Wood Block part sized 12x2x4 at position -33,35,-44 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,2,4) part.Position = Vector3.new(-...
instruction: Create a green cobblestone part with Fire effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.Cobblestone part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Ins...
begin: Tween Transparency with Bounce InOut easing, 2.5s duration, infinite repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, false, 0) local goal = {Tra...
prompt: Create a TextButton saying "Yes" with LuckiestGuy font with background Color3.fromRGB(0,0,0) in Roblox GUI. finish: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.5,0,0,60) elem.Po...
input: Create an unanchored pink Plastic Block part sized 6x1x6 at position -21,18,-12 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(6,1,6) part.Position = Vector3.new(-21...
instruction: Make a orange DiamondPlate part with a Fire effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.DiamondPlate part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = works...
input_text: Create a TextButton saying "Ready?" with Michroma 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("TextButton") elem.Size = UDim2.new(0,200,0.1,0...
prompt: Tween Size with Quad Out easing, 4s duration, infinite repeats, non-reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, -1, false, 0) local goal = {Size = Vector3.new(8,8,8...
task: Make a cyan Concrete part with a PointLight effect attached in Roblox Luau. output_text: local part = Instance.new("Part") part.Material = Enum.Material.Concrete 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 l...
instruction: Create an unanchored purple Wood Block part sized 6x6x6 at position 7,17,-7 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(6,6,6) part.Position = Vector3.new(7...
start: Create an anchored orange Wood Block part sized 8x4x1 at position 9,14,45 in Roblox Luau. end: 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(8,4,1) part.Position = Vector3.new(9,14,45) part.Anc...
begin: Create a TextLabel saying "Start" with RobotoMono font with background Color3.fromRGB(0,0,0) in Roblox GUI. model: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(1,0,0.08,0) elem.Posit...
query: Tween Color with Elastic In easing, 0.75s duration, 3 repeats, 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.In, 3, true, 0) local goal = {Color = Color3.fromRGB...
input_text: Create an anchored red Plastic Block part sized 12x4x10 at position -24,54,-1 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,4,10) part.Position = Vector3.new(-2...
question: Play a sound with volume 0.9, pitch 1.3, looped=false. result: local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 0.9 sound.PlaybackSpeed = 1.3 sound.Looped = false sound.Parent = workspace sound:Play() -- Clean up when done if not sound....
instruction: Create a clickable TextButton that says "Restart" and prints a message when clicked. output_text: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui loca...
user: Tween CFrame with Bounce InOut easing, 0.75s duration, infinite repeats, non-reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, false, 0) local goal = {CFrame = p...
begin: Tween CFrame with Quint In easing, 0.5s duration, 0 repeats, non-reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, false, 0) local goal = {CFrame = part.CFrame*C...
user: Create an unanchored red Wood Block part sized 1x6x4 at position 48,6,48 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,0,0) part.Size = Vector3.new(1,6,4) part.Position = Vector3.new(48,6,48) part.Anch...
task: Create an unanchored orange Wood Block part sized 4x2x4 at position -19,10,-23 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(4,2,4) part.Position = Vector3.new(-19,10,-23)...
begin: Create a green marble cylinder at (20,20,-10) size (8,6,1) in Roblox. response: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Marble part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(8,6,1) part.Position = Vector3.new(20,20,-10) part.Anchored = fa...
user: Create a TextButton saying "Start" with Bangers font with background Color3.fromRGB(50,200,50) 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(0.2,0,0,40) elem....
start: Tween a part's Position with Linear In easing over 5s in Roblox answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In) local goal = {Position = Vector3.new(10,5,0)} local tween = TweenService:Crea...
instruction: Create an unanchored blue Wood Block part sized 4x2x10 at position -7,27,-11 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(4,2,10) part.Position = Vector3.new(-7,2...
input: Create a TextLabel saying "No" with Oswald font with background Color3.fromRGB(0,120,255) 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.1,0) elem.Positi...
user: Tween CFrame with Bounce InOut easing, 2.5s duration, 3 repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 3, true, 0) local goal = {CFrame = part.CFrame*CFra...
start: Create an anchored gray Plastic Block part sized 2x6x6 at position -23,79,32 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(2,6,6) part.Position = Vector3.new(-23,79...
user: Create a ProximityPrompt on a npc part that says "Talk to NPC" with hold duration 1.1s and max distance 7. result: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Talk to NPC" prompt.ObjectText = "NPC" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDuration = 1...
task: Create an unanchored black Wood Block part sized 2x2x1 at position -29,73,30 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(2,2,1) part.Position = Vector3.new(-29,73,30) part....
input_text: Create an unanchored gray Plastic Block part sized 10x4x4 at position 39,13,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,128,128) part.Size = Vector3.new(10,4,4) part.Position = Vector3.n...
task: Create an unanchored pink Plastic Block part sized 10x2x2 at position -25,44,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(255,100,200) part.Size = Vector3.new(10,2,2) part.Position = Vector3.new...
user: Tween a part to position (-25, 1, -14) over 0.5 seconds using Circular easing (InOut). answer: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut ) local ...
query: Tween a part's Size with Sine InOut easing over 0.5s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = {Size = Vector3.new(8,8,8)} local tween = TweenService:Creat...
query: Tween Position with Elastic Out easing, 0.75s duration, 1 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 1, true, 0) local goal = {Position = Vector3.n...
instruction: Tween CFrame with Circular InOut easing, 0.75s duration, 3 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 3, true, 0) local goal = {CFrame = par...
user: Create a TextLabel saying "Ready?" with Creepster font with background Color3.fromRGB(200,50,50) 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.1,0) ele...
input: Write Roblox Luau code to Set the player's WalkSpeed to 75 and JumpPower to 50. finish: local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.Walk...
instruction: Create an unanchored gray Plastic Block part sized 4x4x6 at position -37,81,38 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(4,4,6) part.Position = Vector3.ne...
question: Create an anchored purple Plastic Block part sized 1x1x2 at position 18,51,17 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(1,1,2) part.Position = Vector3.new(18,5...
instruction: Create an unanchored pink Wood Block part sized 1x4x8 at position 9,46,4 in Roblox Luau. finish: 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,8) part.Position = Vector3.new(9,46,4)...
question: Tween CFrame with Cubic In easing, 4s duration, 3 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 3, true, 0) local goal = {CFrame = part.CFrame*CFrame.n...
user: Tween Color with Cubic In easing, 2.5s duration, 2 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(2.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} loca...
prompt: Create an unanchored brown Wood Block part sized 10x6x6 at position 46,21,-29 in Roblox Luau. result: 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,6,6) part.Position = Vector3.new(46,21,-2...
start: Create a TextButton saying "Back" with RobotoMono font with background Color3.fromRGB(30,30,40) in Roblox GUI. result: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(1,0,0.1,0) elem.P...
task: Create an anchored orange Wood Block part sized 2x2x4 at position -28,85,22 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(2,2,4) part.Position = Vector3.new(-28,85,22) par...
start: Create a TextLabel saying "Pause" with Bangers font with background Color3.fromRGB(40,40,40) 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.5,0,0,60) elem.Posi...
prompt: Create an anchored purple Plastic Block part sized 8x1x2 at position -1,100,-40 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(8,1,2) part.Position = Vector3.new(-1,1...
instruction: Create an anchored orange Plastic Block part sized 6x2x1 at position -11,90,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,128,0) part.Size = Vector3.new(6,2,1) part.Position = Vector3.new(-...
input: Script a cylinder with sand material colored gray at (-10,10,5) size (1,1,8) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.Sand part.Color = Color3.fromRGB(128,128,128) part.Size = Vector3.new(1,1,8) part.Position = Vector3.new(-10,10,5) pa...
begin: Create a orange wood unionoperation at position (-50, 66, 18) with size (9, 2, 14), anchored=true. response: local part = Instance.new("UnionOperation") part.Size = Vector3.new(9, 2, 14) part.Position = Vector3.new(-50, 66, 18) part.Color = Color3.fromRGB(255, 165, 0) part.Material = Enum.Material.Wood part.Anc...
task: Create a TextLabel saying "Score: 0" with Oswald font with background Color3.fromRGB(30,30,40) in Roblox GUI. solution: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.2,0,0,50) elem.P...