Making a ground Crater Module work on Walls too for a fighting game

Hello! I’m currently learning scripting and I am using somebody else’s crater module for fighting abilities, currently its only functional on the floor which is great, but some attacks launch the enemies into walls and I want a crater to appear at a 90 degree angle on the wall. I’m not familiar with complex math in scripting and have no idea how to achieve this. I would greatly appreciate some help or a modified module to help make this functionality work.

TLDR: I’m using someone’s crater effect module and I would like it to work on walls instead of just the floor

RBXM with the module script is attached!

CraterModule.rbxm (15.1 KB)

1 Like

Example of the modification I’m trying to achieve

1 Like

Hmm I’ve created my own crater system in the past, I think what I did was create a part that acted as the origin in that that is the point all raycasts would fire from, I then did all the calculations of where the raycasts would fire to by using parts, I then put all the parts in a model and set the cframe of it to face the right direction, and then I sent of the raycasts to detect if it hits anything.

Clearly not the best way to do it but it worked nonetheless.

1 Like

Thank you! Ill try something like this

1 Like

Well if you need any help I’d be glad to help! Just @ me!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.