Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can i access the player who touched the part? (FireClient() related problem)

Asked by 5 years ago

Basically, I'm trying to get the player who touched the part, however, I've tried many different methods, and none of them seemed to work. Tried using IsA(), WaitForChild() functions, player.Parent and many others. So is there any possible way? (all of the scripts are placed and written in the correct order)

1 answer

Log in to vote
1
Answered by
aazkao 787 Moderation Voter
5 years ago
Edited 5 years ago

There is a GetPlayerFromCharacter function which returns the player object from the character object

game.Players:GetPlayerFromCharacter(CharacterThatTouched)
Ad

Answer this question