repeat wait(0.01) game.Players.LocalPlayer.leaderstats.XP.Value = game.Players.LocalPlayer.leaderstats.XP.Value + 5 if script.Parent.ExpChange.Value == game.Players.LocalPlayer.leaderstats.XP.Value then game.Players.LocalPlayer.leaderstats.XP.Value = game.Players.LocalPlayer.leaderstats.XP.Value - script.Parent.ExpChange.Value game.Players.LocalPlayer.leaderstats.Level.Value = game.Players.LocalPlayer.leaderstats.Level.Value + 1 if game.Players.LocalPlayer.leaderstats.Level.Value == 5 then script.Parent.ExpChange.Value = 2000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 10 then script.Parent.ExpChange.Value = 2500 end if game.Players.LocalPlayer.leaderstats.Level.Value == 15 then script.Parent.ExpChange.Value = 3000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 20 then script.Parent.ExpChange.Value = 3500 end if game.Players.LocalPlayer.leaderstats.Level.Value == 25 then script.Parent.ExpChange.Value = 4000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 30 then script.Parent.ExpChange.Value = 4500 end if game.Players.LocalPlayer.leaderstats.Level.Value == 35 then script.Parent.ExpChange.Value = 5000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 45 then script.Parent.ExpChange.Value = 5500 end if game.Players.LocalPlayer.leaderstats.Level.Value == 55 then script.Parent.ExpChange.Value = 6000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 65 then script.Parent.ExpChange.Value = 6500 end if game.Players.LocalPlayer.leaderstats.Level.Value == 80 then script.Parent.ExpChange.Value = 7000 end if game.Players.LocalPlayer.leaderstats.Level.Value == 95 then script.Parent.ExpChange.Value = 7500 end end
until game.Players.LocalPlayer.leaderstats.Level.Value == 100
-- I have ExpChange as an IntValue, for some reason when I play it gets disrupted by something...

4 comments
it might not work from a localscript
try this
Format your code using Lua Code block
no