ViggoCS

missle silo

Aug 4th, 2017
2,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.26 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character
  3. local mouse = player:GetMouse()
  4. local camera = game.Workspace.CurrentCamera
  5.  
  6. function weld(p0,p1,c0)
  7. local w=Instance.new("Weld",p0)
  8. w.Part0=p0
  9. w.Part1=p1
  10. w.C0=c0
  11. return w
  12. end
  13.  
  14. local missilesilo = Instance.new("Model")
  15. missilesilo.Name = "Missile Silo"
  16.  
  17. part = Instance.new("Part", missilesilo)
  18. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  19. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  20. part.Anchored = true
  21. part.Material = Enum.Material.Metal
  22. part.Size = Vector3.new(15, 91, 37)
  23. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  24. part.CFrame = CFrame.new(2517.3, 1413.5, 95.5)* CFrame.Angles(0, 1.5707963705063, 0)
  25. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  26. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  27. part.Friction = 0.3
  28. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  29.  
  30. part_2 = Instance.new("Part", missilesilo)
  31. part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  32. part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  33. part_2.Anchored = true
  34. part_2.Material = Enum.Material.Grass
  35. part_2.Size = Vector3.new(37, 1, 81)
  36. part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  37. part_2.CFrame = CFrame.new(2517.3, 1458.5, 4.5)* CFrame.Angles(0, 1.5707963705063, 0)
  38. part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  39. part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  40. part_2.BrickColor = BrickColor.new("Earth green")
  41. part_2.Friction = 0.3
  42. part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  43.  
  44. part_3 = Instance.new("Part", missilesilo)
  45. part_3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  46. part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  47. part_3.Anchored = true
  48. part_3.Material = Enum.Material.Metal
  49. part_3.Size = Vector3.new(53, 1, 41)
  50. part_3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  51. part_3.CFrame = CFrame.new(2517.3, 1365.5, 62.5)* CFrame.Angles(0, 1.5707963705063, 0)
  52. part_3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  53. part_3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  54. part_3.Friction = 0.3
  55. part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  56.  
  57. part_4 = Instance.new("Part", missilesilo)
  58. part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  59. part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  60. part_4.Anchored = true
  61. part_4.Material = Enum.Material.Grass
  62. part_4.Size = Vector3.new(37, 1, 81)
  63. part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  64. part_4.CFrame = CFrame.new(2517.3, 1458.5, 121.5)* CFrame.Angles(3.1415927410126, 1.5707963705063, 0)
  65. part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  66. part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  67. part_4.BrickColor = BrickColor.new("Earth green")
  68. part_4.Friction = 0.3
  69. part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  70.  
  71. part_5 = Instance.new("Part", missilesilo)
  72. part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  73. part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  74. part_5.Anchored = true
  75. part_5.Material = Enum.Material.Grass
  76. part_5.Size = Vector3.new(37, 1, 154)
  77. part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  78. part_5.CFrame = CFrame.new(2576.3, 1458.5, 63)* CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  79. part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  80. part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  81. part_5.BrickColor = BrickColor.new("Earth green")
  82. part_5.Friction = 0.3
  83. part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  84.  
  85. button1 = Instance.new("Part", missilesilo)
  86. button1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  87. button1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  88. button1.Anchored = true
  89. button1.Material = Enum.Material.Metal
  90. button1.Size = Vector3.new(1, 1, 0.2)
  91. button1.Name = "button1"
  92. button1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  93. button1.CFrame = CFrame.new(2519.5, 1463.5, 95.1)
  94. button1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  95. button1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  96. button1.BrickColor = BrickColor.new("Really red")
  97. button1.Friction = 0.3
  98. button1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  99.  
  100. spawn = Instance.new("Part", missilesilo)
  101. spawn.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  102. spawn.Transparency = 1
  103. spawn.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  104. spawn.Anchored = true
  105. spawn.Material = Enum.Material.Metal
  106. spawn.Size = Vector3.new(12, 8, 1)
  107. spawn.Name = "spawn"
  108. spawn.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  109. spawn.CFrame = CFrame.new(2520.8, 1459.5, 123)* CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  110. spawn.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  111. spawn.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  112. spawn.BrickColor = BrickColor.new("Dark stone grey")
  113. spawn.Friction = 0.3
  114. spawn.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  115.  
  116. part_6 = Instance.new("Part", missilesilo)
  117. part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  118. part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  119. part_6.Anchored = true
  120. part_6.Material = Enum.Material.Metal
  121. part_6.Size = Vector3.new(12, 8, 1)
  122. part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  123. part_6.CFrame = CFrame.new(2522, 1463, 94.5)
  124. part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  125. part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  126. part_6.BrickColor = BrickColor.new("Dark stone grey")
  127. part_6.Friction = 0.3
  128. part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  129.  
  130. part_7 = Instance.new("Part", missilesilo)
  131. part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  132. part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  133. part_7.Anchored = true
  134. part_7.Material = Enum.Material.Grass
  135. part_7.Size = Vector3.new(37, 1, 154)
  136. part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  137. part_7.CFrame = CFrame.new(2458.3, 1458.5, 63)* CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  138. part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  139. part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  140. part_7.BrickColor = BrickColor.new("Earth green")
  141. part_7.Friction = 0.3
  142. part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  143.  
  144. part_8 = Instance.new("Part", missilesilo)
  145. part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  146. part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  147. part_8.Anchored = true
  148. part_8.Material = Enum.Material.Metal
  149. part_8.Size = Vector3.new(22, 91, 80)
  150. part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  151. part_8.CFrame = CFrame.new(2487.8, 1413.5, 63)
  152. part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  153. part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  154. part_8.Friction = 0.3
  155. part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  156.  
  157. part_9 = Instance.new("Part", missilesilo)
  158. part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  159. part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  160. part_9.Anchored = true
  161. part_9.Material = Enum.Material.Metal
  162. part_9.Size = Vector3.new(15, 91, 37)
  163. part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  164. part_9.CFrame = CFrame.new(2517.3, 1413.5, 30.5)* CFrame.Angles(0, 1.5707963705063, 0)
  165. part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  166. part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  167. part_9.Friction = 0.3
  168. part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  169.  
  170. part_10 = Instance.new("Part", missilesilo)
  171. part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  172. part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  173. part_10.Anchored = true
  174. part_10.Material = Enum.Material.Metal
  175. part_10.Size = Vector3.new(22, 91, 80)
  176. part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  177. part_10.CFrame = CFrame.new(2546.8, 1413.551, 63)
  178. part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  179. part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  180. part_10.Friction = 0.3
  181. part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  182.  
  183. local missile = Instance.new("Model", missilesilo)
  184. missile.Name = "Missile"
  185.  
  186. center = Instance.new("Part", missile)
  187. center.FormFactor = Enum.FormFactor.Symmetric
  188. center.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  189. center.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  190. center.Material = Enum.Material.Metal
  191. center.Size = Vector3.new(17.191, 19.666, 20.191)
  192. center.Name = "Center"
  193. center.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  194. center.CFrame = CFrame.new(2517.1, 1434.605, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  195. center.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  196. center.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  197. center.BrickColor = BrickColor.new("Slime green")
  198. center.Friction = 0.3
  199. center.Shape = Enum.PartType.Cylinder
  200. center.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  201.  
  202. tip = Instance.new("Part", missile)
  203. tip.FormFactor = Enum.FormFactor.Plate
  204. tip.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  205. tip.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  206. tip.Reflectance = 0.1
  207. tip.Material = Enum.Material.Metal
  208. tip.Size = Vector3.new(20.191, 27.866, 20.191)
  209. tip.Name = "Tip"
  210. tip.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  211. tip.CFrame = CFrame.new(2517.1, 1449.134, 62.5)* CFrame.Angles(-0, -1.5707963705063, 0)
  212. tip.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  213. tip.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  214. tip.BrickColor = BrickColor.new("Smoky grey")
  215. tip.Friction = 0.3
  216. tip.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  217.  
  218. mesh = Instance.new("SpecialMesh", tip)
  219. mesh.Scale = Vector3.new(1, 1.2, 1)
  220. mesh.MeshType = Enum.MeshType.Sphere
  221.  
  222. part_11 = Instance.new("Part", missile)
  223. part_11.FormFactor = Enum.FormFactor.Symmetric
  224. part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  225. part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  226. part_11.Reflectance = 0.1
  227. part_11.Material = Enum.Material.Metal
  228. part_11.Size = Vector3.new(9.191, 19.666, 20.191)
  229. part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  230. part_11.CFrame = CFrame.new(2517.1, 1421.563, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  231. part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  232. part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  233. part_11.BrickColor = BrickColor.new("Dark stone grey")
  234. part_11.Friction = 0.3
  235. part_11.Shape = Enum.PartType.Cylinder
  236. part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  237.  
  238. extension = Instance.new("Part", missile)
  239. extension.FormFactor = Enum.FormFactor.Symmetric
  240. extension.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  241. extension.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  242. extension.Reflectance = 0.1
  243. extension.Material = Enum.Material.Metal
  244. extension.Size = Vector3.new(50.191, 15.666, 20.191)
  245. extension.Name = "extension"
  246. extension.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  247. extension.CFrame = CFrame.new(2517.1, 1391.962, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  248. extension.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  249. extension.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  250. extension.BrickColor = BrickColor.new("Dark stone grey")
  251. extension.Friction = 0.3
  252. extension.Shape = Enum.PartType.Cylinder
  253. extension.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  254.  
  255. local orientation = Instance.new("Part", missile)
  256. orientation.FormFactor = Enum.FormFactor.Plate
  257. orientation.CanCollide = false
  258. orientation.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  259. orientation.Transparency = 1
  260. orientation.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  261. orientation.Reflectance = 0.1
  262. orientation.Material = Enum.Material.Metal
  263. orientation.Size = Vector3.new(20.191, 27.866, 20.191)
  264. orientation.Name = "orientation"
  265. orientation.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  266. orientation.CFrame = CFrame.new(2517.1, 1445.6, 62.5)* CFrame.Angles(1.5707963705063, 4.3711388286738e-008, 1.5707963705063)
  267. orientation.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  268. orientation.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  269. orientation.BrickColor = BrickColor.new("Smoky grey")
  270. orientation.Friction = 0.3
  271. orientation.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  272.  
  273. missile:BreakJoints()
  274. missile:MakeJoints()
  275.  
  276.  
  277. local prev
  278. local parts = missile:GetChildren()
  279.  
  280. for i = 1,#parts do
  281. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  282. if (prev ~= nil)then
  283. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  284. local weld = Instance.new("Weld")
  285. weld.Part0 = prev
  286. weld.Part1 = parts[i]
  287. weld.C0 = prev.CFrame:inverse()
  288. weld.C1 = parts[i].CFrame:inverse()
  289. weld.Parent = prev
  290. parts[i].Anchored = false
  291. end
  292. prev = parts[i]
  293. end
  294. end
  295. missile:MakeJoints()
  296.  
  297. missilesilo.Parent = game.Workspace.Terrain
  298.  
  299. char.Torso.CFrame = missilesilo.spawn.CFrame
  300.  
  301. local fired = false
  302. local control = false
  303.  
  304. local alarm = Instance.new("Sound")
  305. alarm.SoundId="http://www.roblox.com/asset/?id=433848566"
  306. alarm.PlayOnRemove=false
  307. alarm.Volume=1
  308. alarm.Looped=true
  309. alarm.Pitch = 1
  310. alarm.Parent=missilesilo.button1
  311.  
  312. local missilec = nil
  313.  
  314. function fire()
  315. missilec = missile:Clone()
  316.  
  317. local missilelaunch = Instance.new("Sound")
  318. missilelaunch.SoundId="http://www.roblox.com/asset/?id=717392973"
  319. missilelaunch.PlayOnRemove=false
  320. missilelaunch.Volume=1
  321. missilelaunch.Looped=false
  322. missilelaunch.Pitch = 1
  323. missilelaunch.Parent=missile.extension
  324.  
  325. local flight = Instance.new("Sound")
  326. flight.SoundId="http://www.roblox.com/asset/?id=314470592"
  327. flight.PlayOnRemove=false
  328. flight.Volume=1
  329. flight.Looped=true
  330. flight.Pitch = 1
  331. flight.Parent=missile.Center
  332.  
  333. local smoke = Instance.new("Smoke",missile.extension)
  334. smoke.Color = Color3.new(0.603922, 0.603922, 0.603922)
  335. smoke.Opacity = 0.3
  336. smoke.Size = 10
  337.  
  338. local fire = Instance.new("Fire",missile.Tip)
  339. fire.Heat = 25
  340. fire.Size = 30
  341.  
  342. alarm:Play()
  343. coroutine.resume(coroutine.create(function()
  344. button1.BrickColor = BrickColor.new("Really black")
  345. wait(.2)
  346. button1.BrickColor = BrickColor.new("Really red")
  347. wait(.2)
  348. button1.BrickColor = BrickColor.new("Really black")
  349. wait(.2)
  350. button1.BrickColor = BrickColor.new("Really red")
  351. wait(.2)
  352. button1.BrickColor = BrickColor.new("Really black")
  353. wait(.2)
  354. button1.BrickColor = BrickColor.new("Really red")
  355. wait(.2)
  356. button1.BrickColor = BrickColor.new("Really black")
  357. end))
  358.  
  359. wait(2)
  360. alarm:Stop()
  361. missilelaunch:Play()
  362. local bodythrust = Instance.new("BodyThrust", missile.Tip)
  363. bodythrust.force = Vector3.new(0, 100000000, 0)
  364.  
  365. wait(2)
  366. camera.CameraSubject = missile.Center
  367. wait(1)
  368. bodythrust:Destroy()
  369. control = true
  370. flight:Play()
  371. local bg = Instance.new("BodyGyro",missile.orientation)
  372. bg.D = 500
  373. bg.MaxTorque = Vector3.new(0,0,0)
  374. bg.P = 1000
  375. local bv = Instance.new("BodyVelocity",missile.orientation)
  376. bv.MaxForce = Vector3.new(9e20,9e20,9e20)
  377. bv.P = 1250
  378. bv.Velocity = Vector3.new(0,0.16,0)
  379.  
  380. missile.Tip.Touched:connect(function(h)
  381. if fired == true then
  382. print("boom")
  383. control = false
  384. flight:Stop()
  385. missile.orientation.BodyGyro:Destroy()
  386. missile.orientation.BodyVelocity:Destroy()
  387. missile:BreakJoints()
  388. wait()
  389.  
  390. local boom = Instance.new("Part", workspace)
  391. boom.FormFactor = Enum.FormFactor.Plate
  392. boom.CanCollide = false
  393. boom.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  394. boom.Transparency = 0.4
  395. boom.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  396. boom.Reflectance = 0.1
  397. boom.Anchored = true
  398. boom.Material = Enum.Material.Metal
  399. boom.Size = Vector3.new(50.191, 32.666, 37.191)
  400. boom.Name = "boom"
  401. boom.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  402. boom.CFrame = CFrame.new(759.6, 65.4, 63.5)* CFrame.Angles(-0, -1.5707963705063, 0)
  403. boom.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  404. boom.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  405. boom.BrickColor = BrickColor.new("Bright yellow")
  406. boom.Friction = 0.3
  407. boom.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  408. boom.CFrame = missile.Tip.CFrame*CFrame.new(0,-.5,0)
  409. missile:Destroy()
  410.  
  411. local blastmesh = Instance.new("SpecialMesh", boom)
  412. blastmesh.Scale = Vector3.new(2, 2, 2)
  413. blastmesh.MeshType = Enum.MeshType.Sphere
  414. game.Debris:AddItem(boom,3.5)
  415.  
  416. local explosion = Instance.new("Explosion",boom)
  417. explosion.Position = boom.Position
  418. explosion.BlastRadius = 80
  419. explosion.ExplosionType = Enum.ExplosionType.CratersAndDebris
  420. local explosionsound = Instance.new("Sound")
  421. explosionsound.SoundId="http://www.roblox.com/asset/?id=341301373"
  422. explosionsound.PlayOnRemove=false
  423. explosionsound.Volume=1
  424. explosionsound.Looped=false
  425. explosionsound.Pitch = 1
  426. explosionsound.Parent=boom
  427. explosionsound:Play()
  428.  
  429. coroutine.resume(coroutine.create(function()
  430. blastmesh.Scale = Vector3.new(2.5,2.5,2.5)
  431. wait(1)
  432. blastmesh.Scale = Vector3.new(3,3,3)
  433. wait(1)
  434. blastmesh.Scale = Vector3.new(3.5,3.5,3.5)
  435. wait(1)
  436. blastmesh.Scale = Vector3.new(4,4,4)
  437. end))
  438. coroutine.resume(coroutine.create(function()
  439. while (boom) do
  440. wait(.5)
  441. boom.Transparency=boom.Transparency+.1
  442. end
  443. end))
  444.  
  445. wait(5)
  446. camera.CameraSubject = char.Humanoid
  447. fired = false
  448. print("fired = false")
  449. missilec.Parent = missilesilo
  450. missile = missilec
  451.  
  452. end
  453. end)
  454.  
  455. end
  456.  
  457. mouse.TargetFilter = workspace
  458. mouse.Move:connect(function(key)
  459. if control == true then
  460. missile.orientation.BodyGyro.MaxTorque = Vector3.new(9e20,9e20,9e20)
  461. missile.orientation.BodyGyro.CFrame = CFrame.new(missile.orientation.CFrame.p, mouse.Hit.p)
  462. missile.orientation.BodyVelocity.Velocity = (missile.orientation.CFrame.lookVector * 300)
  463. end
  464. end)
  465.  
  466.  
  467. mouse.KeyDown:connect(function(key)
  468. if key == "f" and fired == false then
  469. fired = true
  470. fire()
  471. end
  472. end)
Add Comment
Please, Sign In to add comment