Advertisement
DrakerMaker

Hiking A Mountain

Apr 17th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. local Hint = Instance.new("Hint", workspace)
  2. script.Parent = owner
  3. Hint.Text = '"Hiking a mountain" ; Minigame by DrakerMaker'
  4. wait(2)
  5. Hint.Text = "Inspired by JJK83"
  6. wait(2)
  7. Hint.Text = "Intermission : I I I I I I I"
  8. local Count = Instance.new("Sound", workspace)
  9. Count.SoundId = "rbxassetid://836911190"
  10. Count.Volume = 0.3
  11. local Height = Instance.new("Sound", workspace)
  12. Height.SoundId = "rbxassetid://836911190"
  13. Height.Volume = 0.3
  14. sub = 28
  15. height = 1
  16. function Do()
  17. Hint.Text = "Intermission : I I I I I I I"
  18. sub = 28
  19. height = 1
  20. for i = 1,8 do
  21. wait(1)
  22. Count:Play()
  23. sub = sub - 2
  24. Hint.Text = string.sub("Intermission : I I I I I I I", 1, sub)
  25. end
  26. Count.PlaybackSpeed = 2
  27. Count:Play()
  28. Hint.Text = "GO!"
  29. wait(1)
  30. Hint.Parent = nil
  31. Count.PlaybackSpeed = 1
  32. local LASTCFRAME
  33. Count:Play()
  34. local start = Instance.new("Part", workspace)
  35. start.Size = Vector3.new(15, 0.5, 15)
  36. start.BrickColor = BrickColor.new("White")
  37. start.Material = "Neon"
  38. start.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-20, 20), 2, math.random(-20, 20))
  39. start.Anchored = true
  40. LASTCFRAME = start.CFrame
  41. for i = 1,50 do
  42. wait(0.1)
  43. Count:Play()
  44. local plat = Instance.new("Part", workspace)
  45. plat.Size = Vector3.new(15, 0.5, 15)
  46. plat.BrickColor = BrickColor.new("Cyan")
  47. plat.Material = "Neon"
  48. plat.CFrame = LASTCFRAME *CFrame.new(math.random(-20, 20), 7, math.random(-20, 20))
  49. plat.Anchored = true
  50. LASTCFRAME = plat.CFrame
  51. plat.Name = "HikePlat"
  52. plat.Touched:connect(function()
  53. plat.Material = "Marble"
  54. end)
  55. wait(0.3)
  56. if height < 5 then
  57. height = height +0.1
  58. end
  59. Height.PlaybackSpeed = height
  60. Height:Play()
  61. end
  62. Hint.Parent = workspace
  63. Hint.Text = "Aight, its time the builder mice take a rest. But the goal is ready! Go get it!"
  64. local goal = Instance.new("Part", workspace)
  65. goal.Size = Vector3.new(15, 0.5, 15)
  66. goal.BrickColor = BrickColor.new("New Yeller")
  67. goal.Material = "Neon"
  68. goal.CFrame = LASTCFRAME *CFrame.new(math.random(-20, 20), 4, math.random(-20, 20))
  69. goal.Anchored = true
  70. goal.Name = "HikePlatGoal"
  71. local WinnerWon = false
  72. goal.Touched:connect(function(p)
  73. if owner.Parent:FindFirstChild(p.Parent.Name) then
  74. if WinnerWon == false then
  75. WinnerWon = true
  76. Hint.Text = "Congrats, for "..p.Parent.Name.." has won the game!"
  77. wait(2)
  78. if owner.Parent[p.Parent.Name].Backpack:FindFirstChild("Fly") ~= nil then
  79. Hint.Text = "They have been rejected, I found Fly tool."
  80. WinnerWon = false
  81. if owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso") then
  82. force = Instance.new("BodyPosition", owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso"))
  83. force.Position = Vector3.new(900000000, 900000000000000000, 9000000000000)
  84. end
  85. if owner.Parent[p.Parent.Name].Character:FindFirstChild("UpperTorso") then
  86. force = Instance.new("BodyPosition", owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso"))
  87. force.Position = Vector3.new(900000000, 900000000000000000, 9000000000000)
  88. end
  89. wait(2)
  90. Hint.Text = "Aight, its time the builder mice take a rest. But the goal is ready! Go get it!"
  91. elseif owner.Parent[p.Parent.Name].Backpack:FindFirstChild("Fly") == nil then
  92. Hint.Text = "Hold your horses, the builder mice are bulldozin up the course!"
  93. Hint.Parent = nil
  94. for i,v in pairs(workspace:GetChildren()) do
  95. if v.Name == "HikePlat" then
  96. v.Anchored = false
  97. v.CanCollide = false
  98. end
  99. end
  100. goal.Anchored = false
  101. goal.CanCollide = false
  102. start:Destroy()
  103. script:Destroy()
  104. end
  105. end
  106. end
  107. end)
  108. end
  109. Do()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement