How to detect from a LocalScript if a player touches a part or not?

Title says it all.


Consider using a .Touched event.

local Part = script.Parent

Part.Touched:Connect(function() -- Touched Event
 -- Code
end)

How do you detect it if a player does not touch it?

If a Player Does not Touch it the function wont run

What are you trying to Make? I can Help You Accordingly
if You tell me that.

local Part = script.Parent

Part.Touched:Connect(function()
end)

Part.TouchEnded:Connect(function()
end)
1 Like

This would Run if the Player Touches the Part then Moves away from it.
Im Pretty Sure he was Asking How to detect if a player does not even touch it Above

I know, just if he needs it its there :slight_smile: