Advertisement
End_Wolf

Untitled

Jun 5th, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Sound11 = Instance.new("Sound")
  31. Sound12 = Instance.new("Sound")
  32. Sound13 = Instance.new("Sound")
  33. Sound14 = Instance.new("Sound")
  34. Sound15 = Instance.new("Sound")
  35. Sound16 = Instance.new("Sound")
  36. Sound17 = Instance.new("Sound")
  37. Sound18 = Instance.new("Sound")
  38. Sound19 = Instance.new("Sound")
  39. Sound20 = Instance.new("Sound")
  40. Sound21 = Instance.new("Sound")
  41. Sound22 = Instance.new("Sound")
  42. Sound23 = Instance.new("Sound")
  43. Sound24 = Instance.new("Sound")
  44. Sound25 = Instance.new("Sound")
  45. Sound26 = Instance.new("Sound")
  46. Sound27 = Instance.new("Sound")
  47. Sound28 = Instance.new("Sound")
  48. Sound29 = Instance.new("Sound")
  49. Sound30 = Instance.new("Sound")
  50. Sound31 = Instance.new("Sound")
  51. Sound32 = Instance.new("Sound")
  52. Sound33 = Instance.new("Sound")
  53. Sound34 = Instance.new("Sound")
  54. Sound35 = Instance.new("Sound")
  55. Sound36 = Instance.new("Sound")
  56. Sound37 = Instance.new("Sound")
  57. Sound38 = Instance.new("Sound")
  58. Sound39 = Instance.new("Sound")
  59. Sound40 = Instance.new("Sound")
  60. Sound41 = Instance.new("Sound")
  61. Sound42 = Instance.new("Sound")
  62. Sound43 = Instance.new("Sound")
  63. Sound44 = Instance.new("Sound")
  64. Sound45 = Instance.new("Sound")
  65. Sound46 = Instance.new("Sound")
  66. Sound47 = Instance.new("Sound")
  67. Sound48 = Instance.new("Sound")
  68. Sound49 = Instance.new("Sound")
  69. Sound50 = Instance.new("Sound")
  70. Sound51 = Instance.new("Sound")
  71. Sound52 = Instance.new("Sound")
  72. Sound53 = Instance.new("Sound")
  73. Sound54 = Instance.new("Sound")
  74. Sound55 = Instance.new("Sound")
  75. Sound56 = Instance.new("Sound")
  76. Sound57 = Instance.new("Sound")
  77. Sound58 = Instance.new("Sound")
  78. Sound59 = Instance.new("Sound")
  79. Sound60 = Instance.new("Sound")
  80. Sound61 = Instance.new("Sound")
  81. Sound62 = Instance.new("Sound")
  82. Sound63 = Instance.new("Sound")
  83. Sound64 = Instance.new("Sound")
  84. Sound65 = Instance.new("Sound")
  85. Sound66 = Instance.new("Sound")
  86. Sound67 = Instance.new("Sound")
  87. Sound68 = Instance.new("Sound")
  88. Sound69 = Instance.new("Sound")
  89. Sound70 = Instance.new("Sound")
  90. Sound71 = Instance.new("Sound")
  91. Sound72 = Instance.new("Sound")
  92. Sound73 = Instance.new("Sound")
  93. Sound74 = Instance.new("Sound")
  94. Sound75 = Instance.new("Sound")
  95. Sound76 = Instance.new("Sound")
  96. Sound77 = Instance.new("Sound")
  97. Sound78 = Instance.new("Sound")
  98. Sound79 = Instance.new("Sound")
  99. Sound80 = Instance.new("Sound")
  100. Sound81 = Instance.new("Sound")
  101. Sound82 = Instance.new("Sound")
  102. Sound83 = Instance.new("Sound")
  103. Sound84 = Instance.new("Sound")
  104. Sound85 = Instance.new("Sound")
  105. Sound86 = Instance.new("Sound")
  106. Sound87 = Instance.new("Sound")
  107. Sound88 = Instance.new("Sound")
  108. Sound89 = Instance.new("Sound")
  109. Sound90 = Instance.new("Sound")
  110. Sound91 = Instance.new("Sound")
  111. Sound92 = Instance.new("Sound")
  112. Sound93 = Instance.new("Sound")
  113. Sound94 = Instance.new("Sound")
  114. Sound95 = Instance.new("Sound")
  115. Sound96 = Instance.new("Sound")
  116. Sound97 = Instance.new("Sound")
  117. Sound98 = Instance.new("Sound")
  118. Sound99 = Instance.new("Sound")
  119. Sound100 = Instance.new("Sound")
  120. Sound101 = Instance.new("Sound")
  121. Sound102 = Instance.new("Sound")
  122. Sound103 = Instance.new("Sound")
  123. Sound104 = Instance.new("Sound")
  124. Sound105 = Instance.new("Sound")
  125. Sound106 = Instance.new("Sound")
  126. Sound107 = Instance.new("Sound")
  127. Sound108 = Instance.new("Sound")
  128. Sound109 = Instance.new("Sound")
  129. Sound110 = Instance.new("Sound")
  130. Sound111 = Instance.new("Sound")
  131. Sound112 = Instance.new("Sound")
  132. Sound113 = Instance.new("Sound")
  133. Sound114 = Instance.new("Sound")
  134. Sound115 = Instance.new("Sound")
  135. Sound116 = Instance.new("Sound")
  136. Sound117 = Instance.new("Sound")
  137. Sound118 = Instance.new("Sound")
  138. Sound119 = Instance.new("Sound")
  139. Sound120 = Instance.new("Sound")
  140. Sound121 = Instance.new("Sound")
  141. Sound122 = Instance.new("Sound")
  142. Sound123 = Instance.new("Sound")
  143. Sound124 = Instance.new("Sound")
  144. Sound125 = Instance.new("Sound")
  145. Sound126 = Instance.new("Sound")
  146. Sound127 = Instance.new("Sound")
  147. Sound128 = Instance.new("Sound")
  148. Sound129 = Instance.new("Sound")
  149. Sound130 = Instance.new("Sound")
  150. Sound131 = Instance.new("Sound")
  151. Sound132 = Instance.new("Sound")
  152. Sound133 = Instance.new("Sound")
  153. Sound134 = Instance.new("Sound")
  154. Sound135 = Instance.new("Sound")
  155. Sound136 = Instance.new("Sound")
  156. Sound137 = Instance.new("Sound")
  157. Sound138 = Instance.new("Sound")
  158. Sound139 = Instance.new("Sound")
  159. Sound140 = Instance.new("Sound")
  160. Sound141 = Instance.new("Sound")
  161. Sound142 = Instance.new("Sound")
  162. Sound143 = Instance.new("Sound")
  163. Sound144 = Instance.new("Sound")
  164. Sound145 = Instance.new("Sound")
  165. Sound146 = Instance.new("Sound")
  166. Part147 = Instance.new("Part")
  167. Motor148 = Instance.new("Motor")
  168. Snap149 = Instance.new("Snap")
  169. Motor150 = Instance.new("Motor")
  170. Motor151 = Instance.new("Motor")
  171. Motor152 = Instance.new("Motor")
  172. BlockMesh153 = Instance.new("BlockMesh")
  173. Decal154 = Instance.new("Decal")
  174. Decal155 = Instance.new("Decal")
  175. Part156 = Instance.new("Part")
  176. Part157 = Instance.new("Part")
  177. Humanoid158 = Instance.new("Humanoid")
  178. BodyColors159 = Instance.new("BodyColors")
  179. IntValue160 = Instance.new("IntValue")
  180. Part161 = Instance.new("Part")
  181. Part162 = Instance.new("Part")
  182. Script163 = Instance.new("Script")
  183. Script164 = Instance.new("Script")
  184. Script165 = Instance.new("Script")
  185. Script166 = Instance.new("Script")
  186. Sound167 = Instance.new("Sound")
  187. Model0.Name = "sanic"
  188. Model0.Parent = mas
  189. Part1.Name = "Head"
  190. Part1.Parent = Model0
  191. Part1.CFrame = CFrame.new(140, 6.00000906, -142.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  192. Part1.Orientation = Vector3.new(0, -90, 0)
  193. Part1.Position = Vector3.new(140, 6.00000906, -142.500015)
  194. Part1.Rotation = Vector3.new(0, -90, 0)
  195. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  196. Part1.Transparency = 0.98000001907349
  197. Part1.Size = Vector3.new(2, 2, 1)
  198. Part1.BrickColor = BrickColor.new("Bright yellow")
  199. Part1.TopSurface = Enum.SurfaceType.Smooth
  200. Part1.brickColor = BrickColor.new("Bright yellow")
  201. Part1.FormFactor = Enum.FormFactor.Symmetric
  202. Part1.formFactor = Enum.FormFactor.Symmetric
  203. SpecialMesh2.Parent = Part1
  204. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  205. Sound3.Parent = Part1
  206. Sound3.SoundId = "rbxasset://sounds/uuhhh.wav"
  207. Sound4.Parent = Part1
  208. Sound4.SoundId = "rbxasset://sounds/splat.wav"
  209. Sound5.Parent = Part1
  210. Sound5.SoundId = "rbxasset://sounds/swoosh.wav"
  211. Sound6.Parent = Part1
  212. Sound6.SoundId = "rbxasset://sounds/hit.wav"
  213. Sound7.Parent = Part1
  214. Sound7.SoundId = "rbxasset://sounds/button.wav"
  215. Sound8.Parent = Part1
  216. Sound8.Looped = true
  217. Sound8.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  218. Sound9.Parent = Part1
  219. Sound9.SoundId = "rbxasset://sounds/uuhhh.wav"
  220. Sound10.Parent = Part1
  221. Sound10.SoundId = "rbxasset://sounds/splat.wav"
  222. Sound11.Parent = Part1
  223. Sound11.SoundId = "rbxasset://sounds/swoosh.wav"
  224. Sound12.Parent = Part1
  225. Sound12.SoundId = "rbxasset://sounds/hit.wav"
  226. Sound13.Parent = Part1
  227. Sound13.SoundId = "rbxasset://sounds/button.wav"
  228. Sound14.Parent = Part1
  229. Sound14.Looped = true
  230. Sound14.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  231. Sound15.Parent = Part1
  232. Sound15.SoundId = "rbxasset://sounds/uuhhh.wav"
  233. Sound16.Parent = Part1
  234. Sound16.SoundId = "rbxasset://sounds/splat.wav"
  235. Sound17.Parent = Part1
  236. Sound17.SoundId = "rbxasset://sounds/swoosh.wav"
  237. Sound18.Parent = Part1
  238. Sound18.SoundId = "rbxasset://sounds/hit.wav"
  239. Sound19.Parent = Part1
  240. Sound19.SoundId = "rbxasset://sounds/button.wav"
  241. Sound20.Parent = Part1
  242. Sound20.Looped = true
  243. Sound20.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  244. Sound21.Parent = Part1
  245. Sound21.SoundId = "rbxasset://sounds/uuhhh.wav"
  246. Sound22.Parent = Part1
  247. Sound22.SoundId = "rbxasset://sounds/splat.wav"
  248. Sound23.Parent = Part1
  249. Sound23.SoundId = "rbxasset://sounds/swoosh.wav"
  250. Sound24.Parent = Part1
  251. Sound24.SoundId = "rbxasset://sounds/hit.wav"
  252. Sound25.Parent = Part1
  253. Sound25.SoundId = "rbxasset://sounds/button.wav"
  254. Sound26.Parent = Part1
  255. Sound26.Looped = true
  256. Sound26.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  257. Sound27.Parent = Part1
  258. Sound27.SoundId = "rbxasset://sounds/uuhhh.wav"
  259. Sound28.Parent = Part1
  260. Sound28.SoundId = "rbxasset://sounds/splat.wav"
  261. Sound29.Parent = Part1
  262. Sound29.SoundId = "rbxasset://sounds/swoosh.wav"
  263. Sound30.Parent = Part1
  264. Sound30.SoundId = "rbxasset://sounds/hit.wav"
  265. Sound31.Parent = Part1
  266. Sound31.SoundId = "rbxasset://sounds/button.wav"
  267. Sound32.Parent = Part1
  268. Sound32.Looped = true
  269. Sound32.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  270. Sound33.Parent = Part1
  271. Sound33.SoundId = "rbxasset://sounds/uuhhh.wav"
  272. Sound34.Parent = Part1
  273. Sound34.SoundId = "rbxasset://sounds/splat.wav"
  274. Sound35.Parent = Part1
  275. Sound35.SoundId = "rbxasset://sounds/swoosh.wav"
  276. Sound36.Parent = Part1
  277. Sound36.SoundId = "rbxasset://sounds/hit.wav"
  278. Sound37.Parent = Part1
  279. Sound37.SoundId = "rbxasset://sounds/button.wav"
  280. Sound38.Parent = Part1
  281. Sound38.Looped = true
  282. Sound38.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  283. Sound39.Parent = Part1
  284. Sound39.SoundId = "rbxasset://sounds/uuhhh.wav"
  285. Sound40.Parent = Part1
  286. Sound40.SoundId = "rbxasset://sounds/splat.wav"
  287. Sound41.Parent = Part1
  288. Sound41.SoundId = "rbxasset://sounds/swoosh.wav"
  289. Sound42.Parent = Part1
  290. Sound42.SoundId = "rbxasset://sounds/hit.wav"
  291. Sound43.Parent = Part1
  292. Sound43.SoundId = "rbxasset://sounds/button.wav"
  293. Sound44.Parent = Part1
  294. Sound44.Looped = true
  295. Sound44.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  296. Sound45.Parent = Part1
  297. Sound45.SoundId = "rbxasset://sounds/uuhhh.wav"
  298. Sound46.Parent = Part1
  299. Sound46.SoundId = "rbxasset://sounds/splat.wav"
  300. Sound47.Parent = Part1
  301. Sound47.SoundId = "rbxasset://sounds/swoosh.wav"
  302. Sound48.Parent = Part1
  303. Sound48.SoundId = "rbxasset://sounds/hit.wav"
  304. Sound49.Parent = Part1
  305. Sound49.SoundId = "rbxasset://sounds/button.wav"
  306. Sound50.Parent = Part1
  307. Sound50.Looped = true
  308. Sound50.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  309. Sound51.Parent = Part1
  310. Sound51.SoundId = "rbxasset://sounds/uuhhh.wav"
  311. Sound52.Parent = Part1
  312. Sound52.SoundId = "rbxasset://sounds/splat.wav"
  313. Sound53.Parent = Part1
  314. Sound53.SoundId = "rbxasset://sounds/swoosh.wav"
  315. Sound54.Parent = Part1
  316. Sound54.SoundId = "rbxasset://sounds/hit.wav"
  317. Sound55.Parent = Part1
  318. Sound55.SoundId = "rbxasset://sounds/button.wav"
  319. Sound56.Parent = Part1
  320. Sound56.Looped = true
  321. Sound56.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  322. Sound57.Parent = Part1
  323. Sound57.SoundId = "rbxasset://sounds/uuhhh.wav"
  324. Sound58.Parent = Part1
  325. Sound58.SoundId = "rbxasset://sounds/splat.wav"
  326. Sound59.Parent = Part1
  327. Sound59.SoundId = "rbxasset://sounds/swoosh.wav"
  328. Sound60.Parent = Part1
  329. Sound60.SoundId = "rbxasset://sounds/hit.wav"
  330. Sound61.Parent = Part1
  331. Sound61.SoundId = "rbxasset://sounds/button.wav"
  332. Sound62.Parent = Part1
  333. Sound62.Looped = true
  334. Sound62.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  335. Sound63.Parent = Part1
  336. Sound63.SoundId = "rbxasset://sounds/uuhhh.wav"
  337. Sound64.Parent = Part1
  338. Sound64.SoundId = "rbxasset://sounds/splat.wav"
  339. Sound65.Parent = Part1
  340. Sound65.SoundId = "rbxasset://sounds/swoosh.wav"
  341. Sound66.Parent = Part1
  342. Sound66.SoundId = "rbxasset://sounds/hit.wav"
  343. Sound67.Parent = Part1
  344. Sound67.SoundId = "rbxasset://sounds/button.wav"
  345. Sound68.Parent = Part1
  346. Sound68.Looped = true
  347. Sound68.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  348. Sound69.Parent = Part1
  349. Sound69.SoundId = "rbxasset://sounds/uuhhh.wav"
  350. Sound70.Parent = Part1
  351. Sound70.SoundId = "rbxasset://sounds/splat.wav"
  352. Sound71.Parent = Part1
  353. Sound71.SoundId = "rbxasset://sounds/swoosh.wav"
  354. Sound72.Parent = Part1
  355. Sound72.SoundId = "rbxasset://sounds/hit.wav"
  356. Sound73.Parent = Part1
  357. Sound73.SoundId = "rbxasset://sounds/button.wav"
  358. Sound74.Parent = Part1
  359. Sound74.Looped = true
  360. Sound74.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  361. Sound75.Parent = Part1
  362. Sound75.SoundId = "rbxasset://sounds/uuhhh.wav"
  363. Sound76.Parent = Part1
  364. Sound76.SoundId = "rbxasset://sounds/splat.wav"
  365. Sound77.Parent = Part1
  366. Sound77.SoundId = "rbxasset://sounds/swoosh.wav"
  367. Sound78.Parent = Part1
  368. Sound78.SoundId = "rbxasset://sounds/hit.wav"
  369. Sound79.Parent = Part1
  370. Sound79.SoundId = "rbxasset://sounds/button.wav"
  371. Sound80.Parent = Part1
  372. Sound80.Looped = true
  373. Sound80.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  374. Sound81.Parent = Part1
  375. Sound81.SoundId = "rbxasset://sounds/uuhhh.wav"
  376. Sound82.Parent = Part1
  377. Sound82.SoundId = "rbxasset://sounds/splat.wav"
  378. Sound83.Parent = Part1
  379. Sound83.SoundId = "rbxasset://sounds/swoosh.wav"
  380. Sound84.Parent = Part1
  381. Sound84.SoundId = "rbxasset://sounds/hit.wav"
  382. Sound85.Parent = Part1
  383. Sound85.SoundId = "rbxasset://sounds/button.wav"
  384. Sound86.Parent = Part1
  385. Sound86.Looped = true
  386. Sound86.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  387. Sound87.Parent = Part1
  388. Sound87.SoundId = "rbxasset://sounds/uuhhh.wav"
  389. Sound88.Parent = Part1
  390. Sound88.SoundId = "rbxasset://sounds/splat.wav"
  391. Sound89.Parent = Part1
  392. Sound89.SoundId = "rbxasset://sounds/swoosh.wav"
  393. Sound90.Parent = Part1
  394. Sound90.SoundId = "rbxasset://sounds/hit.wav"
  395. Sound91.Parent = Part1
  396. Sound91.SoundId = "rbxasset://sounds/button.wav"
  397. Sound92.Parent = Part1
  398. Sound92.Looped = true
  399. Sound92.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  400. Sound93.Parent = Part1
  401. Sound93.SoundId = "rbxasset://sounds/uuhhh.wav"
  402. Sound94.Parent = Part1
  403. Sound94.SoundId = "rbxasset://sounds/splat.wav"
  404. Sound95.Parent = Part1
  405. Sound95.SoundId = "rbxasset://sounds/swoosh.wav"
  406. Sound96.Parent = Part1
  407. Sound96.SoundId = "rbxasset://sounds/hit.wav"
  408. Sound97.Parent = Part1
  409. Sound97.SoundId = "rbxasset://sounds/button.wav"
  410. Sound98.Parent = Part1
  411. Sound98.Looped = true
  412. Sound98.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  413. Sound99.Parent = Part1
  414. Sound99.SoundId = "rbxasset://sounds/uuhhh.wav"
  415. Sound100.Parent = Part1
  416. Sound100.SoundId = "rbxasset://sounds/splat.wav"
  417. Sound101.Parent = Part1
  418. Sound101.SoundId = "rbxasset://sounds/swoosh.wav"
  419. Sound102.Parent = Part1
  420. Sound102.SoundId = "rbxasset://sounds/hit.wav"
  421. Sound103.Parent = Part1
  422. Sound103.SoundId = "rbxasset://sounds/button.wav"
  423. Sound104.Parent = Part1
  424. Sound104.Looped = true
  425. Sound104.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  426. Sound105.Parent = Part1
  427. Sound105.SoundId = "rbxasset://sounds/uuhhh.wav"
  428. Sound106.Parent = Part1
  429. Sound106.SoundId = "rbxasset://sounds/splat.wav"
  430. Sound107.Parent = Part1
  431. Sound107.SoundId = "rbxasset://sounds/swoosh.wav"
  432. Sound108.Parent = Part1
  433. Sound108.SoundId = "rbxasset://sounds/hit.wav"
  434. Sound109.Parent = Part1
  435. Sound109.SoundId = "rbxasset://sounds/button.wav"
  436. Sound110.Parent = Part1
  437. Sound110.Looped = true
  438. Sound110.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  439. Sound111.Parent = Part1
  440. Sound111.SoundId = "rbxasset://sounds/uuhhh.wav"
  441. Sound112.Parent = Part1
  442. Sound112.SoundId = "rbxasset://sounds/splat.wav"
  443. Sound113.Parent = Part1
  444. Sound113.SoundId = "rbxasset://sounds/swoosh.wav"
  445. Sound114.Parent = Part1
  446. Sound114.SoundId = "rbxasset://sounds/hit.wav"
  447. Sound115.Parent = Part1
  448. Sound115.SoundId = "rbxasset://sounds/button.wav"
  449. Sound116.Parent = Part1
  450. Sound116.Looped = true
  451. Sound116.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  452. Sound117.Parent = Part1
  453. Sound117.SoundId = "rbxasset://sounds/uuhhh.wav"
  454. Sound118.Parent = Part1
  455. Sound118.SoundId = "rbxasset://sounds/splat.wav"
  456. Sound119.Parent = Part1
  457. Sound119.SoundId = "rbxasset://sounds/swoosh.wav"
  458. Sound120.Parent = Part1
  459. Sound120.SoundId = "rbxasset://sounds/hit.wav"
  460. Sound121.Parent = Part1
  461. Sound121.SoundId = "rbxasset://sounds/button.wav"
  462. Sound122.Parent = Part1
  463. Sound122.Looped = true
  464. Sound122.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  465. Sound123.Parent = Part1
  466. Sound123.SoundId = "rbxasset://sounds/uuhhh.wav"
  467. Sound124.Parent = Part1
  468. Sound124.SoundId = "rbxasset://sounds/splat.wav"
  469. Sound125.Parent = Part1
  470. Sound125.SoundId = "rbxasset://sounds/swoosh.wav"
  471. Sound126.Parent = Part1
  472. Sound126.SoundId = "rbxasset://sounds/hit.wav"
  473. Sound127.Parent = Part1
  474. Sound127.SoundId = "rbxasset://sounds/button.wav"
  475. Sound128.Parent = Part1
  476. Sound128.Looped = true
  477. Sound128.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  478. Sound129.Parent = Part1
  479. Sound129.SoundId = "rbxasset://sounds/uuhhh.wav"
  480. Sound130.Parent = Part1
  481. Sound130.SoundId = "rbxasset://sounds/splat.wav"
  482. Sound131.Parent = Part1
  483. Sound131.SoundId = "rbxasset://sounds/swoosh.wav"
  484. Sound132.Parent = Part1
  485. Sound132.SoundId = "rbxasset://sounds/hit.wav"
  486. Sound133.Parent = Part1
  487. Sound133.SoundId = "rbxasset://sounds/button.wav"
  488. Sound134.Parent = Part1
  489. Sound134.Looped = true
  490. Sound134.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  491. Sound135.Parent = Part1
  492. Sound135.SoundId = "rbxasset://sounds/uuhhh.wav"
  493. Sound136.Parent = Part1
  494. Sound136.SoundId = "rbxasset://sounds/splat.wav"
  495. Sound137.Parent = Part1
  496. Sound137.SoundId = "rbxasset://sounds/swoosh.wav"
  497. Sound138.Parent = Part1
  498. Sound138.SoundId = "rbxasset://sounds/hit.wav"
  499. Sound139.Parent = Part1
  500. Sound139.SoundId = "rbxasset://sounds/button.wav"
  501. Sound140.Parent = Part1
  502. Sound140.Looped = true
  503. Sound140.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  504. Sound141.Parent = Part1
  505. Sound141.SoundId = "rbxasset://sounds/uuhhh.wav"
  506. Sound142.Parent = Part1
  507. Sound142.SoundId = "rbxasset://sounds/splat.wav"
  508. Sound143.Parent = Part1
  509. Sound143.SoundId = "rbxasset://sounds/swoosh.wav"
  510. Sound144.Parent = Part1
  511. Sound144.SoundId = "rbxasset://sounds/hit.wav"
  512. Sound145.Parent = Part1
  513. Sound145.SoundId = "rbxasset://sounds/button.wav"
  514. Sound146.Parent = Part1
  515. Sound146.Looped = true
  516. Sound146.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  517. Part147.Name = "Torso"
  518. Part147.Parent = Model0
  519. Part147.CFrame = CFrame.new(140, 4.00000906, -142.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  520. Part147.Orientation = Vector3.new(0, -90, 0)
  521. Part147.Position = Vector3.new(140, 4.00000906, -142.500015)
  522. Part147.Rotation = Vector3.new(0, -90, 0)
  523. Part147.Color = Color3.new(0.768628, 0.156863, 0.109804)
  524. Part147.Transparency = 1
  525. Part147.Size = Vector3.new(2, 2, 1)
  526. Part147.BrickColor = BrickColor.new("Bright red")
  527. Part147.LeftParamA = 0
  528. Part147.LeftParamB = 0
  529. Part147.RightParamA = 0
  530. Part147.RightParamB = 0
  531. Part147.brickColor = BrickColor.new("Bright red")
  532. Part147.FormFactor = Enum.FormFactor.Symmetric
  533. Part147.formFactor = Enum.FormFactor.Symmetric
  534. Motor148.Name = "Left Hip"
  535. Motor148.Parent = Part147
  536. Motor148.MaxVelocity = 0.10000000149012
  537. Motor148.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  538. Motor148.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  539. Motor148.DesiredAngle = 0.60447072982788
  540. Snap149.Name = "Neck"
  541. Snap149.Parent = Part147
  542. Snap149.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  543. Snap149.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  544. Motor150.Name = "Right Hip"
  545. Motor150.Parent = Part147
  546. Motor150.MaxVelocity = 0.10000000149012
  547. Motor150.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  548. Motor150.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  549. Motor150.DesiredAngle = 0.60447072982788
  550. Motor151.Name = "Right Shoulder"
  551. Motor151.Parent = Part147
  552. Motor151.MaxVelocity = 0.15000000596046
  553. Motor151.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  554. Motor151.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  555. Motor151.DesiredAngle = 0.60447072982788
  556. Motor152.Name = "Left Shoulder"
  557. Motor152.Parent = Part147
  558. Motor152.MaxVelocity = 0.15000000596046
  559. Motor152.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  560. Motor152.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  561. Motor152.DesiredAngle = -0.60447072982788
  562. BlockMesh153.Parent = Part147
  563. BlockMesh153.Scale = Vector3.new(3, 3, 0.100000001)
  564. Decal154.Parent = Part147
  565. Decal154.Texture = "http://www.roblox.com/asset/?id=589089911"
  566. Decal155.Parent = Part147
  567. Decal155.Texture = "http://www.roblox.com/asset/?id=589089911"
  568. Decal155.Face = Enum.NormalId.Back
  569. Part156.Name = "Left Leg"
  570. Part156.Parent = Model0
  571. Part156.CFrame = CFrame.new(140, 1.50000906, -143.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  572. Part156.Orientation = Vector3.new(0, -90, 0)
  573. Part156.Position = Vector3.new(140, 1.50000906, -143.500015)
  574. Part156.Rotation = Vector3.new(0, -90, 0)
  575. Part156.Color = Color3.new(0.843137, 0.772549, 0.603922)
  576. Part156.Transparency = 1
  577. Part156.Size = Vector3.new(2, 3, 1)
  578. Part156.BottomSurface = Enum.SurfaceType.Smooth
  579. Part156.BrickColor = BrickColor.new("Brick yellow")
  580. Part156.CanCollide = false
  581. Part156.brickColor = BrickColor.new("Brick yellow")
  582. Part156.FormFactor = Enum.FormFactor.Symmetric
  583. Part156.formFactor = Enum.FormFactor.Symmetric
  584. Part157.Name = "Right Leg"
  585. Part157.Parent = Model0
  586. Part157.CFrame = CFrame.new(140, 1.50000906, -141.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  587. Part157.Orientation = Vector3.new(0, -90, 0)
  588. Part157.Position = Vector3.new(140, 1.50000906, -141.500015)
  589. Part157.Rotation = Vector3.new(0, -90, 0)
  590. Part157.Color = Color3.new(0.843137, 0.772549, 0.603922)
  591. Part157.Transparency = 1
  592. Part157.Size = Vector3.new(2, 3, 1)
  593. Part157.BottomSurface = Enum.SurfaceType.Smooth
  594. Part157.BrickColor = BrickColor.new("Brick yellow")
  595. Part157.CanCollide = false
  596. Part157.brickColor = BrickColor.new("Brick yellow")
  597. Part157.FormFactor = Enum.FormFactor.Symmetric
  598. Part157.formFactor = Enum.FormFactor.Symmetric
  599. Humanoid158.Name = "Zombie"
  600. Humanoid158.Parent = Model0
  601. Humanoid158.Health = 70
  602. Humanoid158.LeftLeg = Part156
  603. Humanoid158.MaxHealth = 70
  604. Humanoid158.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  605. Humanoid158.RightLeg = Part157
  606. Humanoid158.Torso = Part147
  607. Humanoid158.WalkSpeed = 80
  608. Humanoid158.maxHealth = 70
  609. BodyColors159.Parent = Model0
  610. BodyColors159.HeadColor = BrickColor.new("Bright yellow")
  611. BodyColors159.HeadColor3 = Color3.new(0.960784, 0.803922, 0.188235)
  612. BodyColors159.LeftArmColor = BrickColor.new("Medium stone grey")
  613. BodyColors159.LeftArmColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  614. BodyColors159.LeftLegColor = BrickColor.new("Brick yellow")
  615. BodyColors159.LeftLegColor3 = Color3.new(0.843137, 0.772549, 0.603922)
  616. BodyColors159.RightArmColor = BrickColor.new("Medium stone grey")
  617. BodyColors159.RightArmColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  618. BodyColors159.RightLegColor = BrickColor.new("Brick yellow")
  619. BodyColors159.RightLegColor3 = Color3.new(0.843137, 0.772549, 0.603922)
  620. BodyColors159.TorsoColor = BrickColor.new("Bright red")
  621. BodyColors159.TorsoColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  622. IntValue160.Name = "Mode"
  623. IntValue160.Parent = Model0
  624. Part161.Name = "Right Arm"
  625. Part161.Parent = Model0
  626. Part161.CFrame = CFrame.new(140, 5.00000906, -141.000015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  627. Part161.Orientation = Vector3.new(0, -90, 0)
  628. Part161.Position = Vector3.new(140, 5.00000906, -141.000015)
  629. Part161.Rotation = Vector3.new(0, -90, 0)
  630. Part161.Color = Color3.new(0.992157, 0.917647, 0.552941)
  631. Part161.Transparency = 1
  632. Part161.Size = Vector3.new(1, 4, 1)
  633. Part161.BrickColor = BrickColor.new("Cool yellow")
  634. Part161.CanCollide = false
  635. Part161.brickColor = BrickColor.new("Cool yellow")
  636. Part161.FormFactor = Enum.FormFactor.Symmetric
  637. Part161.formFactor = Enum.FormFactor.Symmetric
  638. Part162.Name = "Left Arm"
  639. Part162.Parent = Model0
  640. Part162.CFrame = CFrame.new(140, 5.00000906, -144.000015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  641. Part162.Orientation = Vector3.new(0, -90, 0)
  642. Part162.Position = Vector3.new(140, 5.00000906, -144.000015)
  643. Part162.Rotation = Vector3.new(0, -90, 0)
  644. Part162.Color = Color3.new(0.992157, 0.917647, 0.552941)
  645. Part162.Transparency = 1
  646. Part162.Size = Vector3.new(1, 4, 1)
  647. Part162.BrickColor = BrickColor.new("Cool yellow")
  648. Part162.CanCollide = false
  649. Part162.brickColor = BrickColor.new("Cool yellow")
  650. Part162.FormFactor = Enum.FormFactor.Symmetric
  651. Part162.formFactor = Enum.FormFactor.Symmetric
  652. Script163.Parent = Model0
  653. table.insert(cors,sandbox(Script163,function()
  654. local larm = script.Parent:FindFirstChild("Left Arm")
  655. local rarm = script.Parent:FindFirstChild("Right Arm")
  656.  
  657. function findNearestTorso(pos)
  658. local list = game.Workspace:children()
  659. local torso = nil
  660. local dist = 1000
  661. local temp = nil
  662. local human = nil
  663. local temp2 = nil
  664. for x = 1, #list do
  665. temp2 = list[x]
  666. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  667. temp = temp2:findFirstChild("Torso")
  668. human = temp2:findFirstChild("Humanoid")
  669. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  670. if (temp.Position - pos).magnitude < dist then
  671. torso = temp
  672. dist = (temp.Position - pos).magnitude
  673. end
  674. end
  675. end
  676. end
  677. return torso
  678. end
  679.  
  680. function Hit(hit)
  681. local human = hit.Parent:FindFirstChild("Humanoid")
  682. if human ~= nil then
  683. human.Health = human.Health -15
  684. end
  685. end
  686.  
  687. larm.Touched:connect(Hit)
  688. rarm.Touched:connect(Hit)
  689.  
  690. while true do
  691. wait(0.1)
  692. local target = findNearestTorso(script.Parent.Torso.Position)
  693. if target ~= nil then
  694. script.Parent.Zombie:MoveTo(target.Position, target)
  695. end
  696. end
  697.  
  698. end))
  699. Script164.Name = "Robot"
  700. Script164.Parent = Model0
  701. table.insert(cors,sandbox(Script164,function()
  702. model = script.Parent
  703. backup = model:Clone()
  704. regentime = 5 --5 minutes
  705.  
  706. ------------------
  707. --SPAWNING--
  708. ------------------
  709.  
  710. miked=script.Parent
  711.  
  712. itlh=miked.Torso:findFirstChild("Left Hip")
  713. itlh.Part0=miked.Torso
  714. itlh.Part1=miked:findFirstChild("Left Leg")
  715. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  716.  
  717. itrh=miked.Torso:findFirstChild("Right Hip")
  718. itrh.Part0=miked.Torso
  719. itrh.Part1=miked:findFirstChild("Right Leg")
  720. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  721.  
  722. itls=miked.Torso:findFirstChild("Left Shoulder")
  723. itls.Part1=miked.Torso
  724. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  725. itls.Part0=miked:findFirstChild("Left Arm")
  726.  
  727. itrs=miked.Torso:findFirstChild("Right Shoulder")
  728. itrs.Part1=miked.Torso
  729. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  730. itrs.Part0=miked:findFirstChild("Right Arm")
  731.  
  732. miked.Head:makeJoints()
  733. ------------------
  734. ------------------
  735.  
  736.  
  737. function waitForChild(parent, childName)
  738. while true do
  739. local child = parent:findFirstChild(childName)
  740. if child then
  741. return child
  742. end
  743. parent.ChildAdded:wait()
  744. end
  745. end
  746.  
  747. local Figure = script.Parent
  748. local Torso = waitForChild(Figure, "Torso")
  749. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  750. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  751. local RightHip = waitForChild(Torso, "Right Hip")
  752. local LeftHip = waitForChild(Torso, "Left Hip")
  753. local Neck = waitForChild(Torso, "Neck")
  754. local Humanoid = waitForChild(Figure, "Zombie")
  755. local pose = "Standing"
  756.  
  757. local toolAnim = "None"
  758. local toolAnimTime = 0
  759.  
  760. local isSeated = false
  761.  
  762.  
  763. function onRunning(speed)
  764. if isSeated then return end
  765.  
  766. if speed>0 then
  767. pose = "Running"
  768. else
  769. pose = "Standing"
  770. end
  771. end
  772.  
  773. function onDied()
  774. pose = "Dead"
  775. wait(regentime)
  776. wait(1)
  777. model:remove()
  778. model = backup:Clone()
  779. wait(3)
  780. model.Parent = game.Workspace
  781. model:MakeJoints()
  782. end
  783.  
  784. function onJumping()
  785. isSeated = false
  786. pose = "Jumping"
  787. end
  788.  
  789. function onClimbing()
  790. pose = "Climbing"
  791. end
  792.  
  793. function onGettingUp()
  794. pose = "GettingUp"
  795. end
  796.  
  797. function onFreeFall()
  798. pose = "FreeFall"
  799. end
  800.  
  801. function onDancing()
  802. pose = "Dancing"
  803. end
  804.  
  805. function onFallingDown()
  806. pose = "FallingDown"
  807. end
  808.  
  809. function onSeated()
  810. isSeated = true
  811. pose = "Seated"
  812. end
  813.  
  814.  
  815.  
  816. function moveJump()
  817. RightShoulder.MaxVelocity = 1
  818. LeftShoulder.MaxVelocity = 1
  819. RightShoulder.DesiredAngle = -3.14
  820. LeftShoulder.DesiredAngle = -3.14
  821. RightHip.DesiredAngle = 0
  822. LeftHip.DesiredAngle = 0
  823. end
  824.  
  825. function moveFreeFall()
  826. RightShoulder.MaxVelocity = 0.5
  827. LeftShoulder.MaxVelocity = 0.5
  828. RightShoulder.DesiredAngle = -1
  829. LeftShoulder.DesiredAngle = -1
  830. RightHip.DesiredAngle = 0
  831. LeftHip.DesiredAngle = 0
  832. end
  833.  
  834. function moveFloat()
  835. RightShoulder.MaxVelocity = 0.5
  836. LeftShoulder.MaxVelocity = 0.5
  837. RightShoulder.DesiredAngle = -1.57
  838. LeftShoulder.DesiredAngle = 1.57
  839. RightHip.DesiredAngle = 1.57
  840. LeftHip.DesiredAngle = -1.57
  841. end
  842.  
  843. function moveBoogy()
  844. while pose=="Boogy" do
  845. wait(.5)
  846. RightShoulder.MaxVelocity = 1
  847. LeftShoulder.MaxVelocity = 1
  848. RightShoulder.DesiredAngle = -3.14
  849. LeftShoulder.DesiredAngle = 0
  850. RightHip.DesiredAngle = 1.57
  851. LeftHip.DesiredAngle = 0
  852. wait(.5)
  853. RightShoulder.MaxVelocity = 1
  854. LeftShoulder.MaxVelocity = 1
  855. RightShoulder.DesiredAngle = 0
  856. LeftShoulder.DesiredAngle = -3.14
  857. RightHip.DesiredAngle = 0
  858. LeftHip.DesiredAngle = 1.57
  859. end
  860. end
  861.  
  862. function moveZombie()
  863. RightShoulder.MaxVelocity = 0.5
  864. LeftShoulder.MaxVelocity = 0.5
  865. RightShoulder.DesiredAngle = -1.57
  866. LeftShoulder.DesiredAngle = 1.57
  867. RightHip.DesiredAngle = 0
  868. LeftHip.DesiredAngle = 0
  869. end
  870.  
  871. function movePunch()
  872. script.Parent.Torso.Anchored=true
  873. RightShoulder.MaxVelocity = 60
  874. LeftShoulder.MaxVelocity = 0.5
  875. RightShoulder.DesiredAngle = -1.57
  876. LeftShoulder.DesiredAngle = 0
  877. RightHip.DesiredAngle = 0
  878. LeftHip.DesiredAngle = 0
  879. wait(1)
  880. script.Parent.Torso.Anchored=false
  881. pose="Standing"
  882.  
  883. end
  884.  
  885. function moveKick()
  886. RightShoulder.MaxVelocity = 0.5
  887. LeftShoulder.MaxVelocity = 0.5
  888. RightShoulder.DesiredAngle = 0
  889. LeftShoulder.DesiredAngle = 0
  890. RightHip.MaxVelocity = 40
  891. RightHip.DesiredAngle = 1.57
  892. LeftHip.DesiredAngle = 0
  893. wait(1)
  894. pose="Standing"
  895.  
  896. end
  897.  
  898. function moveFly()
  899. RightShoulder.MaxVelocity = 0.5
  900. LeftShoulder.MaxVelocity = 0.5
  901. RightShoulder.DesiredAngle = 0
  902. LeftShoulder.DesiredAngle = 0
  903. RightHip.MaxVelocity = 40
  904. RightHip.DesiredAngle = 1.57
  905. LeftHip.DesiredAngle = 0
  906. wait(1)
  907. pose="Standing"
  908.  
  909. end
  910.  
  911.  
  912. function moveClimb()
  913. RightShoulder.MaxVelocity = 0.5
  914. LeftShoulder.MaxVelocity = 0.5
  915. RightShoulder.DesiredAngle = -3.14
  916. LeftShoulder.DesiredAngle = 3.14
  917. RightHip.DesiredAngle = 0
  918. LeftHip.DesiredAngle = 0
  919. end
  920.  
  921. function moveSit()
  922. RightShoulder.MaxVelocity = 0.15
  923. LeftShoulder.MaxVelocity = 0.15
  924. RightShoulder.DesiredAngle = -3.14 /2
  925. LeftShoulder.DesiredAngle = -3.14 /2
  926. RightHip.DesiredAngle = 3.14 /2
  927. LeftHip.DesiredAngle = -3.14 /2
  928. end
  929.  
  930. function getTool()
  931.  
  932. kidTable = Figure:children()
  933. if (kidTable ~= nil) then
  934. numKids = #kidTable
  935. for i=1,numKids do
  936. if (kidTable[i].className == "Tool") then return kidTable[i] end
  937. end
  938. end
  939.  
  940. return nil
  941. end
  942.  
  943. function getToolAnim(tool)
  944.  
  945. c = tool:children()
  946. for i=1,#c do
  947. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  948. return c[i]
  949. end
  950. end
  951. return nil
  952. end
  953.  
  954. function animateTool()
  955.  
  956. if (toolAnim == "None") then
  957. RightShoulder.DesiredAngle = -1.57
  958. return
  959. end
  960.  
  961. if (toolAnim == "Slash") then
  962. RightShoulder.MaxVelocity = 0.5
  963. RightShoulder.DesiredAngle = 0
  964. return
  965. end
  966.  
  967. if (toolAnim == "Lunge") then
  968. RightShoulder.MaxVelocity = 0.5
  969. LeftShoulder.MaxVelocity = 0.5
  970. RightHip.MaxVelocity = 0.5
  971. LeftHip.MaxVelocity = 0.5
  972. RightShoulder.DesiredAngle = -1.57
  973. LeftShoulder.DesiredAngle = 1.0
  974. RightHip.DesiredAngle = 1.57
  975. LeftHip.DesiredAngle = 1.0
  976. return
  977. end
  978. end
  979.  
  980. function move(time)
  981. local amplitude
  982. local frequency
  983.  
  984. if (pose == "Jumping") then
  985. moveJump()
  986. return
  987. end
  988.  
  989. if (pose == "Zombie") then
  990. moveZombie()
  991. return
  992. end
  993.  
  994. if (pose == "Boogy") then
  995. moveBoogy()
  996. return
  997. end
  998.  
  999. if (pose == "Float") then
  1000. moveFloat()
  1001. return
  1002. end
  1003.  
  1004. if (pose == "Punch") then
  1005. movePunch()
  1006. return
  1007. end
  1008.  
  1009. if (pose == "Kick") then
  1010. moveKick()
  1011. return
  1012. end
  1013.  
  1014. if (pose == "Fly") then
  1015. moveFly()
  1016. return
  1017. end
  1018.  
  1019. if (pose == "FreeFall") then
  1020. moveFreeFall()
  1021. return
  1022. end
  1023.  
  1024. if (pose == "Climbing") then
  1025. moveClimb()
  1026. return
  1027. end
  1028.  
  1029. if (pose == "Seated") then
  1030. moveSit()
  1031. return
  1032. end
  1033.  
  1034. amplitude = 0.1
  1035. frequency = 1
  1036.  
  1037. RightShoulder.MaxVelocity = 0.15
  1038. LeftShoulder.MaxVelocity = 0.15
  1039. if (pose == "Running") then
  1040. amplitude = 1
  1041. frequency = 9
  1042. elseif (pose == "Dancing") then
  1043. amplitude = 2
  1044. frequency = 16
  1045. end
  1046.  
  1047.  
  1048. desiredAngle = amplitude * math.sin(time*frequency)
  1049. if pose~="Dancing" then
  1050. RightShoulder.DesiredAngle = -desiredAngle
  1051. LeftShoulder.DesiredAngle = desiredAngle
  1052. RightHip.DesiredAngle = -desiredAngle
  1053. LeftHip.DesiredAngle = -desiredAngle
  1054. else
  1055. RightShoulder.DesiredAngle = desiredAngle
  1056. LeftShoulder.DesiredAngle = desiredAngle
  1057. RightHip.DesiredAngle = -desiredAngle
  1058. LeftHip.DesiredAngle = -desiredAngle
  1059. end
  1060.  
  1061.  
  1062.  
  1063. local tool = getTool()
  1064.  
  1065. if tool ~= nil then
  1066.  
  1067. animStringValueObject = getToolAnim(tool)
  1068.  
  1069. if animStringValueObject ~= nil then
  1070. toolAnim = animStringValueObject.Value
  1071. -- message recieved, delete StringValue
  1072. animStringValueObject.Parent = nil
  1073. toolAnimTime = time + .3
  1074. end
  1075.  
  1076. if time > toolAnimTime then
  1077. toolAnimTime = 0
  1078. toolAnim = "None"
  1079. end
  1080.  
  1081. animateTool()
  1082.  
  1083.  
  1084. else
  1085. toolAnim = "None"
  1086. toolAnimTime = 0
  1087. end
  1088. end
  1089.  
  1090.  
  1091. -- connect events
  1092. -----------------------------------------------------------------------------------------------------------------------
  1093.  
  1094. function unequip()
  1095. local items=script.Parent:children()
  1096. for i=1, #items do
  1097. if items[i].className=="Tool" then items[i]:remove() end
  1098. end
  1099. end
  1100.  
  1101. function onChatted(msg, recipient)
  1102. msg = string.lower(msg)
  1103.  
  1104. if string.match(msg, string.lower(script.Parent.Name))~=nil or string.match(msg, "everyone") then
  1105. if string.match(msg, "equip") then
  1106. if game.Workspace:findFirstChild("Hub") then
  1107. if string.match(msg, "rocket") then unequip()
  1108. game.Workspace.Hub.Rocket:clone().Parent=script.Parent
  1109. elseif string.match(msg, "slingshot") then unequip()
  1110. game.Workspace.Hub.Slingshot:clone().Parent=script.Parent
  1111. elseif string.match(msg, "sword") then unequip()
  1112. game.Workspace.Hub.Sword:clone().Parent=script.Parent
  1113. elseif string.match(msg, "pbg") then unequip()
  1114. game.Workspace.Hub.PBG:clone().Parent=script.Parent
  1115. elseif string.match(msg, "superball") then unequip()
  1116. game.Workspace.Hub.Superball:clone().Parent=script.Parent
  1117. elseif string.match(msg, "trowel") then unequip()
  1118. game.Workspace.Hub.Trowel:clone().Parent=script.Parent
  1119. elseif string.match(msg, "bomb") then unequip()
  1120. game.Workspace.Hub.Bomb:clone().Parent=script.Parent
  1121. end
  1122. end
  1123. end
  1124. if string.match(msg, "unequip") then unequip() end
  1125. if string.match(msg, "run") then onRunning(1) end
  1126. if string.match(msg, "climb") then onClimbing() end
  1127. if string.match(msg, "jump") then onJumping() end
  1128. if string.match(msg, "zombie") then pose="Zombie" end
  1129. if string.match(msg, "disco") then pose="Boogy" end
  1130. if string.match(msg, "float") then pose="Float" end
  1131. if string.match(msg, "punch") then pose="Punch" end
  1132. if string.match(msg, "kick") then pose="Kick" end
  1133. if string.match(msg, "fly") then pose="Fly" end
  1134. if string.match(msg, "heal") then script.Parent.Humanoid.Health=script.Parent.Humanoid.MaxHealth end
  1135. if string.match(msg, "defend") then defence() end
  1136. if string.match(msg, "stop") then pose="Standing"; proxkill=false; following=false; stopmoving() end
  1137. if string.match(msg, "go home") then following=false; gohome() end
  1138. if string.match(msg, "follow") then
  1139. if string.match(msg, "all") then
  1140. followany()
  1141. else
  1142. local egg=game.Players:children()
  1143. for i=1, #egg do
  1144. if string.match(msg, string.lower(egg[i].Name)) then
  1145. follow(egg[i].Name)
  1146. return
  1147. end
  1148. end
  1149. end
  1150. end
  1151. if string.match(msg, "kill") then
  1152. if string.match(msg, "all") then
  1153. attackany()
  1154. else
  1155. local egg=game.Players:children()
  1156. for i=1, #egg do
  1157. if string.match(msg, string.lower(egg[i].Name)) then
  1158. attack(egg[i].Name)
  1159. return
  1160. end
  1161. end
  1162. end
  1163. end
  1164.  
  1165. end
  1166. end
  1167.  
  1168. if game.Players.NumPlayers>1 then
  1169. x=game.Players:children()
  1170.  
  1171. for i=1, #x do
  1172. if script.Parent:findFirstChild("Commander")~=nil then
  1173. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  1174. local ch=script.Parent.Commander:children()
  1175. for i=1, #ch do
  1176. if string.lower(ch[i].Name)==string.lower(x[i].Name) then
  1177. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1178. end
  1179. end
  1180. elseif string.lower(script.Parent.Commander.Value)==string.lower(x[i].Name) then
  1181. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1182. end
  1183. else
  1184. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1185. end
  1186. end
  1187. end
  1188.  
  1189.  
  1190. function onPlayerEntered(Player)
  1191. while Player.Name==nil do
  1192. wait(2)
  1193. end
  1194. if script.Parent:findFirstChild("Commander")~=nil then
  1195. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  1196. local ch=script.Parent.Commander:children()
  1197. for i=1, #ch do
  1198. if string.lower(ch[i].Name)==string.lower(Player.Name) then
  1199. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1200. end
  1201. end
  1202. elseif string.lower(script.Parent.Commander.Value)==string.lower(Player.Name) then
  1203. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1204. end
  1205. else
  1206. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  1207. end
  1208. end
  1209.  
  1210. game.Players.ChildAdded:connect(onPlayerEntered)
  1211.  
  1212.  
  1213.  
  1214. -----------------------------------------------------------------------------------------------------------------------
  1215. -----------------------------------------------------------------------------------------------------------------------
  1216. -----------------------------------------------------------------------------------------------------------------------
  1217. -----------------------------------------------------------------------------------------------------------------------
  1218. -----------------------------------------------------------------------------------------------------------------------
  1219. -----------------------------------------------------------------------------------------------------------------------
  1220. -----------------------------------------------------------------------------------------------------------------------
  1221. -----------------------------------------------------------------------------------------------------------------------
  1222. -----------------------------------------------------------------------------------------------------------------------
  1223. -----------------------------------------------------------------------------------------------------------------------
  1224. -----------------------------------------------------------------------------------------------------------------------
  1225. -----------------------------------------------------------------------------------------------------------------------
  1226. dist=20
  1227.  
  1228. function followany()
  1229. following=true
  1230. while following==true do
  1231.  
  1232. local ch=game.Players:children()
  1233. for i=1, #ch do
  1234. local l=game.Workspace:findFirstChild(ch[i].Name)
  1235. if l~=nil then
  1236. local s=l.Torso
  1237. local p=l.Torso.Position
  1238. local q=script.Parent.Torso.Position
  1239. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1240. if smallest==nil then
  1241. smallest=d
  1242. target=s
  1243. elseif d<smallest then
  1244. smallest=d
  1245. target=s
  1246. end
  1247. end
  1248. end
  1249.  
  1250. if smallest==nil then stopmoving() return end
  1251.  
  1252. if smallest>6*dist then return end
  1253.  
  1254. script.Parent.Humanoid:MoveTo(target.Position, target)
  1255.  
  1256. wait(0.5)
  1257. for i=1, 6 do
  1258. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  1259. end
  1260. end
  1261. end
  1262.  
  1263.  
  1264.  
  1265. function gohome()
  1266. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  1267. end
  1268. function stopmoving()
  1269. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  1270. end
  1271.  
  1272. function follow(name)
  1273. following=true
  1274.  
  1275. local p=game.Workspace:findFirstChild(name)
  1276. if p==nil then return end
  1277. while following==true do
  1278. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  1279. wait(0.5)
  1280. for i=1, 3 do
  1281. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1282. wait(0.5)
  1283. end
  1284. end
  1285. end
  1286.  
  1287. function attack(name)
  1288. if script.Parent:findFirstChild("Sword")~=nil then
  1289. following=true
  1290. local p=game.Workspace:findFirstChild(name)
  1291. if p==nil then return end
  1292. while following==true do
  1293. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  1294. wait(0.5)
  1295. for i=1, 3 do
  1296. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1297. local l=p.Torso.Position
  1298. local q=script.Parent.Torso.Position
  1299. local d=math.sqrt( ((l.x-q.x)^2)+((l.y-q.y)^2)+((l.z-q.z)^2) )
  1300. if d<10 then
  1301. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso); slash()
  1302. if (q.y-l.y)>3 and (q.y-l.y)<7 then
  1303. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1304. end
  1305. end
  1306. wait(1)
  1307. end
  1308. end
  1309. end
  1310. end
  1311.  
  1312. function attackany()
  1313. if script.Parent:findFirstChild("Sword")~=nil then
  1314.  
  1315. following=true
  1316. while following==true do
  1317.  
  1318. local ch=game.Players:children()
  1319. for i=1, #ch do
  1320. local l=game.Workspace:findFirstChild(ch[i].Name)
  1321. if l~=nil then
  1322. local s=l.Torso
  1323. local p=l.Torso.Position
  1324. local q=script.Parent.Torso.Position
  1325. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1326. if smallest==nil then
  1327. smallest=d
  1328. target=s
  1329. elseif d<smallest then
  1330. smallest=d
  1331. target=s
  1332. end
  1333. end
  1334. end
  1335.  
  1336. if smallest==nil then stopmoving() return end
  1337.  
  1338. if smallest>6*dist then return end
  1339.  
  1340. script.Parent.Humanoid:MoveTo(target.Position, target)
  1341.  
  1342. if smallest<10 then
  1343. slash()
  1344. end
  1345. if target.Parent==nil then stopmoving() return end
  1346. wait(0.5)
  1347. for i=1, 3 do
  1348. if target.Parent.Humanoid.Health<1 then
  1349. stopmoving()
  1350. else
  1351. local p=target.Position
  1352. local q=script.Parent.Torso.Position
  1353. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1354. if d<10 then
  1355. script.Parent.Humanoid:MoveTo(target.Position, target); slash()
  1356. if (q.y-p.y)>3 and (q.y-p.y)<7 then
  1357. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1358. end
  1359. end
  1360. wait(1)
  1361. end
  1362. end
  1363. end
  1364. end
  1365. end
  1366.  
  1367.  
  1368. function patrol()
  1369. if points==nil then
  1370. points=0
  1371. if game.Workspace:findFirstChild("pp1")~=nil then
  1372. pp1=game.Workspace:findFirstChild("pp1")
  1373. local points=points+1
  1374. if game.Workspace:findFirstChild("pp2")~=nil then
  1375. pp2=game.Workspace:findFirstChild("pp2")
  1376. local points=points+1
  1377. if game.Workspace:findFirstChild("pp3")~=nil then
  1378. pp3=game.Workspace:findFirstChild("pp3")
  1379. local points=points+1
  1380. if game.Workspace:findFirstChild("pp4")~=nil then
  1381. pp4=game.Workspace:findFirstChild("pp4")
  1382. local points=points+1
  1383. if game.Workspace:findFirstChild("pp5")~=nil then
  1384. pp5=game.Workspace:findFirstChild("pp5")
  1385. local points=points+1
  1386. if game.Workspace:findFirstChild("pp6")~=nil then
  1387. pp6=game.Workspace:findFirstChild("pp6")
  1388. local points=points+1
  1389. if game.Workspace:findFirstChild("pp7")~=nil then
  1390. pp7=game.Workspace:findFirstChild("pp7")
  1391. local points=points+1
  1392. if game.Workspace:findFirstChild("pp8")~=nil then
  1393. pp8=game.Workspace:findFirstChild("pp8")
  1394. local points=points+1
  1395. if game.Workspace:findFirstChild("pp9")~=nil then
  1396. pp9=game.Workspace:findFirstChild("pp9")
  1397. local points=points+1
  1398. end
  1399. end
  1400. end
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end
  1406. end
  1407. end
  1408.  
  1409. if points<1 then return end
  1410. patrolling=true
  1411. local time=2
  1412. if points==1 then return end
  1413. if points>1 then
  1414. while patrolling==true do
  1415. script.Parent.Humanoid:MoveTo(pp1.Position, pp1)
  1416. wait(time)
  1417. script.Parent.Humanoid:MoveTo(pp2.Position, pp2)
  1418. wait(time)
  1419. if points>2 then
  1420. script.Parent.Humanoid:MoveTo(pp3.Position, pp3)
  1421. wait(time)
  1422. if points>3 then
  1423. script.Parent.Humanoid:MoveTo(pp4.Position, pp4)
  1424. wait(time)
  1425. if points>4 then
  1426. script.Parent.Humanoid:MoveTo(pp5.Position, pp5)
  1427. wait(time)
  1428. if points>5 then
  1429. script.Parent.Humanoid:MoveTo(pp6.Position, pp6)
  1430. wait(time)
  1431. if points>6 then
  1432. script.Parent.Humanoid:MoveTo(pp7.Position, pp7)
  1433. wait(time)
  1434. if points>7 then
  1435. script.Parent.Humanoid:MoveTo(pp8.Position, pp8)
  1436. wait(time)
  1437. if points>8 then
  1438. script.Parent.Humanoid:MoveTo(pp9.Position, pp9)
  1439. wait(time)
  1440. end
  1441. end
  1442. end
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448. end
  1449. end
  1450.  
  1451.  
  1452. function goto(pos,part)
  1453. while true do
  1454. end
  1455. end
  1456.  
  1457.  
  1458. function slash()
  1459. for i=1, 3 do
  1460. wait(.3)
  1461. RightShoulder.MaxVelocity = 2
  1462. LeftShoulder.MaxVelocity = 1
  1463. RightShoulder.DesiredAngle = -2.14
  1464. LeftShoulder.DesiredAngle = 0
  1465. RightHip.DesiredAngle = 0
  1466. LeftHip.DesiredAngle = 0
  1467. wait(.2)
  1468. RightShoulder.MaxVelocity = 2
  1469. LeftShoulder.MaxVelocity = 1
  1470. RightShoulder.DesiredAngle = 0
  1471. LeftShoulder.DesiredAngle = 0
  1472. RightHip.DesiredAngle = 0
  1473. LeftHip.DesiredAngle = 0
  1474. end
  1475. end
  1476.  
  1477. function defence()
  1478. proxkill=true
  1479. while proxkill==true do
  1480. local ch=game.Players:children()
  1481. for i=1, #ch do
  1482. local p=game.Workspace:findFirstChild(ch[i].Name)
  1483. if p~=nil then
  1484. local p=p.Torso.Position
  1485. local q=script.Parent.Torso.Position
  1486. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1487. if d<dist and d>8 then
  1488. local ex=Instance.new("Explosion")
  1489. ex.Position=p
  1490. ex.Parent=game.Workspace
  1491. end
  1492. end
  1493. end
  1494. wait(1)
  1495. end
  1496. end
  1497.  
  1498.  
  1499.  
  1500.  
  1501. -----------------------------------------------------------------------------------------------------------------------
  1502. -----------------------------------------------------------------------------------------------------------------------
  1503. -----------------------------------------------------------------------------------------------------------------------
  1504. -----------------------------------------------------------------------------------------------------------------------
  1505. -----------------------------------------------------------------------------------------------------------------------
  1506. -----------------------------------------------------------------------------------------------------------------------
  1507. -----------------------------------------------------------------------------------------------------------------------
  1508. -----------------------------------------------------------------------------------------------------------------------
  1509. -----------------------------------------------------------------------------------------------------------------------
  1510. -----------------------------------------------------------------------------------------------------------------------
  1511. -----------------------------------------------------------------------------------------------------------------------
  1512. -----------------------------------------------------------------------------------------------------------------------
  1513.  
  1514.  
  1515. Humanoid.Died:connect(onDied)
  1516. Humanoid.Running:connect(onRunning)
  1517. Humanoid.Jumping:connect(onJumping)
  1518. Humanoid.Climbing:connect(onClimbing)
  1519. Humanoid.GettingUp:connect(onGettingUp)
  1520. Humanoid.FreeFalling:connect(onFreeFall)
  1521. Humanoid.FallingDown:connect(onFallingDown)
  1522. Humanoid.Seated:connect(onSeated)
  1523.  
  1524.  
  1525. --[[
  1526.  
  1527. function newSound(id)
  1528. local sound = Instance.new("Sound")
  1529. sound.SoundId = id
  1530. sound.Parent = script.Parent.Head
  1531. return sound
  1532. end
  1533.  
  1534.  
  1535. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  1536. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1537. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1538. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1539. local sJumping = newSound("rbxasset://sounds/button.wav")
  1540. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1541. sRunning.Looped = true
  1542.  
  1543. local Figure = script.Parent
  1544. local Head = waitForChild(Figure, "Head")
  1545. local Humanoid = waitForChild(Figure, "Humanoid")
  1546.  
  1547.  
  1548. function onDied()
  1549. sDied:play()
  1550. end
  1551.  
  1552. function onState(state, sound)
  1553. if state then
  1554. sound:play()
  1555. else
  1556. sound:pause()
  1557. end
  1558. end
  1559.  
  1560. function onRunning(speed)
  1561. if speed>0 then
  1562. sRunning:play()
  1563. else
  1564. sRunning:pause()
  1565. end
  1566. end
  1567.  
  1568.  
  1569. Humanoid.Died:connect(onDied)
  1570. Humanoid.Running:connect(onRunning)
  1571. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1572. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1573. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1574. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1575. --]]
  1576.  
  1577. local nextTime = 0
  1578. local runService = game:service("RunService");
  1579.  
  1580. while Figure.Parent~=nil do
  1581. time = runService.Stepped:wait()
  1582. if time > nextTime then
  1583. move(time)
  1584. nextTime = time + 0.1
  1585. end
  1586. end
  1587.  
  1588. end))
  1589. Script165.Name = "Death"
  1590. Script165.Parent = Model0
  1591. table.insert(cors,sandbox(Script165,function()
  1592. player = script.Parent
  1593.  
  1594. if player.Zombie.Health == 0 then
  1595.  
  1596. player.Torso.Anchored = true
  1597. player.Torso.Front.Script:Remove()
  1598. wait(0.1)
  1599. player.Torso.Front.Texture = "http://www.roblox.com/asset/?id=17715389"
  1600.  
  1601.  
  1602. end
  1603. end))
  1604. Script166.Name = "Health"
  1605. Script166.Parent = Model0
  1606. table.insert(cors,sandbox(Script166,function()
  1607. script.Parent.Zombie.MaxHealth = 220
  1608. wait()
  1609. script.Parent.Zombie.Health = 220 -- That's how much health it has in the game :P
  1610.  
  1611. end))
  1612. Sound167.Parent = Model0
  1613. Sound167.Looped = true
  1614. Sound167.Playing = true
  1615. Sound167.SoundId = "rbxassetid://217976249"
  1616. Sound167.Volume = 0.20000000298023
  1617. for i,v in pairs(mas:GetChildren()) do
  1618. v.Parent = workspace
  1619. pcall(function() v:MakeJoints() end)
  1620. end
  1621. mas:Destroy()
  1622. for i,v in pairs(cors) do
  1623. spawn(function()
  1624. pcall(v)
  1625. end)
  1626. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement