Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Hint = Instance.new("Hint", workspace)
- script.Parent = owner
- Hint.Text = '"Hiking a mountain" ; Minigame by DrakerMaker'
- wait(2)
- Hint.Text = "Inspired by JJK83"
- wait(2)
- Hint.Text = "Intermission : I I I I I I I"
- local Count = Instance.new("Sound", workspace)
- Count.SoundId = "rbxassetid://836911190"
- Count.Volume = 0.3
- local Height = Instance.new("Sound", workspace)
- Height.SoundId = "rbxassetid://836911190"
- Height.Volume = 0.3
- sub = 28
- height = 1
- function Do()
- Hint.Text = "Intermission : I I I I I I I"
- sub = 28
- height = 1
- for i = 1,8 do
- wait(1)
- Count:Play()
- sub = sub - 2
- Hint.Text = string.sub("Intermission : I I I I I I I", 1, sub)
- end
- Count.PlaybackSpeed = 2
- Count:Play()
- Hint.Text = "GO!"
- wait(1)
- Hint.Parent = nil
- Count.PlaybackSpeed = 1
- local LASTCFRAME
- Count:Play()
- local start = Instance.new("Part", workspace)
- start.Size = Vector3.new(15, 0.5, 15)
- start.BrickColor = BrickColor.new("White")
- start.Material = "Neon"
- start.CFrame = workspace.Base.CFrame *CFrame.new(math.random(-20, 20), 2, math.random(-20, 20))
- start.Anchored = true
- LASTCFRAME = start.CFrame
- for i = 1,50 do
- wait(0.1)
- Count:Play()
- local plat = Instance.new("Part", workspace)
- plat.Size = Vector3.new(15, 0.5, 15)
- plat.BrickColor = BrickColor.new("Cyan")
- plat.Material = "Neon"
- plat.CFrame = LASTCFRAME *CFrame.new(math.random(-20, 20), 7, math.random(-20, 20))
- plat.Anchored = true
- LASTCFRAME = plat.CFrame
- plat.Name = "HikePlat"
- plat.Touched:connect(function()
- plat.Material = "Marble"
- end)
- wait(0.3)
- if height < 5 then
- height = height +0.1
- end
- Height.PlaybackSpeed = height
- Height:Play()
- end
- Hint.Parent = workspace
- Hint.Text = "Aight, its time the builder mice take a rest. But the goal is ready! Go get it!"
- local goal = Instance.new("Part", workspace)
- goal.Size = Vector3.new(15, 0.5, 15)
- goal.BrickColor = BrickColor.new("New Yeller")
- goal.Material = "Neon"
- goal.CFrame = LASTCFRAME *CFrame.new(math.random(-20, 20), 4, math.random(-20, 20))
- goal.Anchored = true
- goal.Name = "HikePlatGoal"
- local WinnerWon = false
- goal.Touched:connect(function(p)
- if owner.Parent:FindFirstChild(p.Parent.Name) then
- if WinnerWon == false then
- WinnerWon = true
- Hint.Text = "Congrats, for "..p.Parent.Name.." has won the game!"
- wait(2)
- if owner.Parent[p.Parent.Name].Backpack:FindFirstChild("Fly") ~= nil then
- Hint.Text = "They have been rejected, I found Fly tool."
- WinnerWon = false
- if owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso") then
- force = Instance.new("BodyPosition", owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso"))
- force.Position = Vector3.new(900000000, 900000000000000000, 9000000000000)
- end
- if owner.Parent[p.Parent.Name].Character:FindFirstChild("UpperTorso") then
- force = Instance.new("BodyPosition", owner.Parent[p.Parent.Name].Character:FindFirstChild("Torso"))
- force.Position = Vector3.new(900000000, 900000000000000000, 9000000000000)
- end
- wait(2)
- Hint.Text = "Aight, its time the builder mice take a rest. But the goal is ready! Go get it!"
- elseif owner.Parent[p.Parent.Name].Backpack:FindFirstChild("Fly") == nil then
- Hint.Text = "Hold your horses, the builder mice are bulldozin up the course!"
- Hint.Parent = nil
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "HikePlat" then
- v.Anchored = false
- v.CanCollide = false
- end
- end
- goal.Anchored = false
- goal.CanCollide = false
- start:Destroy()
- script:Destroy()
- end
- end
- end
- end)
- end
- Do()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement