|
| 05 Aug 2014 01:58 PM |
Hi guys! How would you make a BoolValue with Datastore and put it in each player as they join the game for the first time. After that, it would save it each time the player leaves the game and load it when they join the game? Thanks in advance :)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2014 02:12 PM |
game.Players.PlayerAdded:connect(function(nub) BV = Instance.new("BoolValue",nub) BV.Value = false ds = game:GetService("DataStoreService"):GetDataStore("user"..nub.userId) if ds:GetAsync("NAMEHERE") ~= nil then ds:GetAsync = BV.Value else ds:SetAsync("NAMEHERE",false) end end) |
|
|
| Report Abuse |
|
|