Ok so I was trying to make a 2x gamepass for coins but I don't know where to start. can someone please help me make the script. Thanks!
Hello.
You'd first have to check if the player owns a gamepass. If they do then it will multiply the number of points they get. If they don't, they'll just get the normal amount of points.
Code:
local money = player.leaderstats.Money local normalIncrease = 1 if game:GetService("MarketplaceService"):UserOwnsGamepassAsync(player.UserId, yourGamepassIdHere) then money.Value = money.Value + normalIncrease * 2 else money.Value = money.Value + normalIncrease end
The UserOwnsGamepassAsync()
requires two arguments.
The player's UserId.
The gamepass Id.
Closed as Not Constructive by Void_Frost and youtubemasterWOW
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?