script.Parent.Touched:connect(function(hit) hit.Parent -- Ect end
So i want it to find the hit.parent's Player not its character? Help quickly please,Its for a limited time thing
That's where GetPlayerFromCharacter
comes in handy, example script:
script.Parent.Touched:connect(function(hit) local plr=game.Players:GetPlayerFromCharacter(hit.Parent)--It's getting the Player from the Hit.Parent, which is the Character. print(plr.Name) end)
Locked by woodengop, NinjoOnline, and Perci1
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?