Hello!
So I have some weapons, that works with mouse.Hit.Position, but for some reason, when you are on shiftlock the hit.position is wrong, and more to the left, is there a way to fix this?
That is because when you are in third person shift lock, the mouse is purposely made on the left to not obstruct the players’ view. If you are in first person, it will be in the middle, however.
A solution to this problem can be using mouse.Origin, which starts at the center of the camera.
2 Likes
Yes, but then, how I make a ray according to mouse.Origin if I don’t have hit.P? to make the ray
You can use:
local Ray = Ray.new(Mouse.Origin, Mouse.Origin.Unit * 100) -- Unit is one stud
I believe to make a ray.