Advertisement
Diamond_Nicholas

looking at you

Mar 3rd, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.38 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(Enum,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Model0 = Instance.new("Model")
  18. Part1 = Instance.new("Part")
  19. BodyGyro2 = Instance.new("BodyGyro")
  20. BodyPosition3 = Instance.new("BodyPosition")
  21. Script4 = Instance.new("Script")
  22. NumberValue5 = Instance.new("NumberValue")
  23. Decal6 = Instance.new("Decal")
  24. Model7 = Instance.new("Model")
  25. Part8 = Instance.new("Part")
  26. BodyGyro9 = Instance.new("BodyGyro")
  27. BodyPosition10 = Instance.new("BodyPosition")
  28. Script11 = Instance.new("Script")
  29. NumberValue12 = Instance.new("NumberValue")
  30. Decal13 = Instance.new("Decal")
  31. Model14 = Instance.new("Model")
  32. Part15 = Instance.new("Part")
  33. BodyGyro16 = Instance.new("BodyGyro")
  34. BodyPosition17 = Instance.new("BodyPosition")
  35. Script18 = Instance.new("Script")
  36. NumberValue19 = Instance.new("NumberValue")
  37. Decal20 = Instance.new("Decal")
  38. Model21 = Instance.new("Model")
  39. Part22 = Instance.new("Part")
  40. BodyGyro23 = Instance.new("BodyGyro")
  41. BodyPosition24 = Instance.new("BodyPosition")
  42. Script25 = Instance.new("Script")
  43. NumberValue26 = Instance.new("NumberValue")
  44. Decal27 = Instance.new("Decal")
  45. Model28 = Instance.new("Model")
  46. Part29 = Instance.new("Part")
  47. BodyGyro30 = Instance.new("BodyGyro")
  48. BodyPosition31 = Instance.new("BodyPosition")
  49. Script32 = Instance.new("Script")
  50. NumberValue33 = Instance.new("NumberValue")
  51. Decal34 = Instance.new("Decal")
  52. Model35 = Instance.new("Model")
  53. Part36 = Instance.new("Part")
  54. BodyGyro37 = Instance.new("BodyGyro")
  55. BodyPosition38 = Instance.new("BodyPosition")
  56. Script39 = Instance.new("Script")
  57. NumberValue40 = Instance.new("NumberValue")
  58. Decal41 = Instance.new("Decal")
  59. Model42 = Instance.new("Model")
  60. Part43 = Instance.new("Part")
  61. BodyGyro44 = Instance.new("BodyGyro")
  62. BodyPosition45 = Instance.new("BodyPosition")
  63. Script46 = Instance.new("Script")
  64. NumberValue47 = Instance.new("NumberValue")
  65. Decal48 = Instance.new("Decal")
  66. Model49 = Instance.new("Model")
  67. Part50 = Instance.new("Part")
  68. BodyGyro51 = Instance.new("BodyGyro")
  69. BodyPosition52 = Instance.new("BodyPosition")
  70. Script53 = Instance.new("Script")
  71. NumberValue54 = Instance.new("NumberValue")
  72. Decal55 = Instance.new("Decal")
  73. Model56 = Instance.new("Model")
  74. Part57 = Instance.new("Part")
  75. BodyGyro58 = Instance.new("BodyGyro")
  76. BodyPosition59 = Instance.new("BodyPosition")
  77. Script60 = Instance.new("Script")
  78. NumberValue61 = Instance.new("NumberValue")
  79. Decal62 = Instance.new("Decal")
  80. Model63 = Instance.new("Model")
  81. Part64 = Instance.new("Part")
  82. BodyGyro65 = Instance.new("BodyGyro")
  83. BodyPosition66 = Instance.new("BodyPosition")
  84. Script67 = Instance.new("Script")
  85. NumberValue68 = Instance.new("NumberValue")
  86. Decal69 = Instance.new("Decal")
  87. Model70 = Instance.new("Model")
  88. Part71 = Instance.new("Part")
  89. BodyGyro72 = Instance.new("BodyGyro")
  90. BodyPosition73 = Instance.new("BodyPosition")
  91. Script74 = Instance.new("Script")
  92. NumberValue75 = Instance.new("NumberValue")
  93. Decal76 = Instance.new("Decal")
  94. Model77 = Instance.new("Model")
  95. Part78 = Instance.new("Part")
  96. BodyGyro79 = Instance.new("BodyGyro")
  97. BodyPosition80 = Instance.new("BodyPosition")
  98. Script81 = Instance.new("Script")
  99. NumberValue82 = Instance.new("NumberValue")
  100. Decal83 = Instance.new("Decal")
  101. Model84 = Instance.new("Model")
  102. Part85 = Instance.new("Part")
  103. BodyGyro86 = Instance.new("BodyGyro")
  104. BodyPosition87 = Instance.new("BodyPosition")
  105. Script88 = Instance.new("Script")
  106. NumberValue89 = Instance.new("NumberValue")
  107. Decal90 = Instance.new("Decal")
  108. Model91 = Instance.new("Model")
  109. Part92 = Instance.new("Part")
  110. BodyGyro93 = Instance.new("BodyGyro")
  111. BodyPosition94 = Instance.new("BodyPosition")
  112. Script95 = Instance.new("Script")
  113. NumberValue96 = Instance.new("NumberValue")
  114. Decal97 = Instance.new("Decal")
  115. Model98 = Instance.new("Model")
  116. Part99 = Instance.new("Part")
  117. BodyGyro100 = Instance.new("BodyGyro")
  118. BodyPosition101 = Instance.new("BodyPosition")
  119. Script102 = Instance.new("Script")
  120. NumberValue103 = Instance.new("NumberValue")
  121. Decal104 = Instance.new("Decal")
  122. Model105 = Instance.new("Model")
  123. Part106 = Instance.new("Part")
  124. BodyGyro107 = Instance.new("BodyGyro")
  125. BodyPosition108 = Instance.new("BodyPosition")
  126. Script109 = Instance.new("Script")
  127. NumberValue110 = Instance.new("NumberValue")
  128. Decal111 = Instance.new("Decal")
  129. Model112 = Instance.new("Model")
  130. Part113 = Instance.new("Part")
  131. BodyGyro114 = Instance.new("BodyGyro")
  132. BodyPosition115 = Instance.new("BodyPosition")
  133. Script116 = Instance.new("Script")
  134. NumberValue117 = Instance.new("NumberValue")
  135. Decal118 = Instance.new("Decal")
  136. Model119 = Instance.new("Model")
  137. Part120 = Instance.new("Part")
  138. BodyGyro121 = Instance.new("BodyGyro")
  139. BodyPosition122 = Instance.new("BodyPosition")
  140. Script123 = Instance.new("Script")
  141. NumberValue124 = Instance.new("NumberValue")
  142. Decal125 = Instance.new("Decal")
  143. Model126 = Instance.new("Model")
  144. Part127 = Instance.new("Part")
  145. BodyGyro128 = Instance.new("BodyGyro")
  146. BodyPosition129 = Instance.new("BodyPosition")
  147. Script130 = Instance.new("Script")
  148. NumberValue131 = Instance.new("NumberValue")
  149. Decal132 = Instance.new("Decal")
  150. Model0.Parent = mas
  151. Part1.Name = "Head"
  152. Part1.Parent = Model0
  153. Part1.CFrame = CFrame.new(13.2279701, 75.9687653, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  154. Part1.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  155. Part1.Position = Vector3.new(13.2279701, 75.9687653, 87.9855957)
  156. Part1.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  157. Part1.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  158. Part1.BottomSurface = Enum.SurfaceType.Smooth
  159. Part1.Material = Enum.Material.ForceField
  160. Part1.TopSurface = Enum.SurfaceType.Smooth
  161. Part1.Shape = Enum.PartType.Ball
  162. BodyGyro2.Parent = Part1
  163. BodyPosition3.Parent = Part1
  164. Script4.Name = "Aim"
  165. Script4.Parent = Part1
  166. table.insert(cors,sandbox(Script4,function()
  167. bin = script.Parent
  168.  
  169. function move(target)
  170. local dir = (target.Position - bin.Position).unit
  171. local spawnPos = bin.Position
  172. local pos = spawnPos + (dir * 1)
  173. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  174. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  175. end
  176.  
  177. function moveTo(target)
  178. bin.BodyPosition.position = target.Position
  179. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  180. end
  181.  
  182. function findNearestTorso(pos)
  183. local list = game.Workspace:GetChildren()
  184. local torso = nil
  185. local dist = 1000
  186. local temp = nil
  187. local human = nil
  188. local temp2 = nil
  189. for x = 1, #list do
  190. temp2 = list[x]
  191. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  192. temp = temp2:findFirstChild("Head")
  193. human = temp2:findFirstChild("Humanoid")
  194. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  195. if (temp.Position - pos).magnitude < dist then
  196. torso = temp
  197. dist = (temp.Position - pos).magnitude
  198. end
  199. end
  200. end
  201. end
  202. return torso
  203. end
  204.  
  205. while true do
  206. local torso = findNearestTorso(bin.Position)
  207. if torso~=nil then
  208. move(torso)
  209. moveTo(torso)
  210. end
  211. wait()
  212. end
  213.  
  214.  
  215. end))
  216. NumberValue5.Name = "Speed"
  217. NumberValue5.Parent = Part1
  218. NumberValue5.Value = 0.2
  219. Decal6.Name = "ROBLOX Old Default Face"
  220. Decal6.Parent = Part1
  221. Decal6.Texture = "http://www.roblox.com/asset/?id=138437944"
  222. Model7.Parent = mas
  223. Part8.Name = "Head"
  224. Part8.Parent = Model7
  225. Part8.CFrame = CFrame.new(13.2279701, 78.0087738, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  226. Part8.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  227. Part8.Position = Vector3.new(13.2279701, 78.0087738, 87.9855957)
  228. Part8.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  229. Part8.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  230. Part8.BottomSurface = Enum.SurfaceType.Smooth
  231. Part8.Material = Enum.Material.ForceField
  232. Part8.TopSurface = Enum.SurfaceType.Smooth
  233. Part8.Shape = Enum.PartType.Ball
  234. BodyGyro9.Parent = Part8
  235. BodyPosition10.Parent = Part8
  236. Script11.Name = "Aim"
  237. Script11.Parent = Part8
  238. table.insert(cors,sandbox(Script11,function()
  239. bin = script.Parent
  240.  
  241. function move(target)
  242. local dir = (target.Position - bin.Position).unit
  243. local spawnPos = bin.Position
  244. local pos = spawnPos + (dir * 1)
  245. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  246. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  247. end
  248.  
  249. function moveTo(target)
  250. bin.BodyPosition.position = target.Position
  251. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  252. end
  253.  
  254. function findNearestTorso(pos)
  255. local list = game.Workspace:GetChildren()
  256. local torso = nil
  257. local dist = 1000
  258. local temp = nil
  259. local human = nil
  260. local temp2 = nil
  261. for x = 1, #list do
  262. temp2 = list[x]
  263. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  264. temp = temp2:findFirstChild("Head")
  265. human = temp2:findFirstChild("Humanoid")
  266. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  267. if (temp.Position - pos).magnitude < dist then
  268. torso = temp
  269. dist = (temp.Position - pos).magnitude
  270. end
  271. end
  272. end
  273. end
  274. return torso
  275. end
  276.  
  277. while true do
  278. local torso = findNearestTorso(bin.Position)
  279. if torso~=nil then
  280. move(torso)
  281. moveTo(torso)
  282. end
  283. wait()
  284. end
  285.  
  286.  
  287. end))
  288. NumberValue12.Name = "Speed"
  289. NumberValue12.Parent = Part8
  290. NumberValue12.Value = 0.2
  291. Decal13.Name = "ROBLOX Old Default Face"
  292. Decal13.Parent = Part8
  293. Decal13.Texture = "http://www.roblox.com/asset/?id=138437944"
  294. Model14.Parent = mas
  295. Part15.Name = "Head"
  296. Part15.Parent = Model14
  297. Part15.CFrame = CFrame.new(13.2279701, 82.0888443, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  298. Part15.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  299. Part15.Position = Vector3.new(13.2279701, 82.0888443, 87.9855957)
  300. Part15.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  301. Part15.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  302. Part15.BottomSurface = Enum.SurfaceType.Smooth
  303. Part15.Material = Enum.Material.ForceField
  304. Part15.TopSurface = Enum.SurfaceType.Smooth
  305. Part15.Shape = Enum.PartType.Ball
  306. BodyGyro16.Parent = Part15
  307. BodyPosition17.Parent = Part15
  308. Script18.Name = "Aim"
  309. Script18.Parent = Part15
  310. table.insert(cors,sandbox(Script18,function()
  311. bin = script.Parent
  312.  
  313. function move(target)
  314. local dir = (target.Position - bin.Position).unit
  315. local spawnPos = bin.Position
  316. local pos = spawnPos + (dir * 1)
  317. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  318. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  319. end
  320.  
  321. function moveTo(target)
  322. bin.BodyPosition.position = target.Position
  323. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  324. end
  325.  
  326. function findNearestTorso(pos)
  327. local list = game.Workspace:GetChildren()
  328. local torso = nil
  329. local dist = 1000
  330. local temp = nil
  331. local human = nil
  332. local temp2 = nil
  333. for x = 1, #list do
  334. temp2 = list[x]
  335. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  336. temp = temp2:findFirstChild("Head")
  337. human = temp2:findFirstChild("Humanoid")
  338. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  339. if (temp.Position - pos).magnitude < dist then
  340. torso = temp
  341. dist = (temp.Position - pos).magnitude
  342. end
  343. end
  344. end
  345. end
  346. return torso
  347. end
  348.  
  349. while true do
  350. local torso = findNearestTorso(bin.Position)
  351. if torso~=nil then
  352. move(torso)
  353. moveTo(torso)
  354. end
  355. wait()
  356. end
  357.  
  358.  
  359. end))
  360. NumberValue19.Name = "Speed"
  361. NumberValue19.Parent = Part15
  362. NumberValue19.Value = 0.2
  363. Decal20.Name = "ROBLOX Old Default Face"
  364. Decal20.Parent = Part15
  365. Decal20.Texture = "http://www.roblox.com/asset/?id=138437944"
  366. Model21.Parent = mas
  367. Part22.Name = "Head"
  368. Part22.Parent = Model21
  369. Part22.CFrame = CFrame.new(13.2279701, 90.2489624, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  370. Part22.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  371. Part22.Position = Vector3.new(13.2279701, 90.2489624, 87.9855957)
  372. Part22.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  373. Part22.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  374. Part22.BottomSurface = Enum.SurfaceType.Smooth
  375. Part22.Material = Enum.Material.ForceField
  376. Part22.TopSurface = Enum.SurfaceType.Smooth
  377. Part22.Shape = Enum.PartType.Ball
  378. BodyGyro23.Parent = Part22
  379. BodyPosition24.Parent = Part22
  380. Script25.Name = "Aim"
  381. Script25.Parent = Part22
  382. table.insert(cors,sandbox(Script25,function()
  383. bin = script.Parent
  384.  
  385. function move(target)
  386. local dir = (target.Position - bin.Position).unit
  387. local spawnPos = bin.Position
  388. local pos = spawnPos + (dir * 1)
  389. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  390. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  391. end
  392.  
  393. function moveTo(target)
  394. bin.BodyPosition.position = target.Position
  395. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  396. end
  397.  
  398. function findNearestTorso(pos)
  399. local list = game.Workspace:GetChildren()
  400. local torso = nil
  401. local dist = 1000
  402. local temp = nil
  403. local human = nil
  404. local temp2 = nil
  405. for x = 1, #list do
  406. temp2 = list[x]
  407. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  408. temp = temp2:findFirstChild("Head")
  409. human = temp2:findFirstChild("Humanoid")
  410. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  411. if (temp.Position - pos).magnitude < dist then
  412. torso = temp
  413. dist = (temp.Position - pos).magnitude
  414. end
  415. end
  416. end
  417. end
  418. return torso
  419. end
  420.  
  421. while true do
  422. local torso = findNearestTorso(bin.Position)
  423. if torso~=nil then
  424. move(torso)
  425. moveTo(torso)
  426. end
  427. wait()
  428. end
  429.  
  430.  
  431. end))
  432. NumberValue26.Name = "Speed"
  433. NumberValue26.Parent = Part22
  434. NumberValue26.Value = 0.2
  435. Decal27.Name = "ROBLOX Old Default Face"
  436. Decal27.Parent = Part22
  437. Decal27.Texture = "http://www.roblox.com/asset/?id=138437944"
  438. Model28.Parent = mas
  439. Part29.Name = "Head"
  440. Part29.Parent = Model28
  441. Part29.CFrame = CFrame.new(13.2279701, 88.2089539, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  442. Part29.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  443. Part29.Position = Vector3.new(13.2279701, 88.2089539, 87.9855957)
  444. Part29.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  445. Part29.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  446. Part29.BottomSurface = Enum.SurfaceType.Smooth
  447. Part29.Material = Enum.Material.ForceField
  448. Part29.TopSurface = Enum.SurfaceType.Smooth
  449. Part29.Shape = Enum.PartType.Ball
  450. BodyGyro30.Parent = Part29
  451. BodyPosition31.Parent = Part29
  452. Script32.Name = "Aim"
  453. Script32.Parent = Part29
  454. table.insert(cors,sandbox(Script32,function()
  455. bin = script.Parent
  456.  
  457. function move(target)
  458. local dir = (target.Position - bin.Position).unit
  459. local spawnPos = bin.Position
  460. local pos = spawnPos + (dir * 1)
  461. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  462. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  463. end
  464.  
  465. function moveTo(target)
  466. bin.BodyPosition.position = target.Position
  467. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  468. end
  469.  
  470. function findNearestTorso(pos)
  471. local list = game.Workspace:GetChildren()
  472. local torso = nil
  473. local dist = 1000
  474. local temp = nil
  475. local human = nil
  476. local temp2 = nil
  477. for x = 1, #list do
  478. temp2 = list[x]
  479. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  480. temp = temp2:findFirstChild("Head")
  481. human = temp2:findFirstChild("Humanoid")
  482. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  483. if (temp.Position - pos).magnitude < dist then
  484. torso = temp
  485. dist = (temp.Position - pos).magnitude
  486. end
  487. end
  488. end
  489. end
  490. return torso
  491. end
  492.  
  493. while true do
  494. local torso = findNearestTorso(bin.Position)
  495. if torso~=nil then
  496. move(torso)
  497. moveTo(torso)
  498. end
  499. wait()
  500. end
  501.  
  502.  
  503. end))
  504. NumberValue33.Name = "Speed"
  505. NumberValue33.Parent = Part29
  506. NumberValue33.Value = 0.2
  507. Decal34.Name = "ROBLOX Old Default Face"
  508. Decal34.Parent = Part29
  509. Decal34.Texture = "http://www.roblox.com/asset/?id=138437944"
  510. Model35.Parent = mas
  511. Part36.Name = "Head"
  512. Part36.Parent = Model35
  513. Part36.CFrame = CFrame.new(13.2279701, 92.2890015, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  514. Part36.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  515. Part36.Position = Vector3.new(13.2279701, 92.2890015, 87.9855957)
  516. Part36.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  517. Part36.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  518. Part36.BottomSurface = Enum.SurfaceType.Smooth
  519. Part36.Material = Enum.Material.ForceField
  520. Part36.TopSurface = Enum.SurfaceType.Smooth
  521. Part36.Shape = Enum.PartType.Ball
  522. BodyGyro37.Parent = Part36
  523. BodyPosition38.Parent = Part36
  524. Script39.Name = "Aim"
  525. Script39.Parent = Part36
  526. table.insert(cors,sandbox(Script39,function()
  527. bin = script.Parent
  528.  
  529. function move(target)
  530. local dir = (target.Position - bin.Position).unit
  531. local spawnPos = bin.Position
  532. local pos = spawnPos + (dir * 1)
  533. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  534. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  535. end
  536.  
  537. function moveTo(target)
  538. bin.BodyPosition.position = target.Position
  539. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  540. end
  541.  
  542. function findNearestTorso(pos)
  543. local list = game.Workspace:GetChildren()
  544. local torso = nil
  545. local dist = 1000
  546. local temp = nil
  547. local human = nil
  548. local temp2 = nil
  549. for x = 1, #list do
  550. temp2 = list[x]
  551. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  552. temp = temp2:findFirstChild("Head")
  553. human = temp2:findFirstChild("Humanoid")
  554. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  555. if (temp.Position - pos).magnitude < dist then
  556. torso = temp
  557. dist = (temp.Position - pos).magnitude
  558. end
  559. end
  560. end
  561. end
  562. return torso
  563. end
  564.  
  565. while true do
  566. local torso = findNearestTorso(bin.Position)
  567. if torso~=nil then
  568. move(torso)
  569. moveTo(torso)
  570. end
  571. wait()
  572. end
  573.  
  574.  
  575. end))
  576. NumberValue40.Name = "Speed"
  577. NumberValue40.Parent = Part36
  578. NumberValue40.Value = 0.2
  579. Decal41.Name = "ROBLOX Old Default Face"
  580. Decal41.Parent = Part36
  581. Decal41.Texture = "http://www.roblox.com/asset/?id=138437944"
  582. Model42.Parent = mas
  583. Part43.Name = "Head"
  584. Part43.Parent = Model42
  585. Part43.CFrame = CFrame.new(13.2279701, 71.8887024, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  586. Part43.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  587. Part43.Position = Vector3.new(13.2279701, 71.8887024, 87.9855957)
  588. Part43.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  589. Part43.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  590. Part43.BottomSurface = Enum.SurfaceType.Smooth
  591. Part43.Material = Enum.Material.ForceField
  592. Part43.TopSurface = Enum.SurfaceType.Smooth
  593. Part43.Shape = Enum.PartType.Ball
  594. BodyGyro44.Parent = Part43
  595. BodyPosition45.Parent = Part43
  596. Script46.Name = "Aim"
  597. Script46.Parent = Part43
  598. table.insert(cors,sandbox(Script46,function()
  599. bin = script.Parent
  600.  
  601. function move(target)
  602. local dir = (target.Position - bin.Position).unit
  603. local spawnPos = bin.Position
  604. local pos = spawnPos + (dir * 1)
  605. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  606. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  607. end
  608.  
  609. function moveTo(target)
  610. bin.BodyPosition.position = target.Position
  611. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  612. end
  613.  
  614. function findNearestTorso(pos)
  615. local list = game.Workspace:GetChildren()
  616. local torso = nil
  617. local dist = 1000
  618. local temp = nil
  619. local human = nil
  620. local temp2 = nil
  621. for x = 1, #list do
  622. temp2 = list[x]
  623. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  624. temp = temp2:findFirstChild("Head")
  625. human = temp2:findFirstChild("Humanoid")
  626. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  627. if (temp.Position - pos).magnitude < dist then
  628. torso = temp
  629. dist = (temp.Position - pos).magnitude
  630. end
  631. end
  632. end
  633. end
  634. return torso
  635. end
  636.  
  637. while true do
  638. local torso = findNearestTorso(bin.Position)
  639. if torso~=nil then
  640. move(torso)
  641. moveTo(torso)
  642. end
  643. wait()
  644. end
  645.  
  646.  
  647. end))
  648. NumberValue47.Name = "Speed"
  649. NumberValue47.Parent = Part43
  650. NumberValue47.Value = 0.2
  651. Decal48.Name = "ROBLOX Old Default Face"
  652. Decal48.Parent = Part43
  653. Decal48.Texture = "http://www.roblox.com/asset/?id=138437944"
  654. Model49.Parent = mas
  655. Part50.Name = "Head"
  656. Part50.Parent = Model49
  657. Part50.CFrame = CFrame.new(13.2279701, 69.8486938, 87.9855881, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  658. Part50.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  659. Part50.Position = Vector3.new(13.2279701, 69.8486938, 87.9855881)
  660. Part50.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  661. Part50.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  662. Part50.BottomSurface = Enum.SurfaceType.Smooth
  663. Part50.Material = Enum.Material.ForceField
  664. Part50.TopSurface = Enum.SurfaceType.Smooth
  665. Part50.Shape = Enum.PartType.Ball
  666. BodyGyro51.Parent = Part50
  667. BodyPosition52.Parent = Part50
  668. Script53.Name = "Aim"
  669. Script53.Parent = Part50
  670. table.insert(cors,sandbox(Script53,function()
  671. bin = script.Parent
  672.  
  673. function move(target)
  674. local dir = (target.Position - bin.Position).unit
  675. local spawnPos = bin.Position
  676. local pos = spawnPos + (dir * 1)
  677. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  678. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  679. end
  680.  
  681. function moveTo(target)
  682. bin.BodyPosition.position = target.Position
  683. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  684. end
  685.  
  686. function findNearestTorso(pos)
  687. local list = game.Workspace:GetChildren()
  688. local torso = nil
  689. local dist = 1000
  690. local temp = nil
  691. local human = nil
  692. local temp2 = nil
  693. for x = 1, #list do
  694. temp2 = list[x]
  695. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  696. temp = temp2:findFirstChild("Head")
  697. human = temp2:findFirstChild("Humanoid")
  698. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  699. if (temp.Position - pos).magnitude < dist then
  700. torso = temp
  701. dist = (temp.Position - pos).magnitude
  702. end
  703. end
  704. end
  705. end
  706. return torso
  707. end
  708.  
  709. while true do
  710. local torso = findNearestTorso(bin.Position)
  711. if torso~=nil then
  712. move(torso)
  713. moveTo(torso)
  714. end
  715. wait()
  716. end
  717.  
  718.  
  719. end))
  720. NumberValue54.Name = "Speed"
  721. NumberValue54.Parent = Part50
  722. NumberValue54.Value = 0.2
  723. Decal55.Name = "ROBLOX Old Default Face"
  724. Decal55.Parent = Part50
  725. Decal55.Texture = "http://www.roblox.com/asset/?id=138437944"
  726. Model56.Parent = mas
  727. Part57.Name = "Head"
  728. Part57.Parent = Model56
  729. Part57.CFrame = CFrame.new(13.2279701, 73.9287262, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  730. Part57.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  731. Part57.Position = Vector3.new(13.2279701, 73.9287262, 87.9855957)
  732. Part57.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  733. Part57.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  734. Part57.BottomSurface = Enum.SurfaceType.Smooth
  735. Part57.Material = Enum.Material.ForceField
  736. Part57.TopSurface = Enum.SurfaceType.Smooth
  737. Part57.Shape = Enum.PartType.Ball
  738. BodyGyro58.Parent = Part57
  739. BodyPosition59.Parent = Part57
  740. Script60.Name = "Aim"
  741. Script60.Parent = Part57
  742. table.insert(cors,sandbox(Script60,function()
  743. bin = script.Parent
  744.  
  745. function move(target)
  746. local dir = (target.Position - bin.Position).unit
  747. local spawnPos = bin.Position
  748. local pos = spawnPos + (dir * 1)
  749. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  750. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  751. end
  752.  
  753. function moveTo(target)
  754. bin.BodyPosition.position = target.Position
  755. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  756. end
  757.  
  758. function findNearestTorso(pos)
  759. local list = game.Workspace:GetChildren()
  760. local torso = nil
  761. local dist = 1000
  762. local temp = nil
  763. local human = nil
  764. local temp2 = nil
  765. for x = 1, #list do
  766. temp2 = list[x]
  767. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  768. temp = temp2:findFirstChild("Head")
  769. human = temp2:findFirstChild("Humanoid")
  770. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  771. if (temp.Position - pos).magnitude < dist then
  772. torso = temp
  773. dist = (temp.Position - pos).magnitude
  774. end
  775. end
  776. end
  777. end
  778. return torso
  779. end
  780.  
  781. while true do
  782. local torso = findNearestTorso(bin.Position)
  783. if torso~=nil then
  784. move(torso)
  785. moveTo(torso)
  786. end
  787. wait()
  788. end
  789.  
  790.  
  791. end))
  792. NumberValue61.Name = "Speed"
  793. NumberValue61.Parent = Part57
  794. NumberValue61.Value = 0.2
  795. Decal62.Name = "ROBLOX Old Default Face"
  796. Decal62.Parent = Part57
  797. Decal62.Texture = "http://www.roblox.com/asset/?id=138437944"
  798. Model63.Parent = mas
  799. Part64.Name = "Head"
  800. Part64.Parent = Model63
  801. Part64.CFrame = CFrame.new(13.2279701, 94.3290329, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  802. Part64.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  803. Part64.Position = Vector3.new(13.2279701, 94.3290329, 87.9855957)
  804. Part64.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  805. Part64.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  806. Part64.BottomSurface = Enum.SurfaceType.Smooth
  807. Part64.Material = Enum.Material.ForceField
  808. Part64.TopSurface = Enum.SurfaceType.Smooth
  809. Part64.Shape = Enum.PartType.Ball
  810. BodyGyro65.Parent = Part64
  811. BodyPosition66.Parent = Part64
  812. Script67.Name = "Aim"
  813. Script67.Parent = Part64
  814. table.insert(cors,sandbox(Script67,function()
  815. bin = script.Parent
  816.  
  817. function move(target)
  818. local dir = (target.Position - bin.Position).unit
  819. local spawnPos = bin.Position
  820. local pos = spawnPos + (dir * 1)
  821. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  822. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  823. end
  824.  
  825. function moveTo(target)
  826. bin.BodyPosition.position = target.Position
  827. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  828. end
  829.  
  830. function findNearestTorso(pos)
  831. local list = game.Workspace:GetChildren()
  832. local torso = nil
  833. local dist = 1000
  834. local temp = nil
  835. local human = nil
  836. local temp2 = nil
  837. for x = 1, #list do
  838. temp2 = list[x]
  839. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  840. temp = temp2:findFirstChild("Head")
  841. human = temp2:findFirstChild("Humanoid")
  842. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  843. if (temp.Position - pos).magnitude < dist then
  844. torso = temp
  845. dist = (temp.Position - pos).magnitude
  846. end
  847. end
  848. end
  849. end
  850. return torso
  851. end
  852.  
  853. while true do
  854. local torso = findNearestTorso(bin.Position)
  855. if torso~=nil then
  856. move(torso)
  857. moveTo(torso)
  858. end
  859. wait()
  860. end
  861.  
  862.  
  863. end))
  864. NumberValue68.Name = "Speed"
  865. NumberValue68.Parent = Part64
  866. NumberValue68.Value = 0.2
  867. Decal69.Name = "ROBLOX Old Default Face"
  868. Decal69.Parent = Part64
  869. Decal69.Texture = "http://www.roblox.com/asset/?id=138437944"
  870. Model70.Parent = mas
  871. Part71.Name = "Head"
  872. Part71.Parent = Model70
  873. Part71.CFrame = CFrame.new(13.2279701, 102.489113, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  874. Part71.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  875. Part71.Position = Vector3.new(13.2279701, 102.489113, 87.9855957)
  876. Part71.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  877. Part71.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  878. Part71.BottomSurface = Enum.SurfaceType.Smooth
  879. Part71.Material = Enum.Material.ForceField
  880. Part71.TopSurface = Enum.SurfaceType.Smooth
  881. Part71.Shape = Enum.PartType.Ball
  882. BodyGyro72.Parent = Part71
  883. BodyPosition73.Parent = Part71
  884. Script74.Name = "Aim"
  885. Script74.Parent = Part71
  886. table.insert(cors,sandbox(Script74,function()
  887. bin = script.Parent
  888.  
  889. function move(target)
  890. local dir = (target.Position - bin.Position).unit
  891. local spawnPos = bin.Position
  892. local pos = spawnPos + (dir * 1)
  893. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  894. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  895. end
  896.  
  897. function moveTo(target)
  898. bin.BodyPosition.position = target.Position
  899. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  900. end
  901.  
  902. function findNearestTorso(pos)
  903. local list = game.Workspace:GetChildren()
  904. local torso = nil
  905. local dist = 1000
  906. local temp = nil
  907. local human = nil
  908. local temp2 = nil
  909. for x = 1, #list do
  910. temp2 = list[x]
  911. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  912. temp = temp2:findFirstChild("Head")
  913. human = temp2:findFirstChild("Humanoid")
  914. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  915. if (temp.Position - pos).magnitude < dist then
  916. torso = temp
  917. dist = (temp.Position - pos).magnitude
  918. end
  919. end
  920. end
  921. end
  922. return torso
  923. end
  924.  
  925. while true do
  926. local torso = findNearestTorso(bin.Position)
  927. if torso~=nil then
  928. move(torso)
  929. moveTo(torso)
  930. end
  931. wait()
  932. end
  933.  
  934.  
  935. end))
  936. NumberValue75.Name = "Speed"
  937. NumberValue75.Parent = Part71
  938. NumberValue75.Value = 0.2
  939. Decal76.Name = "ROBLOX Old Default Face"
  940. Decal76.Parent = Part71
  941. Decal76.Texture = "http://www.roblox.com/asset/?id=138437944"
  942. Model77.Parent = mas
  943. Part78.Name = "Head"
  944. Part78.Parent = Model77
  945. Part78.CFrame = CFrame.new(13.2279701, 96.3690414, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  946. Part78.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  947. Part78.Position = Vector3.new(13.2279701, 96.3690414, 87.9855957)
  948. Part78.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  949. Part78.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  950. Part78.BottomSurface = Enum.SurfaceType.Smooth
  951. Part78.Material = Enum.Material.ForceField
  952. Part78.TopSurface = Enum.SurfaceType.Smooth
  953. Part78.Shape = Enum.PartType.Ball
  954. BodyGyro79.Parent = Part78
  955. BodyPosition80.Parent = Part78
  956. Script81.Name = "Aim"
  957. Script81.Parent = Part78
  958. table.insert(cors,sandbox(Script81,function()
  959. bin = script.Parent
  960.  
  961. function move(target)
  962. local dir = (target.Position - bin.Position).unit
  963. local spawnPos = bin.Position
  964. local pos = spawnPos + (dir * 1)
  965. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  966. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  967. end
  968.  
  969. function moveTo(target)
  970. bin.BodyPosition.position = target.Position
  971. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  972. end
  973.  
  974. function findNearestTorso(pos)
  975. local list = game.Workspace:GetChildren()
  976. local torso = nil
  977. local dist = 1000
  978. local temp = nil
  979. local human = nil
  980. local temp2 = nil
  981. for x = 1, #list do
  982. temp2 = list[x]
  983. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  984. temp = temp2:findFirstChild("Head")
  985. human = temp2:findFirstChild("Humanoid")
  986. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  987. if (temp.Position - pos).magnitude < dist then
  988. torso = temp
  989. dist = (temp.Position - pos).magnitude
  990. end
  991. end
  992. end
  993. end
  994. return torso
  995. end
  996.  
  997. while true do
  998. local torso = findNearestTorso(bin.Position)
  999. if torso~=nil then
  1000. move(torso)
  1001. moveTo(torso)
  1002. end
  1003. wait()
  1004. end
  1005.  
  1006.  
  1007. end))
  1008. NumberValue82.Name = "Speed"
  1009. NumberValue82.Parent = Part78
  1010. NumberValue82.Value = 0.2
  1011. Decal83.Name = "ROBLOX Old Default Face"
  1012. Decal83.Parent = Part78
  1013. Decal83.Texture = "http://www.roblox.com/asset/?id=138437944"
  1014. Model84.Parent = mas
  1015. Part85.Name = "Head"
  1016. Part85.Parent = Model84
  1017. Part85.CFrame = CFrame.new(13.2279701, 80.0488129, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1018. Part85.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1019. Part85.Position = Vector3.new(13.2279701, 80.0488129, 87.9855957)
  1020. Part85.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1021. Part85.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1022. Part85.BottomSurface = Enum.SurfaceType.Smooth
  1023. Part85.Material = Enum.Material.ForceField
  1024. Part85.TopSurface = Enum.SurfaceType.Smooth
  1025. Part85.Shape = Enum.PartType.Ball
  1026. BodyGyro86.Parent = Part85
  1027. BodyPosition87.Parent = Part85
  1028. Script88.Name = "Aim"
  1029. Script88.Parent = Part85
  1030. table.insert(cors,sandbox(Script88,function()
  1031. bin = script.Parent
  1032.  
  1033. function move(target)
  1034. local dir = (target.Position - bin.Position).unit
  1035. local spawnPos = bin.Position
  1036. local pos = spawnPos + (dir * 1)
  1037. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1038. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1039. end
  1040.  
  1041. function moveTo(target)
  1042. bin.BodyPosition.position = target.Position
  1043. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1044. end
  1045.  
  1046. function findNearestTorso(pos)
  1047. local list = game.Workspace:GetChildren()
  1048. local torso = nil
  1049. local dist = 1000
  1050. local temp = nil
  1051. local human = nil
  1052. local temp2 = nil
  1053. for x = 1, #list do
  1054. temp2 = list[x]
  1055. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1056. temp = temp2:findFirstChild("Head")
  1057. human = temp2:findFirstChild("Humanoid")
  1058. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1059. if (temp.Position - pos).magnitude < dist then
  1060. torso = temp
  1061. dist = (temp.Position - pos).magnitude
  1062. end
  1063. end
  1064. end
  1065. end
  1066. return torso
  1067. end
  1068.  
  1069. while true do
  1070. local torso = findNearestTorso(bin.Position)
  1071. if torso~=nil then
  1072. move(torso)
  1073. moveTo(torso)
  1074. end
  1075. wait()
  1076. end
  1077.  
  1078.  
  1079. end))
  1080. NumberValue89.Name = "Speed"
  1081. NumberValue89.Parent = Part85
  1082. NumberValue89.Value = 0.2
  1083. Decal90.Name = "ROBLOX Old Default Face"
  1084. Decal90.Parent = Part85
  1085. Decal90.Texture = "http://www.roblox.com/asset/?id=138437944"
  1086. Model91.Parent = mas
  1087. Part92.Name = "Head"
  1088. Part92.Parent = Model91
  1089. Part92.CFrame = CFrame.new(13.2279701, 98.4090805, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1090. Part92.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1091. Part92.Position = Vector3.new(13.2279701, 98.4090805, 87.9855957)
  1092. Part92.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1093. Part92.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1094. Part92.BottomSurface = Enum.SurfaceType.Smooth
  1095. Part92.Material = Enum.Material.ForceField
  1096. Part92.TopSurface = Enum.SurfaceType.Smooth
  1097. Part92.Shape = Enum.PartType.Ball
  1098. BodyGyro93.Parent = Part92
  1099. BodyPosition94.Parent = Part92
  1100. Script95.Name = "Aim"
  1101. Script95.Parent = Part92
  1102. table.insert(cors,sandbox(Script95,function()
  1103. bin = script.Parent
  1104.  
  1105. function move(target)
  1106. local dir = (target.Position - bin.Position).unit
  1107. local spawnPos = bin.Position
  1108. local pos = spawnPos + (dir * 1)
  1109. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1110. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1111. end
  1112.  
  1113. function moveTo(target)
  1114. bin.BodyPosition.position = target.Position
  1115. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1116. end
  1117.  
  1118. function findNearestTorso(pos)
  1119. local list = game.Workspace:GetChildren()
  1120. local torso = nil
  1121. local dist = 1000
  1122. local temp = nil
  1123. local human = nil
  1124. local temp2 = nil
  1125. for x = 1, #list do
  1126. temp2 = list[x]
  1127. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1128. temp = temp2:findFirstChild("Head")
  1129. human = temp2:findFirstChild("Humanoid")
  1130. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1131. if (temp.Position - pos).magnitude < dist then
  1132. torso = temp
  1133. dist = (temp.Position - pos).magnitude
  1134. end
  1135. end
  1136. end
  1137. end
  1138. return torso
  1139. end
  1140.  
  1141. while true do
  1142. local torso = findNearestTorso(bin.Position)
  1143. if torso~=nil then
  1144. move(torso)
  1145. moveTo(torso)
  1146. end
  1147. wait()
  1148. end
  1149.  
  1150.  
  1151. end))
  1152. NumberValue96.Name = "Speed"
  1153. NumberValue96.Parent = Part92
  1154. NumberValue96.Value = 0.2
  1155. Decal97.Name = "ROBLOX Old Default Face"
  1156. Decal97.Parent = Part92
  1157. Decal97.Texture = "http://www.roblox.com/asset/?id=138437944"
  1158. Model98.Parent = mas
  1159. Part99.Name = "Head"
  1160. Part99.Parent = Model98
  1161. Part99.CFrame = CFrame.new(13.2279701, 104.529129, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1162. Part99.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1163. Part99.Position = Vector3.new(13.2279701, 104.529129, 87.9855957)
  1164. Part99.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1165. Part99.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1166. Part99.BottomSurface = Enum.SurfaceType.Smooth
  1167. Part99.Material = Enum.Material.ForceField
  1168. Part99.TopSurface = Enum.SurfaceType.Smooth
  1169. Part99.Shape = Enum.PartType.Ball
  1170. BodyGyro100.Parent = Part99
  1171. BodyPosition101.Parent = Part99
  1172. Script102.Name = "Aim"
  1173. Script102.Parent = Part99
  1174. table.insert(cors,sandbox(Script102,function()
  1175. bin = script.Parent
  1176.  
  1177. function move(target)
  1178. local dir = (target.Position - bin.Position).unit
  1179. local spawnPos = bin.Position
  1180. local pos = spawnPos + (dir * 1)
  1181. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1182. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1183. end
  1184.  
  1185. function moveTo(target)
  1186. bin.BodyPosition.position = target.Position
  1187. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1188. end
  1189.  
  1190. function findNearestTorso(pos)
  1191. local list = game.Workspace:GetChildren()
  1192. local torso = nil
  1193. local dist = 1000
  1194. local temp = nil
  1195. local human = nil
  1196. local temp2 = nil
  1197. for x = 1, #list do
  1198. temp2 = list[x]
  1199. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1200. temp = temp2:findFirstChild("Head")
  1201. human = temp2:findFirstChild("Humanoid")
  1202. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1203. if (temp.Position - pos).magnitude < dist then
  1204. torso = temp
  1205. dist = (temp.Position - pos).magnitude
  1206. end
  1207. end
  1208. end
  1209. end
  1210. return torso
  1211. end
  1212.  
  1213. while true do
  1214. local torso = findNearestTorso(bin.Position)
  1215. if torso~=nil then
  1216. move(torso)
  1217. moveTo(torso)
  1218. end
  1219. wait()
  1220. end
  1221.  
  1222.  
  1223. end))
  1224. NumberValue103.Name = "Speed"
  1225. NumberValue103.Parent = Part99
  1226. NumberValue103.Value = 0.2
  1227. Decal104.Name = "ROBLOX Old Default Face"
  1228. Decal104.Parent = Part99
  1229. Decal104.Texture = "http://www.roblox.com/asset/?id=138437944"
  1230. Model105.Parent = mas
  1231. Part106.Name = "Head"
  1232. Part106.Parent = Model105
  1233. Part106.CFrame = CFrame.new(13.2279701, 100.449104, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1234. Part106.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1235. Part106.Position = Vector3.new(13.2279701, 100.449104, 87.9855957)
  1236. Part106.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1237. Part106.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1238. Part106.BottomSurface = Enum.SurfaceType.Smooth
  1239. Part106.Material = Enum.Material.ForceField
  1240. Part106.TopSurface = Enum.SurfaceType.Smooth
  1241. Part106.Shape = Enum.PartType.Ball
  1242. BodyGyro107.Parent = Part106
  1243. BodyPosition108.Parent = Part106
  1244. Script109.Name = "Aim"
  1245. Script109.Parent = Part106
  1246. table.insert(cors,sandbox(Script109,function()
  1247. bin = script.Parent
  1248.  
  1249. function move(target)
  1250. local dir = (target.Position - bin.Position).unit
  1251. local spawnPos = bin.Position
  1252. local pos = spawnPos + (dir * 1)
  1253. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1254. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1255. end
  1256.  
  1257. function moveTo(target)
  1258. bin.BodyPosition.position = target.Position
  1259. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1260. end
  1261.  
  1262. function findNearestTorso(pos)
  1263. local list = game.Workspace:GetChildren()
  1264. local torso = nil
  1265. local dist = 1000
  1266. local temp = nil
  1267. local human = nil
  1268. local temp2 = nil
  1269. for x = 1, #list do
  1270. temp2 = list[x]
  1271. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1272. temp = temp2:findFirstChild("Head")
  1273. human = temp2:findFirstChild("Humanoid")
  1274. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1275. if (temp.Position - pos).magnitude < dist then
  1276. torso = temp
  1277. dist = (temp.Position - pos).magnitude
  1278. end
  1279. end
  1280. end
  1281. end
  1282. return torso
  1283. end
  1284.  
  1285. while true do
  1286. local torso = findNearestTorso(bin.Position)
  1287. if torso~=nil then
  1288. move(torso)
  1289. moveTo(torso)
  1290. end
  1291. wait()
  1292. end
  1293.  
  1294.  
  1295. end))
  1296. NumberValue110.Name = "Speed"
  1297. NumberValue110.Parent = Part106
  1298. NumberValue110.Value = 0.2
  1299. Decal111.Name = "ROBLOX Old Default Face"
  1300. Decal111.Parent = Part106
  1301. Decal111.Texture = "http://www.roblox.com/asset/?id=138437944"
  1302. Model112.Parent = mas
  1303. Part113.Name = "Head"
  1304. Part113.Parent = Model112
  1305. Part113.CFrame = CFrame.new(13.2279701, 106.569138, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1306. Part113.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1307. Part113.Position = Vector3.new(13.2279701, 106.569138, 87.9855957)
  1308. Part113.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1309. Part113.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1310. Part113.BottomSurface = Enum.SurfaceType.Smooth
  1311. Part113.Material = Enum.Material.ForceField
  1312. Part113.TopSurface = Enum.SurfaceType.Smooth
  1313. Part113.Shape = Enum.PartType.Ball
  1314. BodyGyro114.Parent = Part113
  1315. BodyPosition115.Parent = Part113
  1316. Script116.Name = "Aim"
  1317. Script116.Parent = Part113
  1318. table.insert(cors,sandbox(Script116,function()
  1319. bin = script.Parent
  1320.  
  1321. function move(target)
  1322. local dir = (target.Position - bin.Position).unit
  1323. local spawnPos = bin.Position
  1324. local pos = spawnPos + (dir * 1)
  1325. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1326. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1327. end
  1328.  
  1329. function moveTo(target)
  1330. bin.BodyPosition.position = target.Position
  1331. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1332. end
  1333.  
  1334. function findNearestTorso(pos)
  1335. local list = game.Workspace:GetChildren()
  1336. local torso = nil
  1337. local dist = 1000
  1338. local temp = nil
  1339. local human = nil
  1340. local temp2 = nil
  1341. for x = 1, #list do
  1342. temp2 = list[x]
  1343. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1344. temp = temp2:findFirstChild("Head")
  1345. human = temp2:findFirstChild("Humanoid")
  1346. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1347. if (temp.Position - pos).magnitude < dist then
  1348. torso = temp
  1349. dist = (temp.Position - pos).magnitude
  1350. end
  1351. end
  1352. end
  1353. end
  1354. return torso
  1355. end
  1356.  
  1357. while true do
  1358. local torso = findNearestTorso(bin.Position)
  1359. if torso~=nil then
  1360. move(torso)
  1361. moveTo(torso)
  1362. end
  1363. wait()
  1364. end
  1365.  
  1366.  
  1367. end))
  1368. NumberValue117.Name = "Speed"
  1369. NumberValue117.Parent = Part113
  1370. NumberValue117.Value = 0.2
  1371. Decal118.Name = "ROBLOX Old Default Face"
  1372. Decal118.Parent = Part113
  1373. Decal118.Texture = "http://www.roblox.com/asset/?id=138437944"
  1374. Model119.Parent = mas
  1375. Part120.Name = "Head"
  1376. Part120.Parent = Model119
  1377. Part120.CFrame = CFrame.new(13.2279701, 84.1288834, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1378. Part120.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1379. Part120.Position = Vector3.new(13.2279701, 84.1288834, 87.9855957)
  1380. Part120.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1381. Part120.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1382. Part120.BottomSurface = Enum.SurfaceType.Smooth
  1383. Part120.Material = Enum.Material.ForceField
  1384. Part120.TopSurface = Enum.SurfaceType.Smooth
  1385. Part120.Shape = Enum.PartType.Ball
  1386. BodyGyro121.Parent = Part120
  1387. BodyPosition122.Parent = Part120
  1388. Script123.Name = "Aim"
  1389. Script123.Parent = Part120
  1390. table.insert(cors,sandbox(Script123,function()
  1391. bin = script.Parent
  1392.  
  1393. function move(target)
  1394. local dir = (target.Position - bin.Position).unit
  1395. local spawnPos = bin.Position
  1396. local pos = spawnPos + (dir * 1)
  1397. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1398. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1399. end
  1400.  
  1401. function moveTo(target)
  1402. bin.BodyPosition.position = target.Position
  1403. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1404. end
  1405.  
  1406. function findNearestTorso(pos)
  1407. local list = game.Workspace:GetChildren()
  1408. local torso = nil
  1409. local dist = 1000
  1410. local temp = nil
  1411. local human = nil
  1412. local temp2 = nil
  1413. for x = 1, #list do
  1414. temp2 = list[x]
  1415. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1416. temp = temp2:findFirstChild("Head")
  1417. human = temp2:findFirstChild("Humanoid")
  1418. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1419. if (temp.Position - pos).magnitude < dist then
  1420. torso = temp
  1421. dist = (temp.Position - pos).magnitude
  1422. end
  1423. end
  1424. end
  1425. end
  1426. return torso
  1427. end
  1428.  
  1429. while true do
  1430. local torso = findNearestTorso(bin.Position)
  1431. if torso~=nil then
  1432. move(torso)
  1433. moveTo(torso)
  1434. end
  1435. wait()
  1436. end
  1437.  
  1438.  
  1439. end))
  1440. NumberValue124.Name = "Speed"
  1441. NumberValue124.Parent = Part120
  1442. NumberValue124.Value = 0.2
  1443. Decal125.Name = "ROBLOX Old Default Face"
  1444. Decal125.Parent = Part120
  1445. Decal125.Texture = "http://www.roblox.com/asset/?id=138437944"
  1446. Model126.Parent = mas
  1447. Part127.Name = "Head"
  1448. Part127.Parent = Model126
  1449. Part127.CFrame = CFrame.new(13.2279701, 86.1689224, 87.9855957, -0.999935091, 0.00857119635, -0.00751148583, 0.00857600104, 0.999963105, -0.000607622438, 0.00750600081, -0.000672001508, -0.999971628)
  1450. Part127.Orientation = Vector3.new(0.0299999993, -179.570007, 0.49000001)
  1451. Part127.Position = Vector3.new(13.2279701, 86.1689224, 87.9855957)
  1452. Part127.Rotation = Vector3.new(179.970001, -0.430000007, -179.509995)
  1453. Part127.Size = Vector3.new(2.04000163, 2.04000163, 2.04000163)
  1454. Part127.BottomSurface = Enum.SurfaceType.Smooth
  1455. Part127.Material = Enum.Material.ForceField
  1456. Part127.TopSurface = Enum.SurfaceType.Smooth
  1457. Part127.Shape = Enum.PartType.Ball
  1458. BodyGyro128.Parent = Part127
  1459. BodyPosition129.Parent = Part127
  1460. Script130.Name = "Aim"
  1461. Script130.Parent = Part127
  1462. table.insert(cors,sandbox(Script130,function()
  1463. bin = script.Parent
  1464.  
  1465. function move(target)
  1466. local dir = (target.Position - bin.Position).unit
  1467. local spawnPos = bin.Position
  1468. local pos = spawnPos + (dir * 1)
  1469. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  1470. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  1471. end
  1472.  
  1473. function moveTo(target)
  1474. bin.BodyPosition.position = target.Position
  1475. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  1476. end
  1477.  
  1478. function findNearestTorso(pos)
  1479. local list = game.Workspace:GetChildren()
  1480. local torso = nil
  1481. local dist = 1000
  1482. local temp = nil
  1483. local human = nil
  1484. local temp2 = nil
  1485. for x = 1, #list do
  1486. temp2 = list[x]
  1487. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1488. temp = temp2:findFirstChild("Head")
  1489. human = temp2:findFirstChild("Humanoid")
  1490. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1491. if (temp.Position - pos).magnitude < dist then
  1492. torso = temp
  1493. dist = (temp.Position - pos).magnitude
  1494. end
  1495. end
  1496. end
  1497. end
  1498. return torso
  1499. end
  1500.  
  1501. while true do
  1502. local torso = findNearestTorso(bin.Position)
  1503. if torso~=nil then
  1504. move(torso)
  1505. moveTo(torso)
  1506. end
  1507. wait()
  1508. end
  1509.  
  1510.  
  1511. end))
  1512. NumberValue131.Name = "Speed"
  1513. NumberValue131.Parent = Part127
  1514. NumberValue131.Value = 0.2
  1515. Decal132.Name = "ROBLOX Old Default Face"
  1516. Decal132.Parent = Part127
  1517. Decal132.Texture = "http://www.roblox.com/asset/?id=138437944"
  1518. for i,v in pairs(mas:GetChildren()) do
  1519. v.Parent = workspace
  1520. pcall(function() v:MakeJoints() end)
  1521. end
  1522. for i,v in pairs(cors) do
  1523. spawn(function()
  1524. pcall(v)
  1525. end)
  1526. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement