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)