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

Can Someone point me in the right direction?!

I'm a beginner scripter and This will probably be really easy to allot of you buy.. I was wondering if someone could point me in the right direction to get every player in games torso....

1 answer

✓ Accepted answer

This is mostly done via a "for" loop, This loop goes trough every object you assign it to. In this case, we want to check trough all players, and get their torso.

Players = game.Players:GetChildren()

for i=1,#Players do
if Players[i] ~= nil then
	if Players[i].Character ~= nil then
		if Players[i].Character:FindFirstChild("Torso") then

			Players[i].Torso -- DO SOMETHING WITH THE TORSO'S HERE.

		end
	end
end

I hope this helps you out. If you have any other questions, Comment on this awnser or send me a pm. at Roblox.com User: Rubenk11

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