Hello.
I have a ban system in my game that uses data store. Is it possible to unban a person from the data store without un banning everyone else?
Code I have (it is part of an admin commands system)
elseif msg:lower():sub(1,4) == ";ban" then local obj = msg:sub(6) local player = game.Players[obj] local ds = game:GetService("DataStoreService"):GetDataStore("Moderation") ds:SetAsync(player.UserId, true) wait() game.Players[obj]:Kick("You have been banned!")
Thanks
Simply set the data store to false. Then the player should be unbanned (assuming your just doing a check for if it’s true).
ds:SetAsync(ID_HERE, false)