Need help with Raycast collision detection

Hi! I am working on my custom collision detection script but ran into an issue.
I have a custom movement script that moves an anchored part, not the player’s character
I want to check for collisions before moving the part

How would I do this using raycasting? Thanks!

If there’s a part there then move that player in that way.

Do this for every direction and it should be pretty convincing.

I’ve done this before trust me it works well.

Thanks for the help!

diuawduhwidhua

1 Like