#Is there a Script to edit Databases?
1 messages · Page 1 of 1 (latest)
i THINK you can change/remove player's data here
I'll check it out
thanks
Blacklist the username from loading into the leaderboard
Simplest way
how do u do that
alright thanks!
wait just for clarification, I will add this code right?
blacklist their player ids
and if u havent yet check any replication that can be exploited, they probably spammed an event
Ye, How could we even change the leaderboard if they are banned
idk how to change the database if they are not ingame
remove async their name or id whatever u store the data with
sorry for the low quality, but how can i change?
delete their data entries
alright
it didn't work
** You are now Level 2! **
try removeasync
try this
local DataStoreService = game:GetService("DataStoreService")
local datastore = DataStoreService:GetDataStore("ur datastore")
local userIds = {
0,
0,
}
for _, userId in ipairs(userIds) do
local success, err = pcall(function()
datastore:SetAsync(tostring(userId), {VALUE = 0, VALUEE = 0, VALUEEE = 0})
end)
if success then
print("datastore reset for:", userId)
else
warn("error when reseting", userId, err)
end
end
print("reset finished")