Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local camera = workspace.CurrentCamera
- local mainMenuMap = workspace:WaitForChild("MainMenuMap")
- local tweenService = game:GetService("TweenService")
- local btn = script.Parent
- local rStorage = game:GetService("ReplicatedStorage")
- local rEvents = rStorage:WaitForChild("RemoteEvents")
- function tweenCamera(pos,tweenTime)
- tweenService:Create(camera,TweenInfo.new(tweenTime,Enum.EasingStyle.Linear),{CFrame = pos.CFrame}):Play()
- end
- btn.MouseButton1Click:Connect(function()
- btn.Visible = false
- btn.Parent.Title.Visible = false
- btn.Parent.ShopBTN.Visible = false
- btn.Parent.ReturnShopBtn.Visible = false
- btn.Parent.ReturnMenu.Visible = true
- tweenCamera(mainMenuMap.Camera2,1)
- wait(1)
- local intermissionFrame = btn.Parent:WaitForChild("IntermissionFrame")
- intermissionFrame.Visible = true
- rEvents.AddPlayer:FireServer()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement