I removed this post to hide the scripts
May I see the entire script? I can’t understand the full context with a few lines but here are some tips from the code you have. Are you sure when a donation is bought it’s running its function? Make sure the sponsor type equals your string.
As @Srepra said, it might not be a string is why its causing the issue. Sometimes If statements have to meet the exact type of the argument. You can try this:
if tostring(decodedData.sponsortype) == "donationblimp" then
Well, you should also make sure there are no spaces in the argument. Double check this, and if it does not work yet, you might have to show me a little more of your script so I can understand whats wrong.
I just tried writing it as you wrote it, but it didn’t work unfortunately
The script used to work perfectly fine, it just randomly stopped working, and I have zero idea why.
I even backed up the game to an older version in hopes of fixing it, but it didn’t work