Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Mouse:GetPropertyChangedSignal not working correctly?

Asked by
XTLR 5
5 years ago
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()

Mouse:GetPropertyChangedSignal("Target"):Connect(function()
    print(1)
end

Nothing shows up in the output. I move my mouse around to different objects and it still doesnt work. Mouse.Changed doesnt work either.

1 answer

Log in to vote
0
Answered by 5 years ago
Mouse.Move:Connect(function()
    Mouse:GetPropertyChangedSignal("Target"):Connect(function()
        print(1)
    end)
end)
Ad

Answer this question