Can't get the player object!?

I’m trying to get the player object when a punch is fired, by using target.Parent I can get the player who got hit, and also by using target.Parent.Name I get that user, but for some reason I can’t send the target.Parent/target.Parent.Name/target as a playerObject through fireclient(). I just get the “playerargument must be a playerobject error”

if game.Players[person].LevelsInfo.Level.Value < 30 then
 	print (target.Parent) -- already defined before this
    print (target.Parent.Name) -- just for testing
    print (game.Players[person].LevelsInfo.Level.Value) -- just for testing
 	game.ReplicatedStorage.Remotes.extras.toolowlvl:FireClient(target.Parent) -- error here

– just a tiny part of the script.

target.Parent is probably the character model and not the player. If that’s the case then you can try using Players:GetPlayerFromCharacter(target.Parent) to get the player

1 Like