Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you find the angle of the hit of a mouse?

Trying to do something with CFrame.Angles, but I dunno how to get it from a mouse. This might be a little confusing.

guy=game.Players.hievery1
mouse=guy:GetMouse()
mouse.KeyDown:connect(function(k)
if k=="e" then
local hit=mouse.Hit
-- This is the part where I can't the find the angle of mouse.Hit
end
end)

1 answer

mouse.Hit returns a CFrame of where the mouse is pointing, so mouse.Hit.Angles would return the angle.

1 comment

0

I've tried that. "Angles is not a valid member".

This discussion is preserved as it was. New answers, comments, and votes are closed.