Releases: b0nn133/AccountService
Releases · b0nn133/AccountService
v1.01
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
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
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)