To be honest am so close to breaking my PC right now,
I have spent the last 2 hours trying to make this work but it’s not so,
The problem am having is that I have a while loop and in that while loop is a for loop that loops for every player in the server and prints their name however, it’s only printing 1 of the players names and when that player leaves it starts printing the next player!
while wait() do
for _, v in pairs(game:GetService("Players"):GetChildren()) do
print(v.Name) -- only prints one player name
end
end
Please help me with this as I really need support on this
ok what script is requiring that one? If its another module script, what script (NOT MODULE) is requiring the modules thats requiring this module
Also please answer my other questions
The script that is requiring the module that is requiring this module is in ServerScriptService and it’s fires the function when it receives the RemoteFunction
Looks fine to me. I tried it in a server script and it runs as expected. Seems like you’re doing something odd when calling this.
You probably have some break condition in there.
while wait() do
for _, v in pairs(game:GetService("Players"):GetChildren()) do
print(v.Name) -- only prints one player name
-- stuff idk ...
break -- the problem
end
end