Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MPS = game:GetService("MarketplaceService")
- local gamepassid = -- Gamepass ID
- MPS.PromptGamePassPurchaseFinished:Connect(function(player, id, suscess)
- if suscess == true and id == gamepassid thrn
- game.ServerStorage.ClassicSword:Clone().Parent = player.Backpack
- end
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- if MPS:UserOwnsGamePassAsync(player.UserId,gamepassid) then
- game.ServerStorage.ClassicSword:Clone().Parent = plr.Backpack
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement