Advertisement
Sungmingamerpro13

Subscription (Script)

Mar 11th, 2024 (edited)
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.61 KB | None | 0 0
  1. local MPS = game:GetService("MarketplaceService")
  2. local Players = game:GetService("Players")
  3.  
  4. local subscriptionID = "EXP-8674810404853776611"
  5.  
  6. local function checksubStatus(player)
  7.     local subStatus = {}
  8.     local success, message = pcall(function()
  9.        
  10.         subStatus = MPS:GetUserSubscriptionStatusAsync(player, subscriptionID)
  11.     end)
  12.    
  13.     if not success then
  14.         print("Error while checking if player has subscription: " .. tostring(message))
  15.     end
  16.    
  17.     if subStatus["IsSubscribed"] then
  18.         print(player.Name .. " is subscribed with " .. subscriptionID)
  19.         player.Money.Value = player.Money.Value + 15000
  20.     end
  21. end
  22.  
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement