#Issues with checking badges
1 messages · Page 1 of 1 (latest)
it results as error if you dont have a badge
i think the culprit lies in this:
if not updated or not (success and result) and v.Parent ~= badgeFolder then
local badgesuc, badgeres = RE remfunc:InvokeServer(tonumber(badgeID.Name), v)
if badgesuc and badgeres then updated = true success = true result = true end
badgeAsync = true
print("alsotrue", v.Name)
end
because i check if BOTH badgesucesss and badgeresponse return true (the remotefunction goes to a script in sss which does userhasbadgeasync) but if i separate it into nested if statements instead it breaks the whole system
if u want the whole script + DSS script im happy to share it
I genuinely can't read that code