I am making a touched event on a door that makes a GUI appear. But I just realized I need to put it in the player, not the character, except that touched events give the character, not the player. Help?
The GetPlayerFromCharacter
method of game.Players is what you're looking for:
part.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then --code end end)