Advertisement
252Scripter

TheFortnitGamezOne

Nov 28th, 2022 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ------------------ StarterGUI LocalScript ------------------
  2.  
  3. local player = game.Players.LocalPlayer
  4. local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,6052861) ------ Your Gamepass ID here
  5.  
  6. if ownsGamepass then
  7. local sword = game:GetService("ReplicatedStorage"):WaitForChild("ClassicSword"):Clone() -------- Change "ClassicSword" to your tool's name
  8. sword.Parent = player.Backpack
  9. end
  10.  
  11. ------------------ TextButton LocalScript ------------------
  12.  
  13. script.Parent.MouseButton1Click:Connect(function()
  14. game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,6052861) --------- Your Gamepass ID here
  15. end)
  16.  
  17. ------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement