How can i check if the player is still touching a part?
I am trying to make a script that runs while the player is touching the part , its like this
`repeat
humanoid.Health = humanoid.Health + 10
wait(1)
pisando = false
print("cura")
until humanoid.Health == 100 or hit.Parent:IsAncestorOf(hit.Parent:FindFirstChild('Humanoid')) == false`
its just a part of the script
i want to do the function dont repeat when the player is not touching the part