y_symp
(y_symp)
February 28, 2022, 11:42pm
1
So I have been hard at work with my wall sliding BUT There has been a BIG Problem.
The Issue is that when you jump off the part the raycast doesn’t work - Leading to the Animation Breaking, The Gravity Breaking, Particles…
I have tried solutions like:
if raycastResult and Enum.HumanoidStateType.Freefall then
end
if Enum.HumanoidStateType and LoadedWallSlideAnim.IsPlaying == false then
end
HELP IS APPRECIATED A TON
Reditect
(Reditect)
March 1, 2022, 12:05am
2
Raycasts return whatever they hit. If it is not working, then it is most likely not hitting anything.
I don’t really know what direction you are shooting the raycast, but if it is down and the player is falling the raycast might not hit anything depending on the situation.
These links might help:
Intro to Raycasting
WorldRoot:Raycast
y_symp
(y_symp)
March 1, 2022, 12:38am
3
Reditect:
but if it is down
The raycast is not down and is look vector of Humanoid Root Part
local origin = HumanoidRootPart.Position
local direction = HumanoidRootPart.CFrame.LookVector * 1
And I have checked those links countless times and couldn’t find an answer
Thanks for your attempt though