how to make a while loop in roblox code example
Example 1: loop true childs roblox
for i,v in pairs(game.Players:GetChildren()) do
-- v is your player
end
Example 2: for i = 1 to n roblox
local n = 10
for i = 1, n do
print('monke god')
end
for i,v in pairs(game.Players:GetChildren()) do
-- v is your player
end
local n = 10
for i = 1, n do
print('monke god')
end