Ok, so, I want the required exp to go up every time the player levels up, but I only know how to script it on a constant up. Meaning you need a thousand or whatever I wanted to put exp to level up, and its constant. I want it to add lets say 250 exp required every level. Am I doing this right?
local expthing = 100
game.Players.PlayerAdded:connect(function(player)
local folder = Instance.new("Folder")
folder.Parent = player
folder.Name = "leaderstats"
local Level = Instance.new("IntValue")
Level.Name = "Level"
Level.Value = 1
Level.Parent = folder
local Exp = Instance.new("IntValue")
Exp.Name = "Experience"
Exp.Value = 0
Exp.Parent = folder
local Gold = Instance.new("IntValue")
Gold.Name = "Gold"
Gold.Value = 0
Gold.Parent = folder
local Rubies = Instance.new("IntValue")
Rubies.Name = "Rubies"
Rubies.Value = 0
Rubies.Parent = folder
Exp.Changed:connect(function()
while wait(2) do
Level.Value = math.floor(Exp.Value/expthing)
expthing = expthing + 200
end
end)
end)
