#Need Help with Raycast

1 messages · Page 1 of 1 (latest)

tiny ember
#

Yo guys can someone pls help me, i do movement game, and in slide i have a problem, when i in wall its need to slow and stop, but mb raycast or smth dont work normally, i tryed, many ways, many raycast modules and tryed do it self butt he wont work normally, in end i so annoyed and used ai, but he didnt fix that

#

In this vers i used Smart Raycast v2

#

If u need all module i back in 4 hours and send it

proper crescent
#

u dont need a module

#

raycasting isnt that hard

#

and why u need raycast for a slide\

#

but like if u wanna raycast jst get the direction

#

then do workspace:raycast

#

jst search up some tutorials

tiny ember
tiny ember
#

Maybe i do smth wrong or idk

#

I really tryed watch tutorials, ask ai and google, i think i do something wrong and dont see it

potent moth
#

Fire a raycast forward by getting the negative of humanoidRootPart's lookvector

#

calculate the distance between the rootPart and the hit ray by subtracting them and doing .Magnitude

#

when that distance reaches a certain value, lower the slide speed or stop it

near flareBOT
#

studio** You are now Level 3! **studio

near flareBOT
#

studio** You are now Level 5! **studio

tiny ember
#

nevermind

#

I fix that

#

I do good all

#

I just added offset for raycast

#

local offsetDistance = -1.5
local wallRayCF = flatCF * CFrame.new(0, 0, offsetDistance)
huh just a few symbols make me crazy 2 days

tiny ember
#

Thanks all