I know how to get the character form the player but how do I get the player?
player = script.Parent.Parent
player.Character.Torso
but how would i get from the players character to the one in Players?
I know how to get the character form the player but how do I get the player?
player = script.Parent.Parent
player.Character.Torso
but how would i get from the players character to the one in Players?
I know you already found a solution, but just in case anyone else wanted to know, the Players service has a method called GetPlayerFromCharacter.
local character = game.Workspace.Player
local player = game.Players:GetPlayerFromCharacter(character)
And opposite that, the Character member of Player object is a reference to their Character Model, when it isn't nil.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
nvm, got it