Everytime I start the game I get a warning saying Infinite yield possible on 'ServerScriptService:WaitForChild("MathModule")'
m = require(game:GetService("ServerScriptService"):WaitForChild("MathModule"))
local plr = game:GetService("Players").LocalPlayer
while wait(2) do
local cLevel = plr.leaderstats.Level.Value
local cEXP = plr.leaderstats.EXP.Value
local NLEXP = m.nextLevel(cLevel + 1)
local nEXP = NLEXP - cEXP
script.Parent.Text = "EXP to next level: "..nEXP
end

9 comments
Put the MathModule in Workspace.
that did not work I still got the same message
It also works in another script just not this one
try to put a wait(1) in the first line of script, and remove the :WaitForChild.
and be sure to see if the location is correct.
I get tons of these warnings too. Should I try to get rid of them or are they just harmless notifications?
And no don't try the wait(1) method or it will give you an error
Errors are worse than warnings
Look at my answer. It's only a warning because it's saying it's been multiple seconds and the child wasn't found. The reason the wait(1) method just shows an error is because the child isn't there.