GetPlayerFromServerId

Hi guys i have a problem to get the value from : GetPlayerFromServerId

I’m trying to get the ID of the player i want to spectate.

So i’m using this : local playerId = GetPlayerFromServerId(playerServerId)
playerServerId is my server ID so 1.
The command should return the value of PlayerId() of the person that i want to spectate.
For me its 128 and for my friend its 127.
But it return me always -1.

I don’t know why and how i could resolve that problem, someone can help me ??
Thank you for your help :smiley:

Ok with that its working : GetPlayerFromServerId(tonumber(playerServerId))