Level gui system help?
Long story short, im making a game where theres a level up system based on kills and I use the script
02 | game.Players.PlayerAdded:connect( function (player) |
03 | local stats = Instance.new( "IntValue" , player) |
04 | stats.Name = "leaderstats" |
06 | local level = Instance.new( "IntValue" , stats) |
10 | local exp = Instance.new( "IntValue" , stats) |
15 | local extralevel = level.Value |
16 | local expneed = ((extralevel * 2 ) - 1 ) * 50 |
17 | if level.Value < maxlevel then |
18 | if exp.Value > = expneed then |
19 | level.Value = level.Value + 1 |
20 | exp.Value = exp.Value - expneed |
2 questions:
1, I made a working gui version of displaying the level, HOWEVER it wont update when you level up it works the first time but wont no more, help, to go along with the leveling up.
2, Using this script how would I make it so if you kill someone you get exp?