Stuck when attempting to replace the .Touched() event with the :wait() method. Help?
So I'm testing a different way to make some of my scripts more efficient by using the :wait() method instead of the .Touched() event, because the .Touched() event can fire multiple times before a debounce can even trigger. My only issue is getting the player after the part is touched. Here is what I have so far:
1 | repeat until game:GetService( "Players" ):GetPlayerFromCharacter(Part.Touched:wait().Parent) |
Is there any possible way to find out which Character would've touched the part to trigger the event? All help is appreciated.