Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

game.Players:GetPlayerFromCharacter(CharacterThatTouched)

This discussion is preserved as it was. New answers, comments, and votes are closed.