I have this basic line of code:
mouse:GetPropertyChangedSignal("Target"):Connect(update)
However, for some reason, this does not fire the update function. Why?
I have this basic line of code:
mouse:GetPropertyChangedSignal("Target"):Connect(update)
However, for some reason, this does not fire the update function. Why?
For performance reasons many properties such as Mouse.Target and BasePart.Position do not fire Instance.Changed or Instance:GetPropertyChangedSignal events. So you will have to detect when the mouse moves instead, preferably via UserInputService.InputChanged.
Alright, thanks, since a good friend of mine suggested I use GetPropertyChangedSignal (and I had not considered it before).