Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character
- local camera = workspace.CurrentCamera
- local mainShop = workspace:WaitForChild("ShopFolder")
- local shop = player.PlayerGui.ToolShop
- local item = shop.Item
- local buy = shop.shopFrame.BuyButton
- local buyShadow = buy.Shadow
- local shopOpenButton = script.Parent.Parent.FirstShopGui.ShopButton
- local backpackButton = script.Parent.Parent.FirstShopGui.BackPackShopButton
- shopOpenButton.MouseButton1Click:Connect(function()
- if shop.Closed.Value == true then
- if shop.Open.Value == false then
- shop.Open.Value = true
- shop.Closed.Value = false
- for i = 1,0,-0.1 do
- script.Parent.blackBG.BackgroundTransparency = i
- wait(0.05)
- end
- wait(1)
- shopOpenButton.Position = UDim2.new(0,0,1.7,0)
- backpackButton.Position = UDim2.new(0,0,1.7,0)
- shop.shopFrame:TweenPosition(UDim2.new(0,0,0,0), 'Out', 'Back', 1, true)
- shop.Item.Value = 1
- camera.CameraType = "Scriptable"
- camera.CameraSubject = mainShop.Cam1
- camera.CFrame = mainShop.Cam1.CFrame
- for i = 0,1,0.05 do
- script.Parent.blackBG.BackgroundTransparency = i
- wait(0.05)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement