#Raycasting Bug

1 messages · Page 1 of 1 (latest)

true canyon
#

Raycast randomly deflects at certain ranged and angles when clicking on a character.

true canyon
true canyon
#

bump

acoustic slate
#

maybe instead of mouse.Hit.Position try getting mouse position like this:

local camera = workspace.CurrentCamera

local mouse2Dpos = UserInputService:GetMouseLocation()
local mouse3Dray = camera:ViewportPointToRay(mouse2Dpos.X, mouse2Dpos.Y, 1)
local result = workspace:Raycast(mouse3Dray.Origin, mouse3Dray.Direction * 1000, params)
local mousePosition = result.Position or mouse3Dray.Origin + mouse3Dray.Direction * 1000

#

also render bullets on clients instead of the server

true canyon
charred bronzeBOT
#

studio** You are now Level 1! **studio

acoustic slate
true canyon
true canyon