For example using a for pairs loop like this:
for i, v in pairs(game.Players:GetPlayers()) do
How would i get the character of variable v
I understand it is such a simple question. Even a wiki link would be helpful if there is one :)
For example using a for pairs loop like this:
for i, v in pairs(game.Players:GetPlayers()) do
How would i get the character of variable v
I understand it is such a simple question. Even a wiki link would be helpful if there is one :)
for index, plr in pairs(game.Players:GetPlayers()) do
local char = plr.Character or plr.CharacterAdded:wait() -- The 'or' is for when the character is dead or hasn't spawned yet
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thank you!
Np :)