I am trying to make a Donation Tab that calculates all the Tix and Robux donated to me. When i try to print the CurrencyType it gives me an error:
MarketplaceService.ProcessReceipt = function(receiptInfo)
print(receiptInfo.PlayerId .. " just bought " .. receiptInfo.ProductId.. " for ".. receiptInfo.CurrencySpent .." ".. receiptInfo.CurrencyType)
end)
Error: Workspace.DonationTab.MainParts.Script:2: attempt to concatenate field "CurrencyType" (a userdata value)
I dont know how to fix this. If you know how to solve the problem plz tell me.

4 comments
You gave us the wrong script. The error says their is a 17th line which you have not provided. Give us the correct script (Full script) so we may assist you.
I dont want to add the whole script. Thats the basic idea. When i try to print the receiptInfo.CurrencyType this error appears
You must add the rest of the script. We can't just fix the print. We won't steal it - why would someone steal something he most probably doesn't even know what it is anyway?
CurrencyType is a userdata value which can be compared to a Enum, just put .Name after CurrencyType. Since Name is a valid member of a Enum for the CurrencyType.