Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- --gp var--
- gp1 = script.Parent.gp1
- gp2 = script.Parent.gp2
- gp3 = script.Parent.gp3
- gp4 = script.Parent.gp4
- gp5 = script.Parent.gp5
- gp6 = script.Parent.gp6
- --side button--
- gamepass = script.Parent.Parent.Gamepasses
- debounce = 1
- open = script.Parent.Parent["Store Frame"].Open
- --fucntions--
- gamepass.MouseButton1Click:connect(function()
- if debounce == 1 then
- script.Parent:TweenPosition(UDim2.new(0.5, -314,0.235, 0), "Out", "Quad", 1)
- debounce = 2
- else
- script.Parent:TweenPosition(UDim2.new(-1, 0,0.235, 0), "Out", "Quad", 1)
- debounce = 1
- end
- end)
- --gp1--
- local gamepassID1 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID1)
- end)
- --gp2--
- local gamepassID2 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID2)
- end)
- --gp3--
- local gamepassID3 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID3)
- end)
- --gp4--
- local gamepassID4 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID4)
- end)
- --gp5--
- local gamepassID5 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID5)
- end)
- --gp6--
- local gamepassID6 = 4669125
- local player = game.Players.LocalPlayer
- gp1.MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptPurchase(player, gamepassID6)
- end)
- --By iDevDesire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement