For some reason I can not save or retrieve data in my script.
Here it is:
if marketS:UserOwnsGamePassAsync(Player.UserId,7110587) then local GangStats = GangStats:GetAsync(70) local LowestGangId = GangStats.LowestGangId local NewId = LowestGangId + 1 local DataToSave = { LowestGangId = NewId } GangStats:SetAsync(70,DataToSave) Player.GangStats.GangRank.Value = "Leader" Player.GangStats.GangId.Value = NewId local DataToSave2 = { GangId = NewId, OwnerId = Player.UserId, Members = 1 } GangStore:SetAsync(NewId,DataToSave2) addGang(NewId,Description) end
For whatever reason, it is saying I am calling a nil value where it says GangStats:SetAsync(70,DataToSave)
Go check every value or something by printing to check if something is actually nil