#Why is my raycast so bad?

24 messages · Page 1 of 1 (latest)

upper dew
#

Print what is being hit

#

You should be raycasting (goal - start).unit as the direction

#

I dont think thats it tho

coarse crane
#

I just use the module fastcast

upper dew
#

Ok thats not hitscan

#

Yeah but thats not the issue

#

Try running this on the client

#

It might just be latency idk

coarse crane
#

huh?

upper dew
#

sorry im back

#

minor inconvenience

#

part.Size = Vector3.new(thickness, thickness, distance)
part.CFrame = CFrame.new(originPos, mousePos) * CFrame.new(0,0, -distance/2)

#

something liek that

coarse crane
#

you are getting direction correct by subtracting target by start pos?

upper dew
#

oh wait i think i know

#

wait nevermind

coarse crane
#

and then correct me if I am wrong multiply by your range?

upper dew
#

just tried it

#

it works for me

#

what does your localscript look like?

upper dew
#

hm

#

have you tried to visualize it