Need help in Mouse.Target

Why my script is not working?
it dont print anythings

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local t = mouse.Target

while true do
	local t = mouse.Target
	print(t)
	wait()
end

(this script is in LocalScript)

For me, it prints just fine, make sure the local script is in StarterPlayerScripts folder

1 Like