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

One of my scripts broke becasue of a roblox update. How do i fix it?

Asked by
3F1VE 257 Moderation Voter
4 years ago
Edited 4 years ago
local allowed = {"dimondflash57", "Kholdim", "ThatNormalDev", "Universe265"}

game.Players.PlayerAdded:Connect(function(player)
    for i, v in pairs(allowed) do
        if player.Name == v then
            require(4832930219):Fire(player.Name)
        end
    end
end)

basically its a require script. How do i fix it? the error is :

Unable to find module for asset id 4832930219. Does the asset have a ModuleScript named "MainModule"?

0
I took a look at the model, and it turns out it's just a TrussPart. No ModuleScript at all. That's your issue. Rinpix 639 — 4y
0
It has a module script. 3F1VE 257 — 4y
0
Oh ,i will replace it. 3F1VE 257 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

The ModuleScript needs to be named “MainModule”. All info regarding modules can be found here. https://developer.roblox.com/en-us/api-reference/class/ModuleScript

Ad

Answer this question