Advertisement
DISTROYER190

Untitled

May 16th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.17 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89.  
  90.  
  91. local player = owner
  92. local char = player.Character
  93. local camera = game.Workspace.CurrentCamera
  94.  
  95. function weld(p0,p1,c0)
  96. local w=Instance.new("Weld",p0)
  97. w.Part0=p0
  98. w.Part1=p1
  99. w.C0=c0
  100. return w
  101. end
  102.  
  103. local missilesilo = Instance.new("Model")
  104. missilesilo.Name = "Missile Silo"
  105.  
  106. part = Instance.new("Part", missilesilo)
  107. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  108. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  109. part.Anchored = true
  110. part.Material = Enum.Material.Metal
  111. part.Size = Vector3.new(15, 91, 37)
  112. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  113. part.CFrame = CFrame.new(2517.3, 1413.5, 95.5)* CFrame.Angles(0, 1.5707963705063, 0)
  114. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  115. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  116. part.Friction = 0.3
  117. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  118.  
  119. part_2 = Instance.new("Part", missilesilo)
  120. part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  121. part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  122. part_2.Anchored = true
  123. part_2.Material = Enum.Material.Grass
  124. part_2.Size = Vector3.new(37, 1, 81)
  125. part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  126. part_2.CFrame = CFrame.new(2517.3, 1458.5, 4.5)* CFrame.Angles(0, 1.5707963705063, 0)
  127. part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  128. part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  129. part_2.BrickColor = BrickColor.new("Earth green")
  130. part_2.Friction = 0.3
  131. part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  132.  
  133. part_3 = Instance.new("Part", missilesilo)
  134. part_3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  135. part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  136. part_3.Anchored = true
  137. part_3.Material = Enum.Material.Metal
  138. part_3.Size = Vector3.new(53, 1, 41)
  139. part_3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  140. part_3.CFrame = CFrame.new(2517.3, 1365.5, 62.5)* CFrame.Angles(0, 1.5707963705063, 0)
  141. part_3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  142. part_3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  143. part_3.Friction = 0.3
  144. part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  145.  
  146. part_4 = Instance.new("Part", missilesilo)
  147. part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  148. part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  149. part_4.Anchored = true
  150. part_4.Material = Enum.Material.Grass
  151. part_4.Size = Vector3.new(37, 1, 81)
  152. part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  153. part_4.CFrame = CFrame.new(2517.3, 1458.5, 121.5)* CFrame.Angles(3.1415927410126, 1.5707963705063, 0)
  154. part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  155. part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  156. part_4.BrickColor = BrickColor.new("Earth green")
  157. part_4.Friction = 0.3
  158. part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  159.  
  160. part_5 = Instance.new("Part", missilesilo)
  161. part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  162. part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  163. part_5.Anchored = true
  164. part_5.Material = Enum.Material.Grass
  165. part_5.Size = Vector3.new(37, 1, 154)
  166. part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  167. part_5.CFrame = CFrame.new(2576.3, 1458.5, 63)* CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  168. part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  169. part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  170. part_5.BrickColor = BrickColor.new("Earth green")
  171. part_5.Friction = 0.3
  172. part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  173.  
  174. button1 = Instance.new("Part", missilesilo)
  175. button1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  176. button1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  177. button1.Anchored = true
  178. button1.Material = Enum.Material.Metal
  179. button1.Size = Vector3.new(1, 1, 0.2)
  180. button1.Name = "button1"
  181. button1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  182. button1.CFrame = CFrame.new(2519.5, 1463.5, 95.1)
  183. button1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  184. button1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  185. button1.BrickColor = BrickColor.new("Really red")
  186. button1.Friction = 0.3
  187. button1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  188.  
  189. spawn = Instance.new("Part", missilesilo)
  190. spawn.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  191. spawn.Transparency = 1
  192. spawn.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  193. spawn.Anchored = true
  194. spawn.Material = Enum.Material.Metal
  195. spawn.Size = Vector3.new(12, 8, 1)
  196. spawn.Name = "spawn"
  197. spawn.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  198. spawn.CFrame = CFrame.new(2520.8, 1459.5, 123)* CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  199. spawn.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  200. spawn.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  201. spawn.BrickColor = BrickColor.new("Dark stone grey")
  202. spawn.Friction = 0.3
  203. spawn.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  204.  
  205. part_6 = Instance.new("Part", missilesilo)
  206. part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  207. part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  208. part_6.Anchored = true
  209. part_6.Material = Enum.Material.Metal
  210. part_6.Size = Vector3.new(12, 8, 1)
  211. part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  212. part_6.CFrame = CFrame.new(2522, 1463, 94.5)
  213. part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  214. part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  215. part_6.BrickColor = BrickColor.new("Dark stone grey")
  216. part_6.Friction = 0.3
  217. part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  218.  
  219. part_7 = Instance.new("Part", missilesilo)
  220. part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  221. part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  222. part_7.Anchored = true
  223. part_7.Material = Enum.Material.Grass
  224. part_7.Size = Vector3.new(37, 1, 154)
  225. part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  226. part_7.CFrame = CFrame.new(2458.3, 1458.5, 63)* CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  227. part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  228. part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  229. part_7.BrickColor = BrickColor.new("Earth green")
  230. part_7.Friction = 0.3
  231. part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  232.  
  233. part_8 = Instance.new("Part", missilesilo)
  234. part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  235. part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  236. part_8.Anchored = true
  237. part_8.Material = Enum.Material.Metal
  238. part_8.Size = Vector3.new(22, 91, 80)
  239. part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  240. part_8.CFrame = CFrame.new(2487.8, 1413.5, 63)
  241. part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  242. part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  243. part_8.Friction = 0.3
  244. part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  245.  
  246. part_9 = Instance.new("Part", missilesilo)
  247. part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  248. part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  249. part_9.Anchored = true
  250. part_9.Material = Enum.Material.Metal
  251. part_9.Size = Vector3.new(15, 91, 37)
  252. part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  253. part_9.CFrame = CFrame.new(2517.3, 1413.5, 30.5)* CFrame.Angles(0, 1.5707963705063, 0)
  254. part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  255. part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  256. part_9.Friction = 0.3
  257. part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  258.  
  259. part_10 = Instance.new("Part", missilesilo)
  260. part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  261. part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  262. part_10.Anchored = true
  263. part_10.Material = Enum.Material.Metal
  264. part_10.Size = Vector3.new(22, 91, 80)
  265. part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  266. part_10.CFrame = CFrame.new(2546.8, 1413.551, 63)
  267. part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  268. part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  269. part_10.Friction = 0.3
  270. part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  271.  
  272. local missile = Instance.new("Model", missilesilo)
  273. missile.Name = "Missile"
  274.  
  275. center = Instance.new("Part", missile)
  276. center.FormFactor = Enum.FormFactor.Symmetric
  277. center.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  278. center.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  279. center.Material = Enum.Material.Metal
  280. center.Size = Vector3.new(17.191, 19.666, 20.191)
  281. center.Name = "Center"
  282. center.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  283. center.CFrame = CFrame.new(2517.1, 1434.605, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  284. center.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  285. center.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  286. center.BrickColor = BrickColor.new("Black")
  287. center.Friction = 0.3
  288. center.Shape = Enum.PartType.Cylinder
  289. center.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  290.  
  291. tip = Instance.new("Part", missile)
  292. tip.FormFactor = Enum.FormFactor.Plate
  293. tip.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  294. tip.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  295. tip.Reflectance = 0.1
  296. tip.Material = Enum.Material.Neon
  297. tip.Size = Vector3.new(20.191, 27.866, 20.191)
  298. tip.Name = "Tip"
  299. tip.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  300. tip.CFrame = CFrame.new(2517.1, 1449.134, 62.5)* CFrame.Angles(-0, -1.5707963705063, 0)
  301. tip.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  302. tip.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  303. tip.BrickColor = BrickColor.new("New Yeller")
  304. tip.Friction = 0.3
  305. tip.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  306.  
  307. mesh = Instance.new("SpecialMesh", tip)
  308. mesh.Scale = Vector3.new(1, 1.2, 1)
  309. mesh.MeshType = Enum.MeshType.Sphere
  310.  
  311. part_11 = Instance.new("Part", missile)
  312. part_11.FormFactor = Enum.FormFactor.Symmetric
  313. part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  314. part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  315. part_11.Reflectance = 0.1
  316. part_11.Material = Enum.Material.Metal
  317. part_11.Size = Vector3.new(9.191, 19.666, 20.191)
  318. part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  319. part_11.CFrame = CFrame.new(2517.1, 1421.563, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  320. part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  321. part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  322. part_11.BrickColor = BrickColor.new("Deep orange")
  323. part_11.Friction = 0.3
  324. part_11.Shape = Enum.PartType.Cylinder
  325. part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  326.  
  327. extension = Instance.new("Part", missile)
  328. extension.FormFactor = Enum.FormFactor.Symmetric
  329. extension.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  330. extension.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  331. extension.Reflectance = 0.1
  332. extension.Material = Enum.Material.Metal
  333. extension.Size = Vector3.new(50.191, 15.666, 20.191)
  334. extension.Name = "extension"
  335. extension.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  336. extension.CFrame = CFrame.new(2517.1, 1391.962, 62.5)* CFrame.Angles(-1.5707963705063, -1.5707963705063, 0)
  337. extension.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  338. extension.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  339. extension.BrickColor = BrickColor.new("New Yeller")
  340. extension.Friction = 0.3
  341. extension.Shape = Enum.PartType.Cylinder
  342. extension.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  343.  
  344. local orientation = Instance.new("Part", missile)
  345. orientation.FormFactor = Enum.FormFactor.Plate
  346. orientation.CanCollide = false
  347. orientation.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  348. orientation.Transparency = 1
  349. orientation.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  350. orientation.Reflectance = 0.1
  351. orientation.Material = Enum.Material.Neon
  352. orientation.Size = Vector3.new(20.191, 27.866, 20.191)
  353. orientation.Name = "orientation"
  354. orientation.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  355. orientation.CFrame = CFrame.new(2517.1, 1445.6, 62.5)* CFrame.Angles(1.5707963705063, 4.3711388286738e-008, 1.5707963705063)
  356. orientation.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  357. orientation.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  358. orientation.BrickColor = BrickColor.new("New Yeller")
  359. orientation.Friction = 0.3
  360. orientation.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  361.  
  362. missile:BreakJoints()
  363. missile:MakeJoints()
  364.  
  365.  
  366. local prev
  367. local parts = missile:GetChildren()
  368.  
  369. for i = 1,#parts do
  370. 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
  371. if (prev ~= nil)then
  372. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  373. local weld = Instance.new("Weld")
  374. weld.Part0 = prev
  375. weld.Part1 = parts[i]
  376. weld.C0 = prev.CFrame:inverse()
  377. weld.C1 = parts[i].CFrame:inverse()
  378. weld.Parent = prev
  379. parts[i].Anchored = false
  380. end
  381. prev = parts[i]
  382. end
  383. end
  384. missile:MakeJoints()
  385.  
  386. missilesilo.Parent = game.Workspace.Terrain
  387.  
  388. char.Torso.CFrame = missilesilo.spawn.CFrame
  389.  
  390. local fired = false
  391. local control = false
  392.  
  393. local alarm = Instance.new("Sound")
  394. alarm.SoundId="http://www.roblox.com/asset/?id=433848566"
  395. alarm.PlayOnRemove=false
  396. alarm.Volume=20
  397. alarm.Looped=true
  398. alarm.Pitch = 1
  399. alarm.Parent=missilesilo.button1
  400.  
  401. local missilec = nil
  402.  
  403. function fire()
  404. missilec = missile:Clone()
  405.  
  406. local missilelaunch = Instance.new("Sound")
  407. missilelaunch.SoundId="http://www.roblox.com/asset/?id=717392973"
  408. missilelaunch.PlayOnRemove=false
  409. missilelaunch.Volume=10
  410. missilelaunch.Looped=false
  411. missilelaunch.Pitch = 1
  412. missilelaunch.Parent=missile.extension
  413.  
  414. local flight = Instance.new("Sound")
  415. flight.SoundId="http://www.roblox.com/asset/?id=1035287981"
  416. flight.PlayOnRemove=false
  417. flight.Volume=10
  418. flight.Looped=true
  419. flight.Pitch = 1
  420. flight.Parent=missile.Center
  421.  
  422. local smoke = Instance.new("Smoke",missile.extension)
  423. smoke.Color = Color3.new(0.603922, 0.603922, 0.603922)
  424. smoke.Opacity = 0.3
  425. smoke.Size = 10
  426.  
  427. local fire = Instance.new("Fire",missile.Tip)
  428. fire.Heat = 35
  429. fire.Size = 35
  430.  
  431. alarm:Play()
  432. coroutine.resume(coroutine.create(function()
  433. button1.BrickColor = BrickColor.new("Lime green")
  434. wait(.2)
  435. button1.BrickColor = BrickColor.new("Really Red")
  436. wait(.2)
  437. button1.BrickColor = BrickColor.new("Lime green")
  438. wait(.2)
  439. button1.BrickColor = BrickColor.new("Really red")
  440. wait(.2)
  441. button1.BrickColor = BrickColor.new("Lime green")
  442. wait(.2)
  443. button1.BrickColor = BrickColor.new("Really red")
  444. wait(.2)
  445. button1.BrickColor = BrickColor.new("Lime green")
  446. end))
  447.  
  448. wait(2)
  449. alarm:Stop()
  450. missilelaunch:Play()
  451. local bodythrust = Instance.new("BodyThrust", missile.Tip)
  452. bodythrust.force = Vector3.new(0, 100000000, 0)
  453.  
  454. wait(2)
  455. camera.CameraSubject = missile.Center
  456. wait(1)
  457. bodythrust:Destroy()
  458. control = true
  459. flight:Play()
  460. local bg = Instance.new("BodyGyro",missile.orientation)
  461. bg.D = 500
  462. bg.MaxTorque = Vector3.new(0,0,0)
  463. bg.P = 1000
  464. local bv = Instance.new("BodyVelocity",missile.orientation)
  465. bv.MaxForce = Vector3.new(9e20,9e20,9e20)
  466. bv.P = 1250
  467. bv.Velocity = Vector3.new(0,0.16,0)
  468.  
  469. missile.Tip.Touched:connect(function(h)
  470. if fired == true then
  471. print("Missile Exloded")
  472. control = false
  473. flight:Stop()
  474. missile.orientation.BodyGyro:Destroy()
  475. missile.orientation.BodyVelocity:Destroy()
  476. missile:BreakJoints()
  477. wait()
  478.  
  479. local boom = Instance.new("Part", workspace)
  480. boom.FormFactor = Enum.FormFactor.Plate
  481. boom.CanCollide = false
  482. boom.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  483. boom.Transparency = 0
  484. boom.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  485. boom.Reflectance = 0
  486. boom.Anchored = true
  487. boom.Material = Enum.Material.Neon
  488. boom.Size = Vector3.new(150.191, 150.666, 150.191)
  489. boom.Name = "boom"
  490. boom.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  491. boom.CFrame = CFrame.new(759.6, 65.4, 63.5)* CFrame.Angles(-0, -1.5707963705063, 0)
  492. boom.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  493. boom.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  494. boom.BrickColor = BrickColor.new("Bright yellow")
  495. boom.Friction = 0.3
  496. boom.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  497. boom.CFrame = missile.Tip.CFrame*CFrame.new(0,-.5,0)
  498. missile:Destroy()
  499.  
  500. local blastmesh = Instance.new("SpecialMesh", boom)
  501. blastmesh.Scale = Vector3.new(2, 2, 2)
  502. blastmesh.MeshType = Enum.MeshType.Sphere
  503. game.Debris:AddItem(boom,10.5)
  504.  
  505. local explosion = Instance.new("Explosion",boom)
  506. explosion.Position = boom.Position
  507. explosion.BlastRadius = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  508. explosion.BlastPressure = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  509. explosion.ExplosionType = Enum.ExplosionType.CratersAndDebris
  510. local explosionsound = Instance.new("Sound")
  511. explosionsound.SoundId="http://www.roblox.com/asset/?id=165969964"
  512. explosionsound.PlayOnRemove=false
  513. explosionsound.Volume=100
  514. explosionsound.Looped=false
  515. explosionsound.Pitch = 1
  516. explosionsound.Parent=boom
  517. explosionsound:Play()
  518.  
  519. coroutine.resume(coroutine.create(function()
  520. blastmesh.Scale = Vector3.new(4.10,4.10,4.10)
  521. wait(1)
  522. blastmesh.Scale = Vector3.new(6,6,6)
  523. wait(1)
  524. blastmesh.Scale = Vector3.new(6.10,6.10,6.10)
  525. wait(1)
  526. blastmesh.Scale = Vector3.new(8,8,8)
  527. end))
  528. coroutine.resume(coroutine.create(function()
  529. while (boom) do
  530. wait(.5)
  531. boom.Transparency=boom.Transparency+.1
  532. end
  533. end))
  534.  
  535. wait(8)
  536. camera.CameraSubject = char.Humanoid
  537. fired = false
  538. print("Cycle Complete")
  539. missilec.Parent = missilesilo
  540. missile = missilec
  541.  
  542. end
  543. end)
  544.  
  545. end
  546.  
  547. mouse.TargetFilter = workspace
  548. mouse.Move:connect(function(key)
  549. if control == true then
  550. missile.orientation.BodyGyro.MaxTorque = Vector3.new(9e20,9e20,9e20)
  551. missile.orientation.BodyGyro.CFrame = CFrame.new(missile.orientation.CFrame.p, mouse.Hit.p)
  552. missile.orientation.BodyVelocity.Velocity = (missile.orientation.CFrame.lookVector * 300)
  553. end
  554. end)
  555.  
  556.  
  557. mouse.KeyDown:connect(function(key)
  558. if key == "f" and fired == false then
  559. fired = true
  560. fire()
  561. end
  562. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement