player = game.Players.LocalPlayer mouse = player:GetMouse() tool = script.Parent function Activate() print(mouse.hit.p) end script.Parent.Activated:connect(Activate)
Make sure its a localscript