Advertisement
firebudgy

Tank

Jun 18th, 2018
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.12 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Part1 = Instance.new("Part")
  20. Humanoid2 = Instance.new("Humanoid")
  21. Script3 = Instance.new("Script")
  22. BodyColors4 = Instance.new("BodyColors")
  23. Script5 = Instance.new("Script")
  24. IntValue6 = Instance.new("IntValue")
  25. Script7 = Instance.new("Script")
  26. Script8 = Instance.new("Script")
  27. Sound9 = Instance.new("Sound")
  28. Sound10 = Instance.new("Sound")
  29. Part11 = Instance.new("Part")
  30. BodyPosition12 = Instance.new("BodyPosition")
  31. Script13 = Instance.new("Script")
  32. Humanoid14 = Instance.new("Humanoid")
  33. Part15 = Instance.new("Part")
  34. Part16 = Instance.new("Part")
  35. Part17 = Instance.new("Part")
  36. Part18 = Instance.new("Part")
  37. Part19 = Instance.new("Part")
  38. Part20 = Instance.new("Part")
  39. Part21 = Instance.new("Part")
  40. SpecialMesh22 = Instance.new("SpecialMesh")
  41. Part23 = Instance.new("Part")
  42. SpecialMesh24 = Instance.new("SpecialMesh")
  43. Part25 = Instance.new("Part")
  44. Part26 = Instance.new("Part")
  45. SpecialMesh27 = Instance.new("SpecialMesh")
  46. Part28 = Instance.new("Part")
  47. Part29 = Instance.new("Part")
  48. SpecialMesh30 = Instance.new("SpecialMesh")
  49. Part31 = Instance.new("Part")
  50. SpecialMesh32 = Instance.new("SpecialMesh")
  51. Part33 = Instance.new("Part")
  52. SpecialMesh34 = Instance.new("SpecialMesh")
  53. Part35 = Instance.new("Part")
  54. Part36 = Instance.new("Part")
  55. Part37 = Instance.new("Part")
  56. Part38 = Instance.new("Part")
  57. SpecialMesh39 = Instance.new("SpecialMesh")
  58. Part40 = Instance.new("Part")
  59. SpecialMesh41 = Instance.new("SpecialMesh")
  60. Part42 = Instance.new("Part")
  61. SpecialMesh43 = Instance.new("SpecialMesh")
  62. Model44 = Instance.new("Model")
  63. Part45 = Instance.new("Part")
  64. SpecialMesh46 = Instance.new("SpecialMesh")
  65. Part47 = Instance.new("Part")
  66. Snap48 = Instance.new("Snap")
  67. Motor49 = Instance.new("Motor")
  68. Motor50 = Instance.new("Motor")
  69. Motor51 = Instance.new("Motor")
  70. Motor52 = Instance.new("Motor")
  71. Humanoid53 = Instance.new("Humanoid")
  72. BodyColors54 = Instance.new("BodyColors")
  73. Script55 = Instance.new("Script")
  74. IntValue56 = Instance.new("IntValue")
  75. Script57 = Instance.new("Script")
  76. Script58 = Instance.new("Script")
  77. Script59 = Instance.new("Script")
  78. Script60 = Instance.new("Script")
  79. Model0.Name = "Martian Tank"
  80. Model0.Parent = mas
  81. Model0.PrimaryPart = Part28
  82. Part1.Name = "Smooth Block Model"
  83. Part1.Parent = Model0
  84. Part1.BrickColor = BrickColor.new("Black")
  85. Part1.Rotation = Vector3.new(0, -0.0199999996, 0)
  86. Part1.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  87. Part1.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  88. Part1.Size = Vector3.new(8, 2.4000001, 15)
  89. Part1.CFrame = CFrame.new(-69.0016632, 6.60000992, 82.8958969, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997145e-19, 0.000372457987, 1.61933788e-19, 0.99999994)
  90. Part1.BottomSurface = Enum.SurfaceType.Weld
  91. Part1.FrontSurface = Enum.SurfaceType.Weld
  92. Part1.TopSurface = Enum.SurfaceType.Smooth
  93. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  94. Part1.Position = Vector3.new(-69.0016632, 6.60000992, 82.8958969)
  95. Part1.Orientation = Vector3.new(0, -0.0199999996, 0)
  96. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  97. Humanoid2.Name = "Alien"
  98. Humanoid2.Parent = Model0
  99. Humanoid2.Torso = Part15
  100. Humanoid2.MaxHealth = 1000
  101. Script3.Parent = Humanoid2
  102. table.insert(cors,sandbox(Script3,function()
  103. script.Parent.Health = script.Parent.MaxHealth
  104. end))
  105. BodyColors4.Parent = Model0
  106. BodyColors4.HeadColor = BrickColor.new("Bright yellow")
  107. BodyColors4.LeftArmColor = BrickColor.new("Medium stone grey")
  108. BodyColors4.LeftLegColor = BrickColor.new("Brick yellow")
  109. BodyColors4.RightArmColor = BrickColor.new("Medium stone grey")
  110. BodyColors4.RightLegColor = BrickColor.new("Brick yellow")
  111. BodyColors4.TorsoColor = BrickColor.new("Bright red")
  112. Script5.Parent = Model0
  113. table.insert(cors,sandbox(Script5,function()
  114. function findNearestTorso(pos)
  115. local list = game.Workspace:children()
  116. local torso = nil
  117. local dist = 1000
  118. local temp = nil
  119. local human = nil
  120. local temp2 = nil
  121. for x = 1, #list do
  122. temp2 = list[x]
  123. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  124. temp = temp2:findFirstChild("Torso")
  125. human = temp2:findFirstChild("Humanoid")
  126. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  127. if (temp.Position - pos).magnitude < dist then
  128. torso = temp
  129. dist = (temp.Position - pos).magnitude
  130. end
  131. end
  132. end
  133. end
  134. return torso
  135. end
  136.  
  137. while true do
  138. wait(1)
  139. local target = findNearestTorso(script.Parent.Torso.Position)
  140. if target ~= nil then
  141. script.Parent.Alien:MoveTo(target.Position, target)
  142. end
  143. end
  144.  
  145. end))
  146. IntValue6.Name = "Mode"
  147. IntValue6.Parent = Model0
  148. Script7.Name = "Respawn"
  149. Script7.Parent = Model0
  150. table.insert(cors,sandbox(Script7,function()
  151. name="Alien"
  152.  
  153. robo=script.Parent:clone()
  154.  
  155. while true do
  156. wait(45)
  157. if script.Parent.Alien.Health<1 then
  158. robot=robo:clone()
  159. robot.Parent=script.Parent.Parent
  160. robot:makeJoints()
  161. script.Parent:remove()
  162. end
  163. end
  164.  
  165.  
  166.  
  167.  
  168. end))
  169. Script8.Name = "KillbotScript"
  170. Script8.Parent = Model0
  171. table.insert(cors,sandbox(Script8,function()
  172. local sphere = script.Parent.Sphere
  173.  
  174. local myTarget = nil
  175.  
  176.  
  177. -- obtain goals based on Sphere part
  178. sphere.BodyPosition.position = sphere.Position
  179.  
  180.  
  181.  
  182.  
  183.  
  184. -- this code hijacked from the new rocket launcher
  185. local Rocket = Instance.new("Part")
  186. Rocket.Locked = true
  187. Rocket.BackSurface = 3
  188. Rocket.BottomSurface = 3
  189. Rocket.FrontSurface = 3
  190. Rocket.LeftSurface = 3
  191. Rocket.RightSurface = 3
  192. Rocket.TopSurface = 3
  193. Rocket.Size = Vector3.new(1,1,4)
  194. Rocket.BrickColor = BrickColor.new(21)
  195. script.Parent.RocketScript:clone().Parent = Rocket
  196. script.Parent.Explosion:clone().Parent = Rocket
  197. script.Parent.Swoosh:clone().Parent = Rocket
  198.  
  199.  
  200. function fire(target)
  201.  
  202.  
  203. local dir = target - sphere.Position
  204. dir = computeDirection(dir)
  205.  
  206.  
  207. local missile = Rocket:clone()
  208.  
  209. local spawnPos = sphere.Position
  210.  
  211. local pos = spawnPos + (dir * 16)
  212.  
  213. --missile.Position = pos
  214. missile.CFrame = CFrame.new(pos, pos + dir)
  215.  
  216.  
  217. missile.RocketScript.Disabled = false
  218. missile.Parent = game.Workspace
  219.  
  220. end
  221.  
  222. function computeDirection(vec)
  223. local lenSquared = vec.magnitude * vec.magnitude
  224. local invSqrt = 1 / math.sqrt(lenSquared)
  225. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  226. end
  227.  
  228. function scanForHumans()
  229. -- KILL THE HUMANS!!!!!!!!!!
  230.  
  231. -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
  232. local humansFound = {}
  233.  
  234. local players = game.Players:children()
  235.  
  236. if (#players < 1) then return end
  237.  
  238. local i = math.random(1, #players)
  239.  
  240. myTarget = players[i].Character
  241.  
  242. end
  243.  
  244. function moveKillbot()
  245.  
  246. -- killbots move using a biased random walk toward the target
  247. -- they also like to float at least 10 studs above the ground
  248.  
  249. local dx = math.random(-100,100)
  250. local dy = math.random(-40,40)
  251. local dz = math.random(-100,100)
  252.  
  253. if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
  254. if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
  255.  
  256. if (myTarget ~= nil) then
  257. local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
  258. dx = dx + (dir.x * 80) -- change this number to alter player trophism
  259. dz = dz + (dir.z * 80)
  260. end
  261.  
  262. local vec = computeDirection(Vector3.new(dx,dy,dz))
  263.  
  264. sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
  265.  
  266.  
  267. end
  268.  
  269. function onTouched(hit)
  270. local humanoid = hit.Parent:findFirstChild("Humanoid")
  271. if humanoid~=nil then
  272. humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
  273. end
  274. end
  275.  
  276. sphere.Touched:connect(onTouched)
  277.  
  278. while true do -- loop forever
  279. scanForHumans()
  280.  
  281. for n=1,5 do
  282. if (myTarget ~= nil) then
  283. if(math.random(1,1) == 1) then fire(myTarget.PrimaryPart.Position) end
  284. wait(2)
  285. moveKillbot()
  286. end
  287. end
  288. wait(2) -- don't hog CPU
  289. end
  290.  
  291. end))
  292. Sound9.Name = "Explosion"
  293. Sound9.Parent = Model0
  294. Sound9.SoundId = "rbxasset://sounds/collide.wav"
  295. Sound9.Volume = 1
  296. Sound10.Name = "Swoosh"
  297. Sound10.Parent = Model0
  298. Sound10.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  299. Sound10.Volume = 0.69999998807907
  300. Sound10.Looped = true
  301. Part11.Name = "Sphere"
  302. Part11.Parent = Model0
  303. Part11.BrickColor = BrickColor.new("Black")
  304. Part11.Rotation = Vector3.new(-176.62999, 0.049999997, -179.98999)
  305. Part11.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  306. Part11.Velocity = Vector3.new(-0.0300525036, 689.6073, 66.9885635)
  307. Part11.FormFactor = Enum.FormFactor.Symmetric
  308. Part11.Size = Vector3.new(2, 2, 1)
  309. Part11.CFrame = CFrame.new(-68.9942627, 12.7593288, 75.0428467, -0.999999642, 0.000197649657, 0.000852700497, 0.000247427379, 0.998271108, 0.0587769933, -0.00083960878, 0.0587771647, -0.998270512)
  310. Part11.BottomSurface = Enum.SurfaceType.Smooth
  311. Part11.FrontSurface = Enum.SurfaceType.Weld
  312. Part11.TopSurface = Enum.SurfaceType.Smooth
  313. Part11.Color = Color3.new(0.105882, 0.164706, 0.207843)
  314. Part11.Position = Vector3.new(-68.9942627, 12.7593288, 75.0428467)
  315. Part11.Orientation = Vector3.new(-3.36999989, 179.949997, 0.00999999978)
  316. Part11.Color = Color3.new(0.105882, 0.164706, 0.207843)
  317. BodyPosition12.Parent = Part11
  318. BodyPosition12.D = 10000
  319. BodyPosition12.position = Vector3.new(8.42086792, 31.4222527, 462.809814)
  320. BodyPosition12.Position = Vector3.new(8.42086792, 31.4222527, 462.809814)
  321. Script13.Parent = Part11
  322. table.insert(cors,sandbox(Script13,function()
  323. function findNearestTorso(pos)
  324. local list = game.Workspace:children()
  325. local torso = nil
  326. local dist = 1000
  327. local temp = nil
  328. local human = nil
  329. local temp2 = nil
  330. for x = 1, #list do
  331. temp2 = list[x]
  332. if (temp2.className == "Model") and (temp2 ~= script.Parent.Parent) then
  333. temp = temp2:findFirstChild("Torso")
  334. human = temp2:findFirstChild("Humanoid")
  335. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  336. if (temp.Position - pos).magnitude < dist then
  337. torso = temp
  338. dist = (temp.Position - pos).magnitude
  339. end
  340. end
  341. end
  342. end
  343. return torso
  344. end
  345.  
  346. while true do
  347. wait(1)
  348. local target = findNearestTorso(script.Parent.Position)
  349. if target ~= nil then
  350. script.Parent.Alien:MoveTo(target.Position, target)
  351. end
  352. end
  353.  
  354. end))
  355. Humanoid14.Name = "Alien"
  356. Humanoid14.Parent = Part11
  357. Humanoid14.Health = 0
  358. Part15.Name = "Torso"
  359. Part15.Parent = Model0
  360. Part15.BrickColor = BrickColor.new("Dark green")
  361. Part15.Rotation = Vector3.new(0, -0.0199999996, 0)
  362. Part15.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  363. Part15.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  364. Part15.Friction = 0
  365. Part15.Size = Vector3.new(8, 2.4000001, 7)
  366. Part15.CFrame = CFrame.new(-69.0016632, 9.00001144, 82.8959045, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997093e-19, 0.000372457987, 1.6193384e-19, 0.99999994)
  367. Part15.TopSurface = Enum.SurfaceType.Hinge
  368. Part15.Color = Color3.new(0.156863, 0.498039, 0.278431)
  369. Part15.Position = Vector3.new(-69.0016632, 9.00001144, 82.8959045)
  370. Part15.Orientation = Vector3.new(0, -0.0199999996, 0)
  371. Part15.Color = Color3.new(0.156863, 0.498039, 0.278431)
  372. Part16.Name = "Hover"
  373. Part16.Parent = Model0
  374. Part16.BrickColor = BrickColor.new("White")
  375. Part16.Transparency = 1
  376. Part16.Rotation = Vector3.new(180, -89.9799957, 180)
  377. Part16.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  378. Part16.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  379. Part16.FormFactor = Enum.FormFactor.Symmetric
  380. Part16.Friction = 0.10000000149012
  381. Part16.Shape = Enum.PartType.Ball
  382. Part16.Size = Vector3.new(3, 3, 3)
  383. Part16.CFrame = CFrame.new(-75.4975662, 1.50001287, 71.8934937, -0.000372457987, -1.6823799e-19, -0.99999994, -1.61997248e-19, 1, -1.68177658e-19, 0.99999994, 1.61933685e-19, -0.000372457987)
  384. Part16.BottomSurface = Enum.SurfaceType.Smooth
  385. Part16.TopSurface = Enum.SurfaceType.Weld
  386. Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
  387. Part16.Position = Vector3.new(-75.4975662, 1.50001287, 71.8934937)
  388. Part16.Orientation = Vector3.new(0, -90.0199966, 0)
  389. Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
  390. Part17.Name = "Hover"
  391. Part17.Parent = Model0
  392. Part17.BrickColor = BrickColor.new("White")
  393. Part17.Transparency = 1
  394. Part17.Rotation = Vector3.new(180, -89.9799957, 180)
  395. Part17.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  396. Part17.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  397. Part17.FormFactor = Enum.FormFactor.Symmetric
  398. Part17.Friction = 0.10000000149012
  399. Part17.Shape = Enum.PartType.Ball
  400. Part17.Size = Vector3.new(3, 3, 3)
  401. Part17.CFrame = CFrame.new(-62.4975662, 1.50001287, 71.8983154, -0.000372457987, -1.6823799e-19, -0.99999994, -1.61997248e-19, 1, -1.68177658e-19, 0.99999994, 1.61933685e-19, -0.000372457987)
  402. Part17.BottomSurface = Enum.SurfaceType.Smooth
  403. Part17.TopSurface = Enum.SurfaceType.Weld
  404. Part17.Color = Color3.new(0.94902, 0.952941, 0.952941)
  405. Part17.Position = Vector3.new(-62.4975662, 1.50001287, 71.8983154)
  406. Part17.Orientation = Vector3.new(0, -90.0199966, 0)
  407. Part17.Color = Color3.new(0.94902, 0.952941, 0.952941)
  408. Part18.Name = "Hover"
  409. Part18.Parent = Model0
  410. Part18.BrickColor = BrickColor.new("White")
  411. Part18.Transparency = 1
  412. Part18.Rotation = Vector3.new(180, -89.9799957, 180)
  413. Part18.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  414. Part18.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  415. Part18.FormFactor = Enum.FormFactor.Symmetric
  416. Part18.Friction = 0.10000000149012
  417. Part18.Shape = Enum.PartType.Ball
  418. Part18.Size = Vector3.new(3, 3, 3)
  419. Part18.CFrame = CFrame.new(-61.5046539, 1.50001287, 90.898674, -0.000372457987, -1.6823799e-19, -0.99999994, -1.61997248e-19, 1, -1.68177658e-19, 0.99999994, 1.61933685e-19, -0.000372457987)
  420. Part18.BottomSurface = Enum.SurfaceType.Smooth
  421. Part18.TopSurface = Enum.SurfaceType.Weld
  422. Part18.Color = Color3.new(0.94902, 0.952941, 0.952941)
  423. Part18.Position = Vector3.new(-61.5046539, 1.50001287, 90.898674)
  424. Part18.Orientation = Vector3.new(0, -90.0199966, 0)
  425. Part18.Color = Color3.new(0.94902, 0.952941, 0.952941)
  426. Part19.Name = "Hover"
  427. Part19.Parent = Model0
  428. Part19.BrickColor = BrickColor.new("White")
  429. Part19.Transparency = 1
  430. Part19.Rotation = Vector3.new(180, -89.9799957, 180)
  431. Part19.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  432. Part19.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  433. Part19.FormFactor = Enum.FormFactor.Symmetric
  434. Part19.Friction = 0.10000000149012
  435. Part19.Shape = Enum.PartType.Ball
  436. Part19.Size = Vector3.new(3, 3, 3)
  437. Part19.CFrame = CFrame.new(-75.5046539, 1.50001287, 90.893486, -0.000372457987, -1.6823799e-19, -0.99999994, -1.61997248e-19, 1, -1.68177658e-19, 0.99999994, 1.61933685e-19, -0.000372457987)
  438. Part19.BottomSurface = Enum.SurfaceType.Smooth
  439. Part19.TopSurface = Enum.SurfaceType.Weld
  440. Part19.Color = Color3.new(0.94902, 0.952941, 0.952941)
  441. Part19.Position = Vector3.new(-75.5046539, 1.50001287, 90.893486)
  442. Part19.Orientation = Vector3.new(0, -90.0199966, 0)
  443. Part19.Color = Color3.new(0.94902, 0.952941, 0.952941)
  444. Part20.Name = "Head"
  445. Part20.Parent = Model0
  446. Part20.BrickColor = BrickColor.new("Cool yellow")
  447. Part20.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  448. Part20.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  449. Part20.Velocity = Vector3.new(0.0102449656, 505.493469, 14.0209999)
  450. Part20.Friction = 0
  451. Part20.Size = Vector3.new(8, 1.20000005, 7)
  452. Part20.CFrame = CFrame.new(-69.0014343, 10.4922295, 82.9232178, 0.999999642, 0.00019764973, -0.000852700497, -0.000247427291, 0.998271108, -0.0587769933, 0.000839609012, 0.0587771796, 0.99827075)
  453. Part20.BottomSurface = Enum.SurfaceType.Smooth
  454. Part20.TopSurface = Enum.SurfaceType.Smooth
  455. Part20.Color = Color3.new(0.992157, 0.917647, 0.552941)
  456. Part20.Position = Vector3.new(-69.0014343, 10.4922295, 82.9232178)
  457. Part20.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  458. Part20.Color = Color3.new(0.992157, 0.917647, 0.552941)
  459. Part21.Name = "Smooth Block Model"
  460. Part21.Parent = Model0
  461. Part21.BrickColor = BrickColor.new("Black")
  462. Part21.Rotation = Vector3.new(0, 89.9799957, 0)
  463. Part21.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  464. Part21.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  465. Part21.Size = Vector3.new(24, 2.4000001, 5)
  466. Part21.CFrame = CFrame.new(-75.5011139, 4.20001078, 81.3934937, 0.000372457987, -1.6823799e-19, 0.99999994, 1.61997235e-19, 1, 1.68177658e-19, -0.99999994, 1.61933698e-19, 0.000372457987)
  467. Part21.BottomSurface = Enum.SurfaceType.Smooth
  468. Part21.TopSurface = Enum.SurfaceType.Smooth
  469. Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  470. Part21.Position = Vector3.new(-75.5011139, 4.20001078, 81.3934937)
  471. Part21.Orientation = Vector3.new(0, 89.9799957, 0)
  472. Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  473. SpecialMesh22.Parent = Part21
  474. SpecialMesh22.MeshType = Enum.MeshType.Torso
  475. Part23.Name = "Smooth Block Model"
  476. Part23.Parent = Model0
  477. Part23.BrickColor = BrickColor.new("Black")
  478. Part23.Rotation = Vector3.new(0, -0.0199999996, 0)
  479. Part23.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  480. Part23.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  481. Part23.Size = Vector3.new(2, 2.4000001, 3)
  482. Part23.CFrame = CFrame.new(-71.9994278, 9.00001144, 76.894783, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997171e-19, 0.000372457987, 1.61933762e-19, 0.99999994)
  483. Part23.BackSurface = Enum.SurfaceType.Weld
  484. Part23.BottomSurface = Enum.SurfaceType.Weld
  485. Part23.TopSurface = Enum.SurfaceType.Smooth
  486. Part23.Color = Color3.new(0.105882, 0.164706, 0.207843)
  487. Part23.Position = Vector3.new(-71.9994278, 9.00001144, 76.894783)
  488. Part23.Orientation = Vector3.new(0, -0.0199999996, 0)
  489. Part23.Color = Color3.new(0.105882, 0.164706, 0.207843)
  490. SpecialMesh24.Parent = Part23
  491. SpecialMesh24.MeshType = Enum.MeshType.Wedge
  492. Part25.Name = "Smooth Block Model"
  493. Part25.Parent = Model0
  494. Part25.BrickColor = BrickColor.new("Black")
  495. Part25.Rotation = Vector3.new(0, -0.0199999996, 0)
  496. Part25.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  497. Part25.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  498. Part25.Size = Vector3.new(2, 2.4000001, 1)
  499. Part25.CFrame = CFrame.new(-72.0001907, 9.00001144, 78.894783, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997184e-19, 0.000372457987, 1.61933749e-19, 0.99999994)
  500. Part25.BackSurface = Enum.SurfaceType.Weld
  501. Part25.BottomSurface = Enum.SurfaceType.Weld
  502. Part25.TopSurface = Enum.SurfaceType.Smooth
  503. Part25.Color = Color3.new(0.105882, 0.164706, 0.207843)
  504. Part25.Position = Vector3.new(-72.0001907, 9.00001144, 78.894783)
  505. Part25.Orientation = Vector3.new(0, -0.0199999996, 0)
  506. Part25.Color = Color3.new(0.105882, 0.164706, 0.207843)
  507. Part26.Name = "Smooth Block Model"
  508. Part26.Parent = Model0
  509. Part26.BrickColor = BrickColor.new("Dark stone grey")
  510. Part26.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  511. Part26.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  512. Part26.Velocity = Vector3.new(-0.0241864882, 561.335266, 59.4531593)
  513. Part26.Size = Vector3.new(2, 2.4000001, 2)
  514. Part26.CFrame = CFrame.new(-71.9989471, 12.4367971, 80.5308304, 0.999999642, 0.000197649715, -0.000852700497, -0.000247427321, 0.998271108, -0.0587769933, 0.000839608954, 0.0587771758, 0.99827069)
  515. Part26.BackSurface = Enum.SurfaceType.Weld
  516. Part26.BottomSurface = Enum.SurfaceType.Weld
  517. Part26.TopSurface = Enum.SurfaceType.Smooth
  518. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  519. Part26.Position = Vector3.new(-71.9989471, 12.4367971, 80.5308304)
  520. Part26.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  521. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  522. SpecialMesh27.Parent = Part26
  523. SpecialMesh27.MeshType = Enum.MeshType.Wedge
  524. Part28.Name = "Smooth Block Model"
  525. Part28.Parent = Model0
  526. Part28.BrickColor = BrickColor.new("Black")
  527. Part28.Rotation = Vector3.new(0, -0.0199999996, 0)
  528. Part28.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  529. Part28.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  530. Part28.Size = Vector3.new(8, 2.4000001, 18)
  531. Part28.CFrame = CFrame.new(-69.0011063, 4.2000103, 81.3959045, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997158e-19, 0.000372457987, 1.61933775e-19, 0.99999994)
  532. Part28.BottomSurface = Enum.SurfaceType.Smooth
  533. Part28.LeftSurface = Enum.SurfaceType.Weld
  534. Part28.RightSurface = Enum.SurfaceType.Weld
  535. Part28.TopSurface = Enum.SurfaceType.Weld
  536. Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
  537. Part28.Position = Vector3.new(-69.0011063, 4.2000103, 81.3959045)
  538. Part28.Orientation = Vector3.new(0, -0.0199999996, 0)
  539. Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
  540. Part29.Name = "Smooth Block Model"
  541. Part29.Parent = Model0
  542. Part29.BrickColor = BrickColor.new("Black")
  543. Part29.Rotation = Vector3.new(0, -0.0199999996, 0)
  544. Part29.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  545. Part29.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  546. Part29.Size = Vector3.new(8, 2.4000001, 3)
  547. Part29.CFrame = CFrame.new(-68.9983292, 6.60000992, 73.8959045, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997313e-19, 0.000372457987, 1.6193362e-19, 0.99999994)
  548. Part29.BackSurface = Enum.SurfaceType.Weld
  549. Part29.BottomSurface = Enum.SurfaceType.Smooth
  550. Part29.TopSurface = Enum.SurfaceType.Smooth
  551. Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  552. Part29.Position = Vector3.new(-68.9983292, 6.60000992, 73.8959045)
  553. Part29.Orientation = Vector3.new(0, -0.0199999996, 0)
  554. Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  555. SpecialMesh30.Parent = Part29
  556. SpecialMesh30.MeshType = Enum.MeshType.Wedge
  557. Part31.Name = "Smooth Block Model"
  558. Part31.Parent = Model0
  559. Part31.BrickColor = BrickColor.new("Black")
  560. Part31.Rotation = Vector3.new(-180, 0.0199999996, 180)
  561. Part31.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  562. Part31.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  563. Part31.Size = Vector3.new(8, 2.4000001, 4)
  564. Part31.CFrame = CFrame.new(-69.0037308, 9.00001144, 88.3959045, -0.99999994, -1.6823799e-19, 0.000372457987, -1.68177658e-19, 1, 1.61997171e-19, -0.000372457987, 1.61933762e-19, -0.99999994)
  565. Part31.BackSurface = Enum.SurfaceType.Weld
  566. Part31.BottomSurface = Enum.SurfaceType.Weld
  567. Part31.TopSurface = Enum.SurfaceType.Smooth
  568. Part31.Color = Color3.new(0.105882, 0.164706, 0.207843)
  569. Part31.Position = Vector3.new(-69.0037308, 9.00001144, 88.3959045)
  570. Part31.Orientation = Vector3.new(0, 179.979996, 0)
  571. Part31.Color = Color3.new(0.105882, 0.164706, 0.207843)
  572. SpecialMesh32.Parent = Part31
  573. SpecialMesh32.MeshType = Enum.MeshType.Wedge
  574. Part33.Name = "Smooth Block Model"
  575. Part33.Parent = Model0
  576. Part33.BrickColor = BrickColor.new("Dark stone grey")
  577. Part33.Rotation = Vector3.new(-176.62999, 0.049999997, -179.98999)
  578. Part33.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  579. Part33.Velocity = Vector3.new(-0.0188286118, 444.713745, 52.5695648)
  580. Part33.Size = Vector3.new(8, 2.4000001, 2)
  581. Part33.CFrame = CFrame.new(-69.0032196, 12.1421719, 85.5246887, -0.999999642, 0.000197649715, 0.000852700497, 0.000247427321, 0.998271108, 0.0587769933, -0.000839608954, 0.0587771758, -0.99827069)
  582. Part33.BackSurface = Enum.SurfaceType.Weld
  583. Part33.BottomSurface = Enum.SurfaceType.Weld
  584. Part33.TopSurface = Enum.SurfaceType.Smooth
  585. Part33.Color = Color3.new(0.388235, 0.372549, 0.384314)
  586. Part33.Position = Vector3.new(-69.0032196, 12.1421719, 85.5246887)
  587. Part33.Orientation = Vector3.new(-3.36999989, 179.949997, 0.00999999978)
  588. Part33.Color = Color3.new(0.388235, 0.372549, 0.384314)
  589. SpecialMesh34.Parent = Part33
  590. SpecialMesh34.MeshType = Enum.MeshType.Wedge
  591. Part35.Name = "Smooth Block Model"
  592. Part35.Parent = Model0
  593. Part35.BrickColor = BrickColor.new("Dark stone grey")
  594. Part35.Rotation = Vector3.new(-176.62999, 0.049999997, -179.98999)
  595. Part35.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  596. Part35.Velocity = Vector3.new(-0.021500919, 503.021515, 56.002594)
  597. Part35.Size = Vector3.new(8, 2.4000001, 3)
  598. Part35.CFrame = CFrame.new(-69.0010834, 12.2891111, 83.0290222, -0.999999642, 0.000197649715, 0.000852700497, 0.000247427321, 0.998271108, 0.0587769933, -0.000839608954, 0.0587771758, -0.99827069)
  599. Part35.BottomSurface = Enum.SurfaceType.Weld
  600. Part35.TopSurface = Enum.SurfaceType.Smooth
  601. Part35.Color = Color3.new(0.388235, 0.372549, 0.384314)
  602. Part35.Position = Vector3.new(-69.0010834, 12.2891111, 83.0290222)
  603. Part35.Orientation = Vector3.new(-3.36999989, 179.949997, 0.00999999978)
  604. Part35.Color = Color3.new(0.388235, 0.372549, 0.384314)
  605. Part36.Name = "Smooth Block Model"
  606. Part36.Parent = Model0
  607. Part36.BrickColor = BrickColor.new("Black")
  608. Part36.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  609. Part36.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  610. Part36.Velocity = Vector3.new(-0.0263112579, 607.975891, 62.1822968)
  611. Part36.Size = Vector3.new(2, 1.20000005, 6)
  612. Part36.CFrame = CFrame.new(-68.9972382, 12.5536127, 78.5368042, 0.999999642, 0.000197649671, -0.000852700497, -0.00024742735, 0.998271108, -0.0587769933, 0.000839608838, 0.0587771684, 0.998270571)
  613. Part36.BackSurface = Enum.SurfaceType.Weld
  614. Part36.BottomSurface = Enum.SurfaceType.Weld
  615. Part36.TopSurface = Enum.SurfaceType.Smooth
  616. Part36.Color = Color3.new(0.105882, 0.164706, 0.207843)
  617. Part36.Position = Vector3.new(-68.9972382, 12.5536127, 78.5368042)
  618. Part36.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  619. Part36.Color = Color3.new(0.105882, 0.164706, 0.207843)
  620. Part37.Name = "Smooth Block Model"
  621. Part37.Parent = Model0
  622. Part37.BrickColor = BrickColor.new("Black")
  623. Part37.Rotation = Vector3.new(0, -0.0199999996, 0)
  624. Part37.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  625. Part37.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  626. Part37.Size = Vector3.new(2, 2.4000001, 1)
  627. Part37.CFrame = CFrame.new(-66.0001755, 9.00001144, 78.8970337, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997132e-19, 0.000372457987, 1.61933801e-19, 0.99999994)
  628. Part37.BackSurface = Enum.SurfaceType.Weld
  629. Part37.BottomSurface = Enum.SurfaceType.Weld
  630. Part37.TopSurface = Enum.SurfaceType.Smooth
  631. Part37.Color = Color3.new(0.105882, 0.164706, 0.207843)
  632. Part37.Position = Vector3.new(-66.0001755, 9.00001144, 78.8970337)
  633. Part37.Orientation = Vector3.new(0, -0.0199999996, 0)
  634. Part37.Color = Color3.new(0.105882, 0.164706, 0.207843)
  635. Part38.Name = "Smooth Block Model"
  636. Part38.Parent = Model0
  637. Part38.BrickColor = BrickColor.new("Dark stone grey")
  638. Part38.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  639. Part38.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  640. Part38.Velocity = Vector3.new(-0.0241601355, 561.323608, 59.4183273)
  641. Part38.Size = Vector3.new(2, 2.4000001, 2)
  642. Part38.CFrame = CFrame.new(-65.9989548, 12.4353142, 80.5358658, 0.999999642, 0.000197649715, -0.000852700497, -0.000247427321, 0.998271108, -0.0587769933, 0.000839608954, 0.0587771758, 0.99827069)
  643. Part38.BackSurface = Enum.SurfaceType.Weld
  644. Part38.BottomSurface = Enum.SurfaceType.Weld
  645. Part38.TopSurface = Enum.SurfaceType.Smooth
  646. Part38.Color = Color3.new(0.388235, 0.372549, 0.384314)
  647. Part38.Position = Vector3.new(-65.9989548, 12.4353142, 80.5358658)
  648. Part38.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  649. Part38.Color = Color3.new(0.388235, 0.372549, 0.384314)
  650. SpecialMesh39.Parent = Part38
  651. SpecialMesh39.MeshType = Enum.MeshType.Wedge
  652. Part40.Name = "Smooth Block Model"
  653. Part40.Parent = Model0
  654. Part40.BrickColor = BrickColor.new("Black")
  655. Part40.Rotation = Vector3.new(180, -89.9799957, 180)
  656. Part40.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  657. Part40.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  658. Part40.Size = Vector3.new(24, 2.4000001, 5)
  659. Part40.CFrame = CFrame.new(-62.5011063, 4.20001078, 81.3983154, -0.000372457987, -1.6823799e-19, -0.99999994, -1.61997235e-19, 1, -1.68177658e-19, 0.99999994, 1.61933698e-19, -0.000372457987)
  660. Part40.BottomSurface = Enum.SurfaceType.Smooth
  661. Part40.TopSurface = Enum.SurfaceType.Smooth
  662. Part40.Color = Color3.new(0.105882, 0.164706, 0.207843)
  663. Part40.Position = Vector3.new(-62.5011063, 4.20001078, 81.3983154)
  664. Part40.Orientation = Vector3.new(0, -90.0199966, 0)
  665. Part40.Color = Color3.new(0.105882, 0.164706, 0.207843)
  666. SpecialMesh41.Parent = Part40
  667. SpecialMesh41.MeshType = Enum.MeshType.Torso
  668. Part42.Name = "Smooth Block Model"
  669. Part42.Parent = Model0
  670. Part42.BrickColor = BrickColor.new("Black")
  671. Part42.Rotation = Vector3.new(0, -0.0199999996, 0)
  672. Part42.RotVelocity = Vector3.new(1.07042091e-20, 9.1191745e-15, 1.11478525e-20)
  673. Part42.Velocity = Vector3.new(0.00145118148, 326.051239, -2.50513101)
  674. Part42.Size = Vector3.new(2, 2.4000001, 3)
  675. Part42.CFrame = CFrame.new(-65.9994354, 9.00001144, 76.8970337, 0.99999994, -1.6823799e-19, -0.000372457987, 1.68177658e-19, 1, -1.61997158e-19, 0.000372457987, 1.61933775e-19, 0.99999994)
  676. Part42.BackSurface = Enum.SurfaceType.Weld
  677. Part42.BottomSurface = Enum.SurfaceType.Weld
  678. Part42.TopSurface = Enum.SurfaceType.Smooth
  679. Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
  680. Part42.Position = Vector3.new(-65.9994354, 9.00001144, 76.8970337)
  681. Part42.Orientation = Vector3.new(0, -0.0199999996, 0)
  682. Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
  683. SpecialMesh43.Parent = Part42
  684. SpecialMesh43.MeshType = Enum.MeshType.Wedge
  685. Model44.Name = "Aim"
  686. Model44.Parent = Model0
  687. Model44.PrimaryPart = Part45
  688. Part45.Name = "Head"
  689. Part45.Parent = Model44
  690. Part45.BrickColor = BrickColor.new("Bright yellow")
  691. Part45.Transparency = 1
  692. Part45.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  693. Part45.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  694. Part45.Velocity = Vector3.new(-0.0328851417, 712.793335, 70.6941605)
  695. Part45.FormFactor = Enum.FormFactor.Plate
  696. Part45.Friction = 0
  697. Part45.Size = Vector3.new(2, 0.400000006, 1)
  698. Part45.CFrame = CFrame.new(-68.9933929, 12.9179344, 74.0504456, 0.999999642, 0.000197649613, -0.000852700497, -0.000247427408, 0.998271108, -0.0587769933, 0.000839608663, 0.0587771572, 0.998270392)
  699. Part45.BackSurface = Enum.SurfaceType.Weld
  700. Part45.TopSurface = Enum.SurfaceType.Smooth
  701. Part45.Color = Color3.new(0.960784, 0.803922, 0.188235)
  702. Part45.Position = Vector3.new(-68.9933929, 12.9179344, 74.0504456)
  703. Part45.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  704. Part45.Color = Color3.new(0.960784, 0.803922, 0.188235)
  705. SpecialMesh46.Parent = Part45
  706. SpecialMesh46.Scale = Vector3.new(1.25, 1.25, 1.25)
  707. SpecialMesh46.Scale = Vector3.new(1.25, 1.25, 1.25)
  708. Part47.Name = "Torso"
  709. Part47.Parent = Model44
  710. Part47.BrickColor = BrickColor.new("Bright red")
  711. Part47.Transparency = 1
  712. Part47.Rotation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  713. Part47.RotVelocity = Vector3.new(23.3635826, 3.04661226e-05, 0.0176690016)
  714. Part47.Velocity = Vector3.new(-0.0258305129, 713.342346, 61.364933)
  715. Part47.FormFactor = Enum.FormFactor.Plate
  716. Part47.Friction = 0
  717. Part47.Size = Vector3.new(2, 0.400000006, 1)
  718. Part47.CFrame = CFrame.new(-68.9934616, 12.5186281, 74.026947, 0.999999642, 0.000197649613, -0.000852700497, -0.000247427408, 0.998271108, -0.0587769933, 0.000839608663, 0.0587771572, 0.998270392)
  719. Part47.BackSurface = Enum.SurfaceType.Weld
  720. Part47.BottomSurface = Enum.SurfaceType.Smooth
  721. Part47.Color = Color3.new(0.768628, 0.156863, 0.109804)
  722. Part47.Position = Vector3.new(-68.9934616, 12.5186281, 74.026947)
  723. Part47.Orientation = Vector3.new(3.36999989, -0.049999997, -0.00999999978)
  724. Part47.Color = Color3.new(0.768628, 0.156863, 0.109804)
  725. Snap48.Name = "Neck"
  726. Snap48.Parent = Part47
  727. Snap48.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  728. Snap48.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  729. Motor49.Name = "Left Hip"
  730. Motor49.Parent = Part47
  731. Motor49.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  732. Motor49.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  733. Motor49.MaxVelocity = 0.10000000149012
  734. Motor50.Name = "Left Shoulder"
  735. Motor50.Parent = Part47
  736. Motor50.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  737. Motor50.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  738. Motor50.MaxVelocity = 0.15000000596046
  739. Motor51.Name = "Right Hip"
  740. Motor51.Parent = Part47
  741. Motor51.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  742. Motor51.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  743. Motor51.MaxVelocity = 0.10000000149012
  744. Motor52.Name = "Right Shoulder"
  745. Motor52.Parent = Part47
  746. Motor52.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  747. Motor52.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  748. Motor52.MaxVelocity = 0.15000000596046
  749. Humanoid53.Name = "Alien"
  750. Humanoid53.Parent = Model44
  751. Humanoid53.Torso = Part47
  752. BodyColors54.Parent = Model44
  753. BodyColors54.HeadColor = BrickColor.new("Bright yellow")
  754. BodyColors54.LeftArmColor = BrickColor.new("Medium stone grey")
  755. BodyColors54.LeftLegColor = BrickColor.new("Brick yellow")
  756. BodyColors54.RightArmColor = BrickColor.new("Medium stone grey")
  757. BodyColors54.RightLegColor = BrickColor.new("Brick yellow")
  758. BodyColors54.TorsoColor = BrickColor.new("Bright red")
  759. Script55.Parent = Model44
  760. table.insert(cors,sandbox(Script55,function()
  761. function findNearestTorso(pos)
  762. local list = game.Workspace:children()
  763. local torso = nil
  764. local dist = 1000
  765. local temp = nil
  766. local human = nil
  767. local temp2 = nil
  768. for x = 1, #list do
  769. temp2 = list[x]
  770. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  771. temp = temp2:findFirstChild("Torso")
  772. human = temp2:findFirstChild("Humanoid")
  773. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  774. if (temp.Position - pos).magnitude < dist then
  775. torso = temp
  776. dist = (temp.Position - pos).magnitude
  777. end
  778. end
  779. end
  780. end
  781. return torso
  782. end
  783.  
  784.  
  785. while true do
  786. wait(1)
  787. local target = findNearestTorso(script.Parent.Torso.Position)
  788. if target ~= nil then
  789. script.Parent.Alien:MoveTo(target.Position, target)
  790. end
  791. end
  792.  
  793. end))
  794. IntValue56.Name = "Mode"
  795. IntValue56.Parent = Model44
  796. Script57.Name = "KO"
  797. Script57.Parent = Model0
  798. table.insert(cors,sandbox(Script57,function()
  799. local Humanoid = script.Parent.Alien -- Or Zombie Or Whatever
  800. function PwntX_X()
  801. local tag = Humanoid:findFirstChild("creator")
  802. if tag ~= nil then
  803. if tag.Value ~= nil then
  804. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  805. if Leaderstats ~= nil then
  806. Leaderstats.KOs.Value = Leaderstats.KOs.Value + 3
  807. wait(0.1)
  808. end
  809. end
  810. end
  811. end
  812. Humanoid.Died:connect(PwntX_X)
  813. end))
  814. Script58.Name = "GunRemove"
  815. Script58.Parent = Model0
  816. table.insert(cors,sandbox(Script58,function()
  817. local Humanoid = script.Parent.Alien -- Or Zombie Or Whatever
  818. function PwntX_X()
  819. local tag = Humanoid:findFirstChild("creator")
  820. if tag ~= nil then
  821. if tag.Value ~= nil then
  822. Humanoid.Parent.Sphere:remove()
  823. wait(0.1)
  824. script:remove()
  825. end
  826. end
  827. end
  828. Humanoid.Died:connect(PwntX_X)
  829. end))
  830. Script59.Name = "GunRemove"
  831. Script59.Parent = Model0
  832. table.insert(cors,sandbox(Script59,function()
  833. local Humanoid = script.Parent.Alien -- Or Zombie Or Whatever
  834. function PwntX_X()
  835. Humanoid.Parent.Sphere:remove()
  836. wait(0.1)
  837. script:remove()
  838. end
  839. Humanoid.Died:connect(PwntX_X)
  840. end))
  841. Script60.Name = "RocketScript"
  842. Script60.Parent = Model0
  843. Script60.Disabled = true
  844. table.insert(cors,sandbox(Script60,function()
  845. r = game:service("RunService")
  846.  
  847. shaft = script.Parent
  848. position = shaft.Position
  849.  
  850. script.Parent.Explosion.PlayOnRemove = false -- play explosion sound when projectile removed from game
  851.  
  852. function fly()
  853. direction = shaft.CFrame.lookVector
  854. position = position + direction
  855. error = position - shaft.Position
  856. shaft.Velocity = 7*error
  857. end
  858.  
  859. function blow()
  860. swoosh:stop()
  861. explosion = Instance.new("Explosion")
  862. explosion.Position = shaft.Position
  863.  
  864.  
  865. -- find instigator tag
  866. local creator = script.Parent:findFirstChild("creator")
  867. if creator ~= nil then
  868. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  869. end
  870.  
  871. explosion.Parent = game.Workspace
  872. connection:disconnect()
  873. wait(.1)
  874. shaft:remove()
  875. end
  876.  
  877. function onPlayerBlownUp(part, distance, creator)
  878.  
  879. if part.Name == "Head" then
  880.  
  881. local humanoid = part.Parent:findFirstChild("Humanoid")
  882. tagHumanoid(humanoid, creator)
  883. end
  884. end
  885.  
  886. function tagHumanoid(humanoid, creator)
  887. -- tag does not need to expire iff all explosions lethal
  888.  
  889. if creator ~= nil then
  890. local new_tag = creator:clone()
  891. new_tag.Parent = humanoid
  892.  
  893. end
  894. end
  895.  
  896. function untagHumanoid(humanoid)
  897. if humanoid ~= nil then
  898. local tag = humanoid:findFirstChild("creator")
  899. if tag ~= nil then
  900.  
  901. tag.Parent = nil
  902. end
  903. end
  904. end
  905.  
  906. t, s = r.Stepped:wait()
  907.  
  908. swoosh = script.Parent.Swoosh
  909.  
  910. d = t + 10.0 - s
  911. connection = shaft.Touched:connect(blow)
  912.  
  913. while t < d do
  914. fly()
  915. t = r.Stepped:wait()
  916. end
  917.  
  918. -- at max range
  919. script.Parent.Explosion.PlayOnRemove = false
  920. shaft:remove()
  921.  
  922. end))
  923. for i,v in pairs(mas:GetChildren()) do
  924. v.Parent = workspace
  925. pcall(function() v:MakeJoints() end)
  926. end
  927. mas:Destroy()
  928. for i,v in pairs(cors) do
  929. spawn(function()
  930. pcall(v)
  931. end)
  932. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement