This is my button script:
local player = game.Players.LocalPlayer
local Market = game:GetService("MarketplaceService")
id = 984081930
script.Parent.MouseButton1Click:Connect(function()
Market:PromptProductPurchase(player,id)
end)
This is my serverscript:
local Market = game:GetService("MarketplaceService")
Market.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == "984081930" then
game.Workspace.InvincibilityActivated.Value = false
print("Activated!")
wait(30)
game.Workspace.InvincibilityActivated.Value = true
print("Expired")
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
It doesn't seem to change the Value.

2 comments
Could you give me an explanation?
Not very good at that.