Advertisement
iDevDesire

Store commission (For EnternalDeveloper)

Oct 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.85 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. --gp var--
  4.  
  5. gp1 = script.Parent.gp1
  6. gp2 = script.Parent.gp2
  7. gp3 = script.Parent.gp3
  8. gp4 = script.Parent.gp4
  9. gp5 = script.Parent.gp5
  10. gp6 = script.Parent.gp6
  11. --side button--
  12. gamepass = script.Parent.Parent.Gamepasses
  13. debounce = 1
  14. open = script.Parent.Parent["Store Frame"].Open
  15. --fucntions--
  16. gamepass.MouseButton1Click:connect(function()
  17.     if debounce == 1 then
  18. script.Parent:TweenPosition(UDim2.new(0.5, -314,0.235, 0), "Out", "Quad", 1)
  19. debounce = 2
  20.  
  21. else
  22. script.Parent:TweenPosition(UDim2.new(-1, 0,0.235, 0), "Out", "Quad", 1)
  23.     debounce = 1
  24.  
  25.     end
  26.     end)
  27. --gp1--
  28.  
  29. local gamepassID1 = 4669125
  30. local player = game.Players.LocalPlayer
  31.  
  32. gp1.MouseButton1Click:connect(function()
  33.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID1)
  34. end)
  35.  
  36. --gp2--
  37.  
  38. local gamepassID2 = 4669125
  39. local player = game.Players.LocalPlayer
  40.  
  41. gp1.MouseButton1Click:connect(function()
  42.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID2)
  43. end)
  44.  
  45. --gp3--
  46.  
  47. local gamepassID3 = 4669125
  48. local player = game.Players.LocalPlayer
  49.  
  50. gp1.MouseButton1Click:connect(function()
  51.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID3)
  52. end)
  53.  
  54. --gp4--
  55.  
  56. local gamepassID4 = 4669125
  57. local player = game.Players.LocalPlayer
  58.  
  59. gp1.MouseButton1Click:connect(function()
  60.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID4)
  61. end)
  62.  
  63. --gp5--
  64.  
  65. local gamepassID5 = 4669125
  66. local player = game.Players.LocalPlayer
  67.  
  68. gp1.MouseButton1Click:connect(function()
  69.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID5)
  70. end)
  71.  
  72. --gp6--
  73.  
  74. local gamepassID6 = 4669125
  75. local player = game.Players.LocalPlayer
  76.  
  77. gp1.MouseButton1Click:connect(function()
  78.     game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID6)
  79. end)
  80.  
  81. --By iDevDesire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement