I want to parent something into a players torso but I need to get the players character first.
I have heard of game.Players:GetPlayerFromCharacter(player)
How would I get the Character from the player?
I want to parent something into a players torso but I need to get the players character first.
I have heard of game.Players:GetPlayerFromCharacter(player)
How would I get the Character from the player?
The Player object has a Character property. This leads to the Character of the Player (if the player has one). For example:
Game.Players.Players.PlayerAdded:connect(function(Player)
repeat wait() until Player.Character --Wait until the Player has a character
Player.Character:Destroy() --Destroy the character
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Adding to what Articulating said the character property is a reference to the players body parts, scripts, animation , clothing etc.
Those are within the Character itself, yes. That isn't relevant to the question.
Okay.