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:
repeat until game:GetService("Players"):GetPlayerFromCharacter(Part.Touched:wait().Parent)
--How do we know which Player touched it??
Is there any possible way to find out which Character would've touched the part to trigger the event? All help is appreciated.
