selene
selene copied to clipboard
Lint probably incorrect uses of ScreenPoint functions vs ViewportPoint functions
local mouseLocation = UserInputService:GetMouseLocation()
local worldPosition = Workspace.CurrentCamera:ScreenPointToRay(mouseLocation.X, mouseLocation.Y
...is very subtly wrong, and will be offset, which you sometimes want, but not with mouse location.
local mouseLocation = UserInputService:GetMouseLocation()
local worldPosition = Workspace.CurrentCamera:ViewportPointToRay(mouseLocation.X, mouseLocation.Y)
...is correct.