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!

3 comments

1

add repeat wait() until module ~= nil or something

0

Can you send an image of your Explorer window?

0

@Vong25 how would I do that?