text
stringlengths
54
19.6k
input_text: Show me how to Attach a 3D sound to a part so it fades based on distance. answer: local part = workspace:WaitForChild("SoundPart") local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID sound.Volume = 1 sound.Looped = true sound.RollOffMode = Enum.RollOffM...
question: Tween Position with Cubic Out easing, 3s duration, infinite repeats, reversing in Roblox. answer: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, -1, true, 0) local goal = {Position = Vector3.ne...
start: Create an anchored red Plastic Block part sized 12x1x2 at position 1,32,-32 in Roblox Luau. solution: 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,1,2) part.Position = Vector3.new(1,32,-32...
input_text: Script for an Instance of type BodyPosition and configure its properties. finish: local instance = Instance.new("BodyPosition") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
instruction: Create an unanchored green Wood Block part sized 2x4x10 at position 0,49,-29 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,0) part.Size = Vector3.new(2,4,10) part.Position = Vector3.new(0,49...
input_text: Tween Transparency with Quint InOut easing, 4s duration, 1 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 1, false, 0) local goal = {Transparen...
prompt: Create an anchored blue Plastic Block part sized 12x2x10 at position -36,60,-41 in Roblox Luau. finish: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(12,2,10) part.Position = Vector3.new(-36,...
user: Create an anchored brown Wood Block part sized 12x2x8 at position -19,29,6 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(12,2,8) part.Position = Vector3.new(-19,29,6) par...
input_text: Create a blue granite ball at (0,20,20) size (8,2,1) in Roblox. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.Granite part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,2,1) part.Position = Vector3.new(0,20,20) part.Anchored = true part.Par...
begin: Create a TextLabel saying "Close" top-left in Roblox GUI solution: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextLabel") ele...
query: Create an anchored teal Plastic Block part sized 1x6x4 at position 0,93,-33 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(1,6,4) part.Position = Vector3.new(0,93,-3...
start: Create a brown metal part with PointLight effect in Roblox result: local part = Instance.new("Part") part.Material = Enum.Material.Metal 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 local fx = Instance.new(...
user: Make a black Slate part with a Smoke effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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("Sm...
task: Create an anchored blue Plastic Block part sized 8x1x2 at position 39,63,-35 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,0,255) part.Size = Vector3.new(8,1,2) part.Position = Vector3.new(39,63,-35) p...
query: Write client-side code to fire a RemoteEvent called "PlayerAction" to the server. model: local ReplicatedStorage = game:GetService("ReplicatedStorage") local remoteEvent = ReplicatedStorage:WaitForChild("PlayerAction") local data = { action = "request", timestamp = os.clock() } remoteEvent:FireServer(...
instruction: Create an anchored red Plastic Block part sized 10x2x2 at position 16,69,37 in Roblox Luau. model: 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(10,2,2) part.Position = Vector3.new(16,69...
input_text: Create an anchored pink Plastic Block part sized 4x1x1 at position 46,90,35 in Roblox Luau. finish: 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(4,1,1) part.Position = Vector3.new(46...
input_text: Tween Transparency with Quint Out easing, 0.25s duration, 1 repeats, non-reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 1, false, 0) local goal = {Transparen...
question: Create an unanchored red Plastic Block part sized 1x4x2 at position 20,38,30 in Roblox Luau. response: 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(1,4,2) part.Position = Vector3.new(20,38...
task: Create a orange corrodedmetal block at (10,10,10) size (1,6,8) in Roblox. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.CorrodedMetal part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(1,6,8) part.Position = Vector3.new(10,10,10) part.Anchored...
query: Tween Color with Quart Out easing, 0.25s duration, 3 repeats, non-reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, false, 0) local goal = {Color = Color3.fromR...
prompt: Create an anchored purple Plastic Block part sized 8x4x2 at position -9,78,38 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(8,4,2) part.Position = Vector3.new(-9,78,3...
input_text: Tween a part's Color with Elastic InOut easing over 1s in Roblox solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut) local goal = {Color = Color3.fromRGB(255,0,0)} local tween = Twee...
user: Show me how to a tween that loops 2 times and reverses. output_text: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("LoopPart") local tweenInfo = TweenInfo.new( 1, -- Duration Enum.EasingStyle.Sine, -- EasingStyle Enum....
prompt: Create an anchored brown Wood Block part sized 1x1x8 at position 18,78,-45 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,1,8) part.Position = Vector3.new(18,78,-45) p...
user: Write a Roblox script to an Instance of type BodyGyro and configure its properties. response: local instance = Instance.new("BodyGyro") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
input: Create an unanchored black Plastic Block part sized 6x1x2 at position -50,93,-46 in Roblox Luau. finish: 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,1,2) part.Position = Vector3.new(-50,93,-46) ...
input: Tween a part's Position with Exponential InOut easing over 1s in Roblox completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut) local goal = {Position = Vector3.new(10,5,0)} local tween...
task: Create an anchored brown Plastic Block part sized 1x4x1 at position 38,84,41 in Roblox Luau. output: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(1,4,1) part.Position = Vector3.new(38,84,41)...
task: Make a script that a ProximityPrompt on a sign part that says "Read Sign" with hold duration 0.6s and max distance 7. output: local part = script.Parent local prompt = Instance.new("ProximityPrompt") prompt.ActionText = "Read Sign" prompt.ObjectText = "Sign" prompt.KeyboardKeyCode = Enum.KeyCode.E prompt.HoldDu...
query: Create an anchored orange Wood Block part sized 6x1x1 at position -46,69,17 in Roblox Luau. solution: 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(6,1,1) part.Position = Vector3.new(-46,69,17)...
instruction: Tween Transparency with Sine Out easing, 1s duration, infinite repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, true, 0) local goal = {Transparency = 0...
question: Create an anchored purple Wood Block part sized 2x1x6 at position 17,43,26 in Roblox Luau. model: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(2,1,6) part.Position = Vector3.new(17,43,26) p...
input_text: Create a teal sand part with Smoke effect in Roblox response: local part = Instance.new("Part") part.Material = Enum.Material.Sand 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("...
task: Can you write code to Add a BlurEffect post-processing effect to the game's Lighting. response: local Lighting = game:GetService("Lighting") local effect = Instance.new("BlurEffect") effect.Size = 10 effect.Parent = Lighting
prompt: Make a white Wood part with a Sparkles effect attached in Roblox Luau. end: local part = Instance.new("Part") part.Material = Enum.Material.Wood part.Color = Color3.new(1,1,1) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.new(...
query: Tween CFrame with Back InOut easing, 0.5s duration, 1 repeats, reversing in Roblox. response: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 1, true, 0) local goal = {CFrame = part.CFrame*CFram...
task: Create an anchored blue Wood Block part sized 10x2x4 at position 7,9,1 in Roblox Luau. end: 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,4) part.Position = Vector3.new(7,9,1) part.Anchored =...
question: Create an unanchored pink Wood Block part sized 6x1x4 at position -9,14,39 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(6,1,4) part.Position = Vector3.new(-9,...
input: How do I prevent exploiters from cheating with RemoteEvents? completion: -- Never trust the client! Always validate on the server. -- BAD: Trusting client data remoteEvent.OnServerEvent:Connect(function(player, coins) player.leaderstats.Coins.Value = coins -- Exploiter can send any value! end) -- GOOD: Se...
input_text: Make a script that Tween a part to position (-4, 10, 22) over 2.8 seconds using Quint easing (Out). response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 2.8, Enum.EasingStyle.Quint, Enum.EasingDirecti...
instruction: Create an anchored gold Plastic Block part sized 1x1x10 at position 8,39,22 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(1,1,10) part.Position = Vector3.new(8,...
input_text: Make a black Plastic part with a SpotLight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 =...
input: Tween Transparency with Quad Out easing, 3s duration, 0 repeats, non-reversing in Roblox. solution: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0) local goal = {Transparency = 0.8} loc...
input_text: Tween Transparency with Quint InOut easing, 5s duration, 0 repeats, reversing in Roblox. completion: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut, 0, true, 0) local goal = {Transparency = ...
task: Can you write code to When a player touches a part, speed boost the player. output_text: local part = script.Parent local debounce = {} part.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") local player = game:GetSe...
user: Create a purple grass part with Smoke effect in Roblox completion: local part = Instance.new("Part") part.Material = Enum.Material.Grass part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(4,4,4) part.Position = Vector3.new(0,5,0) part.Anchored = true part.Parent = workspace local fx = Instance.new("...
input: Create a TextLabel saying "Loading..." with Oswald font with background Color3.fromRGB(128,0,255) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.5,0,0,40) elem...
start: Create an anchored gold Plastic Block part sized 2x6x2 at position 40,73,46 in Roblox Luau. end: 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(2,6,2) part.Position = Vector3.new(40,73,46) pa...
question: Detect R key press to sprint in Roblox answer: local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.R then print("R pressed - sprint!") -- Add your sprint code h...
prompt: Tween Position with Bounce In easing, 0.25s duration, 3 repeats, reversing in Roblox. result: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 3, true, 0) local goal = {Position = Vector3.new(10...
input_text: Create a TextLabel saying "No" with LuckiestGuy font with background Color3.fromRGB(200,50,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,150,0,60) elem....
user: Tween Size with Quint In easing, 0.75s duration, 3 repeats, non-reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 3, false, 0) local goal = {Size = Vector3.new(8,8,8)} loca...
instruction: Create a TextButton saying "Equip" bottom-center in Roblox GUI output: local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local elem = Instance.new("TextB...
query: Create a cyan plastic part with Highlight effect in Roblox end: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 = Instance.new("...
prompt: What's the code to an Instance of type BodyForce and configure its properties. output: local instance = Instance.new("BodyForce") -- Configure properties as needed instance.Parent = workspace:WaitForChild("TargetPart") -- To remove later: -- instance:Destroy()
query: Create a Axe tool that deals 10 damage when activated. output_text: local tool = script.Parent local damage = 10 local debounce = false local cooldown = 0.5 tool.Activated:Connect(function() if debounce then return end debounce = true local character = tool.Parent local humanoid = characte...
prompt: Tween Color with Quad 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.Quad, Enum.EasingDirection.Out, 0, true, 0) local goal = {Color = Color3.fromRGB(255,0,0)} local ...
input_text: Create an unanchored pink Plastic Block part sized 1x1x10 at position -41,48,40 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(1,1,10) part.Position = Vect...
task: Tween a part's CFrame with Circular Out easing over 3s in Roblox output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out) local goal = {CFrame = part.CFrame * CFrame.new(0,10,0)} local tween ...
user: Create a TextButton saying "Shop" with SourceSansBold font with background Color3.fromRGB(0,0,0) in Roblox GUI. response: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0.5,0,0.1,0) el...
user: Tween Reflectance with Back InOut 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.Back, Enum.EasingDirection.InOut, 0, false, 0) local goal = {Reflectance = 0.9...
begin: Tween Size with Bounce In easing, 1s duration, infinite repeats, reversing in Roblox. finish: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, -1, true, 0) local goal = {Size = Vector3.new(8,8,8)} l...
query: Use CollectionService to tag and manage groups of objects. model: local CollectionService = game:GetService("CollectionService") -- Tag objects local function setupLava(part) part.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstCh...
question: Create a part that is navy, transparency 0.25, CanCollide=true, Reflectance=0. finish: local part = Instance.new("Part") part.Color = Color3.fromRGB(0, 0, 128) part.Transparency = 0.25 part.CanCollide = true part.Reflectance = 0 part.Anchored = true part.Parent = workspace
instruction: Create an unanchored green Plastic Block part sized 4x6x2 at position 48,18,47 in Roblox Luau. solution: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(0,255,0) part.Size = Vector3.new(4,6,2) part.Position = Vector3.new(...
query: Create an unanchored gold Plastic Block part sized 4x1x1 at position -17,39,31 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(4,1,1) part.Position = Vector3.new(-17,39,...
instruction: Make a black Slate part with a PointLight effect attached in Roblox Luau. result: local part = Instance.new("Part") part.Material = Enum.Material.Slate 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 = I...
task: Create a TextButton saying "Cancel" with LuckiestGuy font with background Color3.fromRGB(30,30,40) in Roblox GUI. answer: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextButton") elem.Size = UDim2.new(0,200,0.08,0) e...
start: Create an anchored cyan Wood Block part sized 12x1x4 at position -37,55,39 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(12,1,4) part.Position = Vector3.new(-37,55,...
input_text: Create an unanchored green Plastic Block part sized 4x2x2 at position -2,54,8 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(4,2,2) part.Position = Vector3.new(-2,5...
task: Tween a part's Transparency with Quint 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.Quint, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Creat...
input: Make a green Plastic part with a Smoke effect attached in Roblox Luau. finish: local part = Instance.new("Part") part.Material = Enum.Material.Plastic 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 = In...
instruction: Script a cylinder with smoothplastic material colored pink at (0,10,10) size (6,6,4) in Roblox. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Cylinder part.Material = Enum.Material.SmoothPlastic part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(6,6,4) part.Position = ...
prompt: Tween a part to position (-24, 45, 24) over 3.0 seconds using Circular easing (Out). completion: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("MovingPart") local tweenInfo = TweenInfo.new( 3.0, Enum.EasingStyle.Circular, Enum.EasingDirection.Out ) loca...
user: Create a TextLabel saying "Welcome!" with RobotoMono font with background Color3.fromRGB(30,30,40) 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(0.2,0,0.1,0) elem...
instruction: Tween a part's color to RGB(149, 219, 0) over 2.0 seconds. response: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ColorPart") local tweenInfo = TweenInfo.new(2.0, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) local goal = { Color = Color3.fromRGB(14...
start: Create an anchored red Plastic Block part sized 4x1x6 at position -23,70,46 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(4,1,6) part.Position = Vector3.new(-23,70,46) ...
question: Create an anchored brown Plastic Block part sized 8x2x6 at position 10,30,-22 in Roblox Luau. output_text: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Plastic part.Color = Color3.fromRGB(139,69,19) part.Size = Vector3.new(8,2,6) part.Position = Vector3.new...
input: Tween Color with Back Out easing, 0.75s duration, 2 repeats, non-reversing in Roblox. model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.75, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 2, false, 0) local goal = {Color = Color3.fromRGB(255,...
task: Create an anchored green Plastic Block part sized 1x6x4 at position 17,15,45 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(1,6,4) part.Position = Vector3.new(17,15,4...
task: Spawn a yellow forcefield ball part at (20,20,10) size (6,1,1) in Roblox. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Ball part.Material = Enum.Material.ForceField part.Color = Color3.fromRGB(255,255,0) part.Size = Vector3.new(6,1,1) part.Position = Vector3.new(20,20,10) part.Anchore...
instruction: Create an unanchored pink Wood Block part sized 10x6x4 at position 18,7,34 in Roblox Luau. end: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,100,200) part.Size = Vector3.new(10,6,4) part.Position = Vector3.new(18,7,34...
input_text: Create an unanchored orange Wood Block part sized 10x4x1 at position -29,24,-8 in Roblox Luau. completion: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(255,128,0) part.Size = Vector3.new(10,4,1) part.Position = Vector3.new...
start: Create an anchored purple Wood Block part sized 12x6x10 at position -50,48,50 in Roblox Luau. answer: local part = Instance.new("Part") part.Shape = Enum.PartType.Block part.Material = Enum.Material.Wood part.Color = Color3.fromRGB(128,0,255) part.Size = Vector3.new(12,6,10) part.Position = Vector3.new(-50,48,5...
question: Tween a part's Transparency with Bounce In easing over 3s in Roblox end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.In) local goal = {Transparency = 0.8} local tween = TweenService:Create(part,...
task: Create a TextLabel saying "Welcome!" with Bangers font with background Color3.fromRGB(50,50,80) in Roblox GUI. finish: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0,200,0,40) elem.Po...
question: Create an unanchored gray Plastic Block part sized 2x4x6 at position -15,100,-43 in Roblox Luau. model: 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,4,6) part.Position = Vector3.new(...
input_text: Give me a script for Prompt a player to purchase a developer product and handle the receipt. output: local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local PRODUCT_ID = 0 -- Replace with your Developer Product ID local function promptPurchase(pla...
begin: Create a TextLabel saying "Retry" with RobotoMono font with background Color3.fromRGB(128,0,255) 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,50) e...
query: Create a TextLabel saying "Start" with Michroma font with background Color3.fromRGB(0,120,255) in Roblox GUI. output_text: local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local elem = Instance.new("TextLabel") elem.Size = UDim2.new(0.5,0,0,40) el...
prompt: Create an anchored blue Plastic Block part sized 2x6x6 at position 42,25,-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,0,255) part.Size = Vector3.new(2,6,6) part.Position = Vector3.new(42,25...
user: Tween a part's Transparency with Quad InOut easing over 0.5s in Roblox model: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) local goal = {Transparency = 0.8} local tween = TweenService:Create(p...
query: Tween a part's size to (14, 20, 1) over 2.2 seconds. solution: local TweenService = game:GetService("TweenService") local part = workspace:WaitForChild("ScalePart") local tweenInfo = TweenInfo.new(2.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = { Size = Vector3.new(14, 20, 1) } local ...
user: Create an unanchored red Wood Block part sized 1x2x2 at position -34,38,42 in Roblox Luau. answer: 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,2,2) part.Position = Vector3.new(-34,38,42) part....
task: Tween Reflectance with Quart In easing, 4s duration, 1 repeats, reversing in Roblox. end: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 1, true, 0) local goal = {Reflectance = 0.9} local tween = Tw...
query: Tween Position with Quart InOut easing, 0.25s duration, 3 repeats, reversing in Roblox. output_text: local TweenService = game:GetService("TweenService") local part = workspace.MyPart local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 3, true, 0) local goal = {Position = Vector...
instruction: Implement a way to Apply a VectorForce of (247, 1450, 249) to a part using an Attachment. end: local part = workspace:WaitForChild("ForcePart") local attachment = Instance.new("Attachment") attachment.Parent = part local vectorForce = Instance.new("VectorForce") vectorForce.Force = Vector3.new(247, 1450...
begin: Create an anchored white Wood Block part sized 10x1x10 at position -17,95,31 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(10,1,10) part.Position = Vector3.new(-17,95,31) part.A...
start: Create a TextButton saying "Buy" with Bangers 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("TextButton") elem.Size = UDim2.new(0,150,0.08,0) el...