Helloo, some players are experiencing several dataloss in our game Coins Hero, Its like you can play for 2h and nothing of that would be saved, randomly. And here the question; a friend of mine has lost his new stage and new played stuff, EVEN the badge I give him for reaching new zone, he says that he saw the notification in the right-down side, so he had it. Today he entered the game and realise about his data loss, ALSO THE BADGE. So I don’t know if my problem is about scripting or some external force
local success, hasBadge = pcall(function()
return badgeservice:UserHasBadgeAsync(player.UserId,BadgeCandy)
end)
if hasBadge == false then
pcall(function()
badgeservice:AwardBadge(player.UserId,BadgeCandy)
end)
end
Most likely an external force. There’s no way for us to remove badges manually as developers. It could as well be a rollback of some kind.
3 Likes
Can you send us a screenshot of your data store?
1 Like
Which part?
local DataStore2 = require(script.Parent.DataStore2)
DataStore2.Combine("DATA", "BACK", "Storage", "Diamonds", etc etc
(if you reach level 20 for example then you unlock new zone and your badge)
if level.Value == game.ServerStorage.World.PermisosPortal.Portal2.Value then
local success, hasBadge = pcall(function()
return badgeservice:UserHasBadgeAsync(player.UserId,game.ReplicatedStorage.BadgesID.UnicornUnlock.Value)
end)
if hasBadge == false then pcall(function()badgeservice:AwardBadge(player.UserId,game.ReplicatedStorage.BadgesID.UnicornUnlock.Value)end) end
end
Which part causes the data to not work?
1 Like
Thats what I want to know, some players have dataloss and as if that were not enough, my friend says he had the badge and he no longer has it
Do you have API services turned on?
Did they delete it from their inventory?
1 Like
API on… My friend has this problem of data loss and lost his badge, so he doesn’t delete nothing, this confuses me a lot