Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.08 KB | None | 0 0
  1. local Background1Popin = Tween:Create(Background1, TweenInfo.new(0.3), {ImageTransparency = 0.5})
  2. local Background1Popout = Tween:Create(Background1, TweenInfo.new(0.3), {ImageTransparency = 1})
  3. local Background2Popin = Tween:Create(Background2, TweenInfo.new(0.3), {ImageTransparency = 0.5})
  4. local Background2Popout = Tween:Create(Background2, TweenInfo.new(0.3), {ImageTransparency = 1})
  5.  
  6. local Text1In = Tween:Create(Text1, TweenInfo.new(0.3), {TextTransparency = 0})
  7. local Text2In = Tween:Create(Text2, TweenInfo.new(0.3), {TextTransparency = 0})
  8.  
  9. local SlowRepeat = Tween:Create(GamePopup, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0.45, 0, 0.5, 0)})
  10.  
  11. local CredsPopin = Tween:Create(CreditsPopup, TweenInfo.new(0.3, Enum.EasingStyle.Sine), {Transparency = 0.5})
  12. local CredsPopout = Tween:Create(CreditsPopup, TweenInfo.new(0.3, Enum.EasingStyle.Sine), {Transparency = 1})
  13.  
  14. local CredsOpen = false
  15. local FT = 0
  16.  
  17. SlideOutSide:Play() -- Play Tween
  18.  
  19. local function TeleportToGame(GameID)
  20.     TeleportService:Teleport(GameID)
  21.     warn("YES")
  22. end
  23.  
  24. -- PlayBtn
  25. PlayBtn.MouseEnter:Connect(function()
  26.     HoverOverPlayBtn:Play()
  27. end)
  28. PlayBtn.MouseLeave:Connect(function()
  29.     LeavePlayBtn:Play()
  30. end)
  31. PlayBtn.MouseButton1Click:Connect(function()
  32.    
  33.     GamePopin:Play()
  34.     SlideInSide:Play()
  35.     if CredsOpen then
  36.         CredsPopout:Play()
  37.     end
  38.     wait(0.5)
  39.     Sidebar:Destroy()
  40.     CreditsPopup:Destroy()
  41.    
  42.     local Success, Error = pcall(function()
  43.         TeleportToGame(4706822983)
  44.     end)
  45.    
  46.     repeat
  47.         FT = FT + 1
  48.         wait(5)
  49.         Success, Error = pcall(function()
  50.             TeleportToGame(4706822983)
  51.         end)
  52.     until Success or FT == 1
  53.    
  54.     if FT == 5 then
  55.         Players.LocalPlayer:Kick("Problem Joining Game")
  56.     elseif FT ~= 5 and Success then
  57.         warn("YES!")
  58.     end
  59.    
  60.     local Images = {4686593352,4657541155,4686647404,4686611408, 4657541155}
  61.     local Quotes = {"Sharpen your blades, we're taking the long run", "The Akato Alliance is still holding, as never before", "Visit the Imperial Palace, it really is quite a site"}
  62.    
  63.     Background1Popin:Play()
  64.     Text1In:Play()
  65.     Text2In:Play()
  66.    
  67.     local QuoteLoop = coroutine.wrap(function()
  68.         while true do
  69.             for i,v in ipairs(Quotes) do
  70.                 wait(4)
  71.                 Text2.Text = v
  72.                 print(v)
  73.             end
  74.         end
  75.     end)()
  76.     local PicLoop = coroutine.wrap(function()
  77.         while true do
  78.             for i,v in ipairs(Images) do
  79.                 SlowRepeat:Play()
  80.                 if Background1.ImageTransparency == 0.5 then
  81.                     Background2.Image = "rbxassetid://"..v
  82.                 elseif Background2.ImageTransparency == 0.5 then
  83.                     Background1.Image = "rbxassetid://"..v
  84.                 end
  85.                 wait(5)
  86.                 GamePopup.Position = UDim2.new(0.55, 0, 0.5, 0)
  87.                 if Background1.ImageTransparency == 0.5 then
  88.                     Background2Popin:Play()
  89.                     Background1Popout:Play()
  90.                     wait(0.3)
  91.                 elseif Background2.ImageTransparency == 0.5 then
  92.                     Background1Popin:Play()
  93.                     Background2Popout:Play()
  94.                     wait(0.3)
  95.                 end
  96.                 print(v)
  97.             end
  98.         end
  99.     end)()
  100. end)
  101.  
  102. -- CreditBtn
  103. CreditsBtn.MouseEnter:Connect(function()
  104.     HoverOverCreditsBtn:Play()
  105. end)
  106. CreditsBtn.MouseLeave:Connect(function()
  107.     LeaveCreditsBtn:Play()
  108. end)
  109. CreditsBtn.MouseButton1Click:Connect(function()
  110.     if not CredsOpen then
  111.         CredsOpen = true
  112.         CredsPopin:Play()
  113.         wait(0.3)
  114.         for i,v in pairs(CreditsPopup:GetDescendants()) do
  115.             if v:IsA("TextLabel") then
  116.                 v.Visible = true
  117.             end
  118.         end
  119.     else
  120.         for i,v in pairs(CreditsPopup:GetDescendants()) do
  121.             if v:IsA("TextLabel") then
  122.                 v.Visible = false
  123.             end
  124.         end
  125.         CredsPopout:Play()
  126.         CredsOpen = false
  127.         wait(0.3)
  128.     end
  129. end)
  130.  
  131. -- CameraTweening
  132. local function TweenCameraPos(Point, Speed)
  133.     Tween:Create(Cam, TweenInfo.new(Speed, Enum.EasingStyle.Linear), {CFrame = Point.CFrame}):Play()
  134. end
  135.  
  136. Cam.CameraType = Enum.CameraType.Scriptable
  137. Cam.FieldOfView = 50
  138.  
  139. while true do
  140.     Cam.CFrame = CamPoints:FindFirstChild("1").CFrame
  141.     TweenCameraPos(CamPoints:FindFirstChild("2"), 4)
  142.     wait(4)
  143.     Cam.CFrame = CamPoints:FindFirstChild("3").CFrame
  144.     TweenCameraPos(CamPoints:FindFirstChild("4"), 4)
  145.     wait(4)
  146.     Cam.CFrame = CamPoints:FindFirstChild("5").CFrame
  147.     TweenCameraPos(CamPoints:FindFirstChild("6"), 4)
  148.     wait(4)
  149. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement