Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.49 KB | None | 0 0
  1. local gui = script.Parent:WaitForChild("Gui")
  2. local explorerGui = script.Parent:WaitForChild("ExplorerGui")
  3. local explorer = gui:WaitForChild("Explorer")
  4. local diver = gui:WaitForChild("Diver")
  5. local astronaut = gui:WaitForChild("Astronaut")
  6. local chooseAdventure = gui:WaitForChild("ChooseAdventure")
  7. local explorerLabel = gui:WaitForChild("ExplorerLabel")
  8. local diverLabel = gui:WaitForChild("DiverLabel")
  9. local astronautLabel = gui:WaitForChild("AstronautLabel")
  10. local areYouSureLabel = gui:WaitForChild("AreYouSureLabel")
  11. local yesButton = gui:WaitForChild("YesButton")
  12. local noButton = gui:WaitForChild("NoButton")
  13. local storyLabel = explorerGui:WaitForChild("StoryLabel")
  14.  
  15. explorer.MouseButton1Click:Connect(function()
  16.     explorer.Visible = false
  17.     diver.Visible= false
  18.     astronaut.Visible = false
  19.     chooseAdventure.Visible = false
  20.     explorerLabel.Visible = false
  21.     diverLabel.Visible = false
  22.     astronautLabel.Visible = false
  23.     areYouSureLabel.Visible = true
  24.     yesButton.Visible = true
  25.     noButton.Visible = true
  26. end)
  27.  
  28. diver.MouseButton1Click:Connect(function()
  29.     explorer.Visible = false
  30.     diver.Visible= false
  31.     astronaut.Visible = false
  32.     chooseAdventure.Visible = false
  33.     explorerLabel.Visible = false
  34.     diverLabel.Visible = false
  35.     astronautLabel.Visible = false
  36.     areYouSureLabel.Visible = true
  37.     yesButton.Visible = true
  38.     noButton.Visible = true
  39. end)
  40.  
  41. astronaut.MouseButton1Click:Connect(function()
  42.     explorer.Visible = false
  43.     diver.Visible= false
  44.     astronaut.Visible = false
  45.     chooseAdventure.Visible = false
  46.     explorerLabel.Visible = false
  47.     diverLabel.Visible = false
  48.     astronautLabel.Visible = false
  49.     areYouSureLabel.Visible = true
  50.     yesButton.Visible = true
  51.     noButton.Visible = true
  52. end)
  53.  
  54. yesButton.MouseButton1Click:Connect(function()
  55.     areYouSureLabel.Visible = false
  56.     yesButton.Visible = false
  57.     noButton.Visible = false
  58.     storyLabel.Visible = true
  59.     wait(3)
  60.     while storyLabel.TextTransparency > 0 do
  61.         storyLabel.TextTransparency = storyLabel.TextTransparency - 0.1
  62.         wait(0.1)
  63.     end
  64.     wait(10)
  65.     while storyLabel.TextTransparency < 1 do
  66.         storyLabel.TextTransparency = storyLabel.TextTransparency + 0.1
  67.         wait(0.1)
  68.     end
  69.     storyLabel.Visible = false
  70. end)
  71.  
  72. noButton.MouseButton1Click:Connect(function()
  73.     areYouSureLabel.Visible = false
  74.     yesButton.Visible = false
  75.     noButton.Visible = false
  76.     explorer.Visible = true
  77.     diver.Visible = true
  78.     astronaut.Visible = true
  79.     explorerLabel.Visible = true
  80.     diverLabel.Visible = true
  81.     astronautLabel.Visible = true
  82.     chooseAdventure.Visible = true
  83. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement