Advertisement
yougotoof

Untitled

Dec 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.77 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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(),Button2Up=fakeEvent(),Button2Down=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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. --created by Intensivelake39 YT bad#5159 discord
  141. function sandbox(var,func)
  142. local env = getfenv(func)
  143. local newenv = setmetatable({},{
  144. __index = function(self,k)
  145. if k=="script" then
  146. return var
  147. else
  148. return env[k]
  149. end
  150. end,
  151. })
  152. setfenv(func,newenv)
  153. return func
  154. end
  155. cors = {}
  156. mas = Instance.new("Model",game:GetService("Lighting"))
  157. Model0 = Instance.new("Model")
  158. Model1 = Instance.new("Model")
  159. Part2 = Instance.new("Part")
  160. Decal3 = Instance.new("Decal")
  161. Decal4 = Instance.new("Decal")
  162. Part5 = Instance.new("Part")
  163. SpecialMesh6 = Instance.new("SpecialMesh")
  164. Part7 = Instance.new("Part")
  165. SpecialMesh8 = Instance.new("SpecialMesh")
  166. Part9 = Instance.new("Part")
  167. SpecialMesh10 = Instance.new("SpecialMesh")
  168. Part11 = Instance.new("Part")
  169. Fire12 = Instance.new("Fire")
  170. Smoke13 = Instance.new("Smoke")
  171. Part14 = Instance.new("Part")
  172. SpecialMesh15 = Instance.new("SpecialMesh")
  173. Part16 = Instance.new("Part")
  174. Part17 = Instance.new("Part")
  175. Part18 = Instance.new("Part")
  176. SpecialMesh19 = Instance.new("SpecialMesh")
  177. Part20 = Instance.new("Part")
  178. SpecialMesh21 = Instance.new("SpecialMesh")
  179. Part22 = Instance.new("Part")
  180. SpecialMesh23 = Instance.new("SpecialMesh")
  181. Part24 = Instance.new("Part")
  182. SpecialMesh25 = Instance.new("SpecialMesh")
  183. Part26 = Instance.new("Part")
  184. SpecialMesh27 = Instance.new("SpecialMesh")
  185. Part28 = Instance.new("Part")
  186. SpecialMesh29 = Instance.new("SpecialMesh")
  187. Part30 = Instance.new("Part")
  188. SpecialMesh31 = Instance.new("SpecialMesh")
  189. Part32 = Instance.new("Part")
  190. SpecialMesh33 = Instance.new("SpecialMesh")
  191. Part34 = Instance.new("Part")
  192. SpecialMesh35 = Instance.new("SpecialMesh")
  193. Part36 = Instance.new("Part")
  194. SpecialMesh37 = Instance.new("SpecialMesh")
  195. Script38 = Instance.new("Script")
  196. Part39 = Instance.new("Part")
  197. Part40 = Instance.new("Part")
  198. Model41 = Instance.new("Model")
  199. Part42 = Instance.new("Part")
  200. SpotLight43 = Instance.new("SpotLight")
  201. Part44 = Instance.new("Part")
  202. SpotLight45 = Instance.new("SpotLight")
  203. Part46 = Instance.new("Part")
  204. SpotLight47 = Instance.new("SpotLight")
  205. Part48 = Instance.new("Part")
  206. SpotLight49 = Instance.new("SpotLight")
  207. Part50 = Instance.new("Part")
  208. Part51 = Instance.new("Part")
  209. Part52 = Instance.new("Part")
  210. Part53 = Instance.new("Part")
  211. Part54 = Instance.new("Part")
  212. Part55 = Instance.new("Part")
  213. Part56 = Instance.new("Part")
  214. Part57 = Instance.new("Part")
  215. Part58 = Instance.new("Part")
  216. Part59 = Instance.new("Part")
  217. Part60 = Instance.new("Part")
  218. Part61 = Instance.new("Part")
  219. Part62 = Instance.new("Part")
  220. Part63 = Instance.new("Part")
  221. ClickDetector64 = Instance.new("ClickDetector")
  222. Sound65 = Instance.new("Sound")
  223. Sound66 = Instance.new("Sound")
  224. Sound67 = Instance.new("Sound")
  225. Sound68 = Instance.new("Sound")
  226. Script69 = Instance.new("Script")
  227. Model0.Name = "Nuke"
  228. Model0.Parent = mas
  229. Model1.Name = "Missle"
  230. Model1.Parent = Model0
  231. Part2.Name = "Smooth Block Model"
  232. Part2.Parent = Model1
  233. Part2.Material = Enum.Material.Granite
  234. Part2.BrickColor = BrickColor.new("Maroon")
  235. Part2.Rotation = Vector3.new(180, 0, -90)
  236. Part2.Anchored = true
  237. Part2.FormFactor = Enum.FormFactor.Symmetric
  238. Part2.Shape = Enum.PartType.Cylinder
  239. Part2.Size = Vector3.new(12.7264223, 12.7264223, 12.7264223)
  240. Part2.CFrame = CFrame.new(-41.6727715, 38.1929321, -1.01828945, 0, 1, 0, 1, 0, -1.23760116e-17, 1.23760116e-17, 0, -1)
  241. Part2.BottomSurface = Enum.SurfaceType.Smooth
  242. Part2.TopSurface = Enum.SurfaceType.Smooth
  243. Part2.Color = Color3.new(0.458824, 0, 0)
  244. Part2.Position = Vector3.new(-41.6727715, 38.1929321, -1.01828945)
  245. Part2.Orientation = Vector3.new(0, 180, 90)
  246. Part2.Color = Color3.new(0.458824, 0, 0)
  247. Decal3.Parent = Part2
  248. Decal3.Transparency = 0.5
  249. Decal3.Texture = "http://www.roblox.com/asset/?id=4740155"
  250. Decal3.Face = Enum.NormalId.Bottom
  251. Decal4.Parent = Part2
  252. Decal4.Transparency = 0.5
  253. Decal4.Texture = "http://www.roblox.com/asset/?id=4740155"
  254. Decal4.Face = Enum.NormalId.Top
  255. Part5.Name = "Smooth Block Model"
  256. Part5.Parent = Model1
  257. Part5.Material = Enum.Material.Granite
  258. Part5.BrickColor = BrickColor.new("Maroon")
  259. Part5.Rotation = Vector3.new(180, -90, 0)
  260. Part5.Anchored = true
  261. Part5.FormFactor = Enum.FormFactor.Custom
  262. Part5.Size = Vector3.new(12.7264223, 5.09056902, 12.7264223)
  263. Part5.CFrame = CFrame.new(-41.6727715, 19.1029396, -1.01828945, 0, 0, -1, -1.23760116e-17, -1, 0, -1, -1.23760116e-17, 0)
  264. Part5.BottomSurface = Enum.SurfaceType.Smooth
  265. Part5.TopSurface = Enum.SurfaceType.Smooth
  266. Part5.Color = Color3.new(0.458824, 0, 0)
  267. Part5.Position = Vector3.new(-41.6727715, 19.1029396, -1.01828945)
  268. Part5.Orientation = Vector3.new(0, -90, -180)
  269. Part5.Color = Color3.new(0.458824, 0, 0)
  270. SpecialMesh6.Parent = Part5
  271. SpecialMesh6.Scale = Vector3.new(1, 2.79999995, 1)
  272. SpecialMesh6.MeshType = Enum.MeshType.Sphere
  273. SpecialMesh6.Scale = Vector3.new(1, 2.79999995, 1)
  274. Part7.Name = "Smooth Block Model"
  275. Part7.Parent = Model1
  276. Part7.Material = Enum.Material.Granite
  277. Part7.BrickColor = BrickColor.new("Maroon")
  278. Part7.Rotation = Vector3.new(0, -90, 0)
  279. Part7.Anchored = true
  280. Part7.FormFactor = Enum.FormFactor.Custom
  281. Part7.Size = Vector3.new(6.36321115, 7.63585377, 5.09056902)
  282. Part7.CFrame = CFrame.new(-35.9458847, 10.1944962, -1.0182879, 0, 0, -1, 1.23760116e-17, 1, 0, 1, 1.23760116e-17, 0)
  283. Part7.BottomSurface = Enum.SurfaceType.Smooth
  284. Part7.TopSurface = Enum.SurfaceType.Smooth
  285. Part7.Color = Color3.new(0.458824, 0, 0)
  286. Part7.Position = Vector3.new(-35.9458847, 10.1944962, -1.0182879)
  287. Part7.Orientation = Vector3.new(0, -90, 0)
  288. Part7.Color = Color3.new(0.458824, 0, 0)
  289. SpecialMesh8.Parent = Part7
  290. SpecialMesh8.Scale = Vector3.new(0.200000003, 1, 1)
  291. SpecialMesh8.MeshType = Enum.MeshType.Wedge
  292. SpecialMesh8.Scale = Vector3.new(0.200000003, 1, 1)
  293. Part9.Name = "Smooth Block Model"
  294. Part9.Parent = Model1
  295. Part9.Material = Enum.Material.Granite
  296. Part9.BrickColor = BrickColor.new("Maroon")
  297. Part9.Rotation = Vector3.new(90, 0, 90)
  298. Part9.Anchored = true
  299. Part9.FormFactor = Enum.FormFactor.Custom
  300. Part9.Size = Vector3.new(6.36321115, 3.81792688, 6.36321115)
  301. Part9.CFrame = CFrame.new(-36.5822067, 3.19161606, -1.0182879, 0, -1, 0, 1.23760116e-17, 0, -1, 1, 0, -1.23760116e-17)
  302. Part9.BottomSurface = Enum.SurfaceType.Smooth
  303. Part9.TopSurface = Enum.SurfaceType.Smooth
  304. Part9.Color = Color3.new(0.458824, 0, 0)
  305. Part9.Position = Vector3.new(-36.5822067, 3.19161606, -1.0182879)
  306. Part9.Orientation = Vector3.new(90, -90, 0)
  307. Part9.Color = Color3.new(0.458824, 0, 0)
  308. SpecialMesh10.Parent = Part9
  309. SpecialMesh10.Scale = Vector3.new(0.200000003, 1, 1)
  310. SpecialMesh10.MeshType = Enum.MeshType.Brick
  311. SpecialMesh10.Scale = Vector3.new(0.200000003, 1, 1)
  312. Part11.Name = "Base"
  313. Part11.Parent = Model1
  314. Part11.Material = Enum.Material.Granite
  315. Part11.BrickColor = BrickColor.new("Maroon")
  316. Part11.Rotation = Vector3.new(180, 0, 90)
  317. Part11.Anchored = true
  318. Part11.FormFactor = Enum.FormFactor.Symmetric
  319. Part11.Shape = Enum.PartType.Cylinder
  320. Part11.Size = Vector3.new(6.36321115, 6.36321115, 6.36321115)
  321. Part11.CFrame = CFrame.new(-41.6727715, 3.19161606, -1.01828945, 0, -1, 0, -1, 0, -1.23760116e-17, -1.23760116e-17, 0, -1)
  322. Part11.BottomSurface = Enum.SurfaceType.Smooth
  323. Part11.TopSurface = Enum.SurfaceType.Smooth
  324. Part11.Color = Color3.new(0.458824, 0, 0)
  325. Part11.Position = Vector3.new(-41.6727715, 3.19161606, -1.01828945)
  326. Part11.Orientation = Vector3.new(0, 180, -90)
  327. Part11.Color = Color3.new(0.458824, 0, 0)
  328. Fire12.Parent = Part11
  329. Fire12.Size = 10
  330. Fire12.Color = Color3.new(0.92549, 0.545098, 0.27451)
  331. Fire12.Enabled = false
  332. Fire12.Heat = 0
  333. Fire12.Color = Color3.new(0.92549, 0.545098, 0.27451)
  334. Smoke13.Parent = Part11
  335. Smoke13.Enabled = false
  336. Smoke13.Opacity = 0.10000000149012
  337. Part14.Name = "Smooth Block Model"
  338. Part14.Parent = Model1
  339. Part14.Material = Enum.Material.Granite
  340. Part14.BrickColor = BrickColor.new("Maroon")
  341. Part14.Rotation = Vector3.new(180, 0, -90)
  342. Part14.Anchored = true
  343. Part14.FormFactor = Enum.FormFactor.Custom
  344. Part14.Size = Vector3.new(6.36321115, 1.27264225, 12.7264223)
  345. Part14.CFrame = CFrame.new(-34.036911, 3.19161606, -1.0182879, 0, 1, 0, 1, 0, -1.23760116e-17, 1.23760116e-17, 0, -1)
  346. Part14.BottomSurface = Enum.SurfaceType.Smooth
  347. Part14.TopSurface = Enum.SurfaceType.Smooth
  348. Part14.Color = Color3.new(0.458824, 0, 0)
  349. Part14.Position = Vector3.new(-34.036911, 3.19161606, -1.0182879)
  350. Part14.Orientation = Vector3.new(0, 180, 90)
  351. Part14.Color = Color3.new(0.458824, 0, 0)
  352. SpecialMesh15.Parent = Part14
  353. SpecialMesh15.Scale = Vector3.new(1, 1, 1.29999995)
  354. SpecialMesh15.MeshType = Enum.MeshType.Brick
  355. SpecialMesh15.Scale = Vector3.new(1, 1, 1.29999995)
  356. Part16.Name = "Smooth Block Model"
  357. Part16.Parent = Model1
  358. Part16.Material = Enum.Material.Granite
  359. Part16.BrickColor = BrickColor.new("Maroon")
  360. Part16.Rotation = Vector3.new(180, 0, -90)
  361. Part16.Anchored = true
  362. Part16.FormFactor = Enum.FormFactor.Symmetric
  363. Part16.Shape = Enum.PartType.Cylinder
  364. Part16.Size = Vector3.new(12.7264223, 12.7264223, 12.7264223)
  365. Part16.CFrame = CFrame.new(-41.6727715, 25.4662247, -1.01828945, 0, 1, 0, 1, 0, -1.23760116e-17, 1.23760116e-17, 0, -1)
  366. Part16.BottomSurface = Enum.SurfaceType.Smooth
  367. Part16.TopSurface = Enum.SurfaceType.Smooth
  368. Part16.Color = Color3.new(0.458824, 0, 0)
  369. Part16.Position = Vector3.new(-41.6727715, 25.4662247, -1.01828945)
  370. Part16.Orientation = Vector3.new(0, 180, 90)
  371. Part16.Color = Color3.new(0.458824, 0, 0)
  372. Part17.Name = "Smooth Block Model"
  373. Part17.Parent = Model1
  374. Part17.Material = Enum.Material.Granite
  375. Part17.BrickColor = BrickColor.new("Maroon")
  376. Part17.Rotation = Vector3.new(180, 0, 90)
  377. Part17.Anchored = true
  378. Part17.FormFactor = Enum.FormFactor.Symmetric
  379. Part17.Shape = Enum.PartType.Cylinder
  380. Part17.Size = Vector3.new(6.36321115, 6.36321115, 6.36321115)
  381. Part17.CFrame = CFrame.new(-41.6727715, 9.55810547, -1.01828945, 0, -1, 0, -1, 0, -1.23760116e-17, -1.23760116e-17, 0, -1)
  382. Part17.BottomSurface = Enum.SurfaceType.Smooth
  383. Part17.TopSurface = Enum.SurfaceType.Smooth
  384. Part17.Color = Color3.new(0.458824, 0, 0)
  385. Part17.Position = Vector3.new(-41.6727715, 9.55810547, -1.01828945)
  386. Part17.Orientation = Vector3.new(0, 180, -90)
  387. Part17.Color = Color3.new(0.458824, 0, 0)
  388. Part18.Name = "Smooth Block Model"
  389. Part18.Parent = Model1
  390. Part18.Material = Enum.Material.Granite
  391. Part18.BrickColor = BrickColor.new("Maroon")
  392. Part18.Rotation = Vector3.new(180, 0, -180)
  393. Part18.Anchored = true
  394. Part18.FormFactor = Enum.FormFactor.Custom
  395. Part18.Size = Vector3.new(6.36321115, 7.63585377, 5.09056902)
  396. Part18.CFrame = CFrame.new(-41.6727715, 10.1944962, 4.70861149, -1, 0, 0, 0, 1, -1.23760116e-17, 0, 1.23760116e-17, -1)
  397. Part18.BottomSurface = Enum.SurfaceType.Smooth
  398. Part18.TopSurface = Enum.SurfaceType.Smooth
  399. Part18.Color = Color3.new(0.458824, 0, 0)
  400. Part18.Position = Vector3.new(-41.6727715, 10.1944962, 4.70861149)
  401. Part18.Orientation = Vector3.new(0, 180, 0)
  402. Part18.Color = Color3.new(0.458824, 0, 0)
  403. SpecialMesh19.Parent = Part18
  404. SpecialMesh19.Scale = Vector3.new(0.200000003, 1, 1)
  405. SpecialMesh19.MeshType = Enum.MeshType.Wedge
  406. SpecialMesh19.Scale = Vector3.new(0.200000003, 1, 1)
  407. Part20.Name = "Smooth Block Model"
  408. Part20.Parent = Model1
  409. Part20.Material = Enum.Material.Granite
  410. Part20.BrickColor = BrickColor.new("Maroon")
  411. Part20.Rotation = Vector3.new(90, 0, 0)
  412. Part20.Anchored = true
  413. Part20.FormFactor = Enum.FormFactor.Custom
  414. Part20.Size = Vector3.new(6.36321115, 3.81792688, 6.36321115)
  415. Part20.CFrame = CFrame.new(-41.6727676, 3.19161606, -6.10888004, 1, 0, 0, 0, 1.23760116e-17, -1, 0, 1, -1.23760116e-17)
  416. Part20.BottomSurface = Enum.SurfaceType.Smooth
  417. Part20.TopSurface = Enum.SurfaceType.Smooth
  418. Part20.Color = Color3.new(0.458824, 0, 0)
  419. Part20.Position = Vector3.new(-41.6727676, 3.19161606, -6.10888004)
  420. Part20.Orientation = Vector3.new(90, 0, 0)
  421. Part20.Color = Color3.new(0.458824, 0, 0)
  422. SpecialMesh21.Parent = Part20
  423. SpecialMesh21.Scale = Vector3.new(0.200000003, 1, 1)
  424. SpecialMesh21.MeshType = Enum.MeshType.Brick
  425. SpecialMesh21.Scale = Vector3.new(0.200000003, 1, 1)
  426. Part22.Name = "Smooth Block Model"
  427. Part22.Parent = Model1
  428. Part22.Material = Enum.Material.Granite
  429. Part22.BrickColor = BrickColor.new("Maroon")
  430. Part22.Rotation = Vector3.new(0, 90, 0)
  431. Part22.Anchored = true
  432. Part22.FormFactor = Enum.FormFactor.Custom
  433. Part22.Size = Vector3.new(6.36321115, 7.63585377, 5.09056902)
  434. Part22.CFrame = CFrame.new(-47.3996544, 10.1944962, -1.01828945, 0, 0, 1, -1.23760116e-17, 1, 0, -1, 1.23760116e-17, 0)
  435. Part22.BottomSurface = Enum.SurfaceType.Smooth
  436. Part22.TopSurface = Enum.SurfaceType.Smooth
  437. Part22.Color = Color3.new(0.458824, 0, 0)
  438. Part22.Position = Vector3.new(-47.3996544, 10.1944962, -1.01828945)
  439. Part22.Orientation = Vector3.new(0, 90, 0)
  440. Part22.Color = Color3.new(0.458824, 0, 0)
  441. SpecialMesh23.Parent = Part22
  442. SpecialMesh23.Scale = Vector3.new(0.200000003, 1, 1)
  443. SpecialMesh23.MeshType = Enum.MeshType.Wedge
  444. SpecialMesh23.Scale = Vector3.new(0.200000003, 1, 1)
  445. Part24.Name = "Smooth Block Model"
  446. Part24.Parent = Model1
  447. Part24.Material = Enum.Material.Granite
  448. Part24.BrickColor = BrickColor.new("Maroon")
  449. Part24.Anchored = true
  450. Part24.FormFactor = Enum.FormFactor.Custom
  451. Part24.Size = Vector3.new(6.36321115, 7.63585377, 5.09056902)
  452. Part24.CFrame = CFrame.new(-41.6727676, 10.1944962, -6.74519205, 1, 0, 0, 0, 1, 1.23760116e-17, 0, 1.23760116e-17, 1)
  453. Part24.BottomSurface = Enum.SurfaceType.Smooth
  454. Part24.TopSurface = Enum.SurfaceType.Smooth
  455. Part24.Color = Color3.new(0.458824, 0, 0)
  456. Part24.Position = Vector3.new(-41.6727676, 10.1944962, -6.74519205)
  457. Part24.Color = Color3.new(0.458824, 0, 0)
  458. SpecialMesh25.Parent = Part24
  459. SpecialMesh25.Scale = Vector3.new(0.200000003, 1, 1)
  460. SpecialMesh25.MeshType = Enum.MeshType.Wedge
  461. SpecialMesh25.Scale = Vector3.new(0.200000003, 1, 1)
  462. Part26.Name = "Smooth Block Model"
  463. Part26.Parent = Model1
  464. Part26.Material = Enum.Material.Granite
  465. Part26.BrickColor = BrickColor.new("Maroon")
  466. Part26.Rotation = Vector3.new(-90, 90, 0)
  467. Part26.Anchored = true
  468. Part26.FormFactor = Enum.FormFactor.Custom
  469. Part26.Size = Vector3.new(6.36321115, 1.27264225, 12.7264223)
  470. Part26.CFrame = CFrame.new(-41.6727676, 3.19161606, -8.65412521, 0, 0, 1, -1, -1.23760116e-17, 0, -1.23760116e-17, -1, 0)
  471. Part26.BottomSurface = Enum.SurfaceType.Smooth
  472. Part26.TopSurface = Enum.SurfaceType.Smooth
  473. Part26.Color = Color3.new(0.458824, 0, 0)
  474. Part26.Position = Vector3.new(-41.6727676, 3.19161606, -8.65412521)
  475. Part26.Orientation = Vector3.new(0, 90, -90)
  476. Part26.Color = Color3.new(0.458824, 0, 0)
  477. SpecialMesh27.Parent = Part26
  478. SpecialMesh27.Scale = Vector3.new(1, 1, 1.29999995)
  479. SpecialMesh27.MeshType = Enum.MeshType.Brick
  480. SpecialMesh27.Scale = Vector3.new(1, 1, 1.29999995)
  481. Part28.Name = "Smooth Block Model"
  482. Part28.Parent = Model1
  483. Part28.Material = Enum.Material.Granite
  484. Part28.BrickColor = BrickColor.new("Maroon")
  485. Part28.Rotation = Vector3.new(90, 90, 0)
  486. Part28.Anchored = true
  487. Part28.FormFactor = Enum.FormFactor.Custom
  488. Part28.Size = Vector3.new(6.36321115, 1.27264225, 12.7264223)
  489. Part28.CFrame = CFrame.new(-41.6727715, 3.19161606, 6.61754513, 0, 0, 1, 1, 1.23760116e-17, 0, 1.23760116e-17, 1, 0)
  490. Part28.BottomSurface = Enum.SurfaceType.Smooth
  491. Part28.TopSurface = Enum.SurfaceType.Smooth
  492. Part28.Color = Color3.new(0.458824, 0, 0)
  493. Part28.Position = Vector3.new(-41.6727715, 3.19161606, 6.61754513)
  494. Part28.Orientation = Vector3.new(0, 90, 90)
  495. Part28.Color = Color3.new(0.458824, 0, 0)
  496. SpecialMesh29.Parent = Part28
  497. SpecialMesh29.Scale = Vector3.new(1, 1, 1.29999995)
  498. SpecialMesh29.MeshType = Enum.MeshType.Brick
  499. SpecialMesh29.Scale = Vector3.new(1, 1, 1.29999995)
  500. Part30.Name = "Smooth Block Model"
  501. Part30.Parent = Model1
  502. Part30.Material = Enum.Material.Granite
  503. Part30.BrickColor = BrickColor.new("Maroon")
  504. Part30.Rotation = Vector3.new(90, 0, 0)
  505. Part30.Anchored = true
  506. Part30.FormFactor = Enum.FormFactor.Custom
  507. Part30.Size = Vector3.new(6.36321115, 3.81792688, 6.36321115)
  508. Part30.CFrame = CFrame.new(-41.6727715, 3.19161606, 4.072299, 1, 0, 0, 0, 1.23760116e-17, -1, 0, 1, -1.23760116e-17)
  509. Part30.BottomSurface = Enum.SurfaceType.Smooth
  510. Part30.TopSurface = Enum.SurfaceType.Smooth
  511. Part30.Color = Color3.new(0.458824, 0, 0)
  512. Part30.Position = Vector3.new(-41.6727715, 3.19161606, 4.072299)
  513. Part30.Orientation = Vector3.new(90, 0, 0)
  514. Part30.Color = Color3.new(0.458824, 0, 0)
  515. SpecialMesh31.Parent = Part30
  516. SpecialMesh31.Scale = Vector3.new(0.200000003, 1, 1)
  517. SpecialMesh31.MeshType = Enum.MeshType.Brick
  518. SpecialMesh31.Scale = Vector3.new(0.200000003, 1, 1)
  519. Part32.Name = "Smooth Block Model"
  520. Part32.Parent = Model1
  521. Part32.Material = Enum.Material.Granite
  522. Part32.BrickColor = BrickColor.new("Maroon")
  523. Part32.Rotation = Vector3.new(90, 0, 90)
  524. Part32.Anchored = true
  525. Part32.FormFactor = Enum.FormFactor.Custom
  526. Part32.Size = Vector3.new(6.36321115, 3.81792688, 6.36321115)
  527. Part32.CFrame = CFrame.new(-46.7633286, 3.19161606, -1.01828945, 0, -1, 0, 1.23760116e-17, 0, -1, 1, 0, -1.23760116e-17)
  528. Part32.BottomSurface = Enum.SurfaceType.Smooth
  529. Part32.TopSurface = Enum.SurfaceType.Smooth
  530. Part32.Color = Color3.new(0.458824, 0, 0)
  531. Part32.Position = Vector3.new(-46.7633286, 3.19161606, -1.01828945)
  532. Part32.Orientation = Vector3.new(90, -90, 0)
  533. Part32.Color = Color3.new(0.458824, 0, 0)
  534. SpecialMesh33.Parent = Part32
  535. SpecialMesh33.Scale = Vector3.new(0.200000003, 1, 1)
  536. SpecialMesh33.MeshType = Enum.MeshType.Brick
  537. SpecialMesh33.Scale = Vector3.new(0.200000003, 1, 1)
  538. Part34.Name = "Smooth Block Model"
  539. Part34.Parent = Model1
  540. Part34.Material = Enum.Material.Granite
  541. Part34.BrickColor = BrickColor.new("Maroon")
  542. Part34.Rotation = Vector3.new(180, 0, 90)
  543. Part34.Anchored = true
  544. Part34.FormFactor = Enum.FormFactor.Custom
  545. Part34.Size = Vector3.new(6.36321115, 1.27264225, 12.7264223)
  546. Part34.CFrame = CFrame.new(-49.3086243, 3.19161606, -1.01828945, 0, -1, 0, -1, 0, -1.23760116e-17, -1.23760116e-17, 0, -1)
  547. Part34.BottomSurface = Enum.SurfaceType.Smooth
  548. Part34.TopSurface = Enum.SurfaceType.Smooth
  549. Part34.Color = Color3.new(0.458824, 0, 0)
  550. Part34.Position = Vector3.new(-49.3086243, 3.19161606, -1.01828945)
  551. Part34.Orientation = Vector3.new(0, 180, -90)
  552. Part34.Color = Color3.new(0.458824, 0, 0)
  553. SpecialMesh35.Parent = Part34
  554. SpecialMesh35.Scale = Vector3.new(1, 1, 1.29999995)
  555. SpecialMesh35.MeshType = Enum.MeshType.Brick
  556. SpecialMesh35.Scale = Vector3.new(1, 1, 1.29999995)
  557. Part36.Name = "Tip"
  558. Part36.Parent = Model1
  559. Part36.Material = Enum.Material.Granite
  560. Part36.BrickColor = BrickColor.new("Really red")
  561. Part36.Reflectance = 0.20000000298023
  562. Part36.Rotation = Vector3.new(180, 0, -180)
  563. Part36.Anchored = true
  564. Part36.FormFactor = Enum.FormFactor.Custom
  565. Part36.Size = Vector3.new(12.7264223, 4.77240849, 12.7264223)
  566. Part36.CFrame = CFrame.new(-41.6727715, 58.3993492, -1.01828945, -1, 0, 0, 0, 1, -1.23760116e-17, 0, 1.23760116e-17, -1)
  567. Part36.BottomSurface = Enum.SurfaceType.Smooth
  568. Part36.TopSurface = Enum.SurfaceType.Smooth
  569. Part36.Color = Color3.new(1, 0, 0)
  570. Part36.Position = Vector3.new(-41.6727715, 58.3993492, -1.01828945)
  571. Part36.Orientation = Vector3.new(0, 180, 0)
  572. Part36.Color = Color3.new(1, 0, 0)
  573. SpecialMesh37.Parent = Part36
  574. SpecialMesh37.Scale = Vector3.new(1, 5, 1)
  575. SpecialMesh37.MeshType = Enum.MeshType.Sphere
  576. SpecialMesh37.Scale = Vector3.new(1, 5, 1)
  577. Script38.Name = "Boom"
  578. Script38.Parent = Part36
  579. Script38.Disabled = true
  580. table.insert(cors,sandbox(Script38,function()
  581. while true do
  582. c = game.Workspace:GetChildren()
  583. for i =1,#c do
  584. if ((c[i].className == "Part" or c[i].className == "TrussPart" or c[i].className == "WedgePart" or c[i].className == "Seat" or c[i].className == "VehicleSeat") and (c[i].Position - script.Parent.Position).magnitude < (script.Parent.Size.X / 2.1) - 5) then
  585. if c[i].Locked == false then
  586. c[i].Material = Enum.Material.CorrodedMetal
  587. c[i].Anchored = false
  588. c[i]:BreakJoints()
  589. local miniboom = script.Parent.Parent.Parent.Button.SmallBoom:Clone()
  590. miniboom.Parent=c[i]
  591. miniboom:Play()
  592. game.Debris:AddItem(miniboom,1)
  593. end
  594. end
  595. if (c[i].className == "Model") then
  596. end
  597. g = c[i]:GetChildren()
  598. for j =1,#g do
  599. if ((g[j].className == "Part" or g[j].className == "TrussPart" or g[j].className == "WedgePart" or g[j].className == "Seat" or g[j].className == "VehicleSeat") and g[j].Name ~= script.Parent.Name and g[j].Name ~= "Glow" and (g[j].Position - script.Parent.Position).magnitude < (script.Parent.Size.X / 2.1) - 5) then
  600. g[j].Material = Enum.Material.CorrodedMetal
  601. g[j].Anchored = false
  602. g[j]:BreakJoints()
  603. local miniboom = script.Parent.Parent.Parent.Button.SmallBoom:Clone()
  604. miniboom.Parent=c[i]
  605. miniboom:Play()
  606. game.Debris:AddItem(miniboom,1)
  607. end
  608. if (g[j].className == "Model") then
  609. end
  610. t = g[j]:GetChildren()
  611. for s =1,#t do
  612. if ((t[s].className == "Part" or t[s].className == "TrussPart" or t[s].className == "WedgePart" or t[s].className == "Seat" or t[s].className == "VehicleSeat") and t[s].Name ~= script.Parent.Name and t[s].Name ~= "Glow" and (t[s].Position - script.Parent.Position).magnitude < (script.Parent.Size.X / 2.1) - 5) then
  613. t[s].Material = Enum.Material.CorrodedMetal
  614. t[s].Anchored = false
  615. t[s]:BreakJoints()
  616. end
  617. if (t[s].className == "Model") then
  618. end
  619. a = t[s]:GetChildren()
  620. for z =1,#a do
  621. if ((a[z].className == "Part" or a[z].className == "TrussPart" or a[z].className == "WedgePart" or a[z].className == "Seat" or a[z].className == "VehicleSeat") and a[z].Name ~= script.Parent.Name and a[z].Name ~= "Glow" and (a[z].Position - script.Parent.Position).magnitude < (script.Parent.Size.X / 2.1) - 5) then
  622. a[z].Material = Enum.Material.CorrodedMetal
  623. a[z].Anchored = false
  624. a[z]:BreakJoints()
  625. end
  626. if (a[z].className == "Model") then
  627. end
  628. p = a[z]:GetChildren()
  629. for l =1,#p do
  630. if ((p[l].className == "Part" or p[l].className == "TrussPart" or p[l].className == "WedgePart" or p[l].className == "Seat" or p[l].className == "VehicleSeat") and p[l].Name ~= script.Parent.Name and p[l].Name ~= "Glow" and (p[l].Position - script.Parent.Position).magnitude < (script.Parent.Size.X / 2.1) - 5) then
  631. p[l].Material = Enum.Material.CorrodedMetal
  632. p[l].Anchored = false
  633. p[l]:BreakJoints()
  634. end
  635. end
  636. end
  637. end
  638. end
  639. end
  640. wait(.3)
  641. end
  642.  
  643. end))
  644. Part39.Name = "Smooth Block Model"
  645. Part39.Parent = Model1
  646. Part39.Material = Enum.Material.Granite
  647. Part39.BrickColor = BrickColor.new("Maroon")
  648. Part39.Rotation = Vector3.new(180, 0, 90)
  649. Part39.Anchored = true
  650. Part39.FormFactor = Enum.FormFactor.Symmetric
  651. Part39.Shape = Enum.PartType.Cylinder
  652. Part39.Size = Vector3.new(6.36321115, 6.36321115, 6.36321115)
  653. Part39.CFrame = CFrame.new(-41.6727715, 15.9211998, -1.01828945, 0, -1, 0, -1, 0, -1.23760116e-17, -1.23760116e-17, 0, -1)
  654. Part39.BottomSurface = Enum.SurfaceType.Smooth
  655. Part39.TopSurface = Enum.SurfaceType.Smooth
  656. Part39.Color = Color3.new(0.458824, 0, 0)
  657. Part39.Position = Vector3.new(-41.6727715, 15.9211998, -1.01828945)
  658. Part39.Orientation = Vector3.new(0, 180, -90)
  659. Part39.Color = Color3.new(0.458824, 0, 0)
  660. Part40.Name = "Smooth Block Model"
  661. Part40.Parent = Model1
  662. Part40.Material = Enum.Material.Granite
  663. Part40.BrickColor = BrickColor.new("Maroon")
  664. Part40.Rotation = Vector3.new(180, 0, -90)
  665. Part40.Anchored = true
  666. Part40.FormFactor = Enum.FormFactor.Symmetric
  667. Part40.Shape = Enum.PartType.Cylinder
  668. Part40.Size = Vector3.new(12.7264223, 12.7264223, 12.7264223)
  669. Part40.CFrame = CFrame.new(-41.6727715, 50.9226112, -1.01828945, 0, 1, 0, 1, 0, -1.23760116e-17, 1.23760116e-17, 0, -1)
  670. Part40.BottomSurface = Enum.SurfaceType.Smooth
  671. Part40.TopSurface = Enum.SurfaceType.Smooth
  672. Part40.Color = Color3.new(0.458824, 0, 0)
  673. Part40.Position = Vector3.new(-41.6727715, 50.9226112, -1.01828945)
  674. Part40.Orientation = Vector3.new(0, 180, 90)
  675. Part40.Color = Color3.new(0.458824, 0, 0)
  676. Model41.Name = "Lights"
  677. Model41.Parent = Model0
  678. Part42.Name = "Light"
  679. Part42.Parent = Model41
  680. Part42.BrickColor = BrickColor.new("Really black")
  681. Part42.Anchored = true
  682. Part42.FormFactor = Enum.FormFactor.Custom
  683. Part42.Size = Vector3.new(10.8174582, 3.81792593, 38.1792641)
  684. Part42.CFrame = CFrame.new(-55.3536644, 1.93715477, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  685. Part42.BottomSurface = Enum.SurfaceType.Smooth
  686. Part42.TopSurface = Enum.SurfaceType.Smooth
  687. Part42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  688. Part42.Position = Vector3.new(-55.3536644, 1.93715477, -1.01828945)
  689. Part42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  690. SpotLight43.Parent = Part42
  691. SpotLight43.Color = Color3.new(1, 0, 0.0156863)
  692. SpotLight43.Enabled = false
  693. SpotLight43.Brightness = 100
  694. SpotLight43.Face = Enum.NormalId.Left
  695. SpotLight43.Color = Color3.new(1, 0, 0.0156863)
  696. Part44.Name = "Light"
  697. Part44.Parent = Model41
  698. Part44.BrickColor = BrickColor.new("Really black")
  699. Part44.Rotation = Vector3.new(0, -90, 0)
  700. Part44.Anchored = true
  701. Part44.FormFactor = Enum.FormFactor.Custom
  702. Part44.Size = Vector3.new(10.8174582, 3.81792593, 16.5443497)
  703. Part44.CFrame = CFrame.new(-41.6727715, 1.93715477, 12.6626263, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  704. Part44.BottomSurface = Enum.SurfaceType.Smooth
  705. Part44.TopSurface = Enum.SurfaceType.Smooth
  706. Part44.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  707. Part44.Position = Vector3.new(-41.6727715, 1.93715477, 12.6626263)
  708. Part44.Orientation = Vector3.new(0, -90, 0)
  709. Part44.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  710. SpotLight45.Parent = Part44
  711. SpotLight45.Color = Color3.new(1, 0, 0.0156863)
  712. SpotLight45.Enabled = false
  713. SpotLight45.Brightness = 100
  714. SpotLight45.Face = Enum.NormalId.Right
  715. SpotLight45.Color = Color3.new(1, 0, 0.0156863)
  716. Part46.Name = "Light"
  717. Part46.Parent = Model41
  718. Part46.BrickColor = BrickColor.new("Really black")
  719. Part46.Rotation = Vector3.new(0, -90, 0)
  720. Part46.Anchored = true
  721. Part46.FormFactor = Enum.FormFactor.Custom
  722. Part46.Size = Vector3.new(10.8174582, 3.81792593, 16.5443497)
  723. Part46.CFrame = CFrame.new(-41.6727676, 1.93715477, -14.699193, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  724. Part46.BottomSurface = Enum.SurfaceType.Smooth
  725. Part46.TopSurface = Enum.SurfaceType.Smooth
  726. Part46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  727. Part46.Position = Vector3.new(-41.6727676, 1.93715477, -14.699193)
  728. Part46.Orientation = Vector3.new(0, -90, 0)
  729. Part46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  730. SpotLight47.Parent = Part46
  731. SpotLight47.Color = Color3.new(1, 0, 0.0156863)
  732. SpotLight47.Enabled = false
  733. SpotLight47.Brightness = 100
  734. SpotLight47.Face = Enum.NormalId.Left
  735. SpotLight47.Color = Color3.new(1, 0, 0.0156863)
  736. Part48.Name = "Light"
  737. Part48.Parent = Model41
  738. Part48.BrickColor = BrickColor.new("Really black")
  739. Part48.Anchored = true
  740. Part48.FormFactor = Enum.FormFactor.Custom
  741. Part48.Size = Vector3.new(10.8174582, 3.81792593, 38.1792641)
  742. Part48.CFrame = CFrame.new(-27.9918556, 1.93715477, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  743. Part48.BottomSurface = Enum.SurfaceType.Smooth
  744. Part48.TopSurface = Enum.SurfaceType.Smooth
  745. Part48.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  746. Part48.Position = Vector3.new(-27.9918556, 1.93715477, -1.01828945)
  747. Part48.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  748. SpotLight49.Parent = Part48
  749. SpotLight49.Color = Color3.new(1, 0, 0.0156863)
  750. SpotLight49.Enabled = false
  751. SpotLight49.Brightness = 100
  752. SpotLight49.Face = Enum.NormalId.Right
  753. SpotLight49.Color = Color3.new(1, 0, 0.0156863)
  754. Part50.Parent = Model0
  755. Part50.BrickColor = BrickColor.new("Really black")
  756. Part50.Transparency = 0.5
  757. Part50.Anchored = true
  758. Part50.FormFactor = Enum.FormFactor.Custom
  759. Part50.Size = Vector3.new(10.8174582, 27.9981251, 16.5443478)
  760. Part50.CFrame = CFrame.new(-55.3536644, 17.8484306, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  761. Part50.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  762. Part50.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  763. Part50.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  764. Part50.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  765. Part50.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  766. Part50.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  767. Part50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  768. Part50.Position = Vector3.new(-55.3536644, 17.8484306, -1.01828945)
  769. Part50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  770. Part51.Parent = Model0
  771. Part51.BrickColor = BrickColor.new("Really black")
  772. Part51.Transparency = 0.5
  773. Part51.Rotation = Vector3.new(0, -90, 0)
  774. Part51.Anchored = true
  775. Part51.FormFactor = Enum.FormFactor.Custom
  776. Part51.Size = Vector3.new(10.8174582, 27.9981251, 16.5443497)
  777. Part51.CFrame = CFrame.new(-41.6727715, 17.8484306, 12.6626263, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  778. Part51.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  779. Part51.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  780. Part51.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  781. Part51.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  782. Part51.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  783. Part51.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  784. Part51.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  785. Part51.Position = Vector3.new(-41.6727715, 17.8484306, 12.6626263)
  786. Part51.Orientation = Vector3.new(0, -90, 0)
  787. Part51.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  788. Part52.Parent = Model0
  789. Part52.BrickColor = BrickColor.new("Really black")
  790. Part52.Transparency = 0.5
  791. Part52.Rotation = Vector3.new(0, -90, 0)
  792. Part52.Anchored = true
  793. Part52.FormFactor = Enum.FormFactor.Custom
  794. Part52.Size = Vector3.new(10.8174582, 27.9981251, 16.5443497)
  795. Part52.CFrame = CFrame.new(-41.6727676, 17.8484306, -14.699193, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  796. Part52.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  797. Part52.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  798. Part52.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  799. Part52.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  800. Part52.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  801. Part52.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  802. Part52.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  803. Part52.Position = Vector3.new(-41.6727676, 17.8484306, -14.699193)
  804. Part52.Orientation = Vector3.new(0, -90, 0)
  805. Part52.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  806. Part53.Parent = Model0
  807. Part53.BrickColor = BrickColor.new("Really black")
  808. Part53.Transparency = 0.5
  809. Part53.Anchored = true
  810. Part53.FormFactor = Enum.FormFactor.Custom
  811. Part53.Size = Vector3.new(10.8174582, 27.9981251, 16.5443478)
  812. Part53.CFrame = CFrame.new(-27.9918556, 17.8484306, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  813. Part53.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  814. Part53.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  815. Part53.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  816. Part53.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  817. Part53.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  818. Part53.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  819. Part53.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  820. Part53.Position = Vector3.new(-27.9918556, 17.8484306, -1.01828945)
  821. Part53.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  822. Part54.Parent = Model0
  823. Part54.BrickColor = BrickColor.new("Really black")
  824. Part54.Rotation = Vector3.new(0, -90, 0)
  825. Part54.Anchored = true
  826. Part54.FormFactor = Enum.FormFactor.Custom
  827. Part54.Size = Vector3.new(10.8174582, 27.9981251, 10.8174601)
  828. Part54.CFrame = CFrame.new(-27.9918556, 17.8484306, -14.699193, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  829. Part54.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  830. Part54.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  831. Part54.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  832. Part54.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  833. Part54.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  834. Part54.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  835. Part54.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  836. Part54.Position = Vector3.new(-27.9918556, 17.8484306, -14.699193)
  837. Part54.Orientation = Vector3.new(0, -90, 0)
  838. Part54.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  839. Part55.Parent = Model0
  840. Part55.BrickColor = BrickColor.new("Really black")
  841. Part55.Rotation = Vector3.new(0, -90, 0)
  842. Part55.Anchored = true
  843. Part55.FormFactor = Enum.FormFactor.Custom
  844. Part55.Size = Vector3.new(10.8174582, 27.9981251, 10.8174601)
  845. Part55.CFrame = CFrame.new(-27.9918556, 17.8484306, 12.6626263, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  846. Part55.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  847. Part55.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  848. Part55.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  849. Part55.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  850. Part55.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  851. Part55.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  852. Part55.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  853. Part55.Position = Vector3.new(-27.9918556, 17.8484306, 12.6626263)
  854. Part55.Orientation = Vector3.new(0, -90, 0)
  855. Part55.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  856. Part56.Parent = Model0
  857. Part56.BrickColor = BrickColor.new("Really black")
  858. Part56.Rotation = Vector3.new(0, -90, 0)
  859. Part56.Anchored = true
  860. Part56.FormFactor = Enum.FormFactor.Custom
  861. Part56.Size = Vector3.new(10.8174582, 27.9981251, 10.8174601)
  862. Part56.CFrame = CFrame.new(-55.3536644, 17.8484306, -14.699193, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  863. Part56.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  864. Part56.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  865. Part56.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  866. Part56.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  867. Part56.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  868. Part56.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  869. Part56.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  870. Part56.Position = Vector3.new(-55.3536644, 17.8484306, -14.699193)
  871. Part56.Orientation = Vector3.new(0, -90, 0)
  872. Part56.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  873. Part57.Parent = Model0
  874. Part57.BrickColor = BrickColor.new("Really black")
  875. Part57.Rotation = Vector3.new(0, -90, 0)
  876. Part57.Anchored = true
  877. Part57.FormFactor = Enum.FormFactor.Custom
  878. Part57.Size = Vector3.new(10.8174582, 27.9981251, 10.8174601)
  879. Part57.CFrame = CFrame.new(-55.3536644, 17.8484306, 12.6626263, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  880. Part57.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  881. Part57.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  882. Part57.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  883. Part57.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  884. Part57.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  885. Part57.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  886. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  887. Part57.Position = Vector3.new(-55.3536644, 17.8484306, 12.6626263)
  888. Part57.Orientation = Vector3.new(0, -90, 0)
  889. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  890. Part58.Parent = Model0
  891. Part58.BrickColor = BrickColor.new("Really black")
  892. Part58.Anchored = true
  893. Part58.FormFactor = Enum.FormFactor.Custom
  894. Part58.Size = Vector3.new(10.8174582, 3.81792593, 38.1792641)
  895. Part58.CFrame = CFrame.new(-55.3536644, 33.756958, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  896. Part58.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  897. Part58.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  898. Part58.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  899. Part58.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  900. Part58.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  901. Part58.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  902. Part58.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  903. Part58.Position = Vector3.new(-55.3536644, 33.756958, -1.01828945)
  904. Part58.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  905. Part59.Parent = Model0
  906. Part59.BrickColor = BrickColor.new("Really black")
  907. Part59.Rotation = Vector3.new(0, -90, 0)
  908. Part59.Anchored = true
  909. Part59.FormFactor = Enum.FormFactor.Custom
  910. Part59.Size = Vector3.new(10.8174582, 3.81792593, 16.5443497)
  911. Part59.CFrame = CFrame.new(-41.6727715, 33.756958, 12.6626263, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  912. Part59.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  913. Part59.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  914. Part59.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  915. Part59.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  916. Part59.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  917. Part59.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  918. Part59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  919. Part59.Position = Vector3.new(-41.6727715, 33.756958, 12.6626263)
  920. Part59.Orientation = Vector3.new(0, -90, 0)
  921. Part59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  922. Part60.Parent = Model0
  923. Part60.BrickColor = BrickColor.new("Really black")
  924. Part60.Anchored = true
  925. Part60.FormFactor = Enum.FormFactor.Custom
  926. Part60.Size = Vector3.new(10.8174582, 3.81792593, 38.1792641)
  927. Part60.CFrame = CFrame.new(-27.9918556, 33.756958, -1.01828945, 1, -2.82302426e-09, 0, 2.82302426e-09, 1, -7.256864e-10, 0, 7.256864e-10, 1)
  928. Part60.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  929. Part60.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  930. Part60.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  931. Part60.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  932. Part60.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  933. Part60.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  934. Part60.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  935. Part60.Position = Vector3.new(-27.9918556, 33.756958, -1.01828945)
  936. Part60.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  937. Part61.Parent = Model0
  938. Part61.BrickColor = BrickColor.new("Really black")
  939. Part61.Rotation = Vector3.new(0, -90, 0)
  940. Part61.Anchored = true
  941. Part61.FormFactor = Enum.FormFactor.Custom
  942. Part61.Size = Vector3.new(10.8174582, 3.81792593, 16.5443497)
  943. Part61.CFrame = CFrame.new(-41.6727676, 33.756958, -14.699193, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  944. Part61.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  945. Part61.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  946. Part61.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  947. Part61.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  948. Part61.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  949. Part61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  950. Part61.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  951. Part61.Position = Vector3.new(-41.6727676, 33.756958, -14.699193)
  952. Part61.Orientation = Vector3.new(0, -90, 0)
  953. Part61.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  954. Part62.Parent = Model0
  955. Part62.BrickColor = BrickColor.new("Really black")
  956. Part62.Rotation = Vector3.new(0, -90, 0)
  957. Part62.Anchored = true
  958. Part62.FormFactor = Enum.FormFactor.Custom
  959. Part62.Size = Vector3.new(10.8174582, 12.4082594, 0.636321247)
  960. Part62.CFrame = CFrame.new(-60.7623978, 17.8484306, -17.5626316, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  961. Part62.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  962. Part62.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  963. Part62.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  964. Part62.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  965. Part62.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  966. Part62.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  967. Part62.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  968. Part62.Position = Vector3.new(-60.7623978, 17.8484306, -17.5626316)
  969. Part62.Orientation = Vector3.new(0, -90, 0)
  970. Part62.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  971. Part63.Name = "Button"
  972. Part63.Parent = Model0
  973. Part63.BrickColor = BrickColor.new("Bright red")
  974. Part63.Rotation = Vector3.new(0, -90, 0)
  975. Part63.Anchored = true
  976. Part63.FormFactor = Enum.FormFactor.Custom
  977. Part63.Size = Vector3.new(6.68137121, 8.27217197, 0.636321247)
  978. Part63.CFrame = CFrame.new(-61.3987198, 17.8484306, -17.5626316, -4.37113883e-08, -2.82302426e-09, -1, -7.25686511e-10, 1, -2.82302426e-09, 1, 7.256864e-10, -4.37113883e-08)
  979. Part63.BottomSurface = Enum.SurfaceType.Smooth
  980. Part63.TopSurface = Enum.SurfaceType.Smooth
  981. Part63.Color = Color3.new(0.768628, 0.156863, 0.109804)
  982. Part63.Position = Vector3.new(-61.3987198, 17.8484306, -17.5626316)
  983. Part63.Orientation = Vector3.new(0, -90, 0)
  984. Part63.Color = Color3.new(0.768628, 0.156863, 0.109804)
  985. ClickDetector64.Parent = Part63
  986. Sound65.Parent = Part63
  987. Sound65.SoundId = "http://roblox.com/asset?id=188088048"
  988. Sound65.Volume = 1
  989. Sound65.Looped = true
  990. Sound66.Name = "Boom"
  991. Sound66.Parent = Part63
  992. Sound66.Pitch = 0.69999998807907
  993. Sound66.SoundId = "http://roblox.com/asset?id=165969964"
  994. Sound66.Volume = 1
  995. Sound67.Name = "Siren"
  996. Sound67.Parent = Part63
  997. Sound67.SoundId = "http://roblox.com/asset?id=149666616"
  998. Sound67.Volume = 1
  999. Sound67.Looped = true
  1000. Sound68.Name = "SmallBoom"
  1001. Sound68.Parent = Part63
  1002. Sound68.SoundId = "http://roblox.com/asset?id=180120107"
  1003. Script69.Name = "BerezaaGamesNuclearScript"
  1004. Script69.Parent = Model0
  1005. table.insert(cors,sandbox(Script69,function()
  1006. -- Fun nuke by berezaa
  1007. -- Credit to FriendlyBiscuit/eric for uploading the loopable alarm sound for me
  1008.  
  1009. wait(1)
  1010.  
  1011. script.Parent.Missle.Base.Anchored = true
  1012.  
  1013. debounce = false
  1014.  
  1015. script.Parent.Button.ClickDetector.MouseClick:connect(function()
  1016. if debounce == false then
  1017. debounce = true
  1018. script.Parent.Button.Sound:Play()
  1019.  
  1020. local siren = script.Parent.Button.Siren
  1021. siren.Parent = workspace
  1022. siren:Play()
  1023.  
  1024. coroutine.resume(coroutine.create(function()
  1025. local lights = script.Parent.Lights:GetChildren()
  1026. for i=1,100 do
  1027. for i,v in pairs(lights) do
  1028. v.SpotLight.Enabled = true
  1029. end
  1030. wait(0.54)
  1031. for i,v in pairs(lights) do
  1032. v.SpotLight.Enabled = false
  1033. end
  1034. wait(0.54)
  1035. end
  1036. end))
  1037.  
  1038. wait(2)
  1039.  
  1040. script.Parent.Missle.Base.Fire.Enabled = true
  1041. script.Parent.Missle.Base.Smoke.Enabled = true
  1042.  
  1043. wait(3)
  1044.  
  1045. script.Parent.Missle.PrimaryPart = script.Parent.Missle.Base
  1046. for i=1,320 do
  1047. script.Parent.Missle:SetPrimaryPartCFrame(script.Parent.Missle:GetPrimaryPartCFrame()+Vector3.new(0,0.05*((1.1^(i/5))/3),0))
  1048. wait()
  1049. end
  1050. wait()
  1051. for i=1,100 do
  1052. script.Parent.Missle:SetPrimaryPartCFrame(script.Parent.Missle:GetPrimaryPartCFrame()+Vector3.new(0,0.05*(1.1^((250-i)/5)/3),0))
  1053. script.Parent.Missle:SetPrimaryPartCFrame(script.Parent.Missle:GetPrimaryPartCFrame()*CFrame.Angles(0,math.pi/100,0))
  1054. script.Parent.Missle:SetPrimaryPartCFrame(script.Parent.Missle:GetPrimaryPartCFrame()+Vector3.new(0,0,-i/100))
  1055. wait()
  1056. end
  1057. wait()
  1058. for i=200,120,-1 do
  1059. script.Parent.Missle:SetPrimaryPartCFrame(script.Parent.Missle:GetPrimaryPartCFrame()-Vector3.new(0,0.1*((1.1^(i/2.95))/4),0))
  1060. wait()
  1061. end
  1062.  
  1063. script.Parent.Missle.Tip.Transparency = 0.5
  1064. script.Parent.Missle.Tip.CanCollide = false
  1065. script.Parent.Missle.Tip.Mesh.Scale = Vector3.new(1,1,1)
  1066. local boom = script.Parent.Button.Boom
  1067. boom.Parent=workspace
  1068. boom:Play()
  1069. local frame = script.Parent.Missle.Tip.CFrame
  1070.  
  1071. script.Parent.Missle.Tip.Boom.Disabled = false
  1072.  
  1073. for i=1,400 do
  1074. script.Parent.Missle.Tip.Size=script.Parent.Missle.Tip.Size+Vector3.new(3,3,3)
  1075. script.Parent.Missle.Tip.CFrame=frame
  1076. wait()
  1077. end
  1078. script.Parent.Missle.Tip.Boom.Disabled=true
  1079. script.Parent.Missle:Destroy()
  1080. siren:Stop()
  1081. boom:Stop()
  1082.  
  1083.  
  1084. end
  1085. end)
  1086. end))
  1087. for i,v in pairs(mas:GetChildren()) do
  1088. v.Parent = workspace
  1089. pcall(function() v:MakeJoints() end)
  1090. end
  1091. mas:Destroy()
  1092. for i,v in pairs(cors) do
  1093. spawn(function()
  1094. pcall(v)
  1095. end)
  1096. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement