The title says my problem with the script I'm using, can someone please tell me the problem. And if you require the script I will provide it :)
game.Players.PlayerAdded:connect(function(Player) local Data = Instance.new("IntValue",Player) Data.Name = "Data" local XP = Instance.new("IntValue",Data) XP.Name = "XP" XP.Value = 0 local Level = Instance.new("IntValue",Data) Level.Name = "Level" Level.Value = 1 local Tries = Instance.new("IntValue",Data) Tries.Value = 10 Tries.Name = "Tries" local Data = Instance.new("IntValue",Player) Data.Name = "leaderstats" local Level = Instance.new("IntValue",Data) Level.Name = "Level" Level.Value = 1 XP.Changed:connect(function() XPChange(Player,XP,Level) end) end) function XPChange(Player,XP,Level) if XP.Value >= Level.Value*150 then XP.Value = 0 Level.Value = Level.Value+ 1 end end