Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. ///////// Vibesgus grain silo script /////////////////////
  2.  
  3. -- Button
  4.  
  5. --[[ Positions [ Traps ]
  6.  
  7. 1 - 113.188, 29.203, 149.441
  8. 2 - 117.416, 29.203, 154.093
  9. 3 - 111.844, 29.203, 158.887
  10. 4 - 109.194, 29.203, 152.666
  11.  
  12. > End position
  13.  
  14. 5 - 116.53, 43.679, 153.272
  15.  
  16. --]]
  17.  
  18.  
  19.  
  20.  
  21.  
  22. door1 = script.Parent.Parent.Door1
  23. door2 = script.Parent.Parent.Door2
  24. grain1 = script.Parent.Parent.grain1
  25. grain2 = script.Parent.Parent.grain2
  26. tv = script.Parent.Parent.TV
  27. trap1 = script.Parent.Parent.Parent.Trap1
  28. trap2 = script.Parent.Parent.Parent.Trap2
  29. trap3 = script.Parent.Parent.Parent.Trap3
  30. trap4 = script.Parent.Parent.Parent.Trap4
  31. trap5 = script.Parent.Parent.Parent.Trap5
  32. trap6 = script.Parent.Parent.Parent.Trap6
  33. trap7 = script.Parent.Parent.Parent.Trap7
  34. trap8 = script.Parent.Parent.Parent.Trap8
  35. trap9 = script.Parent.Parent.Parent.Trap9
  36. trap10 = script.Parent.Parent.Parent.Trap10
  37. trap11 = script.Parent.Parent.Parent.Trap11
  38.  
  39. debounce = false
  40. script.Parent.ClickDetector.MouseClick:Connect(function()
  41. if debounce == false then
  42. debounce = true
  43.  
  44. door1.Transparency = 1
  45. door1.CanCollide = false
  46. door2.Transparency = 0
  47. door2.CanCollide = true
  48. door2.Sound:Play()
  49. wait(2)
  50. tv.Decal.Transparency = 0
  51. tv.Sound:Play()
  52. tv.PointLight.Enabled = true
  53. wait(6)
  54. tv.Decal.Transparency = 1
  55. tv.PointLight.Enabled = false
  56. wait(1)
  57. grain1.Transparency = 0
  58.  
  59. for i= 1, 9 do
  60. local FirstSize = grain1.Size
  61. grain1.Size = grain1.Size * Vector3.new(1, 1.33, 1)
  62. local secondSize = grain1.Size
  63. local sizetranform = secondSize - FirstSize
  64.  
  65. grain1.Position = grain1.Position - Vector3.new(0, sizetranform.Y/2, 0)
  66. wait(.2)
  67. end
  68. for i= 1, 16 do
  69. local FirstSize = grain2.Size
  70. grain2.Size = grain2.Size * Vector3.new(1, 1.33, 1)
  71. local secondSize = grain2.Size
  72. local sizetranform = secondSize - FirstSize
  73.  
  74. grain2.Position = grain2.Position - Vector3.new(0, sizetranform.Y/-2, 0)
  75. wait(.2)
  76. end
  77. grain1.Transparency = 1
  78. wait(5)
  79. trap1.Position = Vector3.new(113.188, 29.203, 149.441)
  80. wait(1)
  81. trap2.Position = Vector3.new(117.416, 29.203, 154.093)
  82. wait(1)
  83. trap3.Position = Vector3.new(111.844, 29.203, 158.887)
  84. wait(1)
  85. trap4.Position = Vector3.new(109.194, 29.203, 152.666)
  86. wait(1)
  87. trap5.Position = Vector3.new(109.194, 29.203, 152.666)
  88. wait(1)
  89. trap6.Position = Vector3.new(113.188, 29.203, 149.441)
  90. wait(1)
  91. trap7.Position = Vector3.new(117.416, 29.203, 154.093)
  92. wait(.3)
  93. trap8.Position = Vector3.new(111.844, 29.203, 158.887)
  94. wait(.3)
  95. trap9.Position = Vector3.new(109.194, 29.203, 152.666)
  96. wait(.3)
  97. trap10.Position = Vector3.new(117.416, 29.203, 154.093)
  98. wait(.3)
  99. trap11.Position = Vector3.new(113.188, 29.203, 149.441)
  100.  
  101. wait(1)
  102.  
  103. trap1.Position = Vector3.new(116.53, 43.679, 153.272)
  104. wait(.1)
  105. trap2.Position = Vector3.new(116.53, 43.679, 153.272)
  106. wait(.1)
  107. trap3.Position = Vector3.new(116.53, 43.679, 153.272)
  108. wait(.1)
  109. trap4.Position = Vector3.new(116.53, 43.679, 153.272)
  110. wait(.1)
  111. trap5.Position = Vector3.new(116.53, 43.679, 153.272)
  112. wait(.1)
  113. trap6.Position = Vector3.new(116.53, 43.679, 153.272)
  114. wait(.1)
  115. trap7.Position = Vector3.new(116.53, 43.679, 153.272)
  116. wait(.1)
  117. trap8.Position = Vector3.new(116.53, 43.679, 153.272)
  118. wait(.1)
  119. trap9.Position = Vector3.new(116.53, 43.679, 153.272)
  120. wait(.1)
  121. trap10.Position = Vector3.new(116.53, 43.679, 153.272)
  122. wait(.1)
  123. trap11.Position = Vector3.new(116.53, 43.679, 153.272)
  124.  
  125. wait(1)
  126.  
  127. grain1.Size = Vector3.new(5.41, 1.33, 7.41)
  128. grain1.Position = Vector3.new(113.273, 27.236, 143.239)
  129.  
  130. grain2.Size = Vector3.new(16.26, 0.05, 16.33)
  131. grain2.Position = Vector3.new(113.077, 9.525, 154.248)
  132.  
  133.  
  134. wait(2)
  135.  
  136. door1.Transparency = 0
  137. door1.CanCollide = true
  138. door2.Transparency = 1
  139. door2.CanCollide = false
  140. door1.Sound:Play()
  141. debounce = false
  142. end
  143. end)
  144.  
  145.  
  146. -- Grain Block
  147.  
  148.  
  149. script.Parent.Touched:Connect(function(hit)
  150. local humanoid = hit.Parent:FindFirstChild("Humanoid")
  151. if humanoid ~= nil then
  152. wait(.5)
  153. humanoid.WalkSpeed = 0
  154. humanoid.JumpPower = 0
  155. wait(17)
  156. humanoid.WalkSpeed = 16
  157. humanoid.JumpPower = 50
  158. end
  159. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement