Skip to content

Releases: b0nn133/AccountService

v1.01

22 Mar 15:14
698c6c7

Choose a tag to compare

Changes
Removed for i,v in t loop in AccountStore:AddAccountAsync() and changed it to the DeepCopy(t) function

local AccountService = require("./path/to/accountService")
local Template = { coins = 0 }

local AccountStore = AccountService.new("DataBlahBlahBlah", Template)
game.Players.PlayerAdded:Connect(function(Player)
        AccountStore:AddAccountAsync(Player.UserId)
        local acc = AccountStore.Accounts[Player.UserId]
        
        print(acc)
end)

game.Players.PlayerRemoving:Connect(function(Player)
        AccountStore:SaveAccountAsync(Player.UserId)
end)

💵 Support the project

v1.00.1

16 Mar 18:14
88efc28

Choose a tag to compare

The first release of AccountService.

Changes
Fixed AccountStore:AddAccountAsync(Key: any)

local AccountService = require("./path/to/accountService")
local Template = { coins = 0 }

local AccountStore = AccountService.new("DataBlahBlahBlah", Template)
game.Players.PlayerAdded:Connect(function(Player)
        AccountStore:AddAccountAsync(Player.UserId)
        local acc = AccountStore.Accounts[Player.UserId]
        
        print(acc)
end)

game.Players.PlayerRemoving:Connect(function(Player)
        AccountStore:SaveAccountAsync(Player.UserId)
end)

v1.00

16 Mar 16:40
2f984fe

Choose a tag to compare

The first release of AccountService.

local AccountService = require("./path/to/accountService")
local Template = { coins = 0 }

local AccountStore = AccountService.new("DataBlahBlahBlah", Template)
game.Players.PlayerAdded:Connect(function(Player)
        AccountStore:AddAccountAsync(Player.UserId)
        local acc = AccountStore.Accounts[Player.UserId]
        
        print(acc)
end)

game.Players.PlayerRemoving:Connect(function(Player)
        AccountStore:SaveAccountAsync(Player.UserId)
end)