buclă adevărat childs roblox
for i,v in pairs(game.Players:GetChildren()) do
-- v is your player
end
lua în timp ce bucle
--// Basic while true do loop
while true do
--// Looped text
print("Looped Text")
--// Time the loop waits before looping again
wait(1)
end
roblox repetați până când
repeat
spawnGoblin()
currentGoblinCount = currentGoblinCount + 1
print("Current goblin count: " .. currentGoblinCount)
until currentGoblinCount == 25
în timp ce în lua
while(condition)
do
statement(s)
end
în timp ce adevărat face lua
while (statement) do
-- code
end