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

How do I call all Workspace Players?

I cannot work out how to find the Players in Workspace

4 comments

1

Why not just do game.Players:GetPlayers()? Unless you're doing something specific with the players?

0

how would that work if i want to change their humanoid properties

1

player.Character

0

sorry for never accepting an answer, came back just a while ago and noticed this and answered it

3 answers

✓ Accepted answer
local Players = game.Players:GetPlayers()
for i,v in pairs(Players) do
v.Charcater -- do stuff with character
v -- do stuff with player
end

1 comment

0

charcater

There you go bud

for _,character in pairs(game.Players:GetPlayers()) do
	character:WaitForChild("Humanoid").WalkSpeed=100 -- Block of code here.
end

Imma post what i would do in this case

for i,players in pairs(game.Players:GetChildren())do
	local myPlayerWork = workspace:FindFirstChild(players.Name)
	if myPlayerWork then
		--This to do with the character
	end
end

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