Getting player from character that is controlled by player has a built in function
1 | game.Players:playerFromCharacter(character) |
does getting player from character that is not controlled by player have one too?
here's a function you can make:
1 | local function playerFromCharacter(char) |
2 | local player = game.Players [ char.Name ] |
3 | return player |
4 | end |