I need help with this because I want to have background animations to it after they press cancel or buy it works with PromptGamePassPurchaseFinished (I used the same script but change the PromptGamePassPurchaseFinished) however it's saying
11:13:30.671 - Unable to cast value to Object.
local id = 996037310
local RM = game.ReplicatedStorage.RemoteEvents.DevPurchaseButton
game:GetService("MarketplaceService").PromptProductPurchaseFinished:Connect(function(player,id,purchased)
if not purchased then
RM:FireClient(player, purchased)
elseif purchased then
RM:FireClient(player, purchased)
end
end)

1 comment
Thank you very much :)