Also the position changed isn’t working either; it’s supposed to make the highlight vanish if the Player walks away from the Target and the Magnitude of their PrimaryPart positions is above 30 but that doesn’t work either.
-- > Mouse Moved:
if Mouse_Moved.Connected then
print(`Type: {typeof(Mouse_Moved)}`)
Mouse_Moved:Disconnect()
print(`Type: {typeof(Mouse_Moved)}`)
end
-- > Position Changed:
if CFrame_Changed.Connected then
print(`Type: {typeof(CFrame_Changed)}`)
CFrame_Changed:Disconnect()
print(`Type: {typeof(CFrame_Changed)}`)
end
I guesss put a debounce in it cause i think the mouse movement might be the problem,i think when u move right,the thing will detect it twice,so the best will be to use debounce.
THIS ALSO HAPPENS TO MINE TOO.
i fixed it by disconnecting after the i call the function
this might be unrelated to the disconnect not working but you cant use Changed events on physics, such as CFrame. You would need to loop the function in a while true loop or use RunService.Heartbeat