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)