Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have this module script but i cant get it to work?

Asked by 2 years ago
Edited by imKirda 2 years ago

https://web.roblox.com/library/4659998977/MainModule

heres the link to that its a whiteboard that doesnt work

1 answer

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
2 years ago
Edited 2 years ago

Hey! It doesn't work because It's trying to get a certain player at Holder -> EventHandler -> Line 5 & 6

The solution Is that you either take the model you listed modify the line of code and add a check so the script doesn't break instantly when it loads and doesn't find the player , you need to put this line above line 6 where the local plr is located at :

repeat wait() until game.Players:FindFirstChild(PUTNAMEHERE)

Of course you'd need to edit the PUTNAMEHERE to the username you want. After all of this you can upload the module to roblox and require It by using the api reference called require :

require("link_In_here")

Or If you just have It as a model you can do

require(the_modules_location)

Hope this helped! If you're still not sure how to fix It I've uploaded a fixed model you can just put In your game and you're good to go! (Don't forget to change the PUTNAMEHERE In the script!)

Link to the model : MODEL

Ad

Answer this question