Question, I have a script that is in a part, and when the game is played, it moves to workspace. I’m trying to figure out how to do it with a ModuleScript. I changed the “script” to “ModuleScript” “MainModule” and everything, but I can’t seem to figure it out. Here’s the line of code.
you would write require(game.Workspace.ModuleScript), I believe, tho this is for using functions that are stored in a modulescript
correct me if i wrong
Why are you trying to convert a script into a module script? Main purpose of module scripts is to be used when needed. Not to be moved around. Module scripts is usually located in ReplicatedStorage where programmers can require them and use the module script’s functions.
Module scripts are basically functions but it has more ‘features’. I dont really see the purpose of moving module scripts around