Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Would you Make a Developer Product Respawn you ingame?

Asked by 4 years ago
Edited 4 years ago

Basically. Im trying to make a script or something That Allows the user To get asked like a gamepass but its a Developer Product so you can buy it lots of times "Do you want to purchase Revive" (i also want it to be in a text button gui) But my script im trying to use doesnt make it pop up, I also dont know how it would respawn you, can anyone help me?

Script For Dev Product:

local plr = game.Players.LocalPlayer local button = script.Parent local MarketplaceService = game:GetService("MarketplaceService")

script.Parent.MouseButton1Click:Connect(function() MarketplaceService:PromptGamePassPurchase(plr, 773929075) --------Dev Product Id end)

(Also i made the game so you cant respawn, so you either have to go to the lobby, or buy the developer product to respawn)

Answer this question