So I am making a level system and I wanted the exp of the player to reset when it reaches a certain amount of EXP.
Unfortunately it’s not working.
There are no errors in script I did some printing and it prints too.
Now what is the problem?
game.Players.PlayerAdded:Connect(function(plr)
wait(.1)
local exp = plr.PlayerItems.EXP
local levels = plr.PlayerItems.Level
while wait() do
if exp.Value >= (100 * (levels.Value + 1)) then
levels.Value = levels.Value + 1
exp.Value = 0
game.ReplicatedStorage.LevelUpGui:FireClient(plr)
end
end
end)
I’m going to sleep now
Soo please give me a answer before I wake up tomorrow.
So Please ?
Good night all