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

Leaderstats not saving, help me please?

Asked by 7 years ago

Hello! I have an RPG in pre alpha. Recently, the levels and other stats stopped saving. Here's the script:

001function onXPChanged(player, XP, level)
002if XP.Value>=level.Value * 50 then
003XP.Value = XP.Value - level.Value * 50
004level.Value = level.Value + 1
005player.Character.Humanoid.MaxHealth = player.Character.Humanoid.MaxHealth + 50
006player.Character.Humanoid.Health = player.Character.Humanoid.Health + 50
007end
008end
009 
010function onLevelUp(player, XP, level)
011if player.Character~=nil then
012for i = 1,5 do
013local fireworks = Instance.new("Part")
014fireworks.Shape = 0
015fireworks.formFactor = "Symmetric"
View all 158 lines...

Any fixes for this error?

0
you would have better LUCK with DATA Stores TheScriptKing 102 — 7y
0
It worked fine before Code_Sensei 0 — 7y

Answer this question