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

how to save numbervalues?

Asked by 9 years ago

it doesnt save!

wait()

game.Players.PlayerAdded:connect(function(player)
    player:WaitForDataReady()
   if player:WaitForDataReady() then
 player:LoadNumber("baitval", player.PlayerGui.baitval.Value)
   print("I think it's DONEE") 
end
end)


function onPlayerLeaving(player)


        player:SaveNumber("baitval", player.PlayerGui.baitval.Value) 
    end



game.Players.PlayerRemoving:connect(onPlayerLeaving)

Answer this question