Jul 21, 2024
local part = script.Parent
local part = Instance.new('Part')
part.Parent = game.Workspace
part.Transparency = 0.5
part.CastShadow = false
.task.wait()
for better performance.print('Hi')
or print(5)
, combined: print('Hi ' .. 5)
.print(3 + 3)
results in 6).function add10(x)
local y = x + 10
print(y)
return y
end
add10(2)
.local part = script.Parent
if part.Anchored == true then
part.Color = Color3.fromRGB(255, 0, 0)
else
print('Part is unanchored')
end
killBrick.Touched:Connect(function(touchPart) ... end)
task.wait(math.random(1, 10))
for i = 1, 10 do
part.Size = Vector3.new(part.Size.X + 1, part.Size.Y, part.Size.Z)
task.wait(0.5)
end
while true do
-- Your code here
task.wait(0)
end
local fruits = { bananas = 1, apples = 5, oranges = 2 }
print(fruits.bananas) -- Outputs: 1
in pairs
.