Module Scripts and scripts not working properly

Hello there Developers! My name is Nico and once again i’m calling for help.

Recently i’ve decided to make kind of a test game so i had to move a lot of stuff from my other games including models, sounds, scripts, etc…

The thing is that, everything was working well until i started to use my Module Scripts, for some reason they don’t work and they don’t even give me an error, which is very strange, i tried to copy + paste them from my original game where they (module scripts) were created. One of them worked without any problem, but the other one has the same problem, it does not respond, and it even gives me this error that makes 0 sense for me
image

(forgot to clarify that this is the function:
image
and this is the trigger:

Explosion:Explosion(Vector3.new(0,0,0),workspace.Explosions,Time*math.random(2,5),math.random(2,5),math.random(4,8),true)

)

For some reason it says that i sent a “table” when i clearly put Vector3 on it.

I also have another problem with my Main script, basically there’s a part where a meteor is suposed to clone, but when it clones and becomes a part of workspace it is just invisible, i checked up if it was the transparency but it isn’t.
image

if someone can help me with these i would be very grateful, have a good day!

Yeah the problem is very simple:

local explosion = {}

function explosion.Explosion()

Why would you use explosion:Explosion when there’s a “.” so instead use explosion.Explosion

1 Like

I see… let me test that, if it works i’ll tell you!

oh, i forgot to mention that i’ve always used “:” in every module i use!

Yeah the . and : have different indicators that’s the only thing I remember from OOP

1 Like

Alright! It worked! Thank you so much man!

Though, i still have the other problem with the cloning thing, so when i get to fix it i will mark your suggestion as the solution!

Concerning that I just have one question is Workspace.World a folder or an instance? If not then that could be your problem.

World is a folder
image

I’m a little confused here why it’s not visible my thoughts are:

  • It’s visible but the size is too small to be seen
  • It’s visible and the size is enough to be seen but it’s position is somewhere the render can’t reach
  • Or I just think roblox is probably just bugging out or something
1 Like

Ok it was the Size, thank you so so much man, i’m really grateful with you!

Could you mix the 2 solutions together so i could mark you as the solution?

For the first Issue

Yeah the problem is very simple:

local explosion = {}

function explosion.Explosion()

Why would you use explosion:Explosion when there’s a “.” so instead use explosion.Explosion

And for the second issue

I’m a little confused here why it’s not visible my thoughts are:

  • It’s visible but the size is too small to be seen
  • It’s visible and the size is enough to be seen but it’s position is somewhere the render can’t reach
  • Or I just think roblox is probably just bugging out or something

That’s all in one :smiley:

1 Like

Thank you man! Have a good day!

1 Like