Hello everyone, I hope you’re having a good day. So I was just doing a project(that I most likely won’t finish) when I encountered a problem, the raycasting wasn’t working. There aren’t any errors in the output tab. Here’s the code :
If the Raycast returns nil, it didn’t hit anything. Currently, the code sends a Raycast from the part and 3 studs above it. It will only return a RaycastResult if there’s a part straight above. To fix this, you can increase the distance of the ray cast like this:
My mistake, it turns out that it was all working, just that the part I was testing it on was exactly the height above the ray, but thanks for all the help, I appreciate it. I would mark them all as solutions but I can’t. @hya123456h@JOSIMA33@nontoxicguy1