game.Players.PlayerAdded:connect(function(Player) local Data = Instance.new('IntValue', Player) Data.Name = "Data" local XP = Instance.new('IntValue', Data) XP.Name = "XP" local Level = Instance.new('IntValue', Data) Level.Name = "Level" Level.Value = 1 XP.Changed:connect(function()XPChangingFunction(Player,XP,Level)end) end)
function XPChangingFunction(Player,XP,Level) if XP.Value >= Level.Value * 150 then XP.Value = 0 Level.Value = Level.Value + 1
end
end
This whole thing is in Server Storage under the name System

1 comment
Woah, that's really messy. Please put the code in a code block.