Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////// Vibesgus grain silo script /////////////////////
- -- Button
- --[[ Positions [ Traps ]
- 1 - 113.188, 29.203, 149.441
- 2 - 117.416, 29.203, 154.093
- 3 - 111.844, 29.203, 158.887
- 4 - 109.194, 29.203, 152.666
- > End position
- 5 - 116.53, 43.679, 153.272
- --]]
- door1 = script.Parent.Parent.Door1
- door2 = script.Parent.Parent.Door2
- grain1 = script.Parent.Parent.grain1
- grain2 = script.Parent.Parent.grain2
- tv = script.Parent.Parent.TV
- trap1 = script.Parent.Parent.Parent.Trap1
- trap2 = script.Parent.Parent.Parent.Trap2
- trap3 = script.Parent.Parent.Parent.Trap3
- trap4 = script.Parent.Parent.Parent.Trap4
- trap5 = script.Parent.Parent.Parent.Trap5
- trap6 = script.Parent.Parent.Parent.Trap6
- trap7 = script.Parent.Parent.Parent.Trap7
- trap8 = script.Parent.Parent.Parent.Trap8
- trap9 = script.Parent.Parent.Parent.Trap9
- trap10 = script.Parent.Parent.Parent.Trap10
- trap11 = script.Parent.Parent.Parent.Trap11
- debounce = false
- script.Parent.ClickDetector.MouseClick:Connect(function()
- if debounce == false then
- debounce = true
- door1.Transparency = 1
- door1.CanCollide = false
- door2.Transparency = 0
- door2.CanCollide = true
- door2.Sound:Play()
- wait(2)
- tv.Decal.Transparency = 0
- tv.Sound:Play()
- tv.PointLight.Enabled = true
- wait(6)
- tv.Decal.Transparency = 1
- tv.PointLight.Enabled = false
- wait(1)
- grain1.Transparency = 0
- for i= 1, 9 do
- local FirstSize = grain1.Size
- grain1.Size = grain1.Size * Vector3.new(1, 1.33, 1)
- local secondSize = grain1.Size
- local sizetranform = secondSize - FirstSize
- grain1.Position = grain1.Position - Vector3.new(0, sizetranform.Y/2, 0)
- wait(.2)
- end
- for i= 1, 16 do
- local FirstSize = grain2.Size
- grain2.Size = grain2.Size * Vector3.new(1, 1.33, 1)
- local secondSize = grain2.Size
- local sizetranform = secondSize - FirstSize
- grain2.Position = grain2.Position - Vector3.new(0, sizetranform.Y/-2, 0)
- wait(.2)
- end
- grain1.Transparency = 1
- wait(5)
- trap1.Position = Vector3.new(113.188, 29.203, 149.441)
- wait(1)
- trap2.Position = Vector3.new(117.416, 29.203, 154.093)
- wait(1)
- trap3.Position = Vector3.new(111.844, 29.203, 158.887)
- wait(1)
- trap4.Position = Vector3.new(109.194, 29.203, 152.666)
- wait(1)
- trap5.Position = Vector3.new(109.194, 29.203, 152.666)
- wait(1)
- trap6.Position = Vector3.new(113.188, 29.203, 149.441)
- wait(1)
- trap7.Position = Vector3.new(117.416, 29.203, 154.093)
- wait(.3)
- trap8.Position = Vector3.new(111.844, 29.203, 158.887)
- wait(.3)
- trap9.Position = Vector3.new(109.194, 29.203, 152.666)
- wait(.3)
- trap10.Position = Vector3.new(117.416, 29.203, 154.093)
- wait(.3)
- trap11.Position = Vector3.new(113.188, 29.203, 149.441)
- wait(1)
- trap1.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap2.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap3.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap4.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap5.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap6.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap7.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap8.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap9.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap10.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(.1)
- trap11.Position = Vector3.new(116.53, 43.679, 153.272)
- wait(1)
- grain1.Size = Vector3.new(5.41, 1.33, 7.41)
- grain1.Position = Vector3.new(113.273, 27.236, 143.239)
- grain2.Size = Vector3.new(16.26, 0.05, 16.33)
- grain2.Position = Vector3.new(113.077, 9.525, 154.248)
- wait(2)
- door1.Transparency = 0
- door1.CanCollide = true
- door2.Transparency = 1
- door2.CanCollide = false
- door1.Sound:Play()
- debounce = false
- end
- end)
- -- Grain Block
- script.Parent.Touched:Connect(function(hit)
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- wait(.5)
- humanoid.WalkSpeed = 0
- humanoid.JumpPower = 0
- wait(17)
- humanoid.WalkSpeed = 16
- humanoid.JumpPower = 50
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement