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

How do we detect all the players's characters?

so basically i want to detect everyone's character in the server and i dont know how. i would put a script but i legit dont know where to begin

1 answer

✓ Accepted answer

To get every player's character inside of a server, I would search the workspace for the names of the children of game.Players. Here's an example snippet of code for you:

for i,v in pairs(game.Players:GetChildren()) do
	if workspace:FindFirstChild(v.Name) then
		local Character = workspace:FindFirstChild(v.Name)
		--do code here
	end
end

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