I want to make a system, with usuage of developer product, and I need to make it in StartGui, is that possible or I have to make it in ServerScriptService? If yes, what script will work?
I tried this script, but it didn’t work.
game.MarketplaceService.ProcessReceipt = function(receiptInfo)
local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerID)
if receiptInfo.ProductiD == 1285828025 then
script.Parent.Parent.Parent.Parent.loading2.Visible = true
script.Parent.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Parent.loading2.LocalScript.Disabled = false
end
end