for finding a part the mouse is hovering over
---
player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.Move:connect(function()
if mouse.target then -- lol this is all you need to stop it from breaking
print(mouse.target.Name)
end
end)
for finding the CFrame of the hovering mouse
---
player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.Move:connect(function()
if mouse.hit then
print(mouse.hit)
end
end) |