Why when player joins the function dont printing player joined and successful?
Bruh, once again i looking for help with my datastore bool script. After i changed the position of bool script, it dont saving the bool. But, when i joining, it dont print Player joining and success, after leaving, it prints player leaving, bind is loading and success x2, sometimes prints data queue is full.
02 | local ds = game:GetService( "DataStoreService" ) |
03 | local bool = ds:GetDataStore( "ChristmasQuestSaving" ) |
04 | local RS = game:GetService( "ReplicatedStorage" ) |
06 | game.Players.PlayerAdded:Connect( function (plr) |
07 | print ( "Player Joining..." ) |
08 | local boolValue = plr.Other.CQuestCompleted |
09 | boolValue.Value = bool:GetAsync(plr.UserId) or false |
13 | game.Players.PlayerRemoving:Connect( function (plr) |
14 | print ( "Player Leaving..." ) |
15 | local success, err = pcall ( function () |
16 | bool:SetAsync(plr.UserId, { plr.Other.CQuestCompleted.Value } ) |
21 | game:BindToClose( function () |
22 | print ( "Bind is loading..." ) |
23 | for i, v in pairs (game.Players:GetPlayers()) do |
25 | [ "QCA" ] = v.Other.CQuestCompleted.Value, |
27 | bool:SetAsync(v.UserId, data) |