Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Savable leaderboard won't save? Please Help

Asked by 5 years ago

I was trying to make this leaderboard savable. Player suppose to see their score even after they quit but for some reason, it won't work.

I wrote the script which is why obviously I am asking for help because its not working. So stop saying I didn't wrote the script. Yes, I used free models to base my script but that doesn't mean I didn't wrote it. Yes I was talking to you @eLunate If you can't help please let others help me instead.

Note: I noted in here where there might be a problem. I just can't figure which one.

001function onXPChanged(player, XP, level)
002    if XP.Value>=level.Value * 10 then
003        XP.Value = 0
004        level.Value = level.Value + 1
005    end
006end
007 
008function onLevelUp(player, XP, level)
009    local m = Instance.new("Hint")
010    m.Parent = game.Workspace
011    m.Text = player.Name .. " has leveled up!"
012    wait(3)
013    m.Parent = nil
014   player.Humanoid.Health = 0
015end
View all 193 lines...
0
I forgot that stats are suppose to be int. not named. Asher0606 36 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Got it fixed. Thanks for the wonderful and very helpful help! :)

Ad

Answer this question