Guest User

Help Filtering enabled is a bitch

a guest
Oct 16th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.42 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(plr)
  2. plr.CharacterAdded:connect(function(char)
  3. wait(2)
  4. if plr.PlayerGui:FindFirstChild("Shop") ~= nil then
  5. plr.PlayerGui:FindFirstChild("Shop").FrameA.A.MouseButton1Click:connect(function()
  6. local MarketplaceService = Game:GetService("MarketplaceService")
  7. local productId = 21317700
  8.  
  9. MarketplaceService:PromptProductPurchase(plr, productId)
  10. end)
  11.  
  12. plr.PlayerGui:FindFirstChild("Shop").FrameA.B.MouseButton1Click:connect(function()
  13. local MarketplaceService = Game:GetService("MarketplaceService")
  14. local productId = 21317713
  15.  
  16. MarketplaceService:PromptProductPurchase(plr, productId)
  17. end)
  18.  
  19. plr.PlayerGui:FindFirstChild("Shop").FrameA.C.MouseButton1Click:connect(function()
  20. local MarketplaceService = Game:GetService("MarketplaceService")
  21. local productId = 21317718
  22.  
  23. MarketplaceService:PromptProductPurchase(plr, productId)
  24. end)
  25.  
  26. plr.PlayerGui:FindFirstChild("Shop").FrameA.D.MouseButton1Click:connect(function()
  27. local MarketplaceService = Game:GetService("MarketplaceService")
  28. local productId = 21317723
  29.  
  30. MarketplaceService:PromptProductPurchase(plr, productId)
  31. end)
  32.  
  33. plr.PlayerGui:FindFirstChild("Shop").FrameA.E.MouseButton1Click:connect(function()
  34. local MarketplaceService = Game:GetService("MarketplaceService")
  35. local productId = 21317728
  36.  
  37. MarketplaceService:PromptProductPurchase(plr, productId)
  38. end)
  39.  
  40. plr.PlayerGui:FindFirstChild("Shop").FrameA.F.MouseButton1Click:connect(function()
  41. local MarketplaceService = Game:GetService("MarketplaceService")
  42. local productId = 21317731
  43.  
  44. MarketplaceService:PromptProductPurchase(plr, productId)
  45. end)
  46.  
  47. plr.PlayerGui:FindFirstChild("Shop").FrameA.G.MouseButton1Click:connect(function()
  48. local MarketplaceService = Game:GetService("MarketplaceService")
  49. local productId = 21317742
  50.  
  51. MarketplaceService:PromptProductPurchase(plr, productId)
  52. end)
  53.  
  54. plr.PlayerGui:FindFirstChild("Shop").FrameA.EXCH.MouseButton1Click:connect(function()
  55.     local Amoun = tonumber(plr.PlayerGui:FindFirstChild("Shop").FrameA.Amount.Text)
  56.     if Amoun ~= nil then
  57.     if plr.leaderstats.Cash.Value >= Amoun then
  58.         local PointsService = Game:GetService("PointsService")
  59.             local pointsToAward = PointsService:GetAwardablePoints()
  60.             if pointsToAward > 0 then
  61.             plr.leaderstats.Cash.Value = plr.leaderstats.Cash.Value - Amoun
  62.                 pcall(function()
  63.                 PointsService:AwardPoints(plr.userId, Amoun)
  64.             end)
  65.             end
  66.         end
  67.     end
  68. end)
  69.  
  70. else
  71. print("Shop Failed")
  72. end
  73. end)
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment