Advertisement
DaOMEGAa32

OMEGA FLOWEY SCRIPT

Apr 9th, 2019
2,451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 165.71 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Camera0 = Instance.new("Camera")
  26. Part1 = Instance.new("Part")
  27. Model2 = Instance.new("Model")
  28. Part3 = Instance.new("Part")
  29. Decal4 = Instance.new("Decal")
  30. Sound5 = Instance.new("Sound")
  31. Part6 = Instance.new("Part")
  32. Script7 = Instance.new("Script")
  33. BodyForce8 = Instance.new("BodyForce")
  34. Script9 = Instance.new("Script")
  35. Sound10 = Instance.new("Sound")
  36. Sound11 = Instance.new("Sound")
  37. Sound12 = Instance.new("Sound")
  38. Part13 = Instance.new("Part")
  39. Script14 = Instance.new("Script")
  40. BodyForce15 = Instance.new("BodyForce")
  41. Script16 = Instance.new("Script")
  42. Sound17 = Instance.new("Sound")
  43. Sound18 = Instance.new("Sound")
  44. Sound19 = Instance.new("Sound")
  45. Part20 = Instance.new("Part")
  46. Script21 = Instance.new("Script")
  47. BodyForce22 = Instance.new("BodyForce")
  48. Script23 = Instance.new("Script")
  49. Sound24 = Instance.new("Sound")
  50. Sound25 = Instance.new("Sound")
  51. Sound26 = Instance.new("Sound")
  52. Model27 = Instance.new("Model")
  53. Script28 = Instance.new("Script")
  54. Part29 = Instance.new("Part")
  55. BodyPosition30 = Instance.new("BodyPosition")
  56. Script31 = Instance.new("Script")
  57. Sound32 = Instance.new("Sound")
  58. Sound33 = Instance.new("Sound")
  59. Model34 = Instance.new("Model")
  60. Script35 = Instance.new("Script")
  61. Part36 = Instance.new("Part")
  62. BodyPosition37 = Instance.new("BodyPosition")
  63. Script38 = Instance.new("Script")
  64. Sound39 = Instance.new("Sound")
  65. Sound40 = Instance.new("Sound")
  66. Model41 = Instance.new("Model")
  67. Model42 = Instance.new("Model")
  68. Part43 = Instance.new("Part")
  69. Script44 = Instance.new("Script")
  70. BodyGyro45 = Instance.new("BodyGyro")
  71. BodyPosition46 = Instance.new("BodyPosition")
  72. Script47 = Instance.new("Script")
  73. BoolValue48 = Instance.new("BoolValue")
  74. ObjectValue49 = Instance.new("ObjectValue")
  75. Script50 = Instance.new("Script")
  76. Model51 = Instance.new("Model")
  77. Script52 = Instance.new("Script")
  78. Script53 = Instance.new("Script")
  79. Part54 = Instance.new("Part")
  80. Part55 = Instance.new("Part")
  81. IntValue56 = Instance.new("IntValue")
  82. Humanoid57 = Instance.new("Humanoid")
  83. IntValue58 = Instance.new("IntValue")
  84. Script59 = Instance.new("Script")
  85. IntValue60 = Instance.new("IntValue")
  86. BoolValue61 = Instance.new("BoolValue")
  87. BoolValue62 = Instance.new("BoolValue")
  88. BoolValue63 = Instance.new("BoolValue")
  89. Model64 = Instance.new("Model")
  90. Part65 = Instance.new("Part")
  91. CylinderMesh66 = Instance.new("CylinderMesh")
  92. Part67 = Instance.new("Part")
  93. CylinderMesh68 = Instance.new("CylinderMesh")
  94. Part69 = Instance.new("Part")
  95. SpecialMesh70 = Instance.new("SpecialMesh")
  96. Part71 = Instance.new("Part")
  97. CylinderMesh72 = Instance.new("CylinderMesh")
  98. Part73 = Instance.new("Part")
  99. Part74 = Instance.new("Part")
  100. SpecialMesh75 = Instance.new("SpecialMesh")
  101. Part76 = Instance.new("Part")
  102. SpecialMesh77 = Instance.new("SpecialMesh")
  103. Part78 = Instance.new("Part")
  104. Part79 = Instance.new("Part")
  105. Part80 = Instance.new("Part")
  106. CylinderMesh81 = Instance.new("CylinderMesh")
  107. Part82 = Instance.new("Part")
  108. Part83 = Instance.new("Part")
  109. SpecialMesh84 = Instance.new("SpecialMesh")
  110. Part85 = Instance.new("Part")
  111. Part86 = Instance.new("Part")
  112. SpecialMesh87 = Instance.new("SpecialMesh")
  113. Part88 = Instance.new("Part")
  114. CylinderMesh89 = Instance.new("CylinderMesh")
  115. Part90 = Instance.new("Part")
  116. Part91 = Instance.new("Part")
  117. SpecialMesh92 = Instance.new("SpecialMesh")
  118. Part93 = Instance.new("Part")
  119. BlockMesh94 = Instance.new("BlockMesh")
  120. Part95 = Instance.new("Part")
  121. Part96 = Instance.new("Part")
  122. CylinderMesh97 = Instance.new("CylinderMesh")
  123. Part98 = Instance.new("Part")
  124. CylinderMesh99 = Instance.new("CylinderMesh")
  125. Part100 = Instance.new("Part")
  126. SpecialMesh101 = Instance.new("SpecialMesh")
  127. Part102 = Instance.new("Part")
  128. Part103 = Instance.new("Part")
  129. SpecialMesh104 = Instance.new("SpecialMesh")
  130. Part105 = Instance.new("Part")
  131. SpecialMesh106 = Instance.new("SpecialMesh")
  132. Part107 = Instance.new("Part")
  133. SpecialMesh108 = Instance.new("SpecialMesh")
  134. Part109 = Instance.new("Part")
  135. SpecialMesh110 = Instance.new("SpecialMesh")
  136. Part111 = Instance.new("Part")
  137. Part112 = Instance.new("Part")
  138. CylinderMesh113 = Instance.new("CylinderMesh")
  139. Part114 = Instance.new("Part")
  140. CylinderMesh115 = Instance.new("CylinderMesh")
  141. Part116 = Instance.new("Part")
  142. CylinderMesh117 = Instance.new("CylinderMesh")
  143. Part118 = Instance.new("Part")
  144. CylinderMesh119 = Instance.new("CylinderMesh")
  145. Part120 = Instance.new("Part")
  146. CylinderMesh121 = Instance.new("CylinderMesh")
  147. Part122 = Instance.new("Part")
  148. CylinderMesh123 = Instance.new("CylinderMesh")
  149. Part124 = Instance.new("Part")
  150. SpecialMesh125 = Instance.new("SpecialMesh")
  151. Part126 = Instance.new("Part")
  152. CylinderMesh127 = Instance.new("CylinderMesh")
  153. Part128 = Instance.new("Part")
  154. CylinderMesh129 = Instance.new("CylinderMesh")
  155. Part130 = Instance.new("Part")
  156. SpecialMesh131 = Instance.new("SpecialMesh")
  157. Part132 = Instance.new("Part")
  158. Part133 = Instance.new("Part")
  159. SpecialMesh134 = Instance.new("SpecialMesh")
  160. Part135 = Instance.new("Part")
  161. Part136 = Instance.new("Part")
  162. Part137 = Instance.new("Part")
  163. CylinderMesh138 = Instance.new("CylinderMesh")
  164. Part139 = Instance.new("Part")
  165. SpecialMesh140 = Instance.new("SpecialMesh")
  166. Model141 = Instance.new("Model")
  167. Part142 = Instance.new("Part")
  168. Part143 = Instance.new("Part")
  169. BlockMesh144 = Instance.new("BlockMesh")
  170. Part145 = Instance.new("Part")
  171. BodyGyro146 = Instance.new("BodyGyro")
  172. Part147 = Instance.new("Part")
  173. BodyGyro148 = Instance.new("BodyGyro")
  174. Part149 = Instance.new("Part")
  175. BodyGyro150 = Instance.new("BodyGyro")
  176. Part151 = Instance.new("Part")
  177. BodyGyro152 = Instance.new("BodyGyro")
  178. Part153 = Instance.new("Part")
  179. BodyGyro154 = Instance.new("BodyGyro")
  180. BrickColorValue155 = Instance.new("BrickColorValue")
  181. Model156 = Instance.new("Model")
  182. Script157 = Instance.new("Script")
  183. Part158 = Instance.new("Part")
  184. BodyPosition159 = Instance.new("BodyPosition")
  185. Script160 = Instance.new("Script")
  186. Sound161 = Instance.new("Sound")
  187. Sound162 = Instance.new("Sound")
  188. Model163 = Instance.new("Model")
  189. Script164 = Instance.new("Script")
  190. Part165 = Instance.new("Part")
  191. BodyPosition166 = Instance.new("BodyPosition")
  192. Script167 = Instance.new("Script")
  193. Sound168 = Instance.new("Sound")
  194. Sound169 = Instance.new("Sound")
  195. Model170 = Instance.new("Model")
  196. Script171 = Instance.new("Script")
  197. Part172 = Instance.new("Part")
  198. BodyPosition173 = Instance.new("BodyPosition")
  199. Script174 = Instance.new("Script")
  200. Sound175 = Instance.new("Sound")
  201. Sound176 = Instance.new("Sound")
  202. Model177 = Instance.new("Model")
  203. Script178 = Instance.new("Script")
  204. Part179 = Instance.new("Part")
  205. BodyPosition180 = Instance.new("BodyPosition")
  206. Script181 = Instance.new("Script")
  207. Sound182 = Instance.new("Sound")
  208. Sound183 = Instance.new("Sound")
  209. Model184 = Instance.new("Model")
  210. Script185 = Instance.new("Script")
  211. Part186 = Instance.new("Part")
  212. BodyPosition187 = Instance.new("BodyPosition")
  213. Script188 = Instance.new("Script")
  214. Sound189 = Instance.new("Sound")
  215. Sound190 = Instance.new("Sound")
  216. Model191 = Instance.new("Model")
  217. Script192 = Instance.new("Script")
  218. Part193 = Instance.new("Part")
  219. BodyPosition194 = Instance.new("BodyPosition")
  220. Script195 = Instance.new("Script")
  221. Sound196 = Instance.new("Sound")
  222. Sound197 = Instance.new("Sound")
  223. Model198 = Instance.new("Model")
  224. Script199 = Instance.new("Script")
  225. Part200 = Instance.new("Part")
  226. BodyPosition201 = Instance.new("BodyPosition")
  227. Script202 = Instance.new("Script")
  228. Sound203 = Instance.new("Sound")
  229. Sound204 = Instance.new("Sound")
  230. Model205 = Instance.new("Model")
  231. Script206 = Instance.new("Script")
  232. Part207 = Instance.new("Part")
  233. BodyPosition208 = Instance.new("BodyPosition")
  234. Script209 = Instance.new("Script")
  235. Sound210 = Instance.new("Sound")
  236. Sound211 = Instance.new("Sound")
  237. Model212 = Instance.new("Model")
  238. Script213 = Instance.new("Script")
  239. Part214 = Instance.new("Part")
  240. BodyPosition215 = Instance.new("BodyPosition")
  241. Script216 = Instance.new("Script")
  242. Sound217 = Instance.new("Sound")
  243. Sound218 = Instance.new("Sound")
  244. SpawnLocation219 = Instance.new("SpawnLocation")
  245. Decal220 = Instance.new("Decal")
  246. Model221 = Instance.new("Model")
  247. Model222 = Instance.new("Model")
  248. Part223 = Instance.new("Part")
  249. SpecialMesh224 = Instance.new("SpecialMesh")
  250. Camera0.Parent = mas
  251. Camera0.CFrame = CFrame.new(61.3604851, 14.5937166, 3.20495987, 0.170926541, 0.0423832722, 0.984371841, -0, 0.999074578, -0.0430163071, -0.985283852, 0.00735262875, 0.170768335)
  252. Camera0.CoordinateFrame = CFrame.new(61.3604851, 14.5937166, 3.20495987, 0.170926541, 0.0423832722, 0.984371841, -0, 0.999074578, -0.0430163071, -0.985283852, 0.00735262875, 0.170768335)
  253. Camera0.Focus = CFrame.new(58.4060516, 14.7228231, 2.6924262, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  254. Camera0.focus = CFrame.new(58.4060516, 14.7228231, 2.6924262, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. Part1.Name = "Baseplate"
  256. Part1.Parent = mas
  257. Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  258. Part1.Position = Vector3.new(0, -10, 0)
  259. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  260. Part1.Size = Vector3.new(512, 20, 512)
  261. Part1.Anchored = true
  262. Part1.BrickColor = BrickColor.new("Really black")
  263. Part1.Locked = true
  264. Part1.Material = Enum.Material.Metal
  265. Part1.brickColor = BrickColor.new("Really black")
  266. Part1.FormFactor = Enum.FormFactor.Symmetric
  267. Part1.formFactor = Enum.FormFactor.Symmetric
  268. Model2.Name = "????"
  269. Model2.Parent = mas
  270. Part3.Name = "omega"
  271. Part3.Parent = Model2
  272. Part3.CFrame = CFrame.new(-6.13871002, 24.9000187, -11.4352522, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. Part3.Position = Vector3.new(-6.13871002, 24.9000187, -11.4352522)
  274. Part3.Transparency = 54654
  275. Part3.Size = Vector3.new(4, 49.7999992, 82.0000076)
  276. Part3.Anchored = true
  277. Part3.BottomSurface = Enum.SurfaceType.Smooth
  278. Part3.TopSurface = Enum.SurfaceType.Smooth
  279. Decal4.Parent = Part3
  280. Decal4.Texture = "http://www.roblox.com/asset/?id=421653951"
  281. Decal4.Face = Enum.NormalId.Right
  282. Sound5.Name = "YOU IDIOT"
  283. Sound5.Parent = Part3
  284. Sound5.Looped = true
  285. Sound5.EmitterSize = 545456
  286. Sound5.MinDistance = 545456
  287. Sound5.Playing = true
  288. Sound5.SoundId = "rbxassetid://326193124"
  289. Sound5.Volume = 5
  290. Part6.Name = "Pellet"
  291. Part6.Parent = Model2
  292. Part6.CFrame = CFrame.new(0.365570009, 33.1129951, -12.0368996, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
  293. Part6.Orientation = Vector3.new(0, 179.660004, 0)
  294. Part6.Position = Vector3.new(0.365570009, 33.1129951, -12.0368996)
  295. Part6.Rotation = Vector3.new(-180, 0.340000004, -180)
  296. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  297. Part6.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
  298. Part6.BottomSurface = Enum.SurfaceType.Smooth
  299. Part6.BrickColor = BrickColor.new("Institutional white")
  300. Part6.Locked = true
  301. Part6.TopSurface = Enum.SurfaceType.Smooth
  302. Part6.brickColor = BrickColor.new("Institutional white")
  303. Part6.Shape = Enum.PartType.Ball
  304. Script7.Name = "Program"
  305. Script7.Parent = Part6
  306. table.insert(cors,sandbox(Script7,function()
  307. RM = script.Parent
  308. D = {140, 40}
  309. MS = {144, 52}
  310. R = {150, 12, true, true}
  311. CP = 62
  312. F = RM.Lift
  313. M = {RM.Roll, false, RM.Boost, RM.Zap}
  314. while RM.Parent ~= nil do
  315. wait(0.1)
  316. local T = {nil, R[1], {}}
  317. local C = Workspace:GetChildren()
  318. for I = 1, #C do
  319. if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
  320. local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
  321. local H, P = Workspace:FindPartOnRay(Ray, RM)
  322. if H ~= nil and H.Parent == C[I] then
  323. table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
  324. end
  325. end
  326. end
  327. if #T[3] > 0 then
  328. for X = 1, #T[3] do
  329. if T[3][X][2] < T[2] then
  330. T[1] = T[3][X][1]
  331. T[2] = T[3][X][2]
  332. end
  333. end
  334. end
  335. if T[1] ~= nil then
  336. if T[2] > R[2] or (T[2] > 5 and not R[3]) then
  337. local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
  338. if S[2] > MS[1] - MS[2] then
  339. RM.Velocity = RM.Velocity - S[3] * S[1]
  340. end
  341. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
  342. elseif T[2] > 5 and R[3] then
  343. R[3] = false
  344. M[3]:Play()
  345. RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
  346. Delay(0.5, function()
  347. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  348. end)
  349. Delay(2, function()
  350. R[3] = true
  351. end)
  352. elseif T[2] <= 5 and R[4] then
  353. R[4] = false
  354. M[4]:Play()
  355. RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
  356. T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  357. T[1].Humanoid.PlatformStand = true
  358. Delay(CP / 100, function()
  359. T[1].Humanoid.PlatformStand = false
  360. end)
  361. Delay(2, function()
  362. R[4] = true
  363. end)
  364. end
  365. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
  366. RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
  367. end
  368. if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
  369. M[1]:Play()
  370. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
  371. M[1]:Stop()
  372. end
  373. F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
  374. M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
  375. end
  376. end))
  377. BodyForce8.Name = "Lift"
  378. BodyForce8.Parent = Part6
  379. BodyForce8.Force = Vector3.new(0, 411.024994, 0)
  380. BodyForce8.force = Vector3.new(0, 411.024994, 0)
  381. Script9.Parent = Part6
  382. table.insert(cors,sandbox(Script9,function()
  383. function onTouched(hit)
  384. local human = hit.Parent:findFirstChild("Humanoid")
  385. if (human ~= nil) then
  386. human.Health = human.Health - 5,000
  387. end
  388. end
  389.  
  390. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  391. -- connection = script.Parent.Touched:connect(onTouched)
  392. --end
  393. script.Parent.Touched:connect(onTouched)
  394.  
  395. end))
  396. Sound10.Name = "Boost"
  397. Sound10.Parent = Part6
  398. Sound10.SoundId = "rbxassetid://395321405"
  399. Sound11.Name = "Roll"
  400. Sound11.Parent = Part6
  401. Sound11.SoundId = "rbxassetid://395321405"
  402. Sound12.Name = "Zap"
  403. Sound12.Parent = Part6
  404. Sound12.SoundId = "rbxassetid://410625063"
  405. Part13.Name = "Pellet"
  406. Part13.Parent = Model2
  407. Part13.CFrame = CFrame.new(0.365570009, 35.5830231, 5.1631031, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
  408. Part13.Orientation = Vector3.new(0, 179.660004, 0)
  409. Part13.Position = Vector3.new(0.365570009, 35.5830231, 5.1631031)
  410. Part13.Rotation = Vector3.new(-180, 0.340000004, -180)
  411. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  412. Part13.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
  413. Part13.BottomSurface = Enum.SurfaceType.Smooth
  414. Part13.BrickColor = BrickColor.new("Institutional white")
  415. Part13.Locked = true
  416. Part13.TopSurface = Enum.SurfaceType.Smooth
  417. Part13.brickColor = BrickColor.new("Institutional white")
  418. Part13.Shape = Enum.PartType.Ball
  419. Script14.Name = "Program"
  420. Script14.Parent = Part13
  421. table.insert(cors,sandbox(Script14,function()
  422. RM = script.Parent
  423. D = {140, 40}
  424. MS = {144, 52}
  425. R = {150, 12, true, true}
  426. CP = 62
  427. F = RM.Lift
  428. M = {RM.Roll, false, RM.Boost, RM.Zap}
  429. while RM.Parent ~= nil do
  430. wait(0.1)
  431. local T = {nil, R[1], {}}
  432. local C = Workspace:GetChildren()
  433. for I = 1, #C do
  434. if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
  435. local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
  436. local H, P = Workspace:FindPartOnRay(Ray, RM)
  437. if H ~= nil and H.Parent == C[I] then
  438. table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
  439. end
  440. end
  441. end
  442. if #T[3] > 0 then
  443. for X = 1, #T[3] do
  444. if T[3][X][2] < T[2] then
  445. T[1] = T[3][X][1]
  446. T[2] = T[3][X][2]
  447. end
  448. end
  449. end
  450. if T[1] ~= nil then
  451. if T[2] > R[2] or (T[2] > 5 and not R[3]) then
  452. local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
  453. if S[2] > MS[1] - MS[2] then
  454. RM.Velocity = RM.Velocity - S[3] * S[1]
  455. end
  456. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
  457. elseif T[2] > 5 and R[3] then
  458. R[3] = false
  459. M[3]:Play()
  460. RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
  461. Delay(0.5, function()
  462. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  463. end)
  464. Delay(2, function()
  465. R[3] = true
  466. end)
  467. elseif T[2] <= 5 and R[4] then
  468. R[4] = false
  469. M[4]:Play()
  470. RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
  471. T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  472. T[1].Humanoid.PlatformStand = true
  473. Delay(CP / 100, function()
  474. T[1].Humanoid.PlatformStand = false
  475. end)
  476. Delay(2, function()
  477. R[4] = true
  478. end)
  479. end
  480. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
  481. RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
  482. end
  483. if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
  484. M[1]:Play()
  485. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
  486. M[1]:Stop()
  487. end
  488. F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
  489. M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
  490. end
  491. end))
  492. BodyForce15.Name = "Lift"
  493. BodyForce15.Parent = Part13
  494. BodyForce15.Force = Vector3.new(0, 411.024994, 0)
  495. BodyForce15.force = Vector3.new(0, 411.024994, 0)
  496. Script16.Parent = Part13
  497. table.insert(cors,sandbox(Script16,function()
  498. function onTouched(hit)
  499. local human = hit.Parent:findFirstChild("Humanoid")
  500. if (human ~= nil) then
  501. human.Health = human.Health - 5,000
  502. end
  503. end
  504.  
  505. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  506. -- connection = script.Parent.Touched:connect(onTouched)
  507. --end
  508. script.Parent.Touched:connect(onTouched)
  509.  
  510. end))
  511. Sound17.Name = "Boost"
  512. Sound17.Parent = Part13
  513. Sound17.SoundId = "rbxassetid://395321405"
  514. Sound18.Name = "Roll"
  515. Sound18.Parent = Part13
  516. Sound18.SoundId = "rbxassetid://395321405"
  517. Sound19.Name = "Zap"
  518. Sound19.Parent = Part13
  519. Sound19.SoundId = "rbxassetid://410625063"
  520. Part20.Name = "Pellet"
  521. Part20.Parent = Model2
  522. Part20.CFrame = CFrame.new(0.365570009, 38.0530663, -2.43689394, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
  523. Part20.Orientation = Vector3.new(0, 179.660004, 0)
  524. Part20.Position = Vector3.new(0.365570009, 38.0530663, -2.43689394)
  525. Part20.Rotation = Vector3.new(-180, 0.340000004, -180)
  526. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  527. Part20.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
  528. Part20.BottomSurface = Enum.SurfaceType.Smooth
  529. Part20.BrickColor = BrickColor.new("Institutional white")
  530. Part20.Locked = true
  531. Part20.TopSurface = Enum.SurfaceType.Smooth
  532. Part20.brickColor = BrickColor.new("Institutional white")
  533. Part20.Shape = Enum.PartType.Ball
  534. Script21.Name = "Program"
  535. Script21.Parent = Part20
  536. table.insert(cors,sandbox(Script21,function()
  537. RM = script.Parent
  538. D = {140, 40}
  539. MS = {144, 52}
  540. R = {150, 12, true, true}
  541. CP = 62
  542. F = RM.Lift
  543. M = {RM.Roll, false, RM.Boost, RM.Zap}
  544. while RM.Parent ~= nil do
  545. wait(0.1)
  546. local T = {nil, R[1], {}}
  547. local C = Workspace:GetChildren()
  548. for I = 1, #C do
  549. if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
  550. local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
  551. local H, P = Workspace:FindPartOnRay(Ray, RM)
  552. if H ~= nil and H.Parent == C[I] then
  553. table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
  554. end
  555. end
  556. end
  557. if #T[3] > 0 then
  558. for X = 1, #T[3] do
  559. if T[3][X][2] < T[2] then
  560. T[1] = T[3][X][1]
  561. T[2] = T[3][X][2]
  562. end
  563. end
  564. end
  565. if T[1] ~= nil then
  566. if T[2] > R[2] or (T[2] > 5 and not R[3]) then
  567. local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
  568. if S[2] > MS[1] - MS[2] then
  569. RM.Velocity = RM.Velocity - S[3] * S[1]
  570. end
  571. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
  572. elseif T[2] > 5 and R[3] then
  573. R[3] = false
  574. M[3]:Play()
  575. RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
  576. Delay(0.5, function()
  577. RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  578. end)
  579. Delay(2, function()
  580. R[3] = true
  581. end)
  582. elseif T[2] <= 5 and R[4] then
  583. R[4] = false
  584. M[4]:Play()
  585. RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
  586. T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
  587. T[1].Humanoid.PlatformStand = true
  588. Delay(CP / 100, function()
  589. T[1].Humanoid.PlatformStand = false
  590. end)
  591. Delay(2, function()
  592. R[4] = true
  593. end)
  594. end
  595. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
  596. RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
  597. end
  598. if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
  599. M[1]:Play()
  600. elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
  601. M[1]:Stop()
  602. end
  603. F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
  604. M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
  605. end
  606. end))
  607. BodyForce22.Name = "Lift"
  608. BodyForce22.Parent = Part20
  609. BodyForce22.Force = Vector3.new(0, 411.024994, 0)
  610. BodyForce22.force = Vector3.new(0, 411.024994, 0)
  611. Script23.Parent = Part20
  612. table.insert(cors,sandbox(Script23,function()
  613. function onTouched(hit)
  614. local human = hit.Parent:findFirstChild("Humanoid")
  615. if (human ~= nil) then
  616. human.Health = human.Health - 5,000
  617. end
  618. end
  619.  
  620. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  621. -- connection = script.Parent.Touched:connect(onTouched)
  622. --end
  623. script.Parent.Touched:connect(onTouched)
  624.  
  625. end))
  626. Sound24.Name = "Boost"
  627. Sound24.Parent = Part20
  628. Sound24.SoundId = "rbxassetid://395321405"
  629. Sound25.Name = "Roll"
  630. Sound25.Parent = Part20
  631. Sound25.SoundId = "rbxassetid://395321405"
  632. Sound26.Name = "Zap"
  633. Sound26.Parent = Part20
  634. Sound26.SoundId = "rbxassetid://410625063"
  635. Model27.Name = "Killbot"
  636. Model27.Parent = Model2
  637. Model27.PrimaryPart = Part29
  638. Script28.Name = "KillbotScript"
  639. Script28.Parent = Model27
  640. table.insert(cors,sandbox(Script28,function()
  641. local sphere = script.Parent.Sphere
  642.  
  643. local myTarget = nil
  644.  
  645.  
  646. -- obtain goals based on Sphere part
  647. sphere.BodyPosition.position = sphere.Position
  648.  
  649.  
  650.  
  651.  
  652.  
  653. -- this code hijacked from the new rocket launcher
  654. local Rocket = Instance.new("Part")
  655. Rocket.Locked = true
  656. Rocket.BackSurface = 3
  657. Rocket.BottomSurface = 3
  658. Rocket.FrontSurface = 3
  659. Rocket.LeftSurface = 3
  660. Rocket.RightSurface = 3
  661. Rocket.TopSurface = 3
  662. Rocket.Size = Vector3.new(1,1,4)
  663. Rocket.BrickColor = BrickColor.new(21)
  664. script.Parent.RocketScript:clone().Parent = Rocket
  665. script.Parent.Explosion:clone().Parent = Rocket
  666. script.Parent.Swoosh:clone().Parent = Rocket
  667.  
  668.  
  669. function fire(target)
  670.  
  671.  
  672. local dir = target - sphere.Position
  673. dir = computeDirection(dir)
  674.  
  675.  
  676. local missile = Rocket:clone()
  677.  
  678. local spawnPos = sphere.Position
  679.  
  680. local pos = spawnPos + (dir * 8)
  681.  
  682. --missile.Position = pos
  683. missile.CFrame = CFrame.new(pos, pos + dir)
  684.  
  685.  
  686. missile.RocketScript.Disabled = false
  687. missile.Parent = game.Workspace
  688.  
  689. end
  690.  
  691. function computeDirection(vec)
  692. local lenSquared = vec.magnitude * vec.magnitude
  693. local invSqrt = 1 / math.sqrt(lenSquared)
  694. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  695. end
  696.  
  697. function scanForHumans()
  698. -- KILL THE HUMANS!!!!!!!!!!
  699.  
  700. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  701. local humansFound = {}
  702.  
  703. local players = game.Players:children()
  704.  
  705. if (#players < 1) then return end
  706.  
  707. local i = math.random(1, #players)
  708.  
  709. myTarget = players[i].Character
  710.  
  711. end
  712.  
  713. function moveKillbot()
  714.  
  715. -- killbots move using a biased random walk toward the target
  716. -- they also like to float at least 10 studs above the ground
  717.  
  718. local dx = math.random(-100,100)
  719. local dy = math.random(-40,40)
  720. local dz = math.random(-100,100)
  721.  
  722. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  723. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  724.  
  725. if (myTarget ~= nil) then
  726. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  727. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  728. dz = dz + (dir.z * 80)
  729. end
  730.  
  731. local vec = computeDirection(Vector3.new(dx,dy,dz))
  732.  
  733. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  734.  
  735.  
  736. end
  737.  
  738. function onTouched(hit)
  739. local humanoid = hit.Parent:findFirstChild("Humanoid")
  740. if humanoid~=nil then
  741. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  742. else
  743. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  744. script.Parent.Parent = nil
  745. end
  746. end
  747.  
  748. sphere.Touched:connect(onTouched)
  749.  
  750. while true do -- loop forever
  751. scanForHumans()
  752.  
  753. for n=1,5 do
  754. if (myTarget ~= nil) then
  755. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  756. wait(math.random(1,2))
  757. moveKillbot()
  758. wait(math.random(1,2))
  759. end
  760. end
  761. wait(.1) -- don't hog CPU
  762. end
  763.  
  764. end))
  765. Part29.Name = "Sphere"
  766. Part29.Parent = Model27
  767. Part29.CFrame = CFrame.new(-2.13871002, 17.6000156, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  768. Part29.Orientation = Vector3.new(0, 180, 0)
  769. Part29.Position = Vector3.new(-2.13871002, 17.6000156, 17.1647491)
  770. Part29.Rotation = Vector3.new(-180, 0, -180)
  771. Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  772. Part29.Transparency = 423234
  773. Part29.Size = Vector3.new(4, 4, 4)
  774. Part29.Anchored = true
  775. Part29.BackSurface = Enum.SurfaceType.Weld
  776. Part29.BottomSurface = Enum.SurfaceType.Weld
  777. Part29.BrickColor = BrickColor.new("Black")
  778. Part29.FrontSurface = Enum.SurfaceType.Weld
  779. Part29.LeftSurface = Enum.SurfaceType.Weld
  780. Part29.Reflectance = 0.20000000298023
  781. Part29.RightSurface = Enum.SurfaceType.Weld
  782. Part29.TopSurface = Enum.SurfaceType.Weld
  783. Part29.brickColor = BrickColor.new("Black")
  784. Part29.FormFactor = Enum.FormFactor.Symmetric
  785. Part29.formFactor = Enum.FormFactor.Symmetric
  786. Part29.Shape = Enum.PartType.Ball
  787. BodyPosition30.Parent = Part29
  788. BodyPosition30.D = 10000
  789. BodyPosition30.MaxForce = Vector3.new(4000, 400000, 4000)
  790. BodyPosition30.maxForce = Vector3.new(4000, 400000, 4000)
  791. Script31.Name = "RocketScript"
  792. Script31.Parent = Model27
  793. table.insert(cors,sandbox(Script31,function()
  794. r = game:service("RunService")
  795.  
  796. shaft = script.Parent
  797. position = shaft.Position
  798.  
  799. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  800.  
  801. function fly()
  802. direction = shaft.CFrame.lookVector
  803. position = position + direction
  804. error = position - shaft.Position
  805. shaft.Velocity = 7*error
  806. end
  807.  
  808. function blow()
  809. swoosh:stop()
  810. explosion = Instance.new("Explosion")
  811. explosion.Position = shaft.Position
  812.  
  813.  
  814. -- find instigator tag
  815. local creator = script.Parent:findFirstChild("creator")
  816. if creator ~= nil then
  817. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  818. end
  819.  
  820. explosion.Parent = game.Workspace
  821. connection:disconnect()
  822. wait(.1)
  823. shaft:remove()
  824. end
  825.  
  826. function onPlayerBlownUp(part, distance, creator)
  827.  
  828. if part.Name == "Head" then
  829.  
  830. local humanoid = part.Parent:findFirstChild("Humanoid")
  831. tagHumanoid(humanoid, creator)
  832. end
  833. end
  834.  
  835. function tagHumanoid(humanoid, creator)
  836. -- tag does not need to expire iff all explosions lethal
  837.  
  838. if creator ~= nil then
  839. local new_tag = creator:clone()
  840. new_tag.Parent = humanoid
  841.  
  842. end
  843. end
  844.  
  845. function untagHumanoid(humanoid)
  846. if humanoid ~= nil then
  847. local tag = humanoid:findFirstChild("creator")
  848. if tag ~= nil then
  849.  
  850. tag.Parent = nil
  851. end
  852. end
  853. end
  854.  
  855. t, s = r.Stepped:wait()
  856.  
  857. swoosh = script.Parent.Swoosh
  858. swoosh:play()
  859.  
  860. d = t + 10.0 - s
  861. connection = shaft.Touched:connect(blow)
  862.  
  863. while t < d do
  864. fly()
  865. t = r.Stepped:wait()
  866. end
  867.  
  868. -- at max range
  869. script.Parent.Explosion.PlayOnRemove = false
  870. swoosh:stop()
  871. shaft:remove()
  872.  
  873. end))
  874. Script31.Disabled = true
  875. Sound32.Name = "Explosion"
  876. Sound32.Parent = Model27
  877. Sound32.SoundId = "rbxasset://sounds/collide.wav"
  878. Sound32.Volume = 1
  879. Sound33.Name = "Swoosh"
  880. Sound33.Parent = Model27
  881. Sound33.Looped = true
  882. Sound33.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  883. Sound33.Volume = 0.69999998807907
  884. Model34.Name = "Killbot"
  885. Model34.Parent = Model2
  886. Model34.PrimaryPart = Part36
  887. Script35.Name = "KillbotScript"
  888. Script35.Parent = Model34
  889. table.insert(cors,sandbox(Script35,function()
  890. local sphere = script.Parent.Sphere
  891.  
  892. local myTarget = nil
  893.  
  894.  
  895. -- obtain goals based on Sphere part
  896. sphere.BodyPosition.position = sphere.Position
  897.  
  898.  
  899.  
  900.  
  901.  
  902. -- this code hijacked from the new rocket launcher
  903. local Rocket = Instance.new("Part")
  904. Rocket.Locked = true
  905. Rocket.BackSurface = 3
  906. Rocket.BottomSurface = 3
  907. Rocket.FrontSurface = 3
  908. Rocket.LeftSurface = 3
  909. Rocket.RightSurface = 3
  910. Rocket.TopSurface = 3
  911. Rocket.Size = Vector3.new(1,1,4)
  912. Rocket.BrickColor = BrickColor.new(21)
  913. script.Parent.RocketScript:clone().Parent = Rocket
  914. script.Parent.Explosion:clone().Parent = Rocket
  915. script.Parent.Swoosh:clone().Parent = Rocket
  916.  
  917.  
  918. function fire(target)
  919.  
  920.  
  921. local dir = target - sphere.Position
  922. dir = computeDirection(dir)
  923.  
  924.  
  925. local missile = Rocket:clone()
  926.  
  927. local spawnPos = sphere.Position
  928.  
  929. local pos = spawnPos + (dir * 8)
  930.  
  931. --missile.Position = pos
  932. missile.CFrame = CFrame.new(pos, pos + dir)
  933.  
  934.  
  935. missile.RocketScript.Disabled = false
  936. missile.Parent = game.Workspace
  937.  
  938. end
  939.  
  940. function computeDirection(vec)
  941. local lenSquared = vec.magnitude * vec.magnitude
  942. local invSqrt = 1 / math.sqrt(lenSquared)
  943. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  944. end
  945.  
  946. function scanForHumans()
  947. -- KILL THE HUMANS!!!!!!!!!!
  948.  
  949. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  950. local humansFound = {}
  951.  
  952. local players = game.Players:children()
  953.  
  954. if (#players < 1) then return end
  955.  
  956. local i = math.random(1, #players)
  957.  
  958. myTarget = players[i].Character
  959.  
  960. end
  961.  
  962. function moveKillbot()
  963.  
  964. -- killbots move using a biased random walk toward the target
  965. -- they also like to float at least 10 studs above the ground
  966.  
  967. local dx = math.random(-100,100)
  968. local dy = math.random(-40,40)
  969. local dz = math.random(-100,100)
  970.  
  971. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  972. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  973.  
  974. if (myTarget ~= nil) then
  975. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  976. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  977. dz = dz + (dir.z * 80)
  978. end
  979.  
  980. local vec = computeDirection(Vector3.new(dx,dy,dz))
  981.  
  982. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  983.  
  984.  
  985. end
  986.  
  987. function onTouched(hit)
  988. local humanoid = hit.Parent:findFirstChild("Humanoid")
  989. if humanoid~=nil then
  990. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  991. else
  992. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  993. script.Parent.Parent = nil
  994. end
  995. end
  996.  
  997. sphere.Touched:connect(onTouched)
  998.  
  999. while true do -- loop forever
  1000. scanForHumans()
  1001.  
  1002. for n=1,5 do
  1003. if (myTarget ~= nil) then
  1004. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  1005. wait(math.random(1,2))
  1006. moveKillbot()
  1007. wait(math.random(1,2))
  1008. end
  1009. end
  1010. wait(.1) -- don't hog CPU
  1011. end
  1012.  
  1013. end))
  1014. Part36.Name = "Sphere"
  1015. Part36.Parent = Model34
  1016. Part36.CFrame = CFrame.new(-2.13871002, 16.4000072, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1017. Part36.Orientation = Vector3.new(0, 180, 0)
  1018. Part36.Position = Vector3.new(-2.13871002, 16.4000072, -40.8352509)
  1019. Part36.Rotation = Vector3.new(-180, 0, -180)
  1020. Part36.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1021. Part36.Transparency = 5454
  1022. Part36.Size = Vector3.new(4, 4, 4)
  1023. Part36.Anchored = true
  1024. Part36.BackSurface = Enum.SurfaceType.Weld
  1025. Part36.BottomSurface = Enum.SurfaceType.Weld
  1026. Part36.BrickColor = BrickColor.new("Black")
  1027. Part36.FrontSurface = Enum.SurfaceType.Weld
  1028. Part36.LeftSurface = Enum.SurfaceType.Weld
  1029. Part36.Reflectance = 0.20000000298023
  1030. Part36.RightSurface = Enum.SurfaceType.Weld
  1031. Part36.TopSurface = Enum.SurfaceType.Weld
  1032. Part36.brickColor = BrickColor.new("Black")
  1033. Part36.FormFactor = Enum.FormFactor.Symmetric
  1034. Part36.formFactor = Enum.FormFactor.Symmetric
  1035. Part36.Shape = Enum.PartType.Ball
  1036. BodyPosition37.Parent = Part36
  1037. BodyPosition37.D = 10000
  1038. BodyPosition37.MaxForce = Vector3.new(4000, 400000, 4000)
  1039. BodyPosition37.maxForce = Vector3.new(4000, 400000, 4000)
  1040. Script38.Name = "RocketScript"
  1041. Script38.Parent = Model34
  1042. table.insert(cors,sandbox(Script38,function()
  1043. r = game:service("RunService")
  1044.  
  1045. shaft = script.Parent
  1046. position = shaft.Position
  1047.  
  1048. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  1049.  
  1050. function fly()
  1051. direction = shaft.CFrame.lookVector
  1052. position = position + direction
  1053. error = position - shaft.Position
  1054. shaft.Velocity = 7*error
  1055. end
  1056.  
  1057. function blow()
  1058. swoosh:stop()
  1059. explosion = Instance.new("Explosion")
  1060. explosion.Position = shaft.Position
  1061.  
  1062.  
  1063. -- find instigator tag
  1064. local creator = script.Parent:findFirstChild("creator")
  1065. if creator ~= nil then
  1066. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  1067. end
  1068.  
  1069. explosion.Parent = game.Workspace
  1070. connection:disconnect()
  1071. wait(.1)
  1072. shaft:remove()
  1073. end
  1074.  
  1075. function onPlayerBlownUp(part, distance, creator)
  1076.  
  1077. if part.Name == "Head" then
  1078.  
  1079. local humanoid = part.Parent:findFirstChild("Humanoid")
  1080. tagHumanoid(humanoid, creator)
  1081. end
  1082. end
  1083.  
  1084. function tagHumanoid(humanoid, creator)
  1085. -- tag does not need to expire iff all explosions lethal
  1086.  
  1087. if creator ~= nil then
  1088. local new_tag = creator:clone()
  1089. new_tag.Parent = humanoid
  1090.  
  1091. end
  1092. end
  1093.  
  1094. function untagHumanoid(humanoid)
  1095. if humanoid ~= nil then
  1096. local tag = humanoid:findFirstChild("creator")
  1097. if tag ~= nil then
  1098.  
  1099. tag.Parent = nil
  1100. end
  1101. end
  1102. end
  1103.  
  1104. t, s = r.Stepped:wait()
  1105.  
  1106. swoosh = script.Parent.Swoosh
  1107. swoosh:play()
  1108.  
  1109. d = t + 10.0 - s
  1110. connection = shaft.Touched:connect(blow)
  1111.  
  1112. while t < d do
  1113. fly()
  1114. t = r.Stepped:wait()
  1115. end
  1116.  
  1117. -- at max range
  1118. script.Parent.Explosion.PlayOnRemove = false
  1119. swoosh:stop()
  1120. shaft:remove()
  1121.  
  1122. end))
  1123. Script38.Disabled = true
  1124. Sound39.Name = "Explosion"
  1125. Sound39.Parent = Model34
  1126. Sound39.SoundId = "rbxasset://sounds/collide.wav"
  1127. Sound39.Volume = 1
  1128. Sound40.Name = "Swoosh"
  1129. Sound40.Parent = Model34
  1130. Sound40.Looped = true
  1131. Sound40.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  1132. Sound40.Volume = 0.69999998807907
  1133. Model41.Parent = Model2
  1134. Model41.PrimaryPart = Part43
  1135. Model42.Name = "Brain"
  1136. Model42.Parent = Model41
  1137. Model42.PrimaryPart = Part43
  1138. Part43.Name = "TurretEngine"
  1139. Part43.Parent = Model42
  1140. Part43.CFrame = CFrame.new(10.9743958, 14.1751575, -4.20593405, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  1141. Part43.Orientation = Vector3.new(0, 6, 0)
  1142. Part43.Position = Vector3.new(10.9743958, 14.1751575, -4.20593405)
  1143. Part43.Rotation = Vector3.new(0, 6, 0)
  1144. Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1145. Part43.Transparency = 50
  1146. Part43.Velocity = Vector3.new(-0.944120467, -9.18225765, 0.415148199)
  1147. Part43.Size = Vector3.new(9.19578457, 9.19578457, 13.7936754)
  1148. Part43.Anchored = true
  1149. Part43.BackSurface = Enum.SurfaceType.Weld
  1150. Part43.BottomSurface = Enum.SurfaceType.Smooth
  1151. Part43.BrickColor = BrickColor.new("Dark stone grey")
  1152. Part43.FrontSurface = Enum.SurfaceType.Weld
  1153. Part43.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1154. Part43.TopSurface = Enum.SurfaceType.Smooth
  1155. Part43.brickColor = BrickColor.new("Dark stone grey")
  1156. Part43.FormFactor = Enum.FormFactor.Symmetric
  1157. Part43.formFactor = Enum.FormFactor.Symmetric
  1158. Script44.Parent = Part43
  1159. table.insert(cors,sandbox(Script44,function()
  1160. local ZombieTarget = script.Parent.Parent.Parent["Target Zombies"]
  1161. local HumanoidTarget = script.Parent.Parent.Parent["Target Humanoids"]
  1162. local isTeamGame = script.Parent.Parent.Parent.TeamGame
  1163. local MyTeamColor = script.Parent.Parent.Parent.TeamColor
  1164. local SightRadius = script.Parent.Parent.Parent.ScanRange
  1165. function move(target, engine)
  1166. local origincframe = engine:findFirstChild("BodyGyro").cframe
  1167. local dir = (target - engine.Position).unit
  1168. local spawnPos = engine.Position
  1169. local pos = spawnPos + dir
  1170.  
  1171. engine:findFirstChild("BodyGyro").maxTorque = Vector3.new(9900,9900, 0)
  1172. engine:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos+dir)
  1173. end
  1174.  
  1175. function getTurrets(Base)
  1176. local bits = Base:children()
  1177. local Turrets = {}
  1178. local Tnum = 1
  1179. for i=1,#bits do
  1180. local tmp = bits[i]
  1181. local TurretBrain = tmp:findFirstChild("Brain")
  1182. if(TurretBrain ~= nil) then
  1183. Turrets[Tnum] = TurretBrain.Parent
  1184. Tnum = Tnum +1
  1185. end
  1186. end
  1187. if(#Turrets > 0) then
  1188. return Turrets
  1189. else
  1190. return nil
  1191. end
  1192. end
  1193.  
  1194. function findNearestTorso(pos)
  1195. local list = game.Workspace:children()
  1196. local torso = nil
  1197. local dist = SightRadius.Value
  1198. local temp = nil
  1199. local human = nil
  1200. local temp2 = nil
  1201. for x = 1, #list do
  1202. temp2 = list[x]
  1203. if (temp2.className == "Model") and (temp2 ~= script.Parent.Parent) then
  1204. temp = temp2:findFirstChild("Torso")
  1205. human = temp2:findFirstChild("Zombie") or temp2:findFirstChild("Humanoid")
  1206. local player = game.Players:GetPlayerFromCharacter(temp2)
  1207. local Ai = temp2:findFirstChild("Brain") or temp2:findFirstChild("Parts")
  1208. if(Ai ~= nil) then -- for my turrets and cars etc....
  1209. local LP = Ai:findFirstChild("TurretEngine") -- For our Turrets
  1210. local EN = Ai:findFirstChild("Engine") -- for our Ai Cars etc...
  1211. local MyAiCar = script.Parent.Parent.Parent.Parent
  1212. local TeamColor = Ai.Parent:findFirstChild("TeamColor")
  1213. local TeamGame = Ai.Parent:findFirstChild("TeamGame")
  1214. if(LP ~= nil) then
  1215. if(TeamColor ~= nil and TeamGame ~= nil) then
  1216. if(TeamGame.Value == true) then
  1217. if(TeamColor.Value ~= MyTeamColor.Value) then
  1218. if (LP.Position - pos).magnitude < dist then
  1219. torso = LP
  1220. dist = (LP.Position - pos).magnitude
  1221. end
  1222. end
  1223. else
  1224. if (LP.Position - pos).magnitude < dist then
  1225. torso = LP
  1226. dist = (LP.Position - pos).magnitude
  1227. end
  1228. end
  1229. end
  1230. end
  1231. if(EN ~= nil and Ai.Parent ~= MyAiCar) then
  1232. local EnemyTurrets = getTurrets(Ai.Parent)
  1233. if(EnemyTurrets ~= nil) then
  1234. if(TeamColor ~= nil and TeamGame ~= nil) then
  1235. if(TeamGame.Value == true) then
  1236. if(TeamColor.Value ~= MyTeamColor.Value) then
  1237. for i=1,#EnemyTurrets do
  1238. local Turret = EnemyTurrets[i]
  1239. local Brain = Turret:findFirstChild("Brain")
  1240. if(Brain ~= nil) then
  1241. local TEngine= Brain:findFirstChild("TurretEngine")
  1242. if (TEngine.Position - pos).magnitude < dist then
  1243. torso =TEngine
  1244. dist = (TEngine.Position - pos).magnitude
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. else
  1252. if(TeamColor ~= nil and TeamGame ~= nil) then
  1253. if(TeamGame.Value == true) then
  1254. if(TeamColor.Value ~= MyTeamColor.Value) then
  1255. if (EN.Position - pos).magnitude < dist then
  1256. torso =EN
  1257. dist = (EN.Position - pos).magnitude
  1258. end
  1259. end
  1260. else
  1261. if (EN.Position - pos).magnitude < dist then
  1262. torso = EN
  1263. dist = (EN.Position - pos).magnitude
  1264. end
  1265. end
  1266. end
  1267. end
  1268. end
  1269. end
  1270. if(human ~= nil or temp ~= nil) then -- just for humanoids and zombies
  1271. if(ZombieTarget.Value == true and HumanoidTarget.Value == false) then
  1272. if(human.Name ~= "Zombie") then
  1273. human = nil
  1274. temp = nil
  1275. end
  1276. end
  1277. if(HumanoidTarget.Value == true and ZombieTarget.Value == false)then
  1278. if(human.Name ~= "Humanoid") then
  1279. human = nil
  1280. temp = nil
  1281. else
  1282. if(player ~= nil) then
  1283. if(isTeamGame.Value == true) then
  1284. if(player.TeamColor == MyTeamColor.Value) then
  1285. human = nil
  1286. temp = nil
  1287. end
  1288. end
  1289. end
  1290. end
  1291. end
  1292. if(HumanoidTarget.Value == true and ZombieTarget.Value == true)then
  1293. if(player ~= nil) then
  1294. if(isTeamGame.Value == true) then
  1295. if(player.TeamColor == MyTeamColor.Value) then
  1296. human = nil
  1297. temp = nil
  1298. end
  1299. end
  1300. end
  1301. end
  1302. if(HumanoidTarget.Value == false and ZombieTarget.Value == false)then
  1303. temp = nil
  1304. human = nil
  1305. end
  1306. end
  1307. if (temp ~= nil and human ~= nil) then
  1308. if (temp.Position - pos).magnitude < dist and human.Health > 0 then
  1309. torso = temp
  1310. dist = (temp.Position - pos).magnitude
  1311. end
  1312. end
  1313. end
  1314. end
  1315. return torso
  1316. end
  1317. function isInFireingRange(Tgt,pos)
  1318. local dist = SightRadius.Value-40
  1319. local torso = nil
  1320. local human = Tgt.Parent:findFirstChild("Zombie") or Tgt.Parent:findFirstChild("Humanoid")
  1321. target = findNearestTorso(script.Parent.Position)
  1322. if(target ~=nil) then
  1323. if(target.Name == "Torso") then
  1324. if(human ~= nil and target ~= nil) then
  1325. if (Tgt.Position - pos).magnitude < dist and human.Health > 0 then
  1326. torso = Tgt
  1327. dist = (Tgt.Position - pos).magnitude
  1328. end
  1329. end
  1330. else
  1331. if(target ~= nil) then
  1332. if (Tgt.Position - pos).magnitude < dist then
  1333. torso = Tgt
  1334. dist = (Tgt.Position - pos).magnitude
  1335. end
  1336. end
  1337. end
  1338. end
  1339. return torso
  1340. end
  1341. script.Parent.BodyGyro.cframe = script.Parent.CFrame
  1342. wait(.1)
  1343. -- ZombieTarget
  1344. -- HumanoidTarget
  1345. -- isTeamGame
  1346. -- MyTeamColor
  1347.  
  1348. while true do
  1349. if(script.Parent.Parent.Destroyed.Value == false) then
  1350. target = findNearestTorso(script.Parent.Position)
  1351. if(target ~= nil) then
  1352. if(isInFireingRange(target,script.Parent.Position))then
  1353. script.Parent.Parent.MyTarget.Value = target
  1354. else
  1355. script.Parent.Parent.MyTarget.Value = nil
  1356. end
  1357. script.Parent.BodyGyro.cframe = script.Parent.CFrame
  1358. script.Parent.BodyGyro.P = 2000
  1359. move(target.Position,script.Parent)
  1360. else
  1361. move(script.Parent.Parent.Point.Position,script.Parent)
  1362. script.Parent.BodyGyro.P = 500
  1363. script.Parent.Parent.MyTarget.Value = nil
  1364. end
  1365. script.Parent.BodyPosition.position = script.Parent.Position
  1366. end
  1367. wait(0)
  1368. end
  1369.  
  1370. end))
  1371. BodyGyro45.Parent = Part43
  1372. BodyGyro45.CFrame = CFrame.new(42.7718315, 63.5309296, 400.966034, -0.973836124, -0.0427035429, 0.223203138, -2.00591987e-10, 0.982185662, 0.18791315, -0.227251485, 0.182996616, -0.956487834)
  1373. BodyGyro45.MaxTorque = Vector3.new(0, 0, 0)
  1374. BodyGyro45.P = 30000
  1375. BodyGyro45.maxTorque = Vector3.new(0, 0, 0)
  1376. BodyGyro45.D = 1000
  1377. BodyGyro45.cframe = CFrame.new(42.7718315, 63.5309296, 400.966034, -0.973836124, -0.0427035429, 0.223203138, -2.00591987e-10, 0.982185662, 0.18791315, -0.227251485, 0.182996616, -0.956487834)
  1378. BodyPosition46.Parent = Part43
  1379. Script47.Name = "DeathScript"
  1380. Script47.Parent = Model42
  1381. table.insert(cors,sandbox(Script47,function()
  1382. function test()
  1383. if(script.Parent ~= nil) then
  1384. script.Parent.Destroyed.Value =true
  1385. end
  1386. end
  1387.  
  1388. script.Parent.ChildRemoved:connect(test)
  1389.  
  1390. while true do
  1391. if(script.Parent~= nil) then
  1392. if(script.Parent.Destroyed.Value == true) then
  1393. wait(2)
  1394. Tengine = script.Parent:findFirstChild("TurretEngine")
  1395. if(Tengine ~= nil) then
  1396. script.Parent.TurretEngine.BodyGyro:remove()
  1397. end
  1398. wait(4)
  1399. script.Parent.Parent.Head:remove()
  1400. end
  1401. end
  1402. wait(.1)
  1403. end
  1404. end))
  1405. BoolValue48.Name = "Destroyed"
  1406. BoolValue48.Parent = Model42
  1407. ObjectValue49.Name = "MyTarget"
  1408. ObjectValue49.Parent = Model42
  1409. Script50.Name = "PowerRegen"
  1410. Script50.Parent = Model42
  1411. table.insert(cors,sandbox(Script50,function()
  1412. local Power = script.Parent.Parent.Power
  1413. local Battery = script.Parent.Parent.Battery
  1414. name = "Advanced Laser Turret"
  1415. while true do
  1416. if Power.Value < 10000 and Battery.Value > 0 then
  1417. Power.Value = Power.Value +50
  1418. Battery.Value = Battery.Value - 25
  1419. end
  1420. if(Battery.Value < 0) then
  1421. Battery.Value = 0
  1422. end
  1423. if(Power.Value > 10000) then
  1424. Power.Value = 10000
  1425. end
  1426. script.Parent.Parent.Name = ""
  1427. script.Parent.Parent.Name = name.." PowerLevel :"..Power.Value.." Of : "..Battery.Value
  1428. wait(.1)
  1429. end
  1430.  
  1431. end))
  1432. Model51.Name = "FirePoints"
  1433. Model51.Parent = Model42
  1434. Script52.Parent = Model51
  1435. table.insert(cors,sandbox(Script52,function()
  1436. Power = script.Parent.Parent.Parent.Power
  1437. Battery = script.Parent.Parent.Parent.Battery
  1438. ShootPower = 0.3
  1439. curr = 0
  1440. SpinUP = true
  1441. function Vel(speed,lv)
  1442. return lv*Vector3.new(speed,speed,speed)
  1443. end
  1444. local tnum = 0
  1445. wait(1)
  1446. function doLaser(firepoint,Target)
  1447. local P = Instance.new("Part")
  1448. P.Name = "Advanced Laser"
  1449. local Place0 = firepoint.CFrame
  1450. P.formFactor = 0.1
  1451. P.Size = Vector3.new(0.1,0.2,(Place0.p - Target.Position).magnitude)
  1452. P.CFrame = CFrame.new((Place0.p + Target.Position)/2,Place0.p)
  1453. P.Parent = game.Workspace
  1454. P.BrickColor = BrickColor.new("Really red")
  1455. P.Transparency = 0.37
  1456. P.Reflectance = 0
  1457. if(firepoint:findFirstChild("Sound") ~= nil) then
  1458. firepoint.Sound:remove()
  1459. end
  1460. snd = Instance.new("Sound")
  1461. snd.Parent= firepoint
  1462. snd.SoundId = "http://www.roblox.com/asset/?id=2800815"
  1463. snd.Volume = 1
  1464. snd:play()
  1465. MYPower = Instance.new("IntValue")
  1466. MYPower.Value = ShootPower
  1467. MYPower.Name = "Power"
  1468. MYPower.Parent = P
  1469. P.Locked = true
  1470. P.TopSurface = 0
  1471. P.BottomSurface = 0
  1472. P.CanCollide = false
  1473. s = script.BulletScript:clone()
  1474. s.Parent = P
  1475. P.Anchored = true
  1476. end
  1477.  
  1478. while true do
  1479. pos1 = script.Parent:findFirstChild("Turret01")
  1480. pos2 = script.Parent:findFirstChild("Turret02")
  1481. firePoint = nil
  1482. if(script.Parent.Parent.Destroyed.Value == false) then
  1483. if(script.Parent.Parent.MyTarget.Value ~= nil) then
  1484. if(SpinUP == true) then
  1485. SpinUP = false
  1486. wait(1)
  1487. else
  1488. if(Power.Value >= ShootPower) then
  1489. if(tnum == 0) then
  1490. tnum = 1
  1491. firePoint = pos1
  1492. else
  1493. tnum = 0
  1494. firePoint = pos2
  1495. end
  1496. if(firePoint == nil) then break end
  1497. doLaser(firePoint,script.Parent.Parent.MyTarget.Value)
  1498. local Target = script.Parent.Parent.MyTarget.Value
  1499. local h= Target.Parent:findFirstChild("Humanoid") or Target.Parent:findFirstChild("Zombie")
  1500. if(h ~= nil) then
  1501. if(h.className == "Humanoid") then -- check we have a true Humanoid not a part or model
  1502. h:TakeDamage(ShootPower)
  1503. end
  1504. end
  1505. Power.Value = Power.Value -ShootPower
  1506. else
  1507. if(Battery.Value == 0) then
  1508. script.Parent.Parent.Destroyed.Value = true
  1509. end
  1510. end
  1511. end
  1512. else
  1513. SpinUP = true
  1514. end
  1515. end
  1516. wait()
  1517. end
  1518. end))
  1519. Script53.Name = "BulletScript"
  1520. Script53.Parent = Script52
  1521. table.insert(cors,sandbox(Script53,function()
  1522. function DoDamage(part)
  1523. if(part.Name ~= "Turret01" and part.Name ~= "Turret02") then
  1524. if(part.Anchored == false) then
  1525. local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
  1526. if(h ~= nil) then
  1527. if(h.className == "Humanoid") then
  1528. local MyPower = script.Parent:findFirstChild("Power")
  1529. if(MyPower ~= nil) then
  1530. if(MyPower.Value > 1) then
  1531. h:TakeDamage(MyPower.Value)
  1532. MyPower.Value = MyPower.Value/2
  1533. end
  1534. else
  1535. script.Parent:remove()
  1536. end
  1537. end
  1538. end
  1539. end
  1540. end
  1541. end
  1542.  
  1543. if(script.Parent.className == "Part") then
  1544. base = script.Parent
  1545. --print(script.Parent:findFirstChild("MyTurret").Value)
  1546. base.Touched:connect(DoDamage)
  1547. for i = 1,0,-0.1 do
  1548. script.Parent.Transparency = 1-i
  1549. script.Parent.Reflectance = i*0
  1550. wait(.01)
  1551. end
  1552. script.Parent:Remove()
  1553. end
  1554.  
  1555. end))
  1556. Part54.Name = "Turret02"
  1557. Part54.Parent = Model51
  1558. Part54.CFrame = CFrame.new(6.94753981, 14.1751575, -31.5221481, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
  1559. Part54.Orientation = Vector3.new(-90, 6, 0)
  1560. Part54.Position = Vector3.new(6.94753981, 14.1751575, -31.5221481)
  1561. Part54.Rotation = Vector3.new(-90, 0, 6)
  1562. Part54.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1563. Part54.Transparency = 50
  1564. Part54.Velocity = Vector3.new(-0.944017708, -9.18221188, 0.415143907)
  1565. Part54.Size = Vector3.new(2.29894614, 3.67831373, 4.59789228)
  1566. Part54.Anchored = true
  1567. Part54.BackSurface = Enum.SurfaceType.Weld
  1568. Part54.BottomSurface = Enum.SurfaceType.Smooth
  1569. Part54.BrickColor = BrickColor.new("Dark stone grey")
  1570. Part54.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1571. Part54.TopSurface = Enum.SurfaceType.Smooth
  1572. Part54.brickColor = BrickColor.new("Dark stone grey")
  1573. Part54.FormFactor = Enum.FormFactor.Plate
  1574. Part54.formFactor = Enum.FormFactor.Plate
  1575. Part55.Name = "Turret01"
  1576. Part55.Parent = Model51
  1577. Part55.CFrame = CFrame.new(9.23394775, 14.1751575, -31.7625351, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
  1578. Part55.Orientation = Vector3.new(-90, 6, 0)
  1579. Part55.Position = Vector3.new(9.23394775, 14.1751575, -31.7625351)
  1580. Part55.Rotation = Vector3.new(-90, 0, 6)
  1581. Part55.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1582. Part55.Transparency = 50
  1583. Part55.Velocity = Vector3.new(-0.944017708, -9.18220234, 0.41515249)
  1584. Part55.Size = Vector3.new(2.29894614, 3.67831373, 4.59789228)
  1585. Part55.Anchored = true
  1586. Part55.BackSurface = Enum.SurfaceType.Weld
  1587. Part55.BottomSurface = Enum.SurfaceType.Smooth
  1588. Part55.BrickColor = BrickColor.new("Dark stone grey")
  1589. Part55.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1590. Part55.TopSurface = Enum.SurfaceType.Smooth
  1591. Part55.brickColor = BrickColor.new("Dark stone grey")
  1592. Part55.FormFactor = Enum.FormFactor.Plate
  1593. Part55.formFactor = Enum.FormFactor.Plate
  1594. IntValue56.Name = "Battery"
  1595. IntValue56.Parent = Model41
  1596. IntValue56.Value = 1000000
  1597. Humanoid57.Parent = Model41
  1598. Humanoid57.Health = 0
  1599. Humanoid57.MaxHealth = 0
  1600. Humanoid57.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  1601. Humanoid57.maxHealth = 0
  1602. IntValue58.Name = "Power"
  1603. IntValue58.Parent = Model41
  1604. IntValue58.Value = 10000
  1605. Script59.Name = "RegenScript"
  1606. Script59.Parent = Model41
  1607. table.insert(cors,sandbox(Script59,function()
  1608. model = script.Parent
  1609. backup = model:clone()
  1610. active = false
  1611. function Regen(part)
  1612. if(active == false) then
  1613. active = true
  1614. script.Parent:breakJoints()
  1615. script.Parent.Brain.Destroyed.Value = true
  1616. wait(1)
  1617. model:remove()
  1618. model = backup:Clone()
  1619. wait(30)
  1620. model.Parent = game.Workspace
  1621. model:MakeJoints()
  1622. end
  1623. end
  1624.  
  1625. function retriveParts(model,myColor)
  1626. local raw_model = model:GetChildren()
  1627. for i=1,#raw_model do
  1628. local part = raw_model[i]
  1629. if(part ~= nil) then
  1630. part.BrickColor = myColor
  1631. end
  1632. end
  1633. end
  1634.  
  1635. function setTeam()
  1636. local brain = script.Parent.Brain
  1637. local isTeamGame = script.Parent.TeamGame.Value
  1638. if(isTeamGame == true) then
  1639. retriveParts(script.Parent.BodyKit.TeamColorBricks,script.Parent.TeamColor.Value)
  1640. if(brain:findFirstChild("Point") ~= nil) then
  1641. brain.Point.BrickColor = script.Parent.TeamColor.Value
  1642. end
  1643. if(brain:findFirstChild("TurretEngine") ~= nil) then
  1644. brain.TurretEngine.BrickColor = script.Parent.TeamColor.Value
  1645. end
  1646. if(script.Parent:findFirstChild("Head") ~= nil) then
  1647. script.Parent.Head.BrickColor = script.Parent.TeamColor.Value
  1648. end
  1649. else
  1650. retriveParts(script.Parent.BodyKit.TeamColorBricks,BrickColor.new("Dark stone grey"))
  1651. if(brain:findFirstChild("Point") ~= nil) then
  1652. brain.Point.BrickColor = BrickColor.new("Dark stone grey")
  1653. end
  1654. if(brain:findFirstChild("TurretEngine") ~= nil) then
  1655. brain.TurretEngine.BrickColor = BrickColor.new("Dark stone grey")
  1656. end
  1657. if(script.Parent:findFirstChild("Head") ~= nil) then
  1658. script.Parent.Head.BrickColor = BrickColor.new("Dark stone grey")
  1659. end
  1660. end
  1661. end
  1662. setTeam()
  1663. model.BodyKit.ChildRemoved:connect(Regen)
  1664. model.ChildRemoved:connect(Regen)
  1665. model.Brain.ChildRemoved:connect(Regen)
  1666. script.Parent.TeamColor.Changed:connect(setTeam)
  1667. script.Parent.TeamGame.Changed:connect(setTeam)
  1668.  
  1669. end))
  1670. IntValue60.Name = "ScanRange"
  1671. IntValue60.Parent = Model41
  1672. IntValue60.Value = 2000
  1673. BoolValue61.Name = "Target Humanoids"
  1674. BoolValue61.Parent = Model41
  1675. BoolValue61.Value = true
  1676. BoolValue62.Name = "Target Zombies"
  1677. BoolValue62.Parent = Model41
  1678. BoolValue62.Value = true
  1679. BoolValue63.Name = "TeamGame"
  1680. BoolValue63.Parent = Model41
  1681. BoolValue63.Value = true
  1682. Model64.Name = "BodyKit"
  1683. Model64.Parent = Model41
  1684. Part65.Parent = Model64
  1685. Part65.CFrame = CFrame.new(19.4429474, 14.0449743, -2.81133795, -0.0037220316, -0.994529545, -0.104460642, -0.999365509, -9.08626987e-07, 0.0356169902, -0.0354222432, 0.104526028, -0.993898451)
  1686. Part65.Orientation = Vector3.new(-2.03999996, -174, -90)
  1687. Part65.Position = Vector3.new(19.4429474, 14.0449743, -2.81133795)
  1688. Part65.Rotation = Vector3.new(-177.949997, -6, 90.2099991)
  1689. Part65.Transparency = 3
  1690. Part65.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499329776)
  1691. Part65.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
  1692. Part65.Anchored = true
  1693. Part65.BackSurface = Enum.SurfaceType.Weld
  1694. Part65.BottomSurface = Enum.SurfaceType.Weld
  1695. Part65.FrontSurface = Enum.SurfaceType.Weld
  1696. Part65.LeftSurface = Enum.SurfaceType.Weld
  1697. Part65.RightSurface = Enum.SurfaceType.Weld
  1698. Part65.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  1699. Part65.TopSurface = Enum.SurfaceType.Weld
  1700. CylinderMesh66.Parent = Part65
  1701. CylinderMesh66.Offset = Vector3.new(0, 0.300000012, 0)
  1702. CylinderMesh66.Scale = Vector3.new(0.800000012, 0.5, 0.800000012)
  1703. Part67.Parent = Model64
  1704. Part67.CFrame = CFrame.new(10.9303961, 18.7730675, -31.0162239, 0, -0.994529426, -0.104527965, -1, -0, 0, 0, 0.104527049, -0.994529426)
  1705. Part67.Orientation = Vector3.new(0, -174, -90)
  1706. Part67.Position = Vector3.new(10.9303961, 18.7730675, -31.0162239)
  1707. Part67.Rotation = Vector3.new(-180, -6, 90)
  1708. Part67.Transparency = 3
  1709. Part67.Velocity = Vector3.new(-0.944040179, -9.18219757, 0.415166914)
  1710. Part67.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  1711. Part67.Anchored = true
  1712. Part67.BackSurface = Enum.SurfaceType.Weld
  1713. Part67.BottomSurface = Enum.SurfaceType.Weld
  1714. Part67.FrontSurface = Enum.SurfaceType.Weld
  1715. Part67.LeftSurface = Enum.SurfaceType.Weld
  1716. Part67.RightSurface = Enum.SurfaceType.Weld
  1717. Part67.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1718. Part67.TopSurface = Enum.SurfaceType.Weld
  1719. Part67.FormFactor = Enum.FormFactor.Plate
  1720. Part67.formFactor = Enum.FormFactor.Plate
  1721. CylinderMesh68.Parent = Part67
  1722. CylinderMesh68.Offset = Vector3.new(-0.600000024, 1.20000005, -0.100000001)
  1723. CylinderMesh68.Scale = Vector3.new(0.0299999993, 1, 0.0299999993)
  1724. Part69.Parent = Model64
  1725. Part69.CFrame = CFrame.new(4.54092407, 14.1751575, -32.4249687, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
  1726. Part69.Orientation = Vector3.new(0, 6, 90)
  1727. Part69.Position = Vector3.new(4.54092407, 14.1751575, -32.4249687)
  1728. Part69.Rotation = Vector3.new(0, 6, 90)
  1729. Part69.Transparency = 3
  1730. Part69.Velocity = Vector3.new(-0.944013357, -9.18221951, 0.415135354)
  1731. Part69.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
  1732. Part69.Anchored = true
  1733. Part69.BackSurface = Enum.SurfaceType.Weld
  1734. Part69.BottomSurface = Enum.SurfaceType.Weld
  1735. Part69.FrontSurface = Enum.SurfaceType.Inlet
  1736. Part69.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1737. Part69.TopSurface = Enum.SurfaceType.Smooth
  1738. Part69.FormFactor = Enum.FormFactor.Symmetric
  1739. Part69.formFactor = Enum.FormFactor.Symmetric
  1740. SpecialMesh70.Parent = Part69
  1741. SpecialMesh70.MeshType = Enum.MeshType.Wedge
  1742. Part71.Parent = Model64
  1743. Part71.CFrame = CFrame.new(8.21086884, 19.2328491, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  1744. Part71.Orientation = Vector3.new(0, -174, 0)
  1745. Part71.Position = Vector3.new(8.21086884, 19.2328491, -30.4991188)
  1746. Part71.Rotation = Vector3.new(-180, -6, -180)
  1747. Part71.Transparency = 3
  1748. Part71.Velocity = Vector3.new(-0.944042921, -9.18220901, 0.415157467)
  1749. Part71.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  1750. Part71.Anchored = true
  1751. Part71.BackSurface = Enum.SurfaceType.Weld
  1752. Part71.BottomSurface = Enum.SurfaceType.Weld
  1753. Part71.FrontSurface = Enum.SurfaceType.Weld
  1754. Part71.LeftSurface = Enum.SurfaceType.Weld
  1755. Part71.RightSurface = Enum.SurfaceType.Weld
  1756. Part71.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1757. Part71.TopSurface = Enum.SurfaceType.Weld
  1758. Part71.FormFactor = Enum.FormFactor.Plate
  1759. Part71.formFactor = Enum.FormFactor.Plate
  1760. CylinderMesh72.Parent = Part71
  1761. CylinderMesh72.Scale = Vector3.new(0.100000001, 1, 0.100000001)
  1762. Part73.Parent = Model64
  1763. Part73.CFrame = CFrame.new(5.22343397, 14.1751575, -10.5362864, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
  1764. Part73.Orientation = Vector3.new(0, 6, 90)
  1765. Part73.Position = Vector3.new(5.22343397, 14.1751575, -10.5362864)
  1766. Part73.Rotation = Vector3.new(0, 6, 90)
  1767. Part73.Transparency = 3
  1768. Part73.Velocity = Vector3.new(-0.944094777, -9.18226624, 0.415129364)
  1769. Part73.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  1770. Part73.Anchored = true
  1771. Part73.BackSurface = Enum.SurfaceType.Weld
  1772. Part73.BottomSurface = Enum.SurfaceType.Weld
  1773. Part73.FrontSurface = Enum.SurfaceType.Weld
  1774. Part73.LeftSurface = Enum.SurfaceType.Weld
  1775. Part73.RightSurface = Enum.SurfaceType.Weld
  1776. Part73.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1777. Part73.TopSurface = Enum.SurfaceType.Weld
  1778. Part73.FormFactor = Enum.FormFactor.Plate
  1779. Part73.formFactor = Enum.FormFactor.Plate
  1780. Part74.Parent = Model64
  1781. Part74.CFrame = CFrame.new(8.21086884, 20.1524239, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  1782. Part74.Orientation = Vector3.new(0, -174, 0)
  1783. Part74.Position = Vector3.new(8.21086884, 20.1524239, -30.4991188)
  1784. Part74.Rotation = Vector3.new(-180, -6, -180)
  1785. Part74.Transparency = 3
  1786. Part74.Velocity = Vector3.new(-0.944046736, -9.18220901, 0.415159166)
  1787. Part74.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  1788. Part74.Anchored = true
  1789. Part74.BackSurface = Enum.SurfaceType.Weld
  1790. Part74.BottomSurface = Enum.SurfaceType.Weld
  1791. Part74.FrontSurface = Enum.SurfaceType.Weld
  1792. Part74.LeftSurface = Enum.SurfaceType.Weld
  1793. Part74.RightSurface = Enum.SurfaceType.Weld
  1794. Part74.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1795. Part74.TopSurface = Enum.SurfaceType.Weld
  1796. Part74.FormFactor = Enum.FormFactor.Plate
  1797. Part74.formFactor = Enum.FormFactor.Plate
  1798. SpecialMesh75.Parent = Part74
  1799. SpecialMesh75.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1800. SpecialMesh75.Scale = Vector3.new(1.14947271, 1.14947271, 11.4947281)
  1801. SpecialMesh75.MeshType = Enum.MeshType.FileMesh
  1802. Part76.Parent = Model64
  1803. Part76.CFrame = CFrame.new(11.8396521, 10.7267437, 4.02485895, -0.994529426, 0.104527965, 0, -0, 0, 1, 0.104527049, 0.994529426, 0)
  1804. Part76.Orientation = Vector3.new(-90, -174, 0)
  1805. Part76.Position = Vector3.new(11.8396521, 10.7267437, 4.02485895)
  1806. Part76.Rotation = Vector3.new(-90, 0, -174)
  1807. Part76.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1808. Part76.Transparency = 3
  1809. Part76.Velocity = Vector3.new(-0.944136977, -9.18227291, 0.415141881)
  1810. Part76.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
  1811. Part76.Anchored = true
  1812. Part76.BackSurface = Enum.SurfaceType.Weld
  1813. Part76.BottomSurface = Enum.SurfaceType.Weld
  1814. Part76.BrickColor = BrickColor.new("Dark stone grey")
  1815. Part76.FrontSurface = Enum.SurfaceType.Inlet
  1816. Part76.LeftSurface = Enum.SurfaceType.Weld
  1817. Part76.RightSurface = Enum.SurfaceType.Weld
  1818. Part76.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1819. Part76.TopSurface = Enum.SurfaceType.Weld
  1820. Part76.brickColor = BrickColor.new("Dark stone grey")
  1821. SpecialMesh77.Parent = Part76
  1822. SpecialMesh77.MeshType = Enum.MeshType.Wedge
  1823. Part78.Parent = Model64
  1824. Part78.CFrame = CFrame.new(11.8635635, 14.1751575, 4.25371695, -0.994529426, 0.104527965, 0, -0, 0, 1, 0.104527049, 0.994529426, 0)
  1825. Part78.Orientation = Vector3.new(-90, -174, 0)
  1826. Part78.Position = Vector3.new(11.8635635, 14.1751575, 4.25371695)
  1827. Part78.Rotation = Vector3.new(-90, 0, -174)
  1828. Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1829. Part78.Transparency = 3
  1830. Part78.Velocity = Vector3.new(-0.944152117, -9.18227291, 0.415148199)
  1831. Part78.Size = Vector3.new(4.59789228, 2.75873542, 4.59789228)
  1832. Part78.Anchored = true
  1833. Part78.BackSurface = Enum.SurfaceType.Weld
  1834. Part78.BottomSurface = Enum.SurfaceType.Weld
  1835. Part78.BrickColor = BrickColor.new("Dark stone grey")
  1836. Part78.FrontSurface = Enum.SurfaceType.Weld
  1837. Part78.LeftSurface = Enum.SurfaceType.Weld
  1838. Part78.RightSurface = Enum.SurfaceType.Weld
  1839. Part78.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1840. Part78.TopSurface = Enum.SurfaceType.Weld
  1841. Part78.brickColor = BrickColor.new("Dark stone grey")
  1842. Part79.Parent = Model64
  1843. Part79.CFrame = CFrame.new(9.17211819, 10.7267437, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  1844. Part79.Orientation = Vector3.new(0, 6, 0)
  1845. Part79.Position = Vector3.new(9.17211819, 10.7267437, -21.3537903)
  1846. Part79.Rotation = Vector3.new(0, 6, 0)
  1847. Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1848. Part79.Transparency = 3
  1849. Part79.Velocity = Vector3.new(-0.944041908, -9.18222618, 0.415141881)
  1850. Part79.Size = Vector3.new(4.59789228, 2.29894614, 20.6905136)
  1851. Part79.Anchored = true
  1852. Part79.BackSurface = Enum.SurfaceType.Weld
  1853. Part79.BrickColor = BrickColor.new("Dark stone grey")
  1854. Part79.FrontSurface = Enum.SurfaceType.Weld
  1855. Part79.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1856. Part79.TopSurface = Enum.SurfaceType.Weld
  1857. Part79.brickColor = BrickColor.new("Dark stone grey")
  1858. Part79.FormFactor = Enum.FormFactor.Symmetric
  1859. Part79.formFactor = Enum.FormFactor.Symmetric
  1860. Part80.Parent = Model64
  1861. Part80.CFrame = CFrame.new(8.21086884, 21.0720215, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  1862. Part80.Orientation = Vector3.new(0, -174, 0)
  1863. Part80.Position = Vector3.new(8.21086884, 21.0720215, -30.4991188)
  1864. Part80.Rotation = Vector3.new(-180, -6, -180)
  1865. Part80.Transparency = 3
  1866. Part80.Velocity = Vector3.new(-0.94405055, -9.18220901, 0.415160835)
  1867. Part80.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  1868. Part80.Anchored = true
  1869. Part80.BackSurface = Enum.SurfaceType.Weld
  1870. Part80.BottomSurface = Enum.SurfaceType.Weld
  1871. Part80.FrontSurface = Enum.SurfaceType.Weld
  1872. Part80.LeftSurface = Enum.SurfaceType.Weld
  1873. Part80.RightSurface = Enum.SurfaceType.Weld
  1874. Part80.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1875. Part80.TopSurface = Enum.SurfaceType.Weld
  1876. Part80.FormFactor = Enum.FormFactor.Plate
  1877. Part80.formFactor = Enum.FormFactor.Plate
  1878. CylinderMesh81.Parent = Part80
  1879. CylinderMesh81.Offset = Vector3.new(0, -0.400000006, 0)
  1880. CylinderMesh81.Scale = Vector3.new(0.0299999993, 1, 0.0299999993)
  1881. Part82.Parent = Model64
  1882. Part82.CFrame = CFrame.new(12.4815216, 14.1751575, -22.8574848, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  1883. Part82.Orientation = Vector3.new(0, 6, 0)
  1884. Part82.Position = Vector3.new(12.4815216, 14.1751575, -22.8574848)
  1885. Part82.Rotation = Vector3.new(0, 6, 0)
  1886. Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1887. Part82.Transparency = 3
  1888. Part82.Velocity = Vector3.new(-0.944051921, -9.18220997, 0.415161043)
  1889. Part82.Size = Vector3.new(2.29894614, 4.59789228, 18.3915691)
  1890. Part82.Anchored = true
  1891. Part82.BackSurface = Enum.SurfaceType.Weld
  1892. Part82.BottomSurface = Enum.SurfaceType.Smooth
  1893. Part82.BrickColor = BrickColor.new("Dark stone grey")
  1894. Part82.FrontSurface = Enum.SurfaceType.Weld
  1895. Part82.LeftSurface = Enum.SurfaceType.Weld
  1896. Part82.RightSurface = Enum.SurfaceType.Inlet
  1897. Part82.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1898. Part82.TopSurface = Enum.SurfaceType.Smooth
  1899. Part82.brickColor = BrickColor.new("Dark stone grey")
  1900. Part82.FormFactor = Enum.FormFactor.Symmetric
  1901. Part82.formFactor = Enum.FormFactor.Symmetric
  1902. Part83.Parent = Model64
  1903. Part83.CFrame = CFrame.new(7.97057295, 10.7267437, -32.7855721, -0.994529426, 0, 0.104527965, -0, -1, 0, 0.104527049, 0, 0.994529426)
  1904. Part83.Orientation = Vector3.new(0, 6, -180)
  1905. Part83.Position = Vector3.new(7.97057295, 10.7267437, -32.7855721)
  1906. Part83.Rotation = Vector3.new(0, 6, -180)
  1907. Part83.Transparency = 3
  1908. Part83.Velocity = Vector3.new(-0.943999112, -9.1822052, 0.415141881)
  1909. Part83.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
  1910. Part83.Anchored = true
  1911. Part83.BackSurface = Enum.SurfaceType.Weld
  1912. Part83.BottomSurface = Enum.SurfaceType.Weld
  1913. Part83.FrontSurface = Enum.SurfaceType.Inlet
  1914. Part83.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1915. Part83.TopSurface = Enum.SurfaceType.Smooth
  1916. Part83.FormFactor = Enum.FormFactor.Symmetric
  1917. Part83.formFactor = Enum.FormFactor.Symmetric
  1918. SpecialMesh84.Parent = Part83
  1919. SpecialMesh84.MeshType = Enum.MeshType.Wedge
  1920. Part85.Parent = Model64
  1921. Part85.CFrame = CFrame.new(11.2146597, 20.1524239, -1.919505, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  1922. Part85.Orientation = Vector3.new(0, 6, 0)
  1923. Part85.Position = Vector3.new(11.2146597, 20.1524239, -1.919505)
  1924. Part85.Rotation = Vector3.new(0, 6, 0)
  1925. Part85.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1926. Part85.Transparency = 3
  1927. Part85.Velocity = Vector3.new(-0.944153786, -9.18226147, 0.415159166)
  1928. Part85.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  1929. Part85.Anchored = true
  1930. Part85.BackSurface = Enum.SurfaceType.Weld
  1931. Part85.BottomSurface = Enum.SurfaceType.Weld
  1932. Part85.BrickColor = BrickColor.new("Dark stone grey")
  1933. Part85.FrontSurface = Enum.SurfaceType.Weld
  1934. Part85.LeftSurface = Enum.SurfaceType.Weld
  1935. Part85.RightSurface = Enum.SurfaceType.Weld
  1936. Part85.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1937. Part85.TopSurface = Enum.SurfaceType.Weld
  1938. Part85.brickColor = BrickColor.new("Dark stone grey")
  1939. Part85.FormFactor = Enum.FormFactor.Plate
  1940. Part85.formFactor = Enum.FormFactor.Plate
  1941. Part86.Parent = Model64
  1942. Part86.CFrame = CFrame.new(11.5752316, 20.1524239, 1.50998998, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  1943. Part86.Orientation = Vector3.new(0, -174, 0)
  1944. Part86.Position = Vector3.new(11.5752316, 20.1524239, 1.50998998)
  1945. Part86.Rotation = Vector3.new(-180, -6, -180)
  1946. Part86.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1947. Part86.Transparency = 3
  1948. Part86.Velocity = Vector3.new(-0.944166601, -9.18226814, 0.415159166)
  1949. Part86.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  1950. Part86.Anchored = true
  1951. Part86.BackSurface = Enum.SurfaceType.Weld
  1952. Part86.BottomSurface = Enum.SurfaceType.Weld
  1953. Part86.BrickColor = BrickColor.new("Dark stone grey")
  1954. Part86.FrontSurface = Enum.SurfaceType.Weld
  1955. Part86.LeftSurface = Enum.SurfaceType.Weld
  1956. Part86.RightSurface = Enum.SurfaceType.Weld
  1957. Part86.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1958. Part86.TopSurface = Enum.SurfaceType.Weld
  1959. Part86.brickColor = BrickColor.new("Dark stone grey")
  1960. Part86.FormFactor = Enum.FormFactor.Plate
  1961. Part86.formFactor = Enum.FormFactor.Plate
  1962. SpecialMesh87.Parent = Part86
  1963. SpecialMesh87.MeshType = Enum.MeshType.Wedge
  1964. Part88.Parent = Model64
  1965. Part88.CFrame = CFrame.new(13.0822144, 17.6236, -17.1412506, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
  1966. Part88.Orientation = Vector3.new(0, 96, -90)
  1967. Part88.Position = Vector3.new(13.0822144, 17.6236, -17.1412506)
  1968. Part88.Rotation = Vector3.new(-180, 84, 90)
  1969. Part88.Transparency = 3
  1970. Part88.Velocity = Vector3.new(-0.944087684, -9.18222046, 0.415167361)
  1971. Part88.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
  1972. Part88.Anchored = true
  1973. Part88.BottomSurface = Enum.SurfaceType.Weld
  1974. Part88.FrontSurface = Enum.SurfaceType.Weld
  1975. Part88.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1976. Part88.TopSurface = Enum.SurfaceType.Smooth
  1977. Part88.FormFactor = Enum.FormFactor.Symmetric
  1978. Part88.formFactor = Enum.FormFactor.Symmetric
  1979. CylinderMesh89.Parent = Part88
  1980. Part90.Parent = Model64
  1981. Part90.CFrame = CFrame.new(5.62227583, 14.1751575, -22.1363029, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  1982. Part90.Orientation = Vector3.new(0, 6, 0)
  1983. Part90.Position = Vector3.new(5.62227583, 14.1751575, -22.1363029)
  1984. Part90.Rotation = Vector3.new(0, 6, 0)
  1985. Part90.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1986. Part90.Transparency = 3
  1987. Part90.Velocity = Vector3.new(-0.944051921, -9.18223858, 0.415135354)
  1988. Part90.Size = Vector3.new(2.29894614, 4.59789228, 18.3915691)
  1989. Part90.Anchored = true
  1990. Part90.BackSurface = Enum.SurfaceType.Weld
  1991. Part90.BottomSurface = Enum.SurfaceType.Smooth
  1992. Part90.BrickColor = BrickColor.new("Dark stone grey")
  1993. Part90.FrontSurface = Enum.SurfaceType.Weld
  1994. Part90.LeftSurface = Enum.SurfaceType.Inlet
  1995. Part90.RightSurface = Enum.SurfaceType.Weld
  1996. Part90.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  1997. Part90.TopSurface = Enum.SurfaceType.Smooth
  1998. Part90.brickColor = BrickColor.new("Dark stone grey")
  1999. Part90.FormFactor = Enum.FormFactor.Symmetric
  2000. Part90.formFactor = Enum.FormFactor.Symmetric
  2001. Part91.Parent = Model64
  2002. Part91.CFrame = CFrame.new(7.97057295, 17.6236, -32.7855721, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2003. Part91.Orientation = Vector3.new(0, 6, 0)
  2004. Part91.Position = Vector3.new(7.97057295, 17.6236, -32.7855721)
  2005. Part91.Rotation = Vector3.new(0, 6, 0)
  2006. Part91.Transparency = 3
  2007. Part91.Velocity = Vector3.new(-0.944027722, -9.1822052, 0.415154517)
  2008. Part91.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
  2009. Part91.Anchored = true
  2010. Part91.BackSurface = Enum.SurfaceType.Weld
  2011. Part91.BottomSurface = Enum.SurfaceType.Weld
  2012. Part91.FrontSurface = Enum.SurfaceType.Inlet
  2013. Part91.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2014. Part91.TopSurface = Enum.SurfaceType.Smooth
  2015. Part91.FormFactor = Enum.FormFactor.Symmetric
  2016. Part91.formFactor = Enum.FormFactor.Symmetric
  2017. SpecialMesh92.Parent = Part91
  2018. SpecialMesh92.MeshType = Enum.MeshType.Wedge
  2019. Part93.Parent = Model64
  2020. Part93.CFrame = CFrame.new(5.46726179, 18.7730675, -30.2108421, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
  2021. Part93.Orientation = Vector3.new(0, 6, -90)
  2022. Part93.Position = Vector3.new(5.46726179, 18.7730675, -30.2108421)
  2023. Part93.Rotation = Vector3.new(0, 6, -90)
  2024. Part93.Color = Color3.new(0.768628, 0.156863, 0.109804)
  2025. Part93.Transparency = 3
  2026. Part93.Velocity = Vector3.new(-0.944041014, -9.18222046, 0.415146351)
  2027. Part93.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
  2028. Part93.Anchored = true
  2029. Part93.BackSurface = Enum.SurfaceType.Weld
  2030. Part93.BottomSurface = Enum.SurfaceType.Weld
  2031. Part93.BrickColor = BrickColor.new("Bright red")
  2032. Part93.FrontSurface = Enum.SurfaceType.Weld
  2033. Part93.LeftSurface = Enum.SurfaceType.Weld
  2034. Part93.RightSurface = Enum.SurfaceType.Weld
  2035. Part93.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2036. Part93.TopSurface = Enum.SurfaceType.Weld
  2037. Part93.brickColor = BrickColor.new("Bright red")
  2038. Part93.FormFactor = Enum.FormFactor.Plate
  2039. Part93.formFactor = Enum.FormFactor.Plate
  2040. BlockMesh94.Parent = Part93
  2041. BlockMesh94.Offset = Vector3.new(-0.600000024, 1.20000005, 0)
  2042. BlockMesh94.Scale = Vector3.new(0.0299999993, 0.100000001, 0.100000001)
  2043. Part95.Parent = Model64
  2044. Part95.CFrame = CFrame.new(9.17211819, 17.6236, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2045. Part95.Orientation = Vector3.new(0, 6, 0)
  2046. Part95.Position = Vector3.new(9.17211819, 17.6236, -21.3537903)
  2047. Part95.Rotation = Vector3.new(0, 6, 0)
  2048. Part95.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2049. Part95.Transparency = 3
  2050. Part95.Velocity = Vector3.new(-0.944070518, -9.18222618, 0.415154517)
  2051. Part95.Size = Vector3.new(4.59789228, 2.29894614, 20.6905136)
  2052. Part95.Anchored = true
  2053. Part95.BackSurface = Enum.SurfaceType.Weld
  2054. Part95.BottomSurface = Enum.SurfaceType.Weld
  2055. Part95.BrickColor = BrickColor.new("Dark stone grey")
  2056. Part95.FrontSurface = Enum.SurfaceType.Weld
  2057. Part95.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2058. Part95.TopSurface = Enum.SurfaceType.Inlet
  2059. Part95.brickColor = BrickColor.new("Dark stone grey")
  2060. Part95.FormFactor = Enum.FormFactor.Symmetric
  2061. Part95.formFactor = Enum.FormFactor.Symmetric
  2062. Part96.Parent = Model64
  2063. Part96.CFrame = CFrame.new(22.1864071, 14.0449743, -3.09954596, -0.0037220316, -0.994529545, -0.104460642, -0.999365509, -9.08626987e-07, 0.0356169902, -0.0354222432, 0.104526028, -0.993898451)
  2064. Part96.Orientation = Vector3.new(-2.03999996, -174, -90)
  2065. Part96.Position = Vector3.new(22.1864071, 14.0449743, -3.09954596)
  2066. Part96.Rotation = Vector3.new(-177.949997, -6, 90.2099991)
  2067. Part96.Transparency = 3
  2068. Part96.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499661744)
  2069. Part96.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
  2070. Part96.Anchored = true
  2071. Part96.BackSurface = Enum.SurfaceType.Weld
  2072. Part96.BottomSurface = Enum.SurfaceType.Weld
  2073. Part96.FrontSurface = Enum.SurfaceType.Weld
  2074. Part96.LeftSurface = Enum.SurfaceType.Weld
  2075. Part96.Reflectance = 0.20000000298023
  2076. Part96.RightSurface = Enum.SurfaceType.Weld
  2077. Part96.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2078. Part96.TopSurface = Enum.SurfaceType.Weld
  2079. CylinderMesh97.Parent = Part96
  2080. CylinderMesh97.Offset = Vector3.new(0, 1.39999998, 0)
  2081. CylinderMesh97.Scale = Vector3.new(0.5, 0.5, 0.5)
  2082. Part98.Parent = Model64
  2083. Part98.CFrame = CFrame.new(6.22315216, 17.6236, -16.4203396, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
  2084. Part98.Orientation = Vector3.new(0, 96, -90)
  2085. Part98.Position = Vector3.new(6.22315216, 17.6236, -16.4203396)
  2086. Part98.Rotation = Vector3.new(-180, 84, 90)
  2087. Part98.Transparency = 3
  2088. Part98.Velocity = Vector3.new(-0.944087684, -9.18224907, 0.415141672)
  2089. Part98.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
  2090. Part98.Anchored = true
  2091. Part98.BackSurface = Enum.SurfaceType.Weld
  2092. Part98.BottomSurface = Enum.SurfaceType.Weld
  2093. Part98.FrontSurface = Enum.SurfaceType.Weld
  2094. Part98.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2095. Part98.TopSurface = Enum.SurfaceType.Smooth
  2096. Part98.FormFactor = Enum.FormFactor.Symmetric
  2097. Part98.formFactor = Enum.FormFactor.Symmetric
  2098. CylinderMesh99.Parent = Part98
  2099. Part100.Parent = Model64
  2100. Part100.CFrame = CFrame.new(9.53257847, 19.2328491, -17.9240761, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2101. Part100.Orientation = Vector3.new(0, 6, 0)
  2102. Part100.Position = Vector3.new(9.53257847, 19.2328491, -17.9240761)
  2103. Part100.Rotation = Vector3.new(0, 6, 0)
  2104. Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2105. Part100.Transparency = 3
  2106. Part100.Velocity = Vector3.new(-0.944090009, -9.18223286, 0.415157467)
  2107. Part100.Size = Vector3.new(4.59789228, 0.919578433, 13.7936754)
  2108. Part100.Anchored = true
  2109. Part100.BackSurface = Enum.SurfaceType.Weld
  2110. Part100.BottomSurface = Enum.SurfaceType.Weld
  2111. Part100.BrickColor = BrickColor.new("Dark stone grey")
  2112. Part100.FrontSurface = Enum.SurfaceType.Inlet
  2113. Part100.LeftSurface = Enum.SurfaceType.Weld
  2114. Part100.RightSurface = Enum.SurfaceType.Weld
  2115. Part100.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2116. Part100.TopSurface = Enum.SurfaceType.Weld
  2117. Part100.brickColor = BrickColor.new("Dark stone grey")
  2118. Part100.FormFactor = Enum.FormFactor.Plate
  2119. Part100.formFactor = Enum.FormFactor.Plate
  2120. SpecialMesh101.Parent = Part100
  2121. SpecialMesh101.MeshType = Enum.MeshType.Wedge
  2122. Part102.Parent = Model64
  2123. Part102.CFrame = CFrame.new(10.1332779, 14.1751575, -12.2081776, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2124. Part102.Orientation = Vector3.new(0, 6, 0)
  2125. Part102.Position = Vector3.new(10.1332779, 14.1751575, -12.2081776)
  2126. Part102.Rotation = Vector3.new(0, 6, 0)
  2127. Part102.Transparency = 3
  2128. Part102.Velocity = Vector3.new(-0.944090486, -9.18224335, 0.415148199)
  2129. Part102.Size = Vector3.new(9.19578457, 4.59789228, 2.29894614)
  2130. Part102.Anchored = true
  2131. Part102.BackSurface = Enum.SurfaceType.Weld
  2132. Part102.BottomSurface = Enum.SurfaceType.Smooth
  2133. Part102.FrontSurface = Enum.SurfaceType.Weld
  2134. Part102.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2135. Part102.TopSurface = Enum.SurfaceType.Smooth
  2136. Part102.FormFactor = Enum.FormFactor.Symmetric
  2137. Part102.formFactor = Enum.FormFactor.Symmetric
  2138. Part103.Parent = Model64
  2139. Part103.CFrame = CFrame.new(11.4001303, 14.1751575, -33.1460953, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
  2140. Part103.Orientation = Vector3.new(0, 6, -90)
  2141. Part103.Position = Vector3.new(11.4001303, 14.1751575, -33.1460953)
  2142. Part103.Rotation = Vector3.new(0, 6, -90)
  2143. Part103.Transparency = 3
  2144. Part103.Velocity = Vector3.new(-0.944013357, -9.1821909, 0.415161043)
  2145. Part103.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
  2146. Part103.Anchored = true
  2147. Part103.BackSurface = Enum.SurfaceType.Weld
  2148. Part103.BottomSurface = Enum.SurfaceType.Weld
  2149. Part103.FrontSurface = Enum.SurfaceType.Inlet
  2150. Part103.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2151. Part103.TopSurface = Enum.SurfaceType.Smooth
  2152. Part103.FormFactor = Enum.FormFactor.Symmetric
  2153. Part103.formFactor = Enum.FormFactor.Symmetric
  2154. SpecialMesh104.Parent = Part103
  2155. SpecialMesh104.MeshType = Enum.MeshType.Wedge
  2156. Part105.Parent = Model64
  2157. Part105.CFrame = CFrame.new(4.38231611, 14.1751575, -18.5387115, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
  2158. Part105.Orientation = Vector3.new(0, 6, 90)
  2159. Part105.Position = Vector3.new(4.38231611, 14.1751575, -18.5387115)
  2160. Part105.Rotation = Vector3.new(0, 6, 90)
  2161. Part105.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2162. Part105.Transparency = 3
  2163. Part105.Velocity = Vector3.new(-0.944064796, -9.18225193, 0.415129364)
  2164. Part105.Size = Vector3.new(4.59789228, 0.919578433, 11.49473)
  2165. Part105.Anchored = true
  2166. Part105.BackSurface = Enum.SurfaceType.Weld
  2167. Part105.BottomSurface = Enum.SurfaceType.Weld
  2168. Part105.BrickColor = BrickColor.new("Dark stone grey")
  2169. Part105.FrontSurface = Enum.SurfaceType.Inlet
  2170. Part105.LeftSurface = Enum.SurfaceType.Weld
  2171. Part105.RightSurface = Enum.SurfaceType.Weld
  2172. Part105.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2173. Part105.TopSurface = Enum.SurfaceType.Smooth
  2174. Part105.brickColor = BrickColor.new("Dark stone grey")
  2175. Part105.FormFactor = Enum.FormFactor.Plate
  2176. Part105.formFactor = Enum.FormFactor.Plate
  2177. SpecialMesh106.Parent = Part105
  2178. SpecialMesh106.MeshType = Enum.MeshType.Wedge
  2179. Part107.Parent = Model64
  2180. Part107.CFrame = CFrame.new(9.77282047, 9.11744404, -15.63764, -0.994529426, 0, 0.104527965, -0, -1, 0, 0.104527049, 0, 0.994529426)
  2181. Part107.Orientation = Vector3.new(0, 6, -180)
  2182. Part107.Position = Vector3.new(9.77282047, 9.11744404, -15.63764)
  2183. Part107.Rotation = Vector3.new(0, 6, -180)
  2184. Part107.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2185. Part107.Transparency = 3
  2186. Part107.Velocity = Vector3.new(-0.94405669, -9.18223667, 0.41513893)
  2187. Part107.Size = Vector3.new(4.59789228, 0.919578433, 13.7936754)
  2188. Part107.Anchored = true
  2189. Part107.BackSurface = Enum.SurfaceType.Weld
  2190. Part107.BottomSurface = Enum.SurfaceType.Weld
  2191. Part107.BrickColor = BrickColor.new("Dark stone grey")
  2192. Part107.FrontSurface = Enum.SurfaceType.Inlet
  2193. Part107.LeftSurface = Enum.SurfaceType.Weld
  2194. Part107.RightSurface = Enum.SurfaceType.Weld
  2195. Part107.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2196. Part107.TopSurface = Enum.SurfaceType.Weld
  2197. Part107.brickColor = BrickColor.new("Dark stone grey")
  2198. Part107.FormFactor = Enum.FormFactor.Plate
  2199. Part107.formFactor = Enum.FormFactor.Plate
  2200. SpecialMesh108.Parent = Part107
  2201. SpecialMesh108.MeshType = Enum.MeshType.Wedge
  2202. Part109.Parent = Model64
  2203. Part109.CFrame = CFrame.new(11.8396521, 17.6236, 4.02485895, 0.994529426, 0.104527965, 0, 0, 0, -1, -0.104527049, 0.994529426, 0)
  2204. Part109.Orientation = Vector3.new(90, 6, 0)
  2205. Part109.Position = Vector3.new(11.8396521, 17.6236, 4.02485895)
  2206. Part109.Rotation = Vector3.new(90, 0, -6)
  2207. Part109.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2208. Part109.Transparency = 3
  2209. Part109.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
  2210. Part109.Anchored = true
  2211. Part109.BackSurface = Enum.SurfaceType.Weld
  2212. Part109.BottomSurface = Enum.SurfaceType.Weld
  2213. Part109.BrickColor = BrickColor.new("Dark stone grey")
  2214. Part109.FrontSurface = Enum.SurfaceType.Inlet
  2215. Part109.LeftSurface = Enum.SurfaceType.Weld
  2216. Part109.RightSurface = Enum.SurfaceType.Weld
  2217. Part109.TopSurface = Enum.SurfaceType.Inlet
  2218. Part109.brickColor = BrickColor.new("Dark stone grey")
  2219. SpecialMesh110.Parent = Part109
  2220. SpecialMesh110.MeshType = Enum.MeshType.Wedge
  2221. Part111.Parent = Model64
  2222. Part111.CFrame = CFrame.new(15.2835236, 14.1751575, -11.5938797, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
  2223. Part111.Orientation = Vector3.new(0, 6, 90)
  2224. Part111.Position = Vector3.new(15.2835236, 14.1751575, -11.5938797)
  2225. Part111.Rotation = Vector3.new(0, 6, 90)
  2226. Part111.Transparency = 3
  2227. Part111.Velocity = Vector3.new(-0.944094777, -9.18222427, 0.415167034)
  2228. Part111.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  2229. Part111.Anchored = true
  2230. Part111.BackSurface = Enum.SurfaceType.Weld
  2231. Part111.BottomSurface = Enum.SurfaceType.Weld
  2232. Part111.FrontSurface = Enum.SurfaceType.Weld
  2233. Part111.LeftSurface = Enum.SurfaceType.Weld
  2234. Part111.RightSurface = Enum.SurfaceType.Weld
  2235. Part111.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2236. Part111.TopSurface = Enum.SurfaceType.Weld
  2237. Part111.FormFactor = Enum.FormFactor.Plate
  2238. Part111.formFactor = Enum.FormFactor.Plate
  2239. Part112.Parent = Model64
  2240. Part112.CFrame = CFrame.new(9.95133209, 21.0720215, -2.94255209, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  2241. Part112.Orientation = Vector3.new(0, -174, 0)
  2242. Part112.Position = Vector3.new(9.95133209, 21.0720215, -2.94255209)
  2243. Part112.Rotation = Vector3.new(-180, -6, -180)
  2244. Part112.Transparency = 3
  2245. Part112.Velocity = Vector3.new(-0.944153309, -9.18226433, 0.415156573)
  2246. Part112.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
  2247. Part112.Anchored = true
  2248. Part112.BackSurface = Enum.SurfaceType.Weld
  2249. Part112.BottomSurface = Enum.SurfaceType.Weld
  2250. Part112.FrontSurface = Enum.SurfaceType.Weld
  2251. Part112.LeftSurface = Enum.SurfaceType.Weld
  2252. Part112.RightSurface = Enum.SurfaceType.Weld
  2253. Part112.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2254. Part112.TopSurface = Enum.SurfaceType.Weld
  2255. Part112.FormFactor = Enum.FormFactor.Plate
  2256. Part112.formFactor = Enum.FormFactor.Plate
  2257. CylinderMesh113.Parent = Part112
  2258. CylinderMesh113.Offset = Vector3.new(0, -0.400000006, 0)
  2259. CylinderMesh113.Scale = Vector3.new(0.200000003, 2, 0.200000003)
  2260. Part114.Parent = Model64
  2261. Part114.CFrame = CFrame.new(12.4780045, 21.0720215, -0.896456003, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  2262. Part114.Orientation = Vector3.new(0, -174, 0)
  2263. Part114.Position = Vector3.new(12.4780045, 21.0720215, -0.896456003)
  2264. Part114.Rotation = Vector3.new(-180, -6, -180)
  2265. Part114.Transparency = 3
  2266. Part114.Velocity = Vector3.new(-0.944161892, -9.18225861, 0.415165126)
  2267. Part114.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
  2268. Part114.Anchored = true
  2269. Part114.BackSurface = Enum.SurfaceType.Weld
  2270. Part114.BottomSurface = Enum.SurfaceType.Weld
  2271. Part114.FrontSurface = Enum.SurfaceType.Weld
  2272. Part114.LeftSurface = Enum.SurfaceType.Weld
  2273. Part114.RightSurface = Enum.SurfaceType.Weld
  2274. Part114.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2275. Part114.TopSurface = Enum.SurfaceType.Weld
  2276. Part114.FormFactor = Enum.FormFactor.Plate
  2277. Part114.formFactor = Enum.FormFactor.Plate
  2278. CylinderMesh115.Parent = Part114
  2279. CylinderMesh115.Offset = Vector3.new(0, -0.400000006, 0)
  2280. CylinderMesh115.Scale = Vector3.new(0.200000003, 2, 0.200000003)
  2281. Part116.Parent = Model64
  2282. Part116.CFrame = CFrame.new(2.98088098, 14.0449743, -1.08105803, -0.0037220316, 0.994529545, 0.104460642, -0.999365509, 9.08626987e-07, -0.0356169902, -0.0354222432, -0.104526028, 0.993898451)
  2283. Part116.Orientation = Vector3.new(2.03999996, 6, -90)
  2284. Part116.Position = Vector3.new(2.98088098, 14.0449743, -1.08105803)
  2285. Part116.Rotation = Vector3.new(2.04999995, 6, -90.2099991)
  2286. Part116.Transparency = 3
  2287. Part116.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
  2288. Part116.Anchored = true
  2289. Part116.BackSurface = Enum.SurfaceType.Weld
  2290. Part116.BottomSurface = Enum.SurfaceType.Smooth
  2291. Part116.FrontSurface = Enum.SurfaceType.Weld
  2292. Part116.LeftSurface = Enum.SurfaceType.Weld
  2293. Part116.RightSurface = Enum.SurfaceType.Weld
  2294. Part116.TopSurface = Enum.SurfaceType.Weld
  2295. CylinderMesh117.Parent = Part116
  2296. CylinderMesh117.Offset = Vector3.new(0, 0.300000012, 0)
  2297. CylinderMesh117.Scale = Vector3.new(0.800000012, 0.5, 0.800000012)
  2298. Part118.Parent = Model64
  2299. Part118.CFrame = CFrame.new(10.1916342, 21.0720215, -0.656199992, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  2300. Part118.Orientation = Vector3.new(0, -174, 0)
  2301. Part118.Position = Vector3.new(10.1916342, 21.0720215, -0.656199992)
  2302. Part118.Rotation = Vector3.new(-180, -6, -180)
  2303. Part118.Transparency = 3
  2304. Part118.Velocity = Vector3.new(-0.944161892, -9.18226814, 0.415156573)
  2305. Part118.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
  2306. Part118.Anchored = true
  2307. Part118.BackSurface = Enum.SurfaceType.Weld
  2308. Part118.BottomSurface = Enum.SurfaceType.Weld
  2309. Part118.FrontSurface = Enum.SurfaceType.Weld
  2310. Part118.LeftSurface = Enum.SurfaceType.Weld
  2311. Part118.RightSurface = Enum.SurfaceType.Weld
  2312. Part118.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2313. Part118.TopSurface = Enum.SurfaceType.Weld
  2314. Part118.FormFactor = Enum.FormFactor.Plate
  2315. Part118.formFactor = Enum.FormFactor.Plate
  2316. CylinderMesh119.Parent = Part118
  2317. CylinderMesh119.Offset = Vector3.new(0, -0.400000006, 0)
  2318. CylinderMesh119.Scale = Vector3.new(0.200000003, 2, 0.200000003)
  2319. Part120.Parent = Model64
  2320. Part120.CFrame = CFrame.new(12.237792, 21.0720215, -3.18286109, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  2321. Part120.Orientation = Vector3.new(0, -174, 0)
  2322. Part120.Position = Vector3.new(12.237792, 21.0720215, -3.18286109)
  2323. Part120.Rotation = Vector3.new(-180, -6, -180)
  2324. Part120.Transparency = 3
  2325. Part120.Velocity = Vector3.new(-0.944153309, -9.18225479, 0.415165126)
  2326. Part120.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
  2327. Part120.Anchored = true
  2328. Part120.BackSurface = Enum.SurfaceType.Weld
  2329. Part120.BottomSurface = Enum.SurfaceType.Weld
  2330. Part120.FrontSurface = Enum.SurfaceType.Weld
  2331. Part120.LeftSurface = Enum.SurfaceType.Weld
  2332. Part120.RightSurface = Enum.SurfaceType.Weld
  2333. Part120.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2334. Part120.TopSurface = Enum.SurfaceType.Weld
  2335. Part120.FormFactor = Enum.FormFactor.Plate
  2336. Part120.formFactor = Enum.FormFactor.Plate
  2337. CylinderMesh121.Parent = Part120
  2338. CylinderMesh121.Offset = Vector3.new(0, -0.400000006, 0)
  2339. CylinderMesh121.Scale = Vector3.new(0.200000003, 2, 0.200000003)
  2340. Part122.Parent = Model64
  2341. Part122.CFrame = CFrame.new(13.0822144, 10.7267437, -17.1412506, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
  2342. Part122.Orientation = Vector3.new(0, 96, -90)
  2343. Part122.Position = Vector3.new(13.0822144, 10.7267437, -17.1412506)
  2344. Part122.Rotation = Vector3.new(-180, 84, 90)
  2345. Part122.Transparency = 3
  2346. Part122.Velocity = Vector3.new(-0.944059074, -9.18222046, 0.415154725)
  2347. Part122.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
  2348. Part122.Anchored = true
  2349. Part122.BackSurface = Enum.SurfaceType.Weld
  2350. Part122.BottomSurface = Enum.SurfaceType.Weld
  2351. Part122.FrontSurface = Enum.SurfaceType.Weld
  2352. Part122.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2353. Part122.TopSurface = Enum.SurfaceType.Smooth
  2354. Part122.FormFactor = Enum.FormFactor.Symmetric
  2355. Part122.formFactor = Enum.FormFactor.Symmetric
  2356. CylinderMesh123.Parent = Part122
  2357. Part124.Parent = Model64
  2358. Part124.CFrame = CFrame.new(14.4423981, 14.1751575, -19.5959167, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
  2359. Part124.Orientation = Vector3.new(0, 6, -90)
  2360. Part124.Position = Vector3.new(14.4423981, 14.1751575, -19.5959167)
  2361. Part124.Rotation = Vector3.new(0, 6, -90)
  2362. Part124.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2363. Part124.Transparency = 3
  2364. Part124.Velocity = Vector3.new(-0.944064796, -9.18220997, 0.415167034)
  2365. Part124.Size = Vector3.new(4.59789228, 0.919578433, 11.49473)
  2366. Part124.Anchored = true
  2367. Part124.BackSurface = Enum.SurfaceType.Weld
  2368. Part124.BottomSurface = Enum.SurfaceType.Weld
  2369. Part124.BrickColor = BrickColor.new("Dark stone grey")
  2370. Part124.FrontSurface = Enum.SurfaceType.Inlet
  2371. Part124.LeftSurface = Enum.SurfaceType.Weld
  2372. Part124.RightSurface = Enum.SurfaceType.Weld
  2373. Part124.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2374. Part124.TopSurface = Enum.SurfaceType.Smooth
  2375. Part124.brickColor = BrickColor.new("Dark stone grey")
  2376. Part124.FormFactor = Enum.FormFactor.Plate
  2377. Part124.formFactor = Enum.FormFactor.Plate
  2378. SpecialMesh125.Parent = Part124
  2379. SpecialMesh125.MeshType = Enum.MeshType.Wedge
  2380. Part126.Parent = Model64
  2381. Part126.CFrame = CFrame.new(6.22315216, 10.7267437, -16.4203396, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
  2382. Part126.Orientation = Vector3.new(0, 96, -90)
  2383. Part126.Position = Vector3.new(6.22315216, 10.7267437, -16.4203396)
  2384. Part126.Rotation = Vector3.new(-180, 84, 90)
  2385. Part126.Transparency = 3
  2386. Part126.Velocity = Vector3.new(-0.944059074, -9.18224907, 0.415129036)
  2387. Part126.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
  2388. Part126.Anchored = true
  2389. Part126.BackSurface = Enum.SurfaceType.Weld
  2390. Part126.BottomSurface = Enum.SurfaceType.Weld
  2391. Part126.FrontSurface = Enum.SurfaceType.Weld
  2392. Part126.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2393. Part126.TopSurface = Enum.SurfaceType.Smooth
  2394. Part126.FormFactor = Enum.FormFactor.Symmetric
  2395. Part126.formFactor = Enum.FormFactor.Symmetric
  2396. CylinderMesh127.Parent = Part126
  2397. Part128.Parent = Model64
  2398. Part128.CFrame = CFrame.new(12.0558701, 14.1751575, 6.08281088, 0.994529426, 0.104527965, 0, 0, 0, -1, -0.104527049, 0.994529426, 0)
  2399. Part128.Orientation = Vector3.new(90, 6, 0)
  2400. Part128.Position = Vector3.new(12.0558701, 14.1751575, 6.08281088)
  2401. Part128.Rotation = Vector3.new(90, 0, -6)
  2402. Part128.Transparency = 3
  2403. Part128.Velocity = Vector3.new(-0.944158971, -9.18227673, 0.415148199)
  2404. Part128.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  2405. Part128.Anchored = true
  2406. Part128.BackSurface = Enum.SurfaceType.Weld
  2407. Part128.BottomSurface = Enum.SurfaceType.Weld
  2408. Part128.FrontSurface = Enum.SurfaceType.Weld
  2409. Part128.LeftSurface = Enum.SurfaceType.Weld
  2410. Part128.RightSurface = Enum.SurfaceType.Weld
  2411. Part128.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2412. Part128.TopSurface = Enum.SurfaceType.Weld
  2413. Part128.FormFactor = Enum.FormFactor.Plate
  2414. Part128.formFactor = Enum.FormFactor.Plate
  2415. CylinderMesh129.Parent = Part128
  2416. CylinderMesh129.Scale = Vector3.new(0.100000001, 2, 0.100000001)
  2417. Part130.Parent = Model64
  2418. Part130.CFrame = CFrame.new(10.7341604, 20.1524239, -6.49239492, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2419. Part130.Orientation = Vector3.new(0, 6, 0)
  2420. Part130.Position = Vector3.new(10.7341604, 20.1524239, -6.49239492)
  2421. Part130.Rotation = Vector3.new(0, 6, 0)
  2422. Part130.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2423. Part130.Transparency = 3
  2424. Part130.Velocity = Vector3.new(-0.944136679, -9.18225288, 0.415159166)
  2425. Part130.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  2426. Part130.Anchored = true
  2427. Part130.BackSurface = Enum.SurfaceType.Weld
  2428. Part130.BottomSurface = Enum.SurfaceType.Weld
  2429. Part130.BrickColor = BrickColor.new("Dark stone grey")
  2430. Part130.FrontSurface = Enum.SurfaceType.Weld
  2431. Part130.LeftSurface = Enum.SurfaceType.Weld
  2432. Part130.RightSurface = Enum.SurfaceType.Weld
  2433. Part130.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2434. Part130.TopSurface = Enum.SurfaceType.Weld
  2435. Part130.brickColor = BrickColor.new("Dark stone grey")
  2436. Part130.FormFactor = Enum.FormFactor.Plate
  2437. Part130.formFactor = Enum.FormFactor.Plate
  2438. SpecialMesh131.Parent = Part130
  2439. SpecialMesh131.MeshType = Enum.MeshType.Wedge
  2440. Part132.Parent = Model64
  2441. Part132.CFrame = CFrame.new(9.17211819, 14.1751575, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2442. Part132.Orientation = Vector3.new(0, 6, 0)
  2443. Part132.Position = Vector3.new(9.17211819, 14.1751575, -21.3537903)
  2444. Part132.Rotation = Vector3.new(0, 6, 0)
  2445. Part132.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2446. Part132.Transparency = 3
  2447. Part132.Velocity = Vector3.new(-0.944056213, -9.18222618, 0.415148199)
  2448. Part132.Size = Vector3.new(4.59789228, 4.59789228, 16.0926228)
  2449. Part132.Anchored = true
  2450. Part132.BackSurface = Enum.SurfaceType.Weld
  2451. Part132.BottomSurface = Enum.SurfaceType.Smooth
  2452. Part132.BrickColor = BrickColor.new("Dark stone grey")
  2453. Part132.FrontSurface = Enum.SurfaceType.Weld
  2454. Part132.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2455. Part132.TopSurface = Enum.SurfaceType.Smooth
  2456. Part132.brickColor = BrickColor.new("Dark stone grey")
  2457. Part132.FormFactor = Enum.FormFactor.Symmetric
  2458. Part132.formFactor = Enum.FormFactor.Symmetric
  2459. Part133.Parent = Model64
  2460. Part133.CFrame = CFrame.new(15.2690802, 14.1751575, 3.66444993, 0, 0.104527958, -0.994529426, -1, 0, 0, 0, 0.994529426, 0.104527056)
  2461. Part133.Orientation = Vector3.new(0, -84, -90)
  2462. Part133.Position = Vector3.new(15.2690802, 14.1751575, 3.66444993)
  2463. Part133.Rotation = Vector3.new(0, -84, -90)
  2464. Part133.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2465. Part133.Transparency = 3
  2466. Part133.Velocity = Vector3.new(-0.944151282, -9.18225861, 0.415161043)
  2467. Part133.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
  2468. Part133.Anchored = true
  2469. Part133.BackSurface = Enum.SurfaceType.Weld
  2470. Part133.BottomSurface = Enum.SurfaceType.Weld
  2471. Part133.BrickColor = BrickColor.new("Dark stone grey")
  2472. Part133.FrontSurface = Enum.SurfaceType.Inlet
  2473. Part133.LeftSurface = Enum.SurfaceType.Weld
  2474. Part133.RightSurface = Enum.SurfaceType.Weld
  2475. Part133.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2476. Part133.TopSurface = Enum.SurfaceType.Weld
  2477. Part133.brickColor = BrickColor.new("Dark stone grey")
  2478. SpecialMesh134.Parent = Part133
  2479. SpecialMesh134.MeshType = Enum.MeshType.Wedge
  2480. Part135.Parent = Model64
  2481. Part135.CFrame = CFrame.new(10.4938736, 19.2328491, -8.77872372, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
  2482. Part135.Orientation = Vector3.new(0, 6, 0)
  2483. Part135.Position = Vector3.new(10.4938736, 19.2328491, -8.77872372)
  2484. Part135.Rotation = Vector3.new(0, 6, 0)
  2485. Part135.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2486. Part135.Transparency = 3
  2487. Part135.Velocity = Vector3.new(-0.944124281, -9.18224907, 0.415157467)
  2488. Part135.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  2489. Part135.Anchored = true
  2490. Part135.BackSurface = Enum.SurfaceType.Weld
  2491. Part135.BottomSurface = Enum.SurfaceType.Weld
  2492. Part135.BrickColor = BrickColor.new("Dark stone grey")
  2493. Part135.FrontSurface = Enum.SurfaceType.Weld
  2494. Part135.LeftSurface = Enum.SurfaceType.Weld
  2495. Part135.RightSurface = Enum.SurfaceType.Weld
  2496. Part135.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2497. Part135.TopSurface = Enum.SurfaceType.Weld
  2498. Part135.brickColor = BrickColor.new("Dark stone grey")
  2499. Part135.FormFactor = Enum.FormFactor.Plate
  2500. Part135.formFactor = Enum.FormFactor.Plate
  2501. Part136.Parent = Model64
  2502. Part136.CFrame = CFrame.new(11.2146597, 19.2328491, -1.919505, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
  2503. Part136.Orientation = Vector3.new(0, -174, 0)
  2504. Part136.Position = Vector3.new(11.2146597, 19.2328491, -1.919505)
  2505. Part136.Rotation = Vector3.new(-180, -6, -180)
  2506. Part136.Transparency = 3
  2507. Part136.Velocity = Vector3.new(-0.944149971, -9.18226147, 0.415157467)
  2508. Part136.Size = Vector3.new(4.59789228, 0.919578433, 9.19578457)
  2509. Part136.Anchored = true
  2510. Part136.BackSurface = Enum.SurfaceType.Weld
  2511. Part136.BottomSurface = Enum.SurfaceType.Weld
  2512. Part136.FrontSurface = Enum.SurfaceType.Weld
  2513. Part136.LeftSurface = Enum.SurfaceType.Weld
  2514. Part136.RightSurface = Enum.SurfaceType.Weld
  2515. Part136.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2516. Part136.TopSurface = Enum.SurfaceType.Smooth
  2517. Part136.FormFactor = Enum.FormFactor.Plate
  2518. Part136.formFactor = Enum.FormFactor.Plate
  2519. Part137.Parent = Model64
  2520. Part137.CFrame = CFrame.new(0.237274006, 14.0449743, -0.792523026, -0.0037220316, 0.994529545, 0.104460642, -0.999365509, 9.08626987e-07, -0.0356169902, -0.0354222432, -0.104526028, 0.993898451)
  2521. Part137.Orientation = Vector3.new(2.03999996, 6, -90)
  2522. Part137.Position = Vector3.new(0.237274006, 14.0449743, -0.792523026)
  2523. Part137.Rotation = Vector3.new(2.04999995, 6, -90.2099991)
  2524. Part137.Transparency = 3
  2525. Part137.Velocity = Vector3.new(1.21259141, 8.57174683, -0.497005999)
  2526. Part137.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
  2527. Part137.Anchored = true
  2528. Part137.BackSurface = Enum.SurfaceType.Weld
  2529. Part137.BottomSurface = Enum.SurfaceType.Weld
  2530. Part137.FrontSurface = Enum.SurfaceType.Weld
  2531. Part137.LeftSurface = Enum.SurfaceType.Weld
  2532. Part137.Reflectance = 0.20000000298023
  2533. Part137.RightSurface = Enum.SurfaceType.Weld
  2534. Part137.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2535. Part137.TopSurface = Enum.SurfaceType.Weld
  2536. CylinderMesh138.Parent = Part137
  2537. CylinderMesh138.Offset = Vector3.new(0, 1.39999998, 0)
  2538. CylinderMesh138.Scale = Vector3.new(0.5, 0.5, 0.5)
  2539. Part139.Parent = Model64
  2540. Part139.CFrame = CFrame.new(8.41001034, 14.1751575, 4.38526583, 0, 0.104527958, 0.994529426, 1, 0, 0, 0, 0.994529426, -0.104527056)
  2541. Part139.Orientation = Vector3.new(0, 96, 90)
  2542. Part139.Position = Vector3.new(8.41001034, 14.1751575, 4.38526583)
  2543. Part139.Rotation = Vector3.new(-180, 84, -90)
  2544. Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2545. Part139.Transparency = 3
  2546. Part139.Velocity = Vector3.new(-0.944151282, -9.18228722, 0.415135354)
  2547. Part139.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
  2548. Part139.Anchored = true
  2549. Part139.BackSurface = Enum.SurfaceType.Weld
  2550. Part139.BottomSurface = Enum.SurfaceType.Weld
  2551. Part139.BrickColor = BrickColor.new("Dark stone grey")
  2552. Part139.FrontSurface = Enum.SurfaceType.Inlet
  2553. Part139.LeftSurface = Enum.SurfaceType.Weld
  2554. Part139.RightSurface = Enum.SurfaceType.Weld
  2555. Part139.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2556. Part139.TopSurface = Enum.SurfaceType.Weld
  2557. Part139.brickColor = BrickColor.new("Dark stone grey")
  2558. SpecialMesh140.Parent = Part139
  2559. SpecialMesh140.MeshType = Enum.MeshType.Wedge
  2560. Model141.Name = "TeamColorBricks"
  2561. Model141.Parent = Model64
  2562. Part142.Parent = Model141
  2563. Part142.CFrame = CFrame.new(11.1653442, 1.47170305, -2.38941002, -0.954342186, 0.00372301531, 0.29871735, 0.0141320014, 0.999365509, 0.0326934829, -0.298406899, 0.0354222357, -0.953788877)
  2564. Part142.Orientation = Vector3.new(-1.87, 162.610001, 0.810000002)
  2565. Part142.Position = Vector3.new(11.1653442, 1.47170305, -2.38941002)
  2566. Part142.Rotation = Vector3.new(-178.039993, 17.3799992, -179.779999)
  2567. Part142.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2568. Part142.Transparency = 50
  2569. Part142.Size = Vector3.new(13.7936754, 2.29894614, 13.7936754)
  2570. Part142.Anchored = true
  2571. Part142.BrickColor = BrickColor.new("Dark stone grey")
  2572. Part142.TopParamA = 0
  2573. Part142.TopParamB = 0
  2574. Part142.TopSurface = Enum.SurfaceType.Hinge
  2575. Part142.brickColor = BrickColor.new("Dark stone grey")
  2576. Part142.FormFactor = Enum.FormFactor.Symmetric
  2577. Part142.formFactor = Enum.FormFactor.Symmetric
  2578. Part143.Parent = Model64
  2579. Part143.CFrame = CFrame.new(7.85037184, 14.1751575, -33.9286118, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
  2580. Part143.Orientation = Vector3.new(-90, 6, 0)
  2581. Part143.Position = Vector3.new(7.85037184, 14.1751575, -33.9286118)
  2582. Part143.Rotation = Vector3.new(-90, 0, 6)
  2583. Part143.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2584. Part143.Transparency = 3
  2585. Part143.Velocity = Vector3.new(-0.944009066, -9.18220329, 0.415148199)
  2586. Part143.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
  2587. Part143.Anchored = true
  2588. Part143.BackSurface = Enum.SurfaceType.Weld
  2589. Part143.BottomSurface = Enum.SurfaceType.Weld
  2590. Part143.BrickColor = BrickColor.new("Dark stone grey")
  2591. Part143.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
  2592. Part143.TopParamA = -0.10000000149012
  2593. Part143.TopParamB = 0.10000000149012
  2594. Part143.TopSurface = Enum.SurfaceType.Motor
  2595. Part143.TopSurfaceInput = Enum.InputType.Constant
  2596. Part143.brickColor = BrickColor.new("Dark stone grey")
  2597. Part143.FormFactor = Enum.FormFactor.Plate
  2598. Part143.formFactor = Enum.FormFactor.Plate
  2599. BlockMesh144.Parent = Part143
  2600. BlockMesh144.Scale = Vector3.new(1, 0, 1)
  2601. Part145.Parent = Model64
  2602. Part145.CFrame = CFrame.new(16.9279251, 14.0449743, -2.54679394, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
  2603. Part145.Orientation = Vector3.new(-2.03999996, -174, 0)
  2604. Part145.Position = Vector3.new(16.9279251, 14.0449743, -2.54679394)
  2605. Part145.Rotation = Vector3.new(-177.949997, -6, -179.789993)
  2606. Part145.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2607. Part145.Transparency = 3
  2608. Part145.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499025464)
  2609. Part145.Size = Vector3.new(2.29894614, 9.19578457, 9.19578457)
  2610. Part145.Anchored = true
  2611. Part145.BrickColor = BrickColor.new("Dark stone grey")
  2612. Part145.RightParamA = 0
  2613. Part145.RightParamB = 0
  2614. Part145.RightSurface = Enum.SurfaceType.Hinge
  2615. Part145.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2616. Part145.TopSurface = Enum.SurfaceType.Inlet
  2617. Part145.brickColor = BrickColor.new("Dark stone grey")
  2618. Part145.FormFactor = Enum.FormFactor.Symmetric
  2619. Part145.formFactor = Enum.FormFactor.Symmetric
  2620. BodyGyro146.Parent = Part145
  2621. BodyGyro146.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
  2622. BodyGyro146.maxTorque = Vector3.new(4e+10, 0, 4e+10)
  2623. Part147.Parent = Model64
  2624. Part147.CFrame = CFrame.new(5.49594879, 14.0449743, -1.34514797, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
  2625. Part147.Orientation = Vector3.new(-2.03999996, -174, 0)
  2626. Part147.Position = Vector3.new(5.49594879, 14.0449743, -1.34514797)
  2627. Part147.Rotation = Vector3.new(-177.949997, -6, -179.789993)
  2628. Part147.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2629. Part147.Transparency = 3
  2630. Part147.Velocity = Vector3.new(1.21259141, 8.57174683, -0.497642279)
  2631. Part147.Size = Vector3.new(2.29894614, 9.19578457, 9.19578457)
  2632. Part147.Anchored = true
  2633. Part147.BrickColor = BrickColor.new("Dark stone grey")
  2634. Part147.LeftParamA = 0
  2635. Part147.LeftParamB = 0
  2636. Part147.LeftSurface = Enum.SurfaceType.Hinge
  2637. Part147.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2638. Part147.TopSurface = Enum.SurfaceType.Inlet
  2639. Part147.brickColor = BrickColor.new("Dark stone grey")
  2640. Part147.FormFactor = Enum.FormFactor.Symmetric
  2641. Part147.formFactor = Enum.FormFactor.Symmetric
  2642. BodyGyro148.Parent = Part147
  2643. BodyGyro148.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
  2644. BodyGyro148.maxTorque = Vector3.new(4e+10, 0, 4e+10)
  2645. Part149.Parent = Model64
  2646. Part149.CFrame = CFrame.new(5.47026777, 7.15251493, -1.58946598, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
  2647. Part149.Orientation = Vector3.new(-2.03999996, -174, 0)
  2648. Part149.Position = Vector3.new(5.47026777, 7.15251493, -1.58946598)
  2649. Part149.Rotation = Vector3.new(-177.949997, -6, -179.789993)
  2650. Part149.Transparency = 3
  2651. Part149.Velocity = Vector3.new(1.21256185, 8.57174683, -0.497642279)
  2652. Part149.Size = Vector3.new(2.29894614, 4.59789228, 9.19578457)
  2653. Part149.Anchored = true
  2654. Part149.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2655. Part149.FormFactor = Enum.FormFactor.Symmetric
  2656. Part149.formFactor = Enum.FormFactor.Symmetric
  2657. BodyGyro150.Parent = Part149
  2658. BodyGyro150.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
  2659. BodyGyro150.maxTorque = Vector3.new(4e+10, 0, 4e+10)
  2660. Part151.Parent = Model64
  2661. Part151.CFrame = CFrame.new(11.1735077, 3.70626807, -2.31239009, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
  2662. Part151.Orientation = Vector3.new(-2.03999996, -174, 0)
  2663. Part151.Position = Vector3.new(11.1735077, 3.70626807, -2.31239009)
  2664. Part151.Rotation = Vector3.new(-177.949997, -6, -179.789993)
  2665. Part151.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2666. Part151.Transparency = 3
  2667. Part151.Velocity = Vector3.new(1.21254706, 8.57174683, -0.498333871)
  2668. Part151.Size = Vector3.new(13.7936754, 2.29894614, 9.19578457)
  2669. Part151.Anchored = true
  2670. Part151.BrickColor = BrickColor.new("Dark stone grey")
  2671. Part151.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2672. Part151.TopSurface = Enum.SurfaceType.Weld
  2673. Part151.brickColor = BrickColor.new("Dark stone grey")
  2674. Part151.FormFactor = Enum.FormFactor.Symmetric
  2675. Part151.formFactor = Enum.FormFactor.Symmetric
  2676. BodyGyro152.Parent = Part151
  2677. BodyGyro152.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
  2678. BodyGyro152.maxTorque = Vector3.new(4e+10, 0, 4e+10)
  2679. Part153.Parent = Model64
  2680. Part153.CFrame = CFrame.new(16.9020615, 7.15251493, -2.79110098, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
  2681. Part153.Orientation = Vector3.new(-2.03999996, -174, 0)
  2682. Part153.Position = Vector3.new(16.9020615, 7.15251493, -2.79110098)
  2683. Part153.Rotation = Vector3.new(-177.949997, -6, -179.789993)
  2684. Part153.Transparency = 3
  2685. Part153.Velocity = Vector3.new(1.21256185, 8.57174683, -0.499025464)
  2686. Part153.Size = Vector3.new(2.29894614, 4.59789228, 9.19578457)
  2687. Part153.Anchored = true
  2688. Part153.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
  2689. Part153.FormFactor = Enum.FormFactor.Symmetric
  2690. Part153.formFactor = Enum.FormFactor.Symmetric
  2691. BodyGyro154.Parent = Part153
  2692. BodyGyro154.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
  2693. BodyGyro154.maxTorque = Vector3.new(4e+10, 0, 4e+10)
  2694. BrickColorValue155.Name = "TeamColor"
  2695. BrickColorValue155.Parent = Model41
  2696. BrickColorValue155.Value = BrickColor.new("Dark stone grey")
  2697. Model156.Name = "Killbot"
  2698. Model156.Parent = Model2
  2699. Model156.PrimaryPart = Part158
  2700. Script157.Name = "KillbotScript"
  2701. Script157.Parent = Model156
  2702. table.insert(cors,sandbox(Script157,function()
  2703. local sphere = script.Parent.Sphere
  2704.  
  2705. local myTarget = nil
  2706.  
  2707.  
  2708. -- obtain goals based on Sphere part
  2709. sphere.BodyPosition.position = sphere.Position
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715. -- this code hijacked from the new rocket launcher
  2716. local Rocket = Instance.new("Part")
  2717. Rocket.Locked = true
  2718. Rocket.BackSurface = 3
  2719. Rocket.BottomSurface = 3
  2720. Rocket.FrontSurface = 3
  2721. Rocket.LeftSurface = 3
  2722. Rocket.RightSurface = 3
  2723. Rocket.TopSurface = 3
  2724. Rocket.Size = Vector3.new(1,1,4)
  2725. Rocket.BrickColor = BrickColor.new(21)
  2726. script.Parent.RocketScript:clone().Parent = Rocket
  2727. script.Parent.Explosion:clone().Parent = Rocket
  2728. script.Parent.Swoosh:clone().Parent = Rocket
  2729.  
  2730.  
  2731. function fire(target)
  2732.  
  2733.  
  2734. local dir = target - sphere.Position
  2735. dir = computeDirection(dir)
  2736.  
  2737.  
  2738. local missile = Rocket:clone()
  2739.  
  2740. local spawnPos = sphere.Position
  2741.  
  2742. local pos = spawnPos + (dir * 8)
  2743.  
  2744. --missile.Position = pos
  2745. missile.CFrame = CFrame.new(pos, pos + dir)
  2746.  
  2747.  
  2748. missile.RocketScript.Disabled = false
  2749. missile.Parent = game.Workspace
  2750.  
  2751. end
  2752.  
  2753. function computeDirection(vec)
  2754. local lenSquared = vec.magnitude * vec.magnitude
  2755. local invSqrt = 1 / math.sqrt(lenSquared)
  2756. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  2757. end
  2758.  
  2759. function scanForHumans()
  2760. -- KILL THE HUMANS!!!!!!!!!!
  2761.  
  2762. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  2763. local humansFound = {}
  2764.  
  2765. local players = game.Players:children()
  2766.  
  2767. if (#players < 1) then return end
  2768.  
  2769. local i = math.random(1, #players)
  2770.  
  2771. myTarget = players[i].Character
  2772.  
  2773. end
  2774.  
  2775. function moveKillbot()
  2776.  
  2777. -- killbots move using a biased random walk toward the target
  2778. -- they also like to float at least 10 studs above the ground
  2779.  
  2780. local dx = math.random(-100,100)
  2781. local dy = math.random(-40,40)
  2782. local dz = math.random(-100,100)
  2783.  
  2784. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  2785. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  2786.  
  2787. if (myTarget ~= nil) then
  2788. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  2789. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  2790. dz = dz + (dir.z * 80)
  2791. end
  2792.  
  2793. local vec = computeDirection(Vector3.new(dx,dy,dz))
  2794.  
  2795. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  2796.  
  2797.  
  2798. end
  2799.  
  2800. function onTouched(hit)
  2801. local humanoid = hit.Parent:findFirstChild("Humanoid")
  2802. if humanoid~=nil then
  2803. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  2804. else
  2805. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  2806. script.Parent.Parent = nil
  2807. end
  2808. end
  2809.  
  2810. sphere.Touched:connect(onTouched)
  2811.  
  2812. while true do -- loop forever
  2813. scanForHumans()
  2814.  
  2815. for n=1,5 do
  2816. if (myTarget ~= nil) then
  2817. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  2818. wait(math.random(1,2))
  2819. moveKillbot()
  2820. wait(math.random(1,2))
  2821. end
  2822. end
  2823. wait(.1) -- don't hog CPU
  2824. end
  2825.  
  2826. end))
  2827. Part158.Name = "Sphere"
  2828. Part158.Parent = Model156
  2829. Part158.CFrame = CFrame.new(-2.13871002, 21.6000271, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2830. Part158.Orientation = Vector3.new(0, 180, 0)
  2831. Part158.Position = Vector3.new(-2.13871002, 21.6000271, 17.1647491)
  2832. Part158.Rotation = Vector3.new(-180, 0, -180)
  2833. Part158.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2834. Part158.Transparency = 423234
  2835. Part158.Size = Vector3.new(4, 4, 4)
  2836. Part158.Anchored = true
  2837. Part158.BackSurface = Enum.SurfaceType.Weld
  2838. Part158.BottomSurface = Enum.SurfaceType.Weld
  2839. Part158.BrickColor = BrickColor.new("Black")
  2840. Part158.FrontSurface = Enum.SurfaceType.Weld
  2841. Part158.LeftSurface = Enum.SurfaceType.Weld
  2842. Part158.Reflectance = 0.20000000298023
  2843. Part158.RightSurface = Enum.SurfaceType.Weld
  2844. Part158.TopSurface = Enum.SurfaceType.Weld
  2845. Part158.brickColor = BrickColor.new("Black")
  2846. Part158.FormFactor = Enum.FormFactor.Symmetric
  2847. Part158.formFactor = Enum.FormFactor.Symmetric
  2848. Part158.Shape = Enum.PartType.Ball
  2849. BodyPosition159.Parent = Part158
  2850. BodyPosition159.D = 10000
  2851. BodyPosition159.MaxForce = Vector3.new(4000, 400000, 4000)
  2852. BodyPosition159.maxForce = Vector3.new(4000, 400000, 4000)
  2853. Script160.Name = "RocketScript"
  2854. Script160.Parent = Model156
  2855. table.insert(cors,sandbox(Script160,function()
  2856. r = game:service("RunService")
  2857.  
  2858. shaft = script.Parent
  2859. position = shaft.Position
  2860.  
  2861. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  2862.  
  2863. function fly()
  2864. direction = shaft.CFrame.lookVector
  2865. position = position + direction
  2866. error = position - shaft.Position
  2867. shaft.Velocity = 7*error
  2868. end
  2869.  
  2870. function blow()
  2871. swoosh:stop()
  2872. explosion = Instance.new("Explosion")
  2873. explosion.Position = shaft.Position
  2874.  
  2875.  
  2876. -- find instigator tag
  2877. local creator = script.Parent:findFirstChild("creator")
  2878. if creator ~= nil then
  2879. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  2880. end
  2881.  
  2882. explosion.Parent = game.Workspace
  2883. connection:disconnect()
  2884. wait(.1)
  2885. shaft:remove()
  2886. end
  2887.  
  2888. function onPlayerBlownUp(part, distance, creator)
  2889.  
  2890. if part.Name == "Head" then
  2891.  
  2892. local humanoid = part.Parent:findFirstChild("Humanoid")
  2893. tagHumanoid(humanoid, creator)
  2894. end
  2895. end
  2896.  
  2897. function tagHumanoid(humanoid, creator)
  2898. -- tag does not need to expire iff all explosions lethal
  2899.  
  2900. if creator ~= nil then
  2901. local new_tag = creator:clone()
  2902. new_tag.Parent = humanoid
  2903.  
  2904. end
  2905. end
  2906.  
  2907. function untagHumanoid(humanoid)
  2908. if humanoid ~= nil then
  2909. local tag = humanoid:findFirstChild("creator")
  2910. if tag ~= nil then
  2911.  
  2912. tag.Parent = nil
  2913. end
  2914. end
  2915. end
  2916.  
  2917. t, s = r.Stepped:wait()
  2918.  
  2919. swoosh = script.Parent.Swoosh
  2920. swoosh:play()
  2921.  
  2922. d = t + 10.0 - s
  2923. connection = shaft.Touched:connect(blow)
  2924.  
  2925. while t < d do
  2926. fly()
  2927. t = r.Stepped:wait()
  2928. end
  2929.  
  2930. -- at max range
  2931. script.Parent.Explosion.PlayOnRemove = false
  2932. swoosh:stop()
  2933. shaft:remove()
  2934.  
  2935. end))
  2936. Script160.Disabled = true
  2937. Sound161.Name = "Explosion"
  2938. Sound161.Parent = Model156
  2939. Sound161.SoundId = "rbxasset://sounds/collide.wav"
  2940. Sound161.Volume = 1
  2941. Sound162.Name = "Swoosh"
  2942. Sound162.Parent = Model156
  2943. Sound162.Looped = true
  2944. Sound162.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  2945. Sound162.Volume = 0.69999998807907
  2946. Model163.Name = "Killbot"
  2947. Model163.Parent = Model2
  2948. Model163.PrimaryPart = Part165
  2949. Script164.Name = "KillbotScript"
  2950. Script164.Parent = Model163
  2951. table.insert(cors,sandbox(Script164,function()
  2952. local sphere = script.Parent.Sphere
  2953.  
  2954. local myTarget = nil
  2955.  
  2956.  
  2957. -- obtain goals based on Sphere part
  2958. sphere.BodyPosition.position = sphere.Position
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964. -- this code hijacked from the new rocket launcher
  2965. local Rocket = Instance.new("Part")
  2966. Rocket.Locked = true
  2967. Rocket.BackSurface = 3
  2968. Rocket.BottomSurface = 3
  2969. Rocket.FrontSurface = 3
  2970. Rocket.LeftSurface = 3
  2971. Rocket.RightSurface = 3
  2972. Rocket.TopSurface = 3
  2973. Rocket.Size = Vector3.new(1,1,4)
  2974. Rocket.BrickColor = BrickColor.new(21)
  2975. script.Parent.RocketScript:clone().Parent = Rocket
  2976. script.Parent.Explosion:clone().Parent = Rocket
  2977. script.Parent.Swoosh:clone().Parent = Rocket
  2978.  
  2979.  
  2980. function fire(target)
  2981.  
  2982.  
  2983. local dir = target - sphere.Position
  2984. dir = computeDirection(dir)
  2985.  
  2986.  
  2987. local missile = Rocket:clone()
  2988.  
  2989. local spawnPos = sphere.Position
  2990.  
  2991. local pos = spawnPos + (dir * 8)
  2992.  
  2993. --missile.Position = pos
  2994. missile.CFrame = CFrame.new(pos, pos + dir)
  2995.  
  2996.  
  2997. missile.RocketScript.Disabled = false
  2998. missile.Parent = game.Workspace
  2999.  
  3000. end
  3001.  
  3002. function computeDirection(vec)
  3003. local lenSquared = vec.magnitude * vec.magnitude
  3004. local invSqrt = 1 / math.sqrt(lenSquared)
  3005. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  3006. end
  3007.  
  3008. function scanForHumans()
  3009. -- KILL THE HUMANS!!!!!!!!!!
  3010.  
  3011. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  3012. local humansFound = {}
  3013.  
  3014. local players = game.Players:children()
  3015.  
  3016. if (#players < 1) then return end
  3017.  
  3018. local i = math.random(1, #players)
  3019.  
  3020. myTarget = players[i].Character
  3021.  
  3022. end
  3023.  
  3024. function moveKillbot()
  3025.  
  3026. -- killbots move using a biased random walk toward the target
  3027. -- they also like to float at least 10 studs above the ground
  3028.  
  3029. local dx = math.random(-100,100)
  3030. local dy = math.random(-40,40)
  3031. local dz = math.random(-100,100)
  3032.  
  3033. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  3034. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  3035.  
  3036. if (myTarget ~= nil) then
  3037. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  3038. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  3039. dz = dz + (dir.z * 80)
  3040. end
  3041.  
  3042. local vec = computeDirection(Vector3.new(dx,dy,dz))
  3043.  
  3044. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  3045.  
  3046.  
  3047. end
  3048.  
  3049. function onTouched(hit)
  3050. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3051. if humanoid~=nil then
  3052. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  3053. else
  3054. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  3055. script.Parent.Parent = nil
  3056. end
  3057. end
  3058.  
  3059. sphere.Touched:connect(onTouched)
  3060.  
  3061. while true do -- loop forever
  3062. scanForHumans()
  3063.  
  3064. for n=1,5 do
  3065. if (myTarget ~= nil) then
  3066. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  3067. wait(math.random(1,2))
  3068. moveKillbot()
  3069. wait(math.random(1,2))
  3070. end
  3071. end
  3072. wait(.1) -- don't hog CPU
  3073. end
  3074.  
  3075. end))
  3076. Part165.Name = "Sphere"
  3077. Part165.Parent = Model163
  3078. Part165.CFrame = CFrame.new(-2.13871002, 25.6000519, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  3079. Part165.Orientation = Vector3.new(0, 180, 0)
  3080. Part165.Position = Vector3.new(-2.13871002, 25.6000519, 17.1647491)
  3081. Part165.Rotation = Vector3.new(-180, 0, -180)
  3082. Part165.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3083. Part165.Transparency = 423234
  3084. Part165.Size = Vector3.new(4, 4, 4)
  3085. Part165.Anchored = true
  3086. Part165.BackSurface = Enum.SurfaceType.Weld
  3087. Part165.BottomSurface = Enum.SurfaceType.Weld
  3088. Part165.BrickColor = BrickColor.new("Black")
  3089. Part165.FrontSurface = Enum.SurfaceType.Weld
  3090. Part165.LeftSurface = Enum.SurfaceType.Weld
  3091. Part165.Reflectance = 0.20000000298023
  3092. Part165.RightSurface = Enum.SurfaceType.Weld
  3093. Part165.TopSurface = Enum.SurfaceType.Weld
  3094. Part165.brickColor = BrickColor.new("Black")
  3095. Part165.FormFactor = Enum.FormFactor.Symmetric
  3096. Part165.formFactor = Enum.FormFactor.Symmetric
  3097. Part165.Shape = Enum.PartType.Ball
  3098. BodyPosition166.Parent = Part165
  3099. BodyPosition166.D = 10000
  3100. BodyPosition166.MaxForce = Vector3.new(4000, 400000, 4000)
  3101. BodyPosition166.maxForce = Vector3.new(4000, 400000, 4000)
  3102. Script167.Name = "RocketScript"
  3103. Script167.Parent = Model163
  3104. table.insert(cors,sandbox(Script167,function()
  3105. r = game:service("RunService")
  3106.  
  3107. shaft = script.Parent
  3108. position = shaft.Position
  3109.  
  3110. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  3111.  
  3112. function fly()
  3113. direction = shaft.CFrame.lookVector
  3114. position = position + direction
  3115. error = position - shaft.Position
  3116. shaft.Velocity = 7*error
  3117. end
  3118.  
  3119. function blow()
  3120. swoosh:stop()
  3121. explosion = Instance.new("Explosion")
  3122. explosion.Position = shaft.Position
  3123.  
  3124.  
  3125. -- find instigator tag
  3126. local creator = script.Parent:findFirstChild("creator")
  3127. if creator ~= nil then
  3128. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  3129. end
  3130.  
  3131. explosion.Parent = game.Workspace
  3132. connection:disconnect()
  3133. wait(.1)
  3134. shaft:remove()
  3135. end
  3136.  
  3137. function onPlayerBlownUp(part, distance, creator)
  3138.  
  3139. if part.Name == "Head" then
  3140.  
  3141. local humanoid = part.Parent:findFirstChild("Humanoid")
  3142. tagHumanoid(humanoid, creator)
  3143. end
  3144. end
  3145.  
  3146. function tagHumanoid(humanoid, creator)
  3147. -- tag does not need to expire iff all explosions lethal
  3148.  
  3149. if creator ~= nil then
  3150. local new_tag = creator:clone()
  3151. new_tag.Parent = humanoid
  3152.  
  3153. end
  3154. end
  3155.  
  3156. function untagHumanoid(humanoid)
  3157. if humanoid ~= nil then
  3158. local tag = humanoid:findFirstChild("creator")
  3159. if tag ~= nil then
  3160.  
  3161. tag.Parent = nil
  3162. end
  3163. end
  3164. end
  3165.  
  3166. t, s = r.Stepped:wait()
  3167.  
  3168. swoosh = script.Parent.Swoosh
  3169. swoosh:play()
  3170.  
  3171. d = t + 10.0 - s
  3172. connection = shaft.Touched:connect(blow)
  3173.  
  3174. while t < d do
  3175. fly()
  3176. t = r.Stepped:wait()
  3177. end
  3178.  
  3179. -- at max range
  3180. script.Parent.Explosion.PlayOnRemove = false
  3181. swoosh:stop()
  3182. shaft:remove()
  3183.  
  3184. end))
  3185. Script167.Disabled = true
  3186. Sound168.Name = "Explosion"
  3187. Sound168.Parent = Model163
  3188. Sound168.SoundId = "rbxasset://sounds/collide.wav"
  3189. Sound168.Volume = 1
  3190. Sound169.Name = "Swoosh"
  3191. Sound169.Parent = Model163
  3192. Sound169.Looped = true
  3193. Sound169.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  3194. Sound169.Volume = 0.69999998807907
  3195. Model170.Name = "Killbot"
  3196. Model170.Parent = Model2
  3197. Model170.PrimaryPart = Part172
  3198. Script171.Name = "KillbotScript"
  3199. Script171.Parent = Model170
  3200. table.insert(cors,sandbox(Script171,function()
  3201. local sphere = script.Parent.Sphere
  3202.  
  3203. local myTarget = nil
  3204.  
  3205.  
  3206. -- obtain goals based on Sphere part
  3207. sphere.BodyPosition.position = sphere.Position
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213. -- this code hijacked from the new rocket launcher
  3214. local Rocket = Instance.new("Part")
  3215. Rocket.Locked = true
  3216. Rocket.BackSurface = 3
  3217. Rocket.BottomSurface = 3
  3218. Rocket.FrontSurface = 3
  3219. Rocket.LeftSurface = 3
  3220. Rocket.RightSurface = 3
  3221. Rocket.TopSurface = 3
  3222. Rocket.Size = Vector3.new(1,1,4)
  3223. Rocket.BrickColor = BrickColor.new(21)
  3224. script.Parent.RocketScript:clone().Parent = Rocket
  3225. script.Parent.Explosion:clone().Parent = Rocket
  3226. script.Parent.Swoosh:clone().Parent = Rocket
  3227.  
  3228.  
  3229. function fire(target)
  3230.  
  3231.  
  3232. local dir = target - sphere.Position
  3233. dir = computeDirection(dir)
  3234.  
  3235.  
  3236. local missile = Rocket:clone()
  3237.  
  3238. local spawnPos = sphere.Position
  3239.  
  3240. local pos = spawnPos + (dir * 8)
  3241.  
  3242. --missile.Position = pos
  3243. missile.CFrame = CFrame.new(pos, pos + dir)
  3244.  
  3245.  
  3246. missile.RocketScript.Disabled = false
  3247. missile.Parent = game.Workspace
  3248.  
  3249. end
  3250.  
  3251. function computeDirection(vec)
  3252. local lenSquared = vec.magnitude * vec.magnitude
  3253. local invSqrt = 1 / math.sqrt(lenSquared)
  3254. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  3255. end
  3256.  
  3257. function scanForHumans()
  3258. -- KILL THE HUMANS!!!!!!!!!!
  3259.  
  3260. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  3261. local humansFound = {}
  3262.  
  3263. local players = game.Players:children()
  3264.  
  3265. if (#players < 1) then return end
  3266.  
  3267. local i = math.random(1, #players)
  3268.  
  3269. myTarget = players[i].Character
  3270.  
  3271. end
  3272.  
  3273. function moveKillbot()
  3274.  
  3275. -- killbots move using a biased random walk toward the target
  3276. -- they also like to float at least 10 studs above the ground
  3277.  
  3278. local dx = math.random(-100,100)
  3279. local dy = math.random(-40,40)
  3280. local dz = math.random(-100,100)
  3281.  
  3282. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  3283. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  3284.  
  3285. if (myTarget ~= nil) then
  3286. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  3287. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  3288. dz = dz + (dir.z * 80)
  3289. end
  3290.  
  3291. local vec = computeDirection(Vector3.new(dx,dy,dz))
  3292.  
  3293. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  3294.  
  3295.  
  3296. end
  3297.  
  3298. function onTouched(hit)
  3299. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3300. if humanoid~=nil then
  3301. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  3302. else
  3303. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  3304. script.Parent.Parent = nil
  3305. end
  3306. end
  3307.  
  3308. sphere.Touched:connect(onTouched)
  3309.  
  3310. while true do -- loop forever
  3311. scanForHumans()
  3312.  
  3313. for n=1,5 do
  3314. if (myTarget ~= nil) then
  3315. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  3316. wait(math.random(1,2))
  3317. moveKillbot()
  3318. wait(math.random(1,2))
  3319. end
  3320. end
  3321. wait(.1) -- don't hog CPU
  3322. end
  3323.  
  3324. end))
  3325. Part172.Name = "Sphere"
  3326. Part172.Parent = Model170
  3327. Part172.CFrame = CFrame.new(-2.13871002, 29.6000729, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  3328. Part172.Orientation = Vector3.new(0, 180, 0)
  3329. Part172.Position = Vector3.new(-2.13871002, 29.6000729, 17.1647491)
  3330. Part172.Rotation = Vector3.new(-180, 0, -180)
  3331. Part172.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3332. Part172.Transparency = 423234
  3333. Part172.Size = Vector3.new(4, 4, 4)
  3334. Part172.Anchored = true
  3335. Part172.BackSurface = Enum.SurfaceType.Weld
  3336. Part172.BottomSurface = Enum.SurfaceType.Weld
  3337. Part172.BrickColor = BrickColor.new("Black")
  3338. Part172.FrontSurface = Enum.SurfaceType.Weld
  3339. Part172.LeftSurface = Enum.SurfaceType.Weld
  3340. Part172.Reflectance = 0.20000000298023
  3341. Part172.RightSurface = Enum.SurfaceType.Weld
  3342. Part172.TopSurface = Enum.SurfaceType.Weld
  3343. Part172.brickColor = BrickColor.new("Black")
  3344. Part172.FormFactor = Enum.FormFactor.Symmetric
  3345. Part172.formFactor = Enum.FormFactor.Symmetric
  3346. Part172.Shape = Enum.PartType.Ball
  3347. BodyPosition173.Parent = Part172
  3348. BodyPosition173.D = 10000
  3349. BodyPosition173.MaxForce = Vector3.new(4000, 400000, 4000)
  3350. BodyPosition173.maxForce = Vector3.new(4000, 400000, 4000)
  3351. Script174.Name = "RocketScript"
  3352. Script174.Parent = Model170
  3353. table.insert(cors,sandbox(Script174,function()
  3354. r = game:service("RunService")
  3355.  
  3356. shaft = script.Parent
  3357. position = shaft.Position
  3358.  
  3359. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  3360.  
  3361. function fly()
  3362. direction = shaft.CFrame.lookVector
  3363. position = position + direction
  3364. error = position - shaft.Position
  3365. shaft.Velocity = 7*error
  3366. end
  3367.  
  3368. function blow()
  3369. swoosh:stop()
  3370. explosion = Instance.new("Explosion")
  3371. explosion.Position = shaft.Position
  3372.  
  3373.  
  3374. -- find instigator tag
  3375. local creator = script.Parent:findFirstChild("creator")
  3376. if creator ~= nil then
  3377. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  3378. end
  3379.  
  3380. explosion.Parent = game.Workspace
  3381. connection:disconnect()
  3382. wait(.1)
  3383. shaft:remove()
  3384. end
  3385.  
  3386. function onPlayerBlownUp(part, distance, creator)
  3387.  
  3388. if part.Name == "Head" then
  3389.  
  3390. local humanoid = part.Parent:findFirstChild("Humanoid")
  3391. tagHumanoid(humanoid, creator)
  3392. end
  3393. end
  3394.  
  3395. function tagHumanoid(humanoid, creator)
  3396. -- tag does not need to expire iff all explosions lethal
  3397.  
  3398. if creator ~= nil then
  3399. local new_tag = creator:clone()
  3400. new_tag.Parent = humanoid
  3401.  
  3402. end
  3403. end
  3404.  
  3405. function untagHumanoid(humanoid)
  3406. if humanoid ~= nil then
  3407. local tag = humanoid:findFirstChild("creator")
  3408. if tag ~= nil then
  3409.  
  3410. tag.Parent = nil
  3411. end
  3412. end
  3413. end
  3414.  
  3415. t, s = r.Stepped:wait()
  3416.  
  3417. swoosh = script.Parent.Swoosh
  3418. swoosh:play()
  3419.  
  3420. d = t + 10.0 - s
  3421. connection = shaft.Touched:connect(blow)
  3422.  
  3423. while t < d do
  3424. fly()
  3425. t = r.Stepped:wait()
  3426. end
  3427.  
  3428. -- at max range
  3429. script.Parent.Explosion.PlayOnRemove = false
  3430. swoosh:stop()
  3431. shaft:remove()
  3432.  
  3433. end))
  3434. Script174.Disabled = true
  3435. Sound175.Name = "Explosion"
  3436. Sound175.Parent = Model170
  3437. Sound175.SoundId = "rbxasset://sounds/collide.wav"
  3438. Sound175.Volume = 1
  3439. Sound176.Name = "Swoosh"
  3440. Sound176.Parent = Model170
  3441. Sound176.Looped = true
  3442. Sound176.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  3443. Sound176.Volume = 0.69999998807907
  3444. Model177.Name = "Killbot"
  3445. Model177.Parent = Model2
  3446. Model177.PrimaryPart = Part179
  3447. Script178.Name = "KillbotScript"
  3448. Script178.Parent = Model177
  3449. table.insert(cors,sandbox(Script178,function()
  3450. local sphere = script.Parent.Sphere
  3451.  
  3452. local myTarget = nil
  3453.  
  3454.  
  3455. -- obtain goals based on Sphere part
  3456. sphere.BodyPosition.position = sphere.Position
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462. -- this code hijacked from the new rocket launcher
  3463. local Rocket = Instance.new("Part")
  3464. Rocket.Locked = true
  3465. Rocket.BackSurface = 3
  3466. Rocket.BottomSurface = 3
  3467. Rocket.FrontSurface = 3
  3468. Rocket.LeftSurface = 3
  3469. Rocket.RightSurface = 3
  3470. Rocket.TopSurface = 3
  3471. Rocket.Size = Vector3.new(1,1,4)
  3472. Rocket.BrickColor = BrickColor.new(21)
  3473. script.Parent.RocketScript:clone().Parent = Rocket
  3474. script.Parent.Explosion:clone().Parent = Rocket
  3475. script.Parent.Swoosh:clone().Parent = Rocket
  3476.  
  3477.  
  3478. function fire(target)
  3479.  
  3480.  
  3481. local dir = target - sphere.Position
  3482. dir = computeDirection(dir)
  3483.  
  3484.  
  3485. local missile = Rocket:clone()
  3486.  
  3487. local spawnPos = sphere.Position
  3488.  
  3489. local pos = spawnPos + (dir * 8)
  3490.  
  3491. --missile.Position = pos
  3492. missile.CFrame = CFrame.new(pos, pos + dir)
  3493.  
  3494.  
  3495. missile.RocketScript.Disabled = false
  3496. missile.Parent = game.Workspace
  3497.  
  3498. end
  3499.  
  3500. function computeDirection(vec)
  3501. local lenSquared = vec.magnitude * vec.magnitude
  3502. local invSqrt = 1 / math.sqrt(lenSquared)
  3503. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  3504. end
  3505.  
  3506. function scanForHumans()
  3507. -- KILL THE HUMANS!!!!!!!!!!
  3508.  
  3509. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  3510. local humansFound = {}
  3511.  
  3512. local players = game.Players:children()
  3513.  
  3514. if (#players < 1) then return end
  3515.  
  3516. local i = math.random(1, #players)
  3517.  
  3518. myTarget = players[i].Character
  3519.  
  3520. end
  3521.  
  3522. function moveKillbot()
  3523.  
  3524. -- killbots move using a biased random walk toward the target
  3525. -- they also like to float at least 10 studs above the ground
  3526.  
  3527. local dx = math.random(-100,100)
  3528. local dy = math.random(-40,40)
  3529. local dz = math.random(-100,100)
  3530.  
  3531. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  3532. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  3533.  
  3534. if (myTarget ~= nil) then
  3535. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  3536. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  3537. dz = dz + (dir.z * 80)
  3538. end
  3539.  
  3540. local vec = computeDirection(Vector3.new(dx,dy,dz))
  3541.  
  3542. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  3543.  
  3544.  
  3545. end
  3546.  
  3547. function onTouched(hit)
  3548. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3549. if humanoid~=nil then
  3550. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  3551. else
  3552. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  3553. script.Parent.Parent = nil
  3554. end
  3555. end
  3556.  
  3557. sphere.Touched:connect(onTouched)
  3558.  
  3559. while true do -- loop forever
  3560. scanForHumans()
  3561.  
  3562. for n=1,5 do
  3563. if (myTarget ~= nil) then
  3564. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  3565. wait(math.random(1,2))
  3566. moveKillbot()
  3567. wait(math.random(1,2))
  3568. end
  3569. end
  3570. wait(.1) -- don't hog CPU
  3571. end
  3572.  
  3573. end))
  3574. Part179.Name = "Sphere"
  3575. Part179.Parent = Model177
  3576. Part179.CFrame = CFrame.new(-2.13871002, 33.6000671, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  3577. Part179.Orientation = Vector3.new(0, 180, 0)
  3578. Part179.Position = Vector3.new(-2.13871002, 33.6000671, 17.1647491)
  3579. Part179.Rotation = Vector3.new(-180, 0, -180)
  3580. Part179.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3581. Part179.Transparency = 423234
  3582. Part179.Size = Vector3.new(4, 4, 4)
  3583. Part179.Anchored = true
  3584. Part179.BackSurface = Enum.SurfaceType.Weld
  3585. Part179.BottomSurface = Enum.SurfaceType.Weld
  3586. Part179.BrickColor = BrickColor.new("Black")
  3587. Part179.FrontSurface = Enum.SurfaceType.Weld
  3588. Part179.LeftSurface = Enum.SurfaceType.Weld
  3589. Part179.Reflectance = 0.20000000298023
  3590. Part179.RightSurface = Enum.SurfaceType.Weld
  3591. Part179.TopSurface = Enum.SurfaceType.Weld
  3592. Part179.brickColor = BrickColor.new("Black")
  3593. Part179.FormFactor = Enum.FormFactor.Symmetric
  3594. Part179.formFactor = Enum.FormFactor.Symmetric
  3595. Part179.Shape = Enum.PartType.Ball
  3596. BodyPosition180.Parent = Part179
  3597. BodyPosition180.D = 10000
  3598. BodyPosition180.MaxForce = Vector3.new(4000, 400000, 4000)
  3599. BodyPosition180.maxForce = Vector3.new(4000, 400000, 4000)
  3600. Script181.Name = "RocketScript"
  3601. Script181.Parent = Model177
  3602. table.insert(cors,sandbox(Script181,function()
  3603. r = game:service("RunService")
  3604.  
  3605. shaft = script.Parent
  3606. position = shaft.Position
  3607.  
  3608. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  3609.  
  3610. function fly()
  3611. direction = shaft.CFrame.lookVector
  3612. position = position + direction
  3613. error = position - shaft.Position
  3614. shaft.Velocity = 7*error
  3615. end
  3616.  
  3617. function blow()
  3618. swoosh:stop()
  3619. explosion = Instance.new("Explosion")
  3620. explosion.Position = shaft.Position
  3621.  
  3622.  
  3623. -- find instigator tag
  3624. local creator = script.Parent:findFirstChild("creator")
  3625. if creator ~= nil then
  3626. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  3627. end
  3628.  
  3629. explosion.Parent = game.Workspace
  3630. connection:disconnect()
  3631. wait(.1)
  3632. shaft:remove()
  3633. end
  3634.  
  3635. function onPlayerBlownUp(part, distance, creator)
  3636.  
  3637. if part.Name == "Head" then
  3638.  
  3639. local humanoid = part.Parent:findFirstChild("Humanoid")
  3640. tagHumanoid(humanoid, creator)
  3641. end
  3642. end
  3643.  
  3644. function tagHumanoid(humanoid, creator)
  3645. -- tag does not need to expire iff all explosions lethal
  3646.  
  3647. if creator ~= nil then
  3648. local new_tag = creator:clone()
  3649. new_tag.Parent = humanoid
  3650.  
  3651. end
  3652. end
  3653.  
  3654. function untagHumanoid(humanoid)
  3655. if humanoid ~= nil then
  3656. local tag = humanoid:findFirstChild("creator")
  3657. if tag ~= nil then
  3658.  
  3659. tag.Parent = nil
  3660. end
  3661. end
  3662. end
  3663.  
  3664. t, s = r.Stepped:wait()
  3665.  
  3666. swoosh = script.Parent.Swoosh
  3667. swoosh:play()
  3668.  
  3669. d = t + 10.0 - s
  3670. connection = shaft.Touched:connect(blow)
  3671.  
  3672. while t < d do
  3673. fly()
  3674. t = r.Stepped:wait()
  3675. end
  3676.  
  3677. -- at max range
  3678. script.Parent.Explosion.PlayOnRemove = false
  3679. swoosh:stop()
  3680. shaft:remove()
  3681.  
  3682. end))
  3683. Script181.Disabled = true
  3684. Sound182.Name = "Explosion"
  3685. Sound182.Parent = Model177
  3686. Sound182.SoundId = "rbxasset://sounds/collide.wav"
  3687. Sound182.Volume = 1
  3688. Sound183.Name = "Swoosh"
  3689. Sound183.Parent = Model177
  3690. Sound183.Looped = true
  3691. Sound183.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  3692. Sound183.Volume = 0.69999998807907
  3693. Model184.Name = "Killbot"
  3694. Model184.Parent = Model2
  3695. Model184.PrimaryPart = Part186
  3696. Script185.Name = "KillbotScript"
  3697. Script185.Parent = Model184
  3698. table.insert(cors,sandbox(Script185,function()
  3699. local sphere = script.Parent.Sphere
  3700.  
  3701. local myTarget = nil
  3702.  
  3703.  
  3704. -- obtain goals based on Sphere part
  3705. sphere.BodyPosition.position = sphere.Position
  3706.  
  3707.  
  3708.  
  3709.  
  3710.  
  3711. -- this code hijacked from the new rocket launcher
  3712. local Rocket = Instance.new("Part")
  3713. Rocket.Locked = true
  3714. Rocket.BackSurface = 3
  3715. Rocket.BottomSurface = 3
  3716. Rocket.FrontSurface = 3
  3717. Rocket.LeftSurface = 3
  3718. Rocket.RightSurface = 3
  3719. Rocket.TopSurface = 3
  3720. Rocket.Size = Vector3.new(1,1,4)
  3721. Rocket.BrickColor = BrickColor.new(21)
  3722. script.Parent.RocketScript:clone().Parent = Rocket
  3723. script.Parent.Explosion:clone().Parent = Rocket
  3724. script.Parent.Swoosh:clone().Parent = Rocket
  3725.  
  3726.  
  3727. function fire(target)
  3728.  
  3729.  
  3730. local dir = target - sphere.Position
  3731. dir = computeDirection(dir)
  3732.  
  3733.  
  3734. local missile = Rocket:clone()
  3735.  
  3736. local spawnPos = sphere.Position
  3737.  
  3738. local pos = spawnPos + (dir * 8)
  3739.  
  3740. --missile.Position = pos
  3741. missile.CFrame = CFrame.new(pos, pos + dir)
  3742.  
  3743.  
  3744. missile.RocketScript.Disabled = false
  3745. missile.Parent = game.Workspace
  3746.  
  3747. end
  3748.  
  3749. function computeDirection(vec)
  3750. local lenSquared = vec.magnitude * vec.magnitude
  3751. local invSqrt = 1 / math.sqrt(lenSquared)
  3752. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  3753. end
  3754.  
  3755. function scanForHumans()
  3756. -- KILL THE HUMANS!!!!!!!!!!
  3757.  
  3758. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  3759. local humansFound = {}
  3760.  
  3761. local players = game.Players:children()
  3762.  
  3763. if (#players < 1) then return end
  3764.  
  3765. local i = math.random(1, #players)
  3766.  
  3767. myTarget = players[i].Character
  3768.  
  3769. end
  3770.  
  3771. function moveKillbot()
  3772.  
  3773. -- killbots move using a biased random walk toward the target
  3774. -- they also like to float at least 10 studs above the ground
  3775.  
  3776. local dx = math.random(-100,100)
  3777. local dy = math.random(-40,40)
  3778. local dz = math.random(-100,100)
  3779.  
  3780. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  3781. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  3782.  
  3783. if (myTarget ~= nil) then
  3784. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  3785. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  3786. dz = dz + (dir.z * 80)
  3787. end
  3788.  
  3789. local vec = computeDirection(Vector3.new(dx,dy,dz))
  3790.  
  3791. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  3792.  
  3793.  
  3794. end
  3795.  
  3796. function onTouched(hit)
  3797. local humanoid = hit.Parent:findFirstChild("Humanoid")
  3798. if humanoid~=nil then
  3799. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  3800. else
  3801. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  3802. script.Parent.Parent = nil
  3803. end
  3804. end
  3805.  
  3806. sphere.Touched:connect(onTouched)
  3807.  
  3808. while true do -- loop forever
  3809. scanForHumans()
  3810.  
  3811. for n=1,5 do
  3812. if (myTarget ~= nil) then
  3813. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  3814. wait(math.random(1,2))
  3815. moveKillbot()
  3816. wait(math.random(1,2))
  3817. end
  3818. end
  3819. wait(.1) -- don't hog CPU
  3820. end
  3821.  
  3822. end))
  3823. Part186.Name = "Sphere"
  3824. Part186.Parent = Model184
  3825. Part186.CFrame = CFrame.new(-2.13871002, 37.6000671, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  3826. Part186.Orientation = Vector3.new(0, 180, 0)
  3827. Part186.Position = Vector3.new(-2.13871002, 37.6000671, 17.1647491)
  3828. Part186.Rotation = Vector3.new(-180, 0, -180)
  3829. Part186.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3830. Part186.Transparency = 423234
  3831. Part186.Size = Vector3.new(4, 4, 4)
  3832. Part186.Anchored = true
  3833. Part186.BackSurface = Enum.SurfaceType.Weld
  3834. Part186.BottomSurface = Enum.SurfaceType.Weld
  3835. Part186.BrickColor = BrickColor.new("Black")
  3836. Part186.FrontSurface = Enum.SurfaceType.Weld
  3837. Part186.LeftSurface = Enum.SurfaceType.Weld
  3838. Part186.Reflectance = 0.20000000298023
  3839. Part186.RightSurface = Enum.SurfaceType.Weld
  3840. Part186.TopSurface = Enum.SurfaceType.Weld
  3841. Part186.brickColor = BrickColor.new("Black")
  3842. Part186.FormFactor = Enum.FormFactor.Symmetric
  3843. Part186.formFactor = Enum.FormFactor.Symmetric
  3844. Part186.Shape = Enum.PartType.Ball
  3845. BodyPosition187.Parent = Part186
  3846. BodyPosition187.D = 10000
  3847. BodyPosition187.MaxForce = Vector3.new(4000, 400000, 4000)
  3848. BodyPosition187.maxForce = Vector3.new(4000, 400000, 4000)
  3849. Script188.Name = "RocketScript"
  3850. Script188.Parent = Model184
  3851. table.insert(cors,sandbox(Script188,function()
  3852. r = game:service("RunService")
  3853.  
  3854. shaft = script.Parent
  3855. position = shaft.Position
  3856.  
  3857. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  3858.  
  3859. function fly()
  3860. direction = shaft.CFrame.lookVector
  3861. position = position + direction
  3862. error = position - shaft.Position
  3863. shaft.Velocity = 7*error
  3864. end
  3865.  
  3866. function blow()
  3867. swoosh:stop()
  3868. explosion = Instance.new("Explosion")
  3869. explosion.Position = shaft.Position
  3870.  
  3871.  
  3872. -- find instigator tag
  3873. local creator = script.Parent:findFirstChild("creator")
  3874. if creator ~= nil then
  3875. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  3876. end
  3877.  
  3878. explosion.Parent = game.Workspace
  3879. connection:disconnect()
  3880. wait(.1)
  3881. shaft:remove()
  3882. end
  3883.  
  3884. function onPlayerBlownUp(part, distance, creator)
  3885.  
  3886. if part.Name == "Head" then
  3887.  
  3888. local humanoid = part.Parent:findFirstChild("Humanoid")
  3889. tagHumanoid(humanoid, creator)
  3890. end
  3891. end
  3892.  
  3893. function tagHumanoid(humanoid, creator)
  3894. -- tag does not need to expire iff all explosions lethal
  3895.  
  3896. if creator ~= nil then
  3897. local new_tag = creator:clone()
  3898. new_tag.Parent = humanoid
  3899.  
  3900. end
  3901. end
  3902.  
  3903. function untagHumanoid(humanoid)
  3904. if humanoid ~= nil then
  3905. local tag = humanoid:findFirstChild("creator")
  3906. if tag ~= nil then
  3907.  
  3908. tag.Parent = nil
  3909. end
  3910. end
  3911. end
  3912.  
  3913. t, s = r.Stepped:wait()
  3914.  
  3915. swoosh = script.Parent.Swoosh
  3916. swoosh:play()
  3917.  
  3918. d = t + 10.0 - s
  3919. connection = shaft.Touched:connect(blow)
  3920.  
  3921. while t < d do
  3922. fly()
  3923. t = r.Stepped:wait()
  3924. end
  3925.  
  3926. -- at max range
  3927. script.Parent.Explosion.PlayOnRemove = false
  3928. swoosh:stop()
  3929. shaft:remove()
  3930.  
  3931. end))
  3932. Script188.Disabled = true
  3933. Sound189.Name = "Explosion"
  3934. Sound189.Parent = Model184
  3935. Sound189.SoundId = "rbxasset://sounds/collide.wav"
  3936. Sound189.Volume = 1
  3937. Sound190.Name = "Swoosh"
  3938. Sound190.Parent = Model184
  3939. Sound190.Looped = true
  3940. Sound190.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  3941. Sound190.Volume = 0.69999998807907
  3942. Model191.Name = "Killbot"
  3943. Model191.Parent = Model2
  3944. Model191.PrimaryPart = Part193
  3945. Script192.Name = "KillbotScript"
  3946. Script192.Parent = Model191
  3947. table.insert(cors,sandbox(Script192,function()
  3948. local sphere = script.Parent.Sphere
  3949.  
  3950. local myTarget = nil
  3951.  
  3952.  
  3953. -- obtain goals based on Sphere part
  3954. sphere.BodyPosition.position = sphere.Position
  3955.  
  3956.  
  3957.  
  3958.  
  3959.  
  3960. -- this code hijacked from the new rocket launcher
  3961. local Rocket = Instance.new("Part")
  3962. Rocket.Locked = true
  3963. Rocket.BackSurface = 3
  3964. Rocket.BottomSurface = 3
  3965. Rocket.FrontSurface = 3
  3966. Rocket.LeftSurface = 3
  3967. Rocket.RightSurface = 3
  3968. Rocket.TopSurface = 3
  3969. Rocket.Size = Vector3.new(1,1,4)
  3970. Rocket.BrickColor = BrickColor.new(21)
  3971. script.Parent.RocketScript:clone().Parent = Rocket
  3972. script.Parent.Explosion:clone().Parent = Rocket
  3973. script.Parent.Swoosh:clone().Parent = Rocket
  3974.  
  3975.  
  3976. function fire(target)
  3977.  
  3978.  
  3979. local dir = target - sphere.Position
  3980. dir = computeDirection(dir)
  3981.  
  3982.  
  3983. local missile = Rocket:clone()
  3984.  
  3985. local spawnPos = sphere.Position
  3986.  
  3987. local pos = spawnPos + (dir * 8)
  3988.  
  3989. --missile.Position = pos
  3990. missile.CFrame = CFrame.new(pos, pos + dir)
  3991.  
  3992.  
  3993. missile.RocketScript.Disabled = false
  3994. missile.Parent = game.Workspace
  3995.  
  3996. end
  3997.  
  3998. function computeDirection(vec)
  3999. local lenSquared = vec.magnitude * vec.magnitude
  4000. local invSqrt = 1 / math.sqrt(lenSquared)
  4001. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  4002. end
  4003.  
  4004. function scanForHumans()
  4005. -- KILL THE HUMANS!!!!!!!!!!
  4006.  
  4007. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  4008. local humansFound = {}
  4009.  
  4010. local players = game.Players:children()
  4011.  
  4012. if (#players < 1) then return end
  4013.  
  4014. local i = math.random(1, #players)
  4015.  
  4016. myTarget = players[i].Character
  4017.  
  4018. end
  4019.  
  4020. function moveKillbot()
  4021.  
  4022. -- killbots move using a biased random walk toward the target
  4023. -- they also like to float at least 10 studs above the ground
  4024.  
  4025. local dx = math.random(-100,100)
  4026. local dy = math.random(-40,40)
  4027. local dz = math.random(-100,100)
  4028.  
  4029. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  4030. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  4031.  
  4032. if (myTarget ~= nil) then
  4033. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  4034. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  4035. dz = dz + (dir.z * 80)
  4036. end
  4037.  
  4038. local vec = computeDirection(Vector3.new(dx,dy,dz))
  4039.  
  4040. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  4041.  
  4042.  
  4043. end
  4044.  
  4045. function onTouched(hit)
  4046. local humanoid = hit.Parent:findFirstChild("Humanoid")
  4047. if humanoid~=nil then
  4048. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  4049. else
  4050. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  4051. script.Parent.Parent = nil
  4052. end
  4053. end
  4054.  
  4055. sphere.Touched:connect(onTouched)
  4056.  
  4057. while true do -- loop forever
  4058. scanForHumans()
  4059.  
  4060. for n=1,5 do
  4061. if (myTarget ~= nil) then
  4062. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  4063. wait(math.random(1,2))
  4064. moveKillbot()
  4065. wait(math.random(1,2))
  4066. end
  4067. end
  4068. wait(.1) -- don't hog CPU
  4069. end
  4070.  
  4071. end))
  4072. Part193.Name = "Sphere"
  4073. Part193.Parent = Model191
  4074. Part193.CFrame = CFrame.new(-2.13871002, 20.4000282, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  4075. Part193.Orientation = Vector3.new(0, 180, 0)
  4076. Part193.Position = Vector3.new(-2.13871002, 20.4000282, -40.8352509)
  4077. Part193.Rotation = Vector3.new(-180, 0, -180)
  4078. Part193.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4079. Part193.Transparency = 5454
  4080. Part193.Size = Vector3.new(4, 4, 4)
  4081. Part193.Anchored = true
  4082. Part193.BackSurface = Enum.SurfaceType.Weld
  4083. Part193.BottomSurface = Enum.SurfaceType.Weld
  4084. Part193.BrickColor = BrickColor.new("Black")
  4085. Part193.FrontSurface = Enum.SurfaceType.Weld
  4086. Part193.LeftSurface = Enum.SurfaceType.Weld
  4087. Part193.Reflectance = 0.20000000298023
  4088. Part193.RightSurface = Enum.SurfaceType.Weld
  4089. Part193.TopSurface = Enum.SurfaceType.Weld
  4090. Part193.brickColor = BrickColor.new("Black")
  4091. Part193.FormFactor = Enum.FormFactor.Symmetric
  4092. Part193.formFactor = Enum.FormFactor.Symmetric
  4093. Part193.Shape = Enum.PartType.Ball
  4094. BodyPosition194.Parent = Part193
  4095. BodyPosition194.D = 10000
  4096. BodyPosition194.MaxForce = Vector3.new(4000, 400000, 4000)
  4097. BodyPosition194.maxForce = Vector3.new(4000, 400000, 4000)
  4098. Script195.Name = "RocketScript"
  4099. Script195.Parent = Model191
  4100. table.insert(cors,sandbox(Script195,function()
  4101. r = game:service("RunService")
  4102.  
  4103. shaft = script.Parent
  4104. position = shaft.Position
  4105.  
  4106. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  4107.  
  4108. function fly()
  4109. direction = shaft.CFrame.lookVector
  4110. position = position + direction
  4111. error = position - shaft.Position
  4112. shaft.Velocity = 7*error
  4113. end
  4114.  
  4115. function blow()
  4116. swoosh:stop()
  4117. explosion = Instance.new("Explosion")
  4118. explosion.Position = shaft.Position
  4119.  
  4120.  
  4121. -- find instigator tag
  4122. local creator = script.Parent:findFirstChild("creator")
  4123. if creator ~= nil then
  4124. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  4125. end
  4126.  
  4127. explosion.Parent = game.Workspace
  4128. connection:disconnect()
  4129. wait(.1)
  4130. shaft:remove()
  4131. end
  4132.  
  4133. function onPlayerBlownUp(part, distance, creator)
  4134.  
  4135. if part.Name == "Head" then
  4136.  
  4137. local humanoid = part.Parent:findFirstChild("Humanoid")
  4138. tagHumanoid(humanoid, creator)
  4139. end
  4140. end
  4141.  
  4142. function tagHumanoid(humanoid, creator)
  4143. -- tag does not need to expire iff all explosions lethal
  4144.  
  4145. if creator ~= nil then
  4146. local new_tag = creator:clone()
  4147. new_tag.Parent = humanoid
  4148.  
  4149. end
  4150. end
  4151.  
  4152. function untagHumanoid(humanoid)
  4153. if humanoid ~= nil then
  4154. local tag = humanoid:findFirstChild("creator")
  4155. if tag ~= nil then
  4156.  
  4157. tag.Parent = nil
  4158. end
  4159. end
  4160. end
  4161.  
  4162. t, s = r.Stepped:wait()
  4163.  
  4164. swoosh = script.Parent.Swoosh
  4165. swoosh:play()
  4166.  
  4167. d = t + 10.0 - s
  4168. connection = shaft.Touched:connect(blow)
  4169.  
  4170. while t < d do
  4171. fly()
  4172. t = r.Stepped:wait()
  4173. end
  4174.  
  4175. -- at max range
  4176. script.Parent.Explosion.PlayOnRemove = false
  4177. swoosh:stop()
  4178. shaft:remove()
  4179.  
  4180. end))
  4181. Script195.Disabled = true
  4182. Sound196.Name = "Explosion"
  4183. Sound196.Parent = Model191
  4184. Sound196.SoundId = "rbxasset://sounds/collide.wav"
  4185. Sound196.Volume = 1
  4186. Sound197.Name = "Swoosh"
  4187. Sound197.Parent = Model191
  4188. Sound197.Looped = true
  4189. Sound197.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  4190. Sound197.Volume = 0.69999998807907
  4191. Model198.Name = "Killbot"
  4192. Model198.Parent = Model2
  4193. Model198.PrimaryPart = Part200
  4194. Script199.Name = "KillbotScript"
  4195. Script199.Parent = Model198
  4196. table.insert(cors,sandbox(Script199,function()
  4197. local sphere = script.Parent.Sphere
  4198.  
  4199. local myTarget = nil
  4200.  
  4201.  
  4202. -- obtain goals based on Sphere part
  4203. sphere.BodyPosition.position = sphere.Position
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209. -- this code hijacked from the new rocket launcher
  4210. local Rocket = Instance.new("Part")
  4211. Rocket.Locked = true
  4212. Rocket.BackSurface = 3
  4213. Rocket.BottomSurface = 3
  4214. Rocket.FrontSurface = 3
  4215. Rocket.LeftSurface = 3
  4216. Rocket.RightSurface = 3
  4217. Rocket.TopSurface = 3
  4218. Rocket.Size = Vector3.new(1,1,4)
  4219. Rocket.BrickColor = BrickColor.new(21)
  4220. script.Parent.RocketScript:clone().Parent = Rocket
  4221. script.Parent.Explosion:clone().Parent = Rocket
  4222. script.Parent.Swoosh:clone().Parent = Rocket
  4223.  
  4224.  
  4225. function fire(target)
  4226.  
  4227.  
  4228. local dir = target - sphere.Position
  4229. dir = computeDirection(dir)
  4230.  
  4231.  
  4232. local missile = Rocket:clone()
  4233.  
  4234. local spawnPos = sphere.Position
  4235.  
  4236. local pos = spawnPos + (dir * 8)
  4237.  
  4238. --missile.Position = pos
  4239. missile.CFrame = CFrame.new(pos, pos + dir)
  4240.  
  4241.  
  4242. missile.RocketScript.Disabled = false
  4243. missile.Parent = game.Workspace
  4244.  
  4245. end
  4246.  
  4247. function computeDirection(vec)
  4248. local lenSquared = vec.magnitude * vec.magnitude
  4249. local invSqrt = 1 / math.sqrt(lenSquared)
  4250. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  4251. end
  4252.  
  4253. function scanForHumans()
  4254. -- KILL THE HUMANS!!!!!!!!!!
  4255.  
  4256. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  4257. local humansFound = {}
  4258.  
  4259. local players = game.Players:children()
  4260.  
  4261. if (#players < 1) then return end
  4262.  
  4263. local i = math.random(1, #players)
  4264.  
  4265. myTarget = players[i].Character
  4266.  
  4267. end
  4268.  
  4269. function moveKillbot()
  4270.  
  4271. -- killbots move using a biased random walk toward the target
  4272. -- they also like to float at least 10 studs above the ground
  4273.  
  4274. local dx = math.random(-100,100)
  4275. local dy = math.random(-40,40)
  4276. local dz = math.random(-100,100)
  4277.  
  4278. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  4279. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  4280.  
  4281. if (myTarget ~= nil) then
  4282. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  4283. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  4284. dz = dz + (dir.z * 80)
  4285. end
  4286.  
  4287. local vec = computeDirection(Vector3.new(dx,dy,dz))
  4288.  
  4289. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  4290.  
  4291.  
  4292. end
  4293.  
  4294. function onTouched(hit)
  4295. local humanoid = hit.Parent:findFirstChild("Humanoid")
  4296. if humanoid~=nil then
  4297. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  4298. else
  4299. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  4300. script.Parent.Parent = nil
  4301. end
  4302. end
  4303.  
  4304. sphere.Touched:connect(onTouched)
  4305.  
  4306. while true do -- loop forever
  4307. scanForHumans()
  4308.  
  4309. for n=1,5 do
  4310. if (myTarget ~= nil) then
  4311. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  4312. wait(math.random(1,2))
  4313. moveKillbot()
  4314. wait(math.random(1,2))
  4315. end
  4316. end
  4317. wait(.1) -- don't hog CPU
  4318. end
  4319.  
  4320. end))
  4321. Part200.Name = "Sphere"
  4322. Part200.Parent = Model198
  4323. Part200.CFrame = CFrame.new(-2.13871002, 24.4000511, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  4324. Part200.Orientation = Vector3.new(0, 180, 0)
  4325. Part200.Position = Vector3.new(-2.13871002, 24.4000511, -40.8352509)
  4326. Part200.Rotation = Vector3.new(-180, 0, -180)
  4327. Part200.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4328. Part200.Transparency = 5454
  4329. Part200.Size = Vector3.new(4, 4, 4)
  4330. Part200.Anchored = true
  4331. Part200.BackSurface = Enum.SurfaceType.Weld
  4332. Part200.BottomSurface = Enum.SurfaceType.Weld
  4333. Part200.BrickColor = BrickColor.new("Black")
  4334. Part200.FrontSurface = Enum.SurfaceType.Weld
  4335. Part200.LeftSurface = Enum.SurfaceType.Weld
  4336. Part200.Reflectance = 0.20000000298023
  4337. Part200.RightSurface = Enum.SurfaceType.Weld
  4338. Part200.TopSurface = Enum.SurfaceType.Weld
  4339. Part200.brickColor = BrickColor.new("Black")
  4340. Part200.FormFactor = Enum.FormFactor.Symmetric
  4341. Part200.formFactor = Enum.FormFactor.Symmetric
  4342. Part200.Shape = Enum.PartType.Ball
  4343. BodyPosition201.Parent = Part200
  4344. BodyPosition201.D = 10000
  4345. BodyPosition201.MaxForce = Vector3.new(4000, 400000, 4000)
  4346. BodyPosition201.maxForce = Vector3.new(4000, 400000, 4000)
  4347. Script202.Name = "RocketScript"
  4348. Script202.Parent = Model198
  4349. table.insert(cors,sandbox(Script202,function()
  4350. r = game:service("RunService")
  4351.  
  4352. shaft = script.Parent
  4353. position = shaft.Position
  4354.  
  4355. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  4356.  
  4357. function fly()
  4358. direction = shaft.CFrame.lookVector
  4359. position = position + direction
  4360. error = position - shaft.Position
  4361. shaft.Velocity = 7*error
  4362. end
  4363.  
  4364. function blow()
  4365. swoosh:stop()
  4366. explosion = Instance.new("Explosion")
  4367. explosion.Position = shaft.Position
  4368.  
  4369.  
  4370. -- find instigator tag
  4371. local creator = script.Parent:findFirstChild("creator")
  4372. if creator ~= nil then
  4373. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  4374. end
  4375.  
  4376. explosion.Parent = game.Workspace
  4377. connection:disconnect()
  4378. wait(.1)
  4379. shaft:remove()
  4380. end
  4381.  
  4382. function onPlayerBlownUp(part, distance, creator)
  4383.  
  4384. if part.Name == "Head" then
  4385.  
  4386. local humanoid = part.Parent:findFirstChild("Humanoid")
  4387. tagHumanoid(humanoid, creator)
  4388. end
  4389. end
  4390.  
  4391. function tagHumanoid(humanoid, creator)
  4392. -- tag does not need to expire iff all explosions lethal
  4393.  
  4394. if creator ~= nil then
  4395. local new_tag = creator:clone()
  4396. new_tag.Parent = humanoid
  4397.  
  4398. end
  4399. end
  4400.  
  4401. function untagHumanoid(humanoid)
  4402. if humanoid ~= nil then
  4403. local tag = humanoid:findFirstChild("creator")
  4404. if tag ~= nil then
  4405.  
  4406. tag.Parent = nil
  4407. end
  4408. end
  4409. end
  4410.  
  4411. t, s = r.Stepped:wait()
  4412.  
  4413. swoosh = script.Parent.Swoosh
  4414. swoosh:play()
  4415.  
  4416. d = t + 10.0 - s
  4417. connection = shaft.Touched:connect(blow)
  4418.  
  4419. while t < d do
  4420. fly()
  4421. t = r.Stepped:wait()
  4422. end
  4423.  
  4424. -- at max range
  4425. script.Parent.Explosion.PlayOnRemove = false
  4426. swoosh:stop()
  4427. shaft:remove()
  4428.  
  4429. end))
  4430. Script202.Disabled = true
  4431. Sound203.Name = "Explosion"
  4432. Sound203.Parent = Model198
  4433. Sound203.SoundId = "rbxasset://sounds/collide.wav"
  4434. Sound203.Volume = 1
  4435. Sound204.Name = "Swoosh"
  4436. Sound204.Parent = Model198
  4437. Sound204.Looped = true
  4438. Sound204.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  4439. Sound204.Volume = 0.69999998807907
  4440. Model205.Name = "Killbot"
  4441. Model205.Parent = Model2
  4442. Model205.PrimaryPart = Part207
  4443. Script206.Name = "KillbotScript"
  4444. Script206.Parent = Model205
  4445. table.insert(cors,sandbox(Script206,function()
  4446. local sphere = script.Parent.Sphere
  4447.  
  4448. local myTarget = nil
  4449.  
  4450.  
  4451. -- obtain goals based on Sphere part
  4452. sphere.BodyPosition.position = sphere.Position
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458. -- this code hijacked from the new rocket launcher
  4459. local Rocket = Instance.new("Part")
  4460. Rocket.Locked = true
  4461. Rocket.BackSurface = 3
  4462. Rocket.BottomSurface = 3
  4463. Rocket.FrontSurface = 3
  4464. Rocket.LeftSurface = 3
  4465. Rocket.RightSurface = 3
  4466. Rocket.TopSurface = 3
  4467. Rocket.Size = Vector3.new(1,1,4)
  4468. Rocket.BrickColor = BrickColor.new(21)
  4469. script.Parent.RocketScript:clone().Parent = Rocket
  4470. script.Parent.Explosion:clone().Parent = Rocket
  4471. script.Parent.Swoosh:clone().Parent = Rocket
  4472.  
  4473.  
  4474. function fire(target)
  4475.  
  4476.  
  4477. local dir = target - sphere.Position
  4478. dir = computeDirection(dir)
  4479.  
  4480.  
  4481. local missile = Rocket:clone()
  4482.  
  4483. local spawnPos = sphere.Position
  4484.  
  4485. local pos = spawnPos + (dir * 8)
  4486.  
  4487. --missile.Position = pos
  4488. missile.CFrame = CFrame.new(pos, pos + dir)
  4489.  
  4490.  
  4491. missile.RocketScript.Disabled = false
  4492. missile.Parent = game.Workspace
  4493.  
  4494. end
  4495.  
  4496. function computeDirection(vec)
  4497. local lenSquared = vec.magnitude * vec.magnitude
  4498. local invSqrt = 1 / math.sqrt(lenSquared)
  4499. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  4500. end
  4501.  
  4502. function scanForHumans()
  4503. -- KILL THE HUMANS!!!!!!!!!!
  4504.  
  4505. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  4506. local humansFound = {}
  4507.  
  4508. local players = game.Players:children()
  4509.  
  4510. if (#players < 1) then return end
  4511.  
  4512. local i = math.random(1, #players)
  4513.  
  4514. myTarget = players[i].Character
  4515.  
  4516. end
  4517.  
  4518. function moveKillbot()
  4519.  
  4520. -- killbots move using a biased random walk toward the target
  4521. -- they also like to float at least 10 studs above the ground
  4522.  
  4523. local dx = math.random(-100,100)
  4524. local dy = math.random(-40,40)
  4525. local dz = math.random(-100,100)
  4526.  
  4527. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  4528. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  4529.  
  4530. if (myTarget ~= nil) then
  4531. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  4532. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  4533. dz = dz + (dir.z * 80)
  4534. end
  4535.  
  4536. local vec = computeDirection(Vector3.new(dx,dy,dz))
  4537.  
  4538. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  4539.  
  4540.  
  4541. end
  4542.  
  4543. function onTouched(hit)
  4544. local humanoid = hit.Parent:findFirstChild("Humanoid")
  4545. if humanoid~=nil then
  4546. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  4547. else
  4548. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  4549. script.Parent.Parent = nil
  4550. end
  4551. end
  4552.  
  4553. sphere.Touched:connect(onTouched)
  4554.  
  4555. while true do -- loop forever
  4556. scanForHumans()
  4557.  
  4558. for n=1,5 do
  4559. if (myTarget ~= nil) then
  4560. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  4561. wait(math.random(1,2))
  4562. moveKillbot()
  4563. wait(math.random(1,2))
  4564. end
  4565. end
  4566. wait(.1) -- don't hog CPU
  4567. end
  4568.  
  4569. end))
  4570. Part207.Name = "Sphere"
  4571. Part207.Parent = Model205
  4572. Part207.CFrame = CFrame.new(-2.13871002, 28.4000683, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  4573. Part207.Orientation = Vector3.new(0, 180, 0)
  4574. Part207.Position = Vector3.new(-2.13871002, 28.4000683, -40.8352509)
  4575. Part207.Rotation = Vector3.new(-180, 0, -180)
  4576. Part207.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4577. Part207.Transparency = 5454
  4578. Part207.Size = Vector3.new(4, 4, 4)
  4579. Part207.Anchored = true
  4580. Part207.BackSurface = Enum.SurfaceType.Weld
  4581. Part207.BottomSurface = Enum.SurfaceType.Weld
  4582. Part207.BrickColor = BrickColor.new("Black")
  4583. Part207.FrontSurface = Enum.SurfaceType.Weld
  4584. Part207.LeftSurface = Enum.SurfaceType.Weld
  4585. Part207.Reflectance = 0.20000000298023
  4586. Part207.RightSurface = Enum.SurfaceType.Weld
  4587. Part207.TopSurface = Enum.SurfaceType.Weld
  4588. Part207.brickColor = BrickColor.new("Black")
  4589. Part207.FormFactor = Enum.FormFactor.Symmetric
  4590. Part207.formFactor = Enum.FormFactor.Symmetric
  4591. Part207.Shape = Enum.PartType.Ball
  4592. BodyPosition208.Parent = Part207
  4593. BodyPosition208.D = 10000
  4594. BodyPosition208.MaxForce = Vector3.new(4000, 400000, 4000)
  4595. BodyPosition208.maxForce = Vector3.new(4000, 400000, 4000)
  4596. Script209.Name = "RocketScript"
  4597. Script209.Parent = Model205
  4598. table.insert(cors,sandbox(Script209,function()
  4599. r = game:service("RunService")
  4600.  
  4601. shaft = script.Parent
  4602. position = shaft.Position
  4603.  
  4604. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  4605.  
  4606. function fly()
  4607. direction = shaft.CFrame.lookVector
  4608. position = position + direction
  4609. error = position - shaft.Position
  4610. shaft.Velocity = 7*error
  4611. end
  4612.  
  4613. function blow()
  4614. swoosh:stop()
  4615. explosion = Instance.new("Explosion")
  4616. explosion.Position = shaft.Position
  4617.  
  4618.  
  4619. -- find instigator tag
  4620. local creator = script.Parent:findFirstChild("creator")
  4621. if creator ~= nil then
  4622. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  4623. end
  4624.  
  4625. explosion.Parent = game.Workspace
  4626. connection:disconnect()
  4627. wait(.1)
  4628. shaft:remove()
  4629. end
  4630.  
  4631. function onPlayerBlownUp(part, distance, creator)
  4632.  
  4633. if part.Name == "Head" then
  4634.  
  4635. local humanoid = part.Parent:findFirstChild("Humanoid")
  4636. tagHumanoid(humanoid, creator)
  4637. end
  4638. end
  4639.  
  4640. function tagHumanoid(humanoid, creator)
  4641. -- tag does not need to expire iff all explosions lethal
  4642.  
  4643. if creator ~= nil then
  4644. local new_tag = creator:clone()
  4645. new_tag.Parent = humanoid
  4646.  
  4647. end
  4648. end
  4649.  
  4650. function untagHumanoid(humanoid)
  4651. if humanoid ~= nil then
  4652. local tag = humanoid:findFirstChild("creator")
  4653. if tag ~= nil then
  4654.  
  4655. tag.Parent = nil
  4656. end
  4657. end
  4658. end
  4659.  
  4660. t, s = r.Stepped:wait()
  4661.  
  4662. swoosh = script.Parent.Swoosh
  4663. swoosh:play()
  4664.  
  4665. d = t + 10.0 - s
  4666. connection = shaft.Touched:connect(blow)
  4667.  
  4668. while t < d do
  4669. fly()
  4670. t = r.Stepped:wait()
  4671. end
  4672.  
  4673. -- at max range
  4674. script.Parent.Explosion.PlayOnRemove = false
  4675. swoosh:stop()
  4676. shaft:remove()
  4677.  
  4678. end))
  4679. Script209.Disabled = true
  4680. Sound210.Name = "Explosion"
  4681. Sound210.Parent = Model205
  4682. Sound210.SoundId = "rbxasset://sounds/collide.wav"
  4683. Sound210.Volume = 1
  4684. Sound211.Name = "Swoosh"
  4685. Sound211.Parent = Model205
  4686. Sound211.Looped = true
  4687. Sound211.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  4688. Sound211.Volume = 0.69999998807907
  4689. Model212.Name = "Killbot"
  4690. Model212.Parent = Model2
  4691. Model212.PrimaryPart = Part214
  4692. Script213.Name = "KillbotScript"
  4693. Script213.Parent = Model212
  4694. table.insert(cors,sandbox(Script213,function()
  4695. local sphere = script.Parent.Sphere
  4696.  
  4697. local myTarget = nil
  4698.  
  4699.  
  4700. -- obtain goals based on Sphere part
  4701. sphere.BodyPosition.position = sphere.Position
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707. -- this code hijacked from the new rocket launcher
  4708. local Rocket = Instance.new("Part")
  4709. Rocket.Locked = true
  4710. Rocket.BackSurface = 3
  4711. Rocket.BottomSurface = 3
  4712. Rocket.FrontSurface = 3
  4713. Rocket.LeftSurface = 3
  4714. Rocket.RightSurface = 3
  4715. Rocket.TopSurface = 3
  4716. Rocket.Size = Vector3.new(1,1,4)
  4717. Rocket.BrickColor = BrickColor.new(21)
  4718. script.Parent.RocketScript:clone().Parent = Rocket
  4719. script.Parent.Explosion:clone().Parent = Rocket
  4720. script.Parent.Swoosh:clone().Parent = Rocket
  4721.  
  4722.  
  4723. function fire(target)
  4724.  
  4725.  
  4726. local dir = target - sphere.Position
  4727. dir = computeDirection(dir)
  4728.  
  4729.  
  4730. local missile = Rocket:clone()
  4731.  
  4732. local spawnPos = sphere.Position
  4733.  
  4734. local pos = spawnPos + (dir * 8)
  4735.  
  4736. --missile.Position = pos
  4737. missile.CFrame = CFrame.new(pos, pos + dir)
  4738.  
  4739.  
  4740. missile.RocketScript.Disabled = false
  4741. missile.Parent = game.Workspace
  4742.  
  4743. end
  4744.  
  4745. function computeDirection(vec)
  4746. local lenSquared = vec.magnitude * vec.magnitude
  4747. local invSqrt = 1 / math.sqrt(lenSquared)
  4748. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  4749. end
  4750.  
  4751. function scanForHumans()
  4752. -- KILL THE HUMANS!!!!!!!!!!
  4753.  
  4754. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  4755. local humansFound = {}
  4756.  
  4757. local players = game.Players:children()
  4758.  
  4759. if (#players < 1) then return end
  4760.  
  4761. local i = math.random(1, #players)
  4762.  
  4763. myTarget = players[i].Character
  4764.  
  4765. end
  4766.  
  4767. function moveKillbot()
  4768.  
  4769. -- killbots move using a biased random walk toward the target
  4770. -- they also like to float at least 10 studs above the ground
  4771.  
  4772. local dx = math.random(-100,100)
  4773. local dy = math.random(-40,40)
  4774. local dz = math.random(-100,100)
  4775.  
  4776. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  4777. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  4778.  
  4779. if (myTarget ~= nil) then
  4780. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  4781. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  4782. dz = dz + (dir.z * 80)
  4783. end
  4784.  
  4785. local vec = computeDirection(Vector3.new(dx,dy,dz))
  4786.  
  4787. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  4788.  
  4789.  
  4790. end
  4791.  
  4792. function onTouched(hit)
  4793. local humanoid = hit.Parent:findFirstChild("Humanoid")
  4794. if humanoid~=nil then
  4795. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  4796. else
  4797. -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
  4798. script.Parent.Parent = nil
  4799. end
  4800. end
  4801.  
  4802. sphere.Touched:connect(onTouched)
  4803.  
  4804. while true do -- loop forever
  4805. scanForHumans()
  4806.  
  4807. for n=1,5 do
  4808. if (myTarget ~= nil) then
  4809. if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
  4810. wait(math.random(1,2))
  4811. moveKillbot()
  4812. wait(math.random(1,2))
  4813. end
  4814. end
  4815. wait(.1) -- don't hog CPU
  4816. end
  4817.  
  4818. end))
  4819. Part214.Name = "Sphere"
  4820. Part214.Parent = Model212
  4821. Part214.CFrame = CFrame.new(-2.13871002, 32.4000969, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  4822. Part214.Orientation = Vector3.new(0, 180, 0)
  4823. Part214.Position = Vector3.new(-2.13871002, 32.4000969, -40.8352509)
  4824. Part214.Rotation = Vector3.new(-180, 0, -180)
  4825. Part214.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4826. Part214.Transparency = 5454
  4827. Part214.Size = Vector3.new(4, 4, 4)
  4828. Part214.Anchored = true
  4829. Part214.BackSurface = Enum.SurfaceType.Weld
  4830. Part214.BottomSurface = Enum.SurfaceType.Weld
  4831. Part214.BrickColor = BrickColor.new("Black")
  4832. Part214.FrontSurface = Enum.SurfaceType.Weld
  4833. Part214.LeftSurface = Enum.SurfaceType.Weld
  4834. Part214.Reflectance = 0.20000000298023
  4835. Part214.RightSurface = Enum.SurfaceType.Weld
  4836. Part214.TopSurface = Enum.SurfaceType.Weld
  4837. Part214.brickColor = BrickColor.new("Black")
  4838. Part214.FormFactor = Enum.FormFactor.Symmetric
  4839. Part214.formFactor = Enum.FormFactor.Symmetric
  4840. Part214.Shape = Enum.PartType.Ball
  4841. BodyPosition215.Parent = Part214
  4842. BodyPosition215.D = 10000
  4843. BodyPosition215.MaxForce = Vector3.new(4000, 400000, 4000)
  4844. BodyPosition215.maxForce = Vector3.new(4000, 400000, 4000)
  4845. Script216.Name = "RocketScript"
  4846. Script216.Parent = Model212
  4847. table.insert(cors,sandbox(Script216,function()
  4848. r = game:service("RunService")
  4849.  
  4850. shaft = script.Parent
  4851. position = shaft.Position
  4852.  
  4853. script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
  4854.  
  4855. function fly()
  4856. direction = shaft.CFrame.lookVector
  4857. position = position + direction
  4858. error = position - shaft.Position
  4859. shaft.Velocity = 7*error
  4860. end
  4861.  
  4862. function blow()
  4863. swoosh:stop()
  4864. explosion = Instance.new("Explosion")
  4865. explosion.Position = shaft.Position
  4866.  
  4867.  
  4868. -- find instigator tag
  4869. local creator = script.Parent:findFirstChild("creator")
  4870. if creator ~= nil then
  4871. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  4872. end
  4873.  
  4874. explosion.Parent = game.Workspace
  4875. connection:disconnect()
  4876. wait(.1)
  4877. shaft:remove()
  4878. end
  4879.  
  4880. function onPlayerBlownUp(part, distance, creator)
  4881.  
  4882. if part.Name == "Head" then
  4883.  
  4884. local humanoid = part.Parent:findFirstChild("Humanoid")
  4885. tagHumanoid(humanoid, creator)
  4886. end
  4887. end
  4888.  
  4889. function tagHumanoid(humanoid, creator)
  4890. -- tag does not need to expire iff all explosions lethal
  4891.  
  4892. if creator ~= nil then
  4893. local new_tag = creator:clone()
  4894. new_tag.Parent = humanoid
  4895.  
  4896. end
  4897. end
  4898.  
  4899. function untagHumanoid(humanoid)
  4900. if humanoid ~= nil then
  4901. local tag = humanoid:findFirstChild("creator")
  4902. if tag ~= nil then
  4903.  
  4904. tag.Parent = nil
  4905. end
  4906. end
  4907. end
  4908.  
  4909. t, s = r.Stepped:wait()
  4910.  
  4911. swoosh = script.Parent.Swoosh
  4912. swoosh:play()
  4913.  
  4914. d = t + 10.0 - s
  4915. connection = shaft.Touched:connect(blow)
  4916.  
  4917. while t < d do
  4918. fly()
  4919. t = r.Stepped:wait()
  4920. end
  4921.  
  4922. -- at max range
  4923. script.Parent.Explosion.PlayOnRemove = false
  4924. swoosh:stop()
  4925. shaft:remove()
  4926.  
  4927. end))
  4928. Script216.Disabled = true
  4929. Sound217.Name = "Explosion"
  4930. Sound217.Parent = Model212
  4931. Sound217.SoundId = "rbxasset://sounds/collide.wav"
  4932. Sound217.Volume = 1
  4933. Sound218.Name = "Swoosh"
  4934. Sound218.Parent = Model212
  4935. Sound218.Looped = true
  4936. Sound218.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  4937. Sound218.Volume = 0.69999998807907
  4938. SpawnLocation219.Parent = mas
  4939. SpawnLocation219.CFrame = CFrame.new(78, 0.500001013, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4940. SpawnLocation219.Position = Vector3.new(78, 0.500001013, -2)
  4941. SpawnLocation219.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4942. SpawnLocation219.Size = Vector3.new(12, 1, 12)
  4943. SpawnLocation219.Anchored = true
  4944. SpawnLocation219.BottomSurface = Enum.SurfaceType.Smooth
  4945. SpawnLocation219.BrickColor = BrickColor.new("Really black")
  4946. SpawnLocation219.TopSurface = Enum.SurfaceType.Smooth
  4947. SpawnLocation219.brickColor = BrickColor.new("Really black")
  4948. Decal220.Parent = SpawnLocation219
  4949. Decal220.Texture = "rbxasset://textures/SpawnLocation.png"
  4950. Decal220.Face = Enum.NormalId.Top
  4951. Model221.Name = "Thunder Storm"
  4952. Model221.Parent = mas
  4953. Model222.Name = "Mesh,Sounds and Bricks"
  4954. Model222.Parent = Model221
  4955. Part223.Name = "Smooth Block Model"
  4956. Part223.Parent = Model222
  4957. Part223.CFrame = CFrame.new(3.595505, 1.49996495, -17.4937744, -0.997944117, 2.52869775e-16, 0.0640879571, 2.34819397e-16, 1, -2.89182051e-16, -0.0640879571, -2.73538464e-16, -0.997944117)
  4958. Part223.Orientation = Vector3.new(0, 176.330002, 0)
  4959. Part223.Position = Vector3.new(3.595505, 1.49996495, -17.4937744)
  4960. Part223.Rotation = Vector3.new(180, 3.67000008, -180)
  4961. Part223.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  4962. Part223.Velocity = Vector3.new(3.39076742e-14, 0.122618884, 3.39076742e-14)
  4963. Part223.Size = Vector3.new(1, 1, 1)
  4964. Part223.Anchored = true
  4965. Part223.BottomSurface = Enum.SurfaceType.Smooth
  4966. Part223.BrickColor = BrickColor.new("Bright blue")
  4967. Part223.CanCollide = false
  4968. Part223.Locked = true
  4969. Part223.RotVelocity = Vector3.new(1.79949251e-16, 0.323513776, 1.79949238e-16)
  4970. Part223.TopSurface = Enum.SurfaceType.Smooth
  4971. Part223.brickColor = BrickColor.new("Bright blue")
  4972. Part223.FormFactor = Enum.FormFactor.Symmetric
  4973. Part223.formFactor = Enum.FormFactor.Symmetric
  4974. SpecialMesh224.Parent = Part223
  4975. SpecialMesh224.MeshId = "http://www.roblox.com/asset/?id=1527559"
  4976. SpecialMesh224.Scale = Vector3.new(-3500, -3500, -3500)
  4977. SpecialMesh224.TextureId = "rbxassetid://2675785344"
  4978. SpecialMesh224.MeshType = Enum.MeshType.FileMesh
  4979. for i,v in pairs(mas:GetChildren()) do
  4980. v.Parent = workspace
  4981. pcall(function() v:MakeJoints() end)
  4982. end
  4983. mas:Destroy()
  4984. for i,v in pairs(cors) do
  4985. spawn(function()
  4986. pcall(v)
  4987. end)
  4988. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement