Hello guys,so my problem is when I use the function GetPlayers() you basically get all players in the server, for example:
--...
local list = game:GetService('Players'):GetPlayers()
for i,v in pairs(list) do
repeat
wait(0.5)
LocalPlayer.CFrame = v.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1) until v.Character.Humanoid.Health <= 0
end
end
My objetive is doesn't get the LocalPlayer, just other players. (Bc "local player" is you for example and you are a member of players)
Any idea?
Thanks.

3 comments
It doesnt work in this case, thank you anyways.
You cannot do this in a server script as how will the server script know which client to ignore? You must do this in a local script and then possibly fire to the server and then ignore the player who fired to the server.
I used "GetChildren()" and it worked perfectly.