Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn(function()--Autosave
- while wait(240) do
- saveAll()
- print('autosave')
- end
- end)
- function saveAll()
- for i,v in pairs(game.Players:GetPlayers()) do
- local tycoon = getPlrTycoon(v)
- if tycoon and tycoon.isLoaded.Value == true then
- TycoonSave:SavePlayerTycoon(v,tycoon);
- Events.Autosave:FireClient(v)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement