New Rock debris module to make your explosions look cool!

I wanted to open source the first module I just made so that everyone could do simple rock debris

here is the link to the module:

here is an example

first of all you need to require the module by doing

local module = require(Where you put the module.DebrisModule)

and then you have to do

module.Rocks(Origin,Rock number,Color,Material,Can Collide,Trail)

hope you find this usefull

14 Likes

this sounds like it would be good but come on you need to provide us with some more detail about this and provide us with a better documentation on how to use this properly!

3 Likes

I don’t understand why this would be useful.
I get it’s your first module but, you can literally make a function in your script. Using a module just overcomplicates 20 lines of code. Also, velocity is deprecated. You can also add velocity customization, and raycasting to check the ground type, and game.Debris to delete the parts after. You can also add debris rings that go in a circle around the area, like a smash effect.

Overall, It’s ok for a first.

2 Likes

I’ll try to improve it, Thanks :grinning_face_with_smiling_eyes:

1 Like

You are correct. However,

When you use a Module Script, it makes it so it can keep repeating, without overusing your computer/Whatever you use.

Also, it’s more organized so you don’t have to struggle to find that little error in a big 120 line script. Basically why the Module Scripts are there.

Hope this helped, if I am wrong just correct me.

It is a little more advanced but if you learn how to use it correctly (which shouldn’t take long), it should be easy.