Ad
Log in to vote
0

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

Asked by
CodeWon 150
4 days ago
Edited 4 days 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 — 4d
0
Can you send an image of your Explorer window? Vong25 187 — 3d
0
@Vong25 how would I do that? CodeWon 150 — 3d

Answer this question