I know this script is very crude, but I haven't really learned how to use tables so this will have to do. Basically, I want a script that constantly checks a player's Experience to see if it's enough to level up. I have a script that sets my Experience to 100,000, but the script isn't leveling me up, I just stay at level 1, and nothing gets put in the output to let me know what's going wrong.
--Start of functions
while wait() do
Player = game.Players.LocalPlayer
if Player.Exp.Value >= 100 < 300 then
Player.leaderstats.PlayerLevel.Value = 2
elseif Player.Exp.Value >= 300 < 600 then
Player.leaderstats.PlayerLeve.Valuel = 3
elseif Player.Exp.Value >= 600 < 1000 then
Player.leaderstats.PlayerLeve.Valuel = 4
elseif Player.Exp.Value >= 1000 < 1500 then
Player.leaderstats.PlayerLevel.Value = 5
elseif Player.Exp.Value >= 1500 < 2000 then
Player.leaderstats.PlayerLevel.Value = 6
elseif Player.Exp.Value >= 2000 < 2500 then
Player.leaderstats.PlayerLevel.Value = 7
elseif Player.Exp.Value >= 2500 < 3000 then
Player.leaderstats.PlayerLevel.Value = 8
elseif Player.Exp.Value >= 3000 < 4000 then
Player.leaderstats.PlayerLevel.Value = 9
elseif Player.Exp.Value >= 4000 < 5000 then
Player.leaderstats.PlayerLevel.Value = 10
elseif Player.Exp.Value >= 5000 < 6500 then
Player.leaderstats.PlayerLevel.Value = 11
elseif Player.Exp.Value >= 6500 < 8000 then
Player.leaderstats.PlayerLevel.Value = 12
elseif Player.Exp.Value >= 8000 < 9500 then
Player.leaderstats.PlayerLevel.Value = 13
elseif Player.Exp.Value >= 9500 < 11000 then
Player.leaderstats.PlayerLevel.Value = 14
elseif Player.Exp.Value >= 11000 < 12500 then
Player.leaderstats.PlayerLevel.Value = 15
elseif Player.Exp.Value >= 12500 < 14000 then
Player.leaderstats.PlayerLevel.Value = 16
elseif Player.Exp.Value >= 14000 < 15500 then
Player.leaderstats.PlayerLevel.Value = 17
elseif Player.Exp.Value >= 15500 < 18000 then
Player.leaderstats.PlayerLevel.Value = 18
elseif Player.Exp.Value >= 18000 < 21000 then
Player.leaderstats.PlayerLevel.Value = 19
elseif Player.Exp.Value >= 21000 < 25000 then
Player.leaderstats.PlayerLevel.Value = 20
elseif Player.Exp.Value >= 25000 < 30000 then
Player.leaderstats.PlayerLevel.Value = 21
elseif Player.Exp.Value >= 30000 < 35000 then
Player.leaderstats.PlayerLevel.Value = 22
elseif Player.Exp.Value >= 35000 < 40000 then
Player.leaderstats.PlayerLevel.Value = 23
elseif Player.Exp.Value >= 40000 < 45000 then
Player.leaderstats.PlayerLevel.Value = 24
elseif Player.Exp.Value >= 45000 < 50000 then
Player.leaderstats.PlayerLevel.Value = 25
elseif Player.Exp.Value >= 50000 < 57500 then
Player.leaderstats.PlayerLevel.Value = 26
elseif Player.Exp.Value >= 57500 < 65000 then
Player.leaderstats.PlayerLevel.Value = 27
elseif Player.Exp.Value >= 65000 < 72500 then
Player.leaderstats.PlayerLevel.Value = 28
elseif Player.Exp.Value >= 72500 < 82500 then
Player.leaderstats.PlayerLevel.Value = 29
elseif Player.Exp.Value >= 82500 < 100000 then
Player.leaderstats.PlayerLevel.Value = 30
elseif Player.Exp.Value >= 100000 then
Player.leaderstats.PlayerLevel.Value = 31
else
print("An error has occured with the LevelUp Function.")
end
y = 100 * Player.leaderstats.Level.Value
Player.HP.Value = 200 + y
Player.Character:WaitForChild("Humanoid").MaxHealth = Player.HP.Value
end

2 comments
It still doesn't work, even though I literally copy and pasted the table codeblock you gave me. I did edit the final line of the loop like you asked, and that works fine, but the leveling does not.
What does "doesn't work" mean? Is there an error? Have you verified the names of the values?