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

RankSystem is not a valid member of ServerScriptService "ServerScriptService"?

Asked by
CodeWon 181
3 years ago
Edited 3 years ago

When I try to call a function from my module, I get an error. "RankSystem is not a valid member of ServerScriptService "ServerScriptService""

Script:

local module = require(script.Parent) -- This is the RankSystem module

while true do
    for _, player in pairs(game.Players:GetChildren()) do
        module.giveXPOrRankPlayer(player, 15)
    end 
    wait(420)
end

It basically says the script does not exist when it is litterly the parent of this script!

1
add repeat wait() until module ~= nil or something valk_3D 140 — 3y
0
Can you send an image of your Explorer window? COUNTYL1MITS 312 — 3y
0
@Vong25 how would I do that? CodeWon 181 — 3y

Answer this question