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

How do i get all the players in the workspace?

How do I get all the players in the workspace ive tried this but it doesn't work

for i,v in pairs(game.Players:GetPlayers()) do local camera=script.cameraManip:Clone() camera.Parent=v end

1 answer

for i,v in pairs(game.Players:GetPlayers()) do
	local camera = script.cameraManip:Clone()
	camera.Parent = v.Character
end

A player doesn't actually exist in the Workspace. Each player has a "Character" model in the Workspace that has the arms and legs and torso. It represents the physical person in the game.

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