Greetings everyone, today when I was coding I have encountered a problem that I do not understand what to do against it. Here's my code:
function module.Claim(SeatName,PlayerName) local DTS = game:GetService("DataStoreService") local Show = DTS:GetDataStore(game.ReplicatedStorage.ShowName.Value) local PlayerID = game.Players:GetUserIdFromNameAsync(PlayerName) Show:SetAsync(SeatName,PlayerID) Show:SetAsync(PlayerID,SeatName) return "Done" end
At fiveth line, it stops working(I checked with breakpoint(F9)) and it gives no error, no error at all. It's a modulescript and it does not continues from the script it's called from. I also use :GetAsync in same modulescript and it is just fine.
IMPORTANT EDIT: I tried to save this and it still does not work:
Show:SetAsync("TrySomething","Saving")
So the problem is about datastore.