Mezur
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
|
| 01 Oct 2016 11:46 AM |
Anybody know how to make it so you spawn with a tool which you purchased from a gamepass from your game?
Can't find any scripts that work for this.. |
|
|
| Report Abuse |
|
|
| 01 Oct 2016 11:55 AM |
local player = game.Players.PlayerName local MAS = game:GetService("MarketplaceService") local passid = [YOUR PASSID HERE]
function Authenticated() return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passid) end
MAS.PrompPurchaseFinished:connect(function(assetId, player, Purchased) if Purchased then if assetId == passId then player.CharacterAdded:connect(function() local tool = game.Lighting.Tool:clone() tool.Parent = player.Backpack end) end end end
game.Players.PlayerAdded:connect(function() if Authenticated then player.CharacterAdded:connect(function() local tool = game.Lighting.Tool:clone() tool.Parent = player.Bcakpack end) end end) |
|
|
| Report Abuse |
|