How can I get all players excluding the local player? [Solved]
Asked by
6 years ago Edited 6 years ago
Hello guys,so my problem is when I use the function GetPlayers()
you basically get all players in the server, for example:
03 | local list = game:GetService( 'Players' ):GetPlayers() |
05 | for i,v in pairs (list) do |
08 | LocalPlayer.CFrame = v.Character.HumanoidRootPart.CFrame * CFrame.new( 0 , 0 , 1 ) until v.Character.Humanoid.Health < = 0 |
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.