Advertisement
Guest User

Untitled

a guest
Dec 26th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. service = game:GetService("MarketplaceService")
  2. id = 20026140
  3. player = game.Players.LocalPlayer -- Points to the local player in localscripts, much cleaner than doing .Parent fifty times
  4.  
  5. script.Parent.MouseButton1Down:connect(function()
  6.     service:PromptProductPurchase(player, id)
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement