Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can i get every players character using a local script?

How can i get every players character using a local script.

1 answer

local characters = {}

for i, v in pairs(game.Players:GetPlayers()) do
	table.insert(characters, v.Character)
end

4 comments

0

how do i link to every individual character

0

how do i get all individual characters?

0

because v.Character only does local character

1

what i would do is the same as Rinpix says but jut call characters[i] = v.Character. You can then access each of them by calling the character variable like characters[0] or characters[5].

This discussion is preserved as it was. New answers, comments, and votes are closed.