Is there a more efficient way to level up a player than just doing the same line of code over and over and over? EX:
while true do
wait(.1)
if p:WaitForChild("leaderstats").EXP.Value >= 100 then
script.Parent.Level.Text = 10
wait(2)
break
end
end
while true do
wait(.1)
if p:WaitForChild("leaderstats").EXP.Value >= 200 then
script.Parent.Level.Text = 11
wait(2)
break
end
end

3 comments
thats a very good question
just like mine so go check it out in questions look for my name and big chungus
There's no need for two while loops, it can be done in one, also think about it, do you really need to check every tenth of a second?