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

my instant respawn gamepass script does not work, how do i fix it?

Asked by 3 years ago

Hello everyone. I made a instant respawn gamepass script however, i have a problem that when you buy the gamepass it does not change the respawn time. can somebody tell me what is wrong with this script

local MarketplaceService = game:GetService("MarketplaceService")
local SpawnTime = game.Players.RespawnTime
local gamepassID = 14356665

MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, purchasepassID, purchaseSuccess)

    if purchaseSuccess == true and purchasepassID == gamepassID then
        local SpawnTime = 1
    end

end)

1 answer

Log in to vote
0
Answered by 3 years ago

I have a suggestion that may help you.

This is the link that may help u make a gamepass

https://www.youtube.com/watch?v=RmWgJVjJrqE&ab_channel=TheDevKing

I hope it works have a nice year!

Ad

Answer this question