text stringlengths 54 19.6k |
|---|
input_text:
Tween Transparency with Elastic InOut easing, 2.5s duration, 2 repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(2.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Transparenc... |
input:
Create an unanchored white Wood Block part sized 10x4x8 at position -18,55,-7 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,4,8)
part.Position = Vector3.new(-18,55,-7)
part.A... |
input:
Create an anchored gray Wood Block part sized 8x2x1 at position 27,68,-14 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(8,2,1)
part.Position = Vector3.new(27,68,-14)
p... |
user:
Create a TextButton saying "Retry" with FredokaOne font with background Color3.fromRGB(50,50,80) in Roblox GUI.
answer:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextButton")
elem.Size = UDim2.new(0.3,0,0.1,0)
elem... |
task:
Tween Position with Quart Out easing, 0.25s duration, 3 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, true, 0)
local goal = {Position = Vector3.new(10,5... |
user:
Create an unanchored orange Plastic Block part sized 12x6x2 at position 25,4,40 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(12,6,2)
part.Position = Vector3.new(25,4,... |
prompt:
Create an anchored gray Plastic Block part sized 12x2x8 at position 33,62,44 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(12,2,8)
part.Position = Vector3.new(33,6... |
prompt:
Create an anchored red Wood Block part sized 6x1x8 at position 40,66,17 in Roblox Luau.
finish:
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(6,1,8)
part.Position = Vector3.new(40,66,17)
part.An... |
prompt:
Tween Transparency with Sine In easing, 1.5s duration, 3 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 3, false, 0)
local goal = {Transparency = 0.8}
lo... |
task:
Create an anchored gold Wood Block part sized 10x2x1 at position 11,6,-45 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(10,2,1)
part.Position = Vector3.new(11,6,-45)
pa... |
task:
Can you write code to Implement an OOP class pattern in Luau for a game entity.
response:
-- ModuleScript: Entity
local Entity = {}
Entity.__index = Entity
export type EntityData = {
name: string,
health: number,
maxHealth: number,
damage: number,
speed: number,
}
function Entity.new(data: ... |
instruction:
Create an anchored green Wood Block part sized 8x1x8 at position 17,36,39 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(8,1,8)
part.Position = Vector3.new(17,36,39)
p... |
task:
Create a black foil ball at (-10,25,20) size (2,2,8) in Roblox.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.Foil
part.Color = Color3.new(0,0,0)
part.Size = Vector3.new(2,2,8)
part.Position = Vector3.new(-10,25,20)
part.Anchored = false
part.Parent = wor... |
input_text:
Create an unanchored purple Wood Block part sized 8x6x4 at position -6,60,9 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(8,6,4)
part.Position = Vector3.new(-6,60,9)
p... |
instruction:
Make a red Plastic part with a Smoke effect attached in Roblox Luau.
result:
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx ... |
begin:
Create an anchored gray Wood Block part sized 1x1x6 at position -6,62,40 in Roblox Luau.
finish:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(1,1,6)
part.Position = Vector3.new(-6,62,40)
par... |
begin:
Create an anchored gray Wood Block part sized 8x6x6 at position -22,19,-14 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(8,6,6)
part.Position = Vector3.new(-22,19,-14)
pa... |
user:
Play a sound with volume 0.3, pitch 1.5, looped=true.
model:
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://0" -- Replace with your sound asset ID
sound.Volume = 0.3
sound.PlaybackSpeed = 1.5
sound.Looped = true
sound.Parent = workspace
sound:Play()
-- Sound will loop continuously |
question:
Create an anchored white Wood Block part sized 4x6x4 at position 24,50,-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(4,6,4)
part.Position = Vector3.new(24,50,-31)
part.An... |
input_text:
Create an unanchored purple Plastic Block part sized 12x1x4 at position 7,76,4 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(12,1,4)
part.Position = Vector3.new(... |
prompt:
Tween Size with Bounce InOut easing, 0.75s duration, infinite repeats, reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, -1, true, 0)
local goal = {Size = Vector3.... |
input:
Create a TextLabel saying "Exit" with PatrickHand font with background Color3.fromRGB(128,0,255) 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.5,0,0,40)
elem.... |
user:
Create a blue corrodedmetal ball at (20,25,20) size (1,4,4) in Roblox.
solution:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Ball
part.Material = Enum.Material.CorrodedMetal
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(1,4,4)
part.Position = Vector3.new(20,25,20)
part.Anchored = ... |
user:
Create a TextLabel saying "Undo" with GothamBold font with background Color3.fromRGB(255,128,0) in Roblox GUI.
solution:
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local elem = Instance.new("TextLabel")
elem.Size = UDim2.new(0.2,0,0,40)
elem.... |
question:
Create an anchored black Plastic Block part sized 12x1x8 at position -27,41,-32 in Roblox Luau.
model:
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(12,1,8)
part.Position = Vector3.new(-27,41,-32... |
prompt:
Create a TextLabel saying "Settings" with Roboto 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.5,0,0,50)
elem... |
query:
Tween a part's Reflectance with Cubic InOut easing over 3s in Roblox
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(3, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut)
local goal = {Reflectance = 0.9}
local tween = TweenService:Creat... |
prompt:
Spawn a red granite block part at (10,20,10) size (8,1,4) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Granite
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(8,1,4)
part.Position = Vector3.new(10,20,10)
part.Anchored = true
pa... |
input_text:
Create an unanchored pink Wood Block part sized 2x4x2 at position -47,65,6 in Roblox Luau.
output:
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(2,4,2)
part.Position = Vector3.new(-47,65... |
question:
Create an unanchored brown Plastic Block part sized 2x2x2 at position -46,86,23 in Roblox Luau.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(139,69,19)
part.Size = Vector3.new(2,2,2)
part.Position = Vector3.new(-4... |
task:
Create a TextButton saying "Continue" with Roboto font with background Color3.fromRGB(30,30,40) 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.2,0,0.1,0)
... |
input_text:
Create a TextButton saying "Resume" with Michroma font with background Color3.fromRGB(50,200,50) 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,200,0,40)... |
start:
Create a TextLabel saying "Exit" with Creepster font with background Color3.fromRGB(50,50,80) 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,40)
elem.Positi... |
input_text:
Create a TextLabel saying "Close" with Creepster font with background Color3.fromRGB(50,200,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.2,0,0,4... |
input:
Tween CFrame with Exponential Out easing, 0.75s duration, 2 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 2, true, 0)
local goal = {CFrame = part.CFr... |
input_text:
Create an unanchored black Plastic Block part sized 6x2x4 at position 24,32,-21 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,2,4)
part.Position = Vector3.new(24,32,-2... |
prompt:
Create an anchored orange Plastic Block part sized 10x6x1 at position 24,76,-17 in Roblox Luau.
model:
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,6,1)
part.Position = Vector3.new(24,7... |
question:
Tween Position with Circular InOut easing, 0.25s duration, 2 repeats, reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Position = Vecto... |
prompt:
Create an unanchored black Plastic Block part sized 2x4x8 at position -50,100,31 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,4,8)
part.Position = Vector3.new(-50,100,31)... |
task:
Tween Size with Cubic In easing, 1s duration, 0 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 0, false, 0)
local goal = {Size = Vector3.new(8,8,8)}
lo... |
prompt:
Create a rounded Frame with corner radius 24 and a stroke thickness of 2.
response:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local frame = Instance.... |
user:
Create a clickable TextButton that says "Quit" and prints a message when clicked.
response:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
local button = In... |
instruction:
Create an anchored yellow Wood Block part sized 12x1x10 at position 20,16,-29 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,1,10)
part.Position = Vector3.new(... |
query:
Create a Wand tool that deals 25 damage when activated.
output:
local tool = script.Parent
local damage = 25
local debounce = false
local cooldown = 0.5
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = tool.Parent
local humanoid = character:Fi... |
input:
Create an unanchored orange Wood Block part sized 12x1x2 at position -5,39,40 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(12,1,2)
part.Position = Vector3.new(-5,39... |
prompt:
Create a TextButton saying "Help" with Nunito font with background Color3.fromRGB(50,50,80) 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.2,0,0.1,0)
elem.Po... |
question:
Create a TextButton saying "Ready?" with GothamBold 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("TextButton")
elem.Size = UDim2.new(0.2,0,0.08,... |
question:
Tween Transparency with Bounce InOut easing, 1.5s duration, 1 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Transparen... |
user:
Tween a part's Transparency with Quart InOut easing over 0.5s in Roblox
response:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut)
local goal = {Transparency = 0.8}
local tween = TweenService:Cre... |
input:
Make a red Slate part with a Sparkles effect attached in Roblox Luau.
end:
local part = Instance.new("Part")
part.Material = Enum.Material.Slate
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(4,4,4)
part.Position = Vector3.new(0,5,0)
part.Anchored = true
part.Parent = workspace
local fx = Instance... |
question:
Create an anchored cyan Wood Block part sized 8x1x6 at position 43,29,-7 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(0,255,255)
part.Size = Vector3.new(8,1,6)
part.Position = Vector3.new(43,29,-7)
par... |
input:
Create an unanchored pink Wood Block part sized 12x2x1 at position -40,32,48 in Roblox Luau.
answer:
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,2,1)
part.Position = Vector3.new(-40,32,4... |
instruction:
Create an anchored yellow Wood Block part sized 8x2x4 at position -25,61,40 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(8,2,4)
part.Position = Vector3.new(-... |
begin:
Create an unanchored orange Plastic Block part sized 10x2x1 at position 7,40,9 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(10,2,1)
part.Position = Vector3.new(7,40,... |
query:
Tween CFrame with Quad InOut easing, 4s duration, 3 repeats, non-reversing in Roblox.
output_text:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 3, false, 0)
local goal = {CFrame = part.CFrame*C... |
begin:
Create an anchored black Wood Block part sized 10x1x6 at position -50,98,1 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(10,1,6)
part.Position = Vector3.new(-50,98,1)
part.A... |
instruction:
Create an anchored purple Wood Block part sized 4x6x8 at position 0,24,45 in Roblox Luau.
model:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,0,255)
part.Size = Vector3.new(4,6,8)
part.Position = Vector3.new(0,24,45)
... |
start:
Make a script that a clickable TextButton that says "Settings" and prints a message when clicked.
model:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui
loc... |
user:
Create an anchored yellow Wood Block part sized 2x2x10 at position -8,100,-16 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(2,2,10)
part.Position = Vector3.new(-8,10... |
start:
Create an unanchored cyan Plastic Block part sized 10x2x6 at position 18,71,-40 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(10,2,6)
part.Position = Vector3.new(18,71,-... |
task:
Create an anchored white Plastic Block part sized 4x6x10 at position 8,52,23 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,6,10)
part.Position = Vector3.new(8,52,23)
part.... |
input_text:
Create a Axe tool that deals 40 damage when activated.
response:
local tool = script.Parent
local damage = 40
local debounce = false
local cooldown = 0.5
tool.Activated:Connect(function()
if debounce then return end
debounce = true
local character = tool.Parent
local humanoid = charac... |
user:
Create a TextButton saying "Exit" bottom-center in Roblox GUI
completion:
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("TextButto... |
input:
Create an explosion with blast pressure 10 and radius 30 at a part's position.
response:
local part = workspace:WaitForChild("ExplosionPart")
local explosion = Instance.new("Explosion")
explosion.Position = part.Position
explosion.BlastPressure = 10
explosion.BlastRadius = 30
explosion.DestroyJointRadiusPercen... |
query:
Create an unanchored blue Plastic Block part sized 1x1x8 at position -2,42,-23 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(1,1,8)
part.Position = Vector3.new(-2,4... |
begin:
Create an unanchored brown Plastic Block part sized 8x6x1 at position -12,69,9 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(8,6,1)
part.Position = Vector3.new(-1... |
task:
Tween Color with Quart Out easing, 1s duration, 3 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 3, true, 0)
local goal = {Color = Color3.fromRGB(255,0,0)}
loc... |
query:
Cast a ray from the player's camera in the look direction for 200 studs.
response:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local mouse = player:GetMouse()
local function castRay()
local origin = camera.CFrame.Position
local di... |
question:
Tween Position with Cubic In easing, 5s duration, 2 repeats, reversing in Roblox.
model:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Cubic, Enum.EasingDirection.In, 2, true, 0)
local goal = {Position = Vector3.new(10,5,0)}
... |
task:
Create an unanchored blue Plastic Block part sized 4x2x1 at position -37,2,23 in Roblox Luau.
response:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,0,255)
part.Size = Vector3.new(4,2,1)
part.Position = Vector3.new(-37,2,23... |
input:
Create a TextButton saying "Menu" with Bangers font with background Color3.fromRGB(50,200,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(0.2,0,0.1,0)
el... |
input_text:
Create an anchored red Wood Block part sized 12x1x4 at position 50,84,33 in Roblox Luau.
end:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(255,0,0)
part.Size = Vector3.new(12,1,4)
part.Position = Vector3.new(50,84,33)
part... |
start:
Create a TextButton saying "Help" with PatrickHand 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(1,0,0.08,0)
el... |
start:
Make a brown Wood part with a Smoke effect attached in Roblox Luau.
output_text:
local part = Instance.new("Part")
part.Material = Enum.Material.Wood
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 = I... |
question:
Create an anchored cyan Wood Block part sized 1x4x4 at position 47,84,-40 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(1,4,4)
part.Position = Vector3.new(47,84,... |
begin:
Create an anchored cyan Plastic Block part sized 10x6x1 at position -38,37,29 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(10,6,1)
part.Position = Vector3.new(-38,37... |
begin:
Tween Transparency with Exponential InOut easing, 0.5s duration, 2 repeats, reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 2, true, 0)
local goal = {Transp... |
query:
Create an unanchored gold Wood Block part sized 6x6x1 at position -4,100,-43 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,215,0)
part.Size = Vector3.new(6,6,1)
part.Position = Vector3.new(-4,100... |
prompt:
Create an anchored teal Plastic Block part sized 4x6x10 at position -47,38,-17 in Roblox Luau.
end:
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,6,10)
part.Position = Vector3.new(-47,38,... |
input:
Create an unanchored blue Plastic Block part sized 6x6x1 at position 8,12,-10 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(6,6,1)
part.Position = Vector3.new(8,12,-10)... |
prompt:
Tween CFrame with Elastic In easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Elastic, Enum.EasingDirection.In, 1, false, 0)
local goal = {CFrame = part.CF... |
query:
Tween Reflectance with Quart In easing, 4s duration, 2 repeats, non-reversing in Roblox.
end:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(4, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 2, false, 0)
local goal = {Reflectance = 0.9}
local twee... |
user:
Tween Size with Elastic InOut easing, 0.25s duration, 1 repeats, non-reversing in Roblox.
completion:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, 1, false, 0)
local goal = {Size = Vector3... |
user:
Create an unanchored black Plastic Block part sized 10x4x1 at position -19,68,-11 in Roblox Luau.
output:
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,1)
part.Position = Vector3.new(-19,68,-11)... |
begin:
Create an anchored white Wood Block part sized 6x6x6 at position -6,59,0 in Roblox Luau.
output_text:
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,6)
part.Position = Vector3.new(-6,59,0)
part.Anch... |
prompt:
Create an anchored orange Plastic Block part sized 4x1x10 at position 6,45,42 in Roblox Luau.
output:
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(4,1,10)
part.Position = Vector3.new(6,45,... |
start:
Spawn a lime plastic block part at (-5,10,-10) size (4,1,2) in Roblox.
result:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Plastic
part.Color = Color3.fromRGB(0,255,128)
part.Size = Vector3.new(4,1,2)
part.Position = Vector3.new(-5,10,-10)
part.Anchored = fal... |
instruction:
Spawn a green foil cylinder part at (10,25,5) size (1,1,1) in Roblox.
output_text:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Cylinder
part.Material = Enum.Material.Foil
part.Color = Color3.fromRGB(0,255,0)
part.Size = Vector3.new(1,1,1)
part.Position = Vector3.new(10,25,5)
part.Anchored... |
input_text:
Create an unanchored pink Plastic Block part sized 6x4x8 at position -20,48,12 in Roblox Luau.
completion:
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,4,8)
part.Position = Vector3... |
input:
Tween Reflectance with Quint Out easing, 5s duration, infinite repeats, non-reversing in Roblox.
answer:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, -1, false, 0)
local goal = {Reflectance = 0.... |
query:
Tween CFrame with Sine Out easing, 0.75s duration, 1 repeats, non-reversing in Roblox.
solution:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0)
local goal = {CFrame = part.CFrame*CF... |
input:
Create an unanchored gray Wood Block part sized 2x2x4 at position -42,23,-26 in Roblox Luau.
output:
local part = Instance.new("Part")
part.Shape = Enum.PartType.Block
part.Material = Enum.Material.Wood
part.Color = Color3.fromRGB(128,128,128)
part.Size = Vector3.new(2,2,4)
part.Position = Vector3.new(-42,23,-2... |
query:
Tween CFrame with Quint In easing, 0.25s duration, 0 repeats, reversing in Roblox.
result:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.In, 0, true, 0)
local goal = {CFrame = part.CFrame*CFrame.ne... |
start:
Create an unanchored green Wood Block part sized 1x6x6 at position -43,18,-3 in Roblox Luau.
end:
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,6)
part.Position = Vector3.new(-43,18,-3)
part.... |
query:
Tween Size with Sine In easing, 1s duration, 0 repeats, reversing in Roblox.
finish:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, true, 0)
local goal = {Size = Vector3.new(8,8,8)}
local tween =... |
user:
Give me a script for Use DataStore UpdateAsync to safely increment a player's coins.
model:
local DataStoreService = game:GetService("DataStoreService")
local dataStore = DataStoreService:GetDataStore("PlayerCoins")
local function addCoins(userId, amount)
local success, newValue = pcall(function()
r... |
question:
Tween Color with Cubic Out easing, 0.5s duration, 0 repeats, non-reversing in Roblox.
output:
local TweenService = game:GetService("TweenService")
local part = workspace.MyPart
local info = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
local goal = {Color = Color3.fromRGB(... |
prompt:
What's the code to Add a BlurEffect post-processing effect to the game's Lighting.
end:
local Lighting = game:GetService("Lighting")
local effect = Instance.new("BlurEffect")
effect.Size = 10
effect.Parent = Lighting |
task:
Create a TextButton saying "Menu" with Nunito font with background Color3.fromRGB(0,120,255) 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.1,0)
elem.Pos... |
input_text:
Detect End key press to use an ability in Roblox
output:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.End then
print("End pressed - use an ability!")
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.