Problems with TouchEnded

I’ve been making a basic code that if the player enters a part, it will print “touched” and if he leaves that part he will print “touchended”. The problem is if, for example, I jump inside that part, “touched” and “touchended” will be printed, which in reality should only print “touched”. What am I doing wrong? here is the code:

workspace.Part.Touched:Connect(function()
print(“touch”)
end)

workspace.Part.TouchEnded:Connect(function()
print(“touchended”)
end)

There has been similar topics opened about this. Basically, it isn’t favored among Developers to use both the Touched and TouchEnded event together. If you’re looking to make a zone, try out the ZonePlus plugin, or use Region3.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.