repetindo o roblox do loop
while true do
-- Your script here
-- Every loop needs a wait increment, or your game might crash
wait(1)
end
TB11_4213
while true do
-- Your script here
-- Every loop needs a wait increment, or your game might crash
wait(1)
end
--roblox forloop
for count = 1, 5 do
print(count)
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
--LUA
--A random table
local table = {"hii","another entry","foo"}
--loop through each element of that table
for i,v in pairs(table) do
print("At index " .. i .. " the value is " .. v)
end
--loop 5 times
for i = 1,5,1 do
end
local Table = {"Hello", 1234, "Whatever"}
for i, Entry in pairs(Table) do
print(i)
print(Entry)
end
--> 1
--> Hello
--> 2
--> 1234
--> 3
--> Whatever