local market = game:GetService("MarketplaceService")
local gamepass = 1185550709
local gamepass2 = 1185547854
local gamepass3 = 1185548489
local gamepass4 = 1185551014
local gamepass5 = 1185549327
market.ProcessReceipt = function(ReciptInfo)
if ReciptInfo.ProductId == gamepass..gamepass2..gamepass3..gamepass4..gamepass5 then
local player = game.Players:GetPlayerByUserId(ReciptInfo.PlayerId)
game.ReplicatedStorage.GUI:FireAllClients(player)
wait(5)
print("fire")
local nuke = game.ReplicatedStorage:WaitForChild("Nuke"):Clone()
nuke.Parent = workspace
wait(20)
nuke:Destroy()
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
It is a script in replicatedstorage
