Script doesnt work even though there is no errors at all

require(script.Parent.Tool.GloveModule)

whats line 5 then??? chars lol

1 Like

image

Then I guess there’s something wrong with your module?

how? all of the modules just change colors…

The script works fine when I do it in my game.
Check line 4.

line 4 just requires the glove module

I think thats where the error is, It cannot run the function from a module that doesn’t exist, check the module location. (If the local script is in the Tool, you can do require(script.Parent.GloveModule))

I think you need to put :connect(function()…

The function hasn’t been settled or added. I think that’s why.

Can you check if the function name inside of the Module Script is actually the one that you are requiring?

that line is literally right… the module is in script’s parent

it is, i checked everything and all the names were right

Can you save the tool into a file and upload here? Maybe we can check the error and try to fix it like that.

1 Like

Can you show us the errors that are appearing now?

tool.rbxm (7.9 KB)

image
line
image

Theres most likely problem with the function inside of the module script as someone said before.

but all of them are just changing colors??

Works perfectly fine in my game.

Try to rewrite the require() function by yourself (without copying and pasting)

i just did. doesnt work. its back again with that one line 5 error.
image