GabeTheDog

Chamber

Mar 26th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 163.43 KB | None | 0 0
  1. --Made By Bartus2009_Bro/GabeTheDog
  2. --Discord: Gabe#2408
  3.  
  4.  
  5. --Converted with ttyyuu12345's model to script plugin v4
  6. function sandbox(var,func)
  7. local env = getfenv(func)
  8. local newenv = setmetatable({},{
  9. __index = function(self,k)
  10. if k=="script" then
  11. return var
  12. else
  13. return env[k]
  14. end
  15. end,
  16. })
  17. setfenv(func,newenv)
  18. return func
  19. end
  20. cors = {}
  21. mas = Instance.new("Model",game:GetService("Lighting"))
  22. Model0 = Instance.new("Model")
  23. Model1 = Instance.new("Model")
  24. Humanoid2 = Instance.new("Humanoid")
  25. BodyColors3 = Instance.new("BodyColors")
  26. Part4 = Instance.new("Part")
  27. Part5 = Instance.new("Part")
  28. SpecialMesh6 = Instance.new("SpecialMesh")
  29. Decal7 = Instance.new("Decal")
  30. Weld8 = Instance.new("Weld")
  31. Weld9 = Instance.new("Weld")
  32. Weld10 = Instance.new("Weld")
  33. Weld11 = Instance.new("Weld")
  34. Weld12 = Instance.new("Weld")
  35. Weld13 = Instance.new("Weld")
  36. Weld14 = Instance.new("Weld")
  37. Weld15 = Instance.new("Weld")
  38. Weld16 = Instance.new("Weld")
  39. Script17 = Instance.new("Script")
  40. IntValue18 = Instance.new("IntValue")
  41. Script19 = Instance.new("Script")
  42. Script20 = Instance.new("Script")
  43. Part21 = Instance.new("Part")
  44. Part22 = Instance.new("Part")
  45. Attachment23 = Instance.new("Attachment")
  46. Attachment24 = Instance.new("Attachment")
  47. RodConstraint25 = Instance.new("RodConstraint")
  48. Part26 = Instance.new("Part")
  49. Decal27 = Instance.new("Decal")
  50. Motor28 = Instance.new("Motor")
  51. Motor29 = Instance.new("Motor")
  52. Motor30 = Instance.new("Motor")
  53. Motor31 = Instance.new("Motor")
  54. Snap32 = Instance.new("Snap")
  55. Part33 = Instance.new("Part")
  56. Script34 = Instance.new("Script")
  57. Script35 = Instance.new("Script")
  58. Model36 = Instance.new("Model")
  59. Humanoid37 = Instance.new("Humanoid")
  60. BodyColors38 = Instance.new("BodyColors")
  61. Part39 = Instance.new("Part")
  62. Attachment40 = Instance.new("Attachment")
  63. Part41 = Instance.new("Part")
  64. SpecialMesh42 = Instance.new("SpecialMesh")
  65. Decal43 = Instance.new("Decal")
  66. Weld44 = Instance.new("Weld")
  67. Weld45 = Instance.new("Weld")
  68. Weld46 = Instance.new("Weld")
  69. Weld47 = Instance.new("Weld")
  70. Weld48 = Instance.new("Weld")
  71. Weld49 = Instance.new("Weld")
  72. Weld50 = Instance.new("Weld")
  73. Weld51 = Instance.new("Weld")
  74. Weld52 = Instance.new("Weld")
  75. Script53 = Instance.new("Script")
  76. IntValue54 = Instance.new("IntValue")
  77. Script55 = Instance.new("Script")
  78. Script56 = Instance.new("Script")
  79. Part57 = Instance.new("Part")
  80. Part58 = Instance.new("Part")
  81. Attachment59 = Instance.new("Attachment")
  82. RodConstraint60 = Instance.new("RodConstraint")
  83. Part61 = Instance.new("Part")
  84. Decal62 = Instance.new("Decal")
  85. Motor63 = Instance.new("Motor")
  86. Motor64 = Instance.new("Motor")
  87. Motor65 = Instance.new("Motor")
  88. Motor66 = Instance.new("Motor")
  89. Snap67 = Instance.new("Snap")
  90. Part68 = Instance.new("Part")
  91. Script69 = Instance.new("Script")
  92. Script70 = Instance.new("Script")
  93. Part71 = Instance.new("Part")
  94. Part72 = Instance.new("Part")
  95. Part73 = Instance.new("Part")
  96. Attachment74 = Instance.new("Attachment")
  97. Part75 = Instance.new("Part")
  98. Part76 = Instance.new("Part")
  99. Attachment77 = Instance.new("Attachment")
  100. Part78 = Instance.new("Part")
  101. Part79 = Instance.new("Part")
  102. Part80 = Instance.new("Part")
  103. Part81 = Instance.new("Part")
  104. Part82 = Instance.new("Part")
  105. Part83 = Instance.new("Part")
  106. Part84 = Instance.new("Part")
  107. Part85 = Instance.new("Part")
  108. Model86 = Instance.new("Model")
  109. Part87 = Instance.new("Part")
  110. SpecialMesh88 = Instance.new("SpecialMesh")
  111. Sound89 = Instance.new("Sound")
  112. Sound90 = Instance.new("Sound")
  113. Sound91 = Instance.new("Sound")
  114. Sound92 = Instance.new("Sound")
  115. Sound93 = Instance.new("Sound")
  116. Sound94 = Instance.new("Sound")
  117. Sound95 = Instance.new("Sound")
  118. Sound96 = Instance.new("Sound")
  119. Sound97 = Instance.new("Sound")
  120. Sound98 = Instance.new("Sound")
  121. Sound99 = Instance.new("Sound")
  122. Sound100 = Instance.new("Sound")
  123. Sound101 = Instance.new("Sound")
  124. Sound102 = Instance.new("Sound")
  125. Sound103 = Instance.new("Sound")
  126. Sound104 = Instance.new("Sound")
  127. Sound105 = Instance.new("Sound")
  128. Sound106 = Instance.new("Sound")
  129. Sound107 = Instance.new("Sound")
  130. Sound108 = Instance.new("Sound")
  131. Sound109 = Instance.new("Sound")
  132. Sound110 = Instance.new("Sound")
  133. Sound111 = Instance.new("Sound")
  134. Sound112 = Instance.new("Sound")
  135. Sound113 = Instance.new("Sound")
  136. Sound114 = Instance.new("Sound")
  137. Sound115 = Instance.new("Sound")
  138. Sound116 = Instance.new("Sound")
  139. Sound117 = Instance.new("Sound")
  140. Sound118 = Instance.new("Sound")
  141. Sound119 = Instance.new("Sound")
  142. Sound120 = Instance.new("Sound")
  143. Sound121 = Instance.new("Sound")
  144. Sound122 = Instance.new("Sound")
  145. Sound123 = Instance.new("Sound")
  146. Sound124 = Instance.new("Sound")
  147. Sound125 = Instance.new("Sound")
  148. Sound126 = Instance.new("Sound")
  149. Sound127 = Instance.new("Sound")
  150. Sound128 = Instance.new("Sound")
  151. Sound129 = Instance.new("Sound")
  152. Sound130 = Instance.new("Sound")
  153. Sound131 = Instance.new("Sound")
  154. Sound132 = Instance.new("Sound")
  155. Sound133 = Instance.new("Sound")
  156. Sound134 = Instance.new("Sound")
  157. Sound135 = Instance.new("Sound")
  158. Sound136 = Instance.new("Sound")
  159. Sound137 = Instance.new("Sound")
  160. Sound138 = Instance.new("Sound")
  161. Sound139 = Instance.new("Sound")
  162. Sound140 = Instance.new("Sound")
  163. Sound141 = Instance.new("Sound")
  164. Sound142 = Instance.new("Sound")
  165. Sound143 = Instance.new("Sound")
  166. Sound144 = Instance.new("Sound")
  167. Sound145 = Instance.new("Sound")
  168. Sound146 = Instance.new("Sound")
  169. Sound147 = Instance.new("Sound")
  170. Sound148 = Instance.new("Sound")
  171. Sound149 = Instance.new("Sound")
  172. Sound150 = Instance.new("Sound")
  173. Sound151 = Instance.new("Sound")
  174. Sound152 = Instance.new("Sound")
  175. Sound153 = Instance.new("Sound")
  176. Sound154 = Instance.new("Sound")
  177. Sound155 = Instance.new("Sound")
  178. Sound156 = Instance.new("Sound")
  179. Sound157 = Instance.new("Sound")
  180. Sound158 = Instance.new("Sound")
  181. Sound159 = Instance.new("Sound")
  182. Sound160 = Instance.new("Sound")
  183. Sound161 = Instance.new("Sound")
  184. Sound162 = Instance.new("Sound")
  185. Sound163 = Instance.new("Sound")
  186. Sound164 = Instance.new("Sound")
  187. Sound165 = Instance.new("Sound")
  188. Sound166 = Instance.new("Sound")
  189. Sound167 = Instance.new("Sound")
  190. Sound168 = Instance.new("Sound")
  191. Sound169 = Instance.new("Sound")
  192. Sound170 = Instance.new("Sound")
  193. Sound171 = Instance.new("Sound")
  194. Sound172 = Instance.new("Sound")
  195. Sound173 = Instance.new("Sound")
  196. Sound174 = Instance.new("Sound")
  197. Sound175 = Instance.new("Sound")
  198. Sound176 = Instance.new("Sound")
  199. Sound177 = Instance.new("Sound")
  200. Sound178 = Instance.new("Sound")
  201. Sound179 = Instance.new("Sound")
  202. Sound180 = Instance.new("Sound")
  203. Sound181 = Instance.new("Sound")
  204. Sound182 = Instance.new("Sound")
  205. Sound183 = Instance.new("Sound")
  206. Sound184 = Instance.new("Sound")
  207. Sound185 = Instance.new("Sound")
  208. Sound186 = Instance.new("Sound")
  209. Sound187 = Instance.new("Sound")
  210. Sound188 = Instance.new("Sound")
  211. Sound189 = Instance.new("Sound")
  212. Sound190 = Instance.new("Sound")
  213. Sound191 = Instance.new("Sound")
  214. Sound192 = Instance.new("Sound")
  215. Sound193 = Instance.new("Sound")
  216. Sound194 = Instance.new("Sound")
  217. Sound195 = Instance.new("Sound")
  218. Sound196 = Instance.new("Sound")
  219. Sound197 = Instance.new("Sound")
  220. Sound198 = Instance.new("Sound")
  221. Sound199 = Instance.new("Sound")
  222. Sound200 = Instance.new("Sound")
  223. Sound201 = Instance.new("Sound")
  224. Sound202 = Instance.new("Sound")
  225. Sound203 = Instance.new("Sound")
  226. Sound204 = Instance.new("Sound")
  227. Sound205 = Instance.new("Sound")
  228. Sound206 = Instance.new("Sound")
  229. Sound207 = Instance.new("Sound")
  230. Sound208 = Instance.new("Sound")
  231. Sound209 = Instance.new("Sound")
  232. Sound210 = Instance.new("Sound")
  233. Sound211 = Instance.new("Sound")
  234. Sound212 = Instance.new("Sound")
  235. Sound213 = Instance.new("Sound")
  236. Sound214 = Instance.new("Sound")
  237. Sound215 = Instance.new("Sound")
  238. Sound216 = Instance.new("Sound")
  239. Sound217 = Instance.new("Sound")
  240. Sound218 = Instance.new("Sound")
  241. Sound219 = Instance.new("Sound")
  242. Sound220 = Instance.new("Sound")
  243. Sound221 = Instance.new("Sound")
  244. Sound222 = Instance.new("Sound")
  245. Sound223 = Instance.new("Sound")
  246. Sound224 = Instance.new("Sound")
  247. Sound225 = Instance.new("Sound")
  248. Sound226 = Instance.new("Sound")
  249. Sound227 = Instance.new("Sound")
  250. Sound228 = Instance.new("Sound")
  251. Sound229 = Instance.new("Sound")
  252. Sound230 = Instance.new("Sound")
  253. Sound231 = Instance.new("Sound")
  254. Sound232 = Instance.new("Sound")
  255. Decal233 = Instance.new("Decal")
  256. Part234 = Instance.new("Part")
  257. Motor235 = Instance.new("Motor")
  258. Snap236 = Instance.new("Snap")
  259. Motor237 = Instance.new("Motor")
  260. Motor238 = Instance.new("Motor")
  261. Motor239 = Instance.new("Motor")
  262. Part240 = Instance.new("Part")
  263. Part241 = Instance.new("Part")
  264. Humanoid242 = Instance.new("Humanoid")
  265. BodyColors243 = Instance.new("BodyColors")
  266. IntValue244 = Instance.new("IntValue")
  267. Part245 = Instance.new("Part")
  268. Weld246 = Instance.new("Weld")
  269. Part247 = Instance.new("Part")
  270. Script248 = Instance.new("Script")
  271. Script249 = Instance.new("Script")
  272. Script250 = Instance.new("Script")
  273. Tool251 = Instance.new("Tool")
  274. Script252 = Instance.new("Script")
  275. Animation253 = Instance.new("Animation")
  276. BindableEvent254 = Instance.new("BindableEvent")
  277. LocalScript255 = Instance.new("LocalScript")
  278. Animation256 = Instance.new("Animation")
  279. Animation257 = Instance.new("Animation")
  280. Sound258 = Instance.new("Sound")
  281. Sound259 = Instance.new("Sound")
  282. Part260 = Instance.new("Part")
  283. Part261 = Instance.new("Part")
  284. Part262 = Instance.new("Part")
  285. Part263 = Instance.new("Part")
  286. Attachment264 = Instance.new("Attachment")
  287. Part265 = Instance.new("Part")
  288. Attachment266 = Instance.new("Attachment")
  289. Model267 = Instance.new("Model")
  290. Part268 = Instance.new("Part")
  291. Part269 = Instance.new("Part")
  292. Part270 = Instance.new("Part")
  293. Part271 = Instance.new("Part")
  294. Part272 = Instance.new("Part")
  295. Part273 = Instance.new("Part")
  296. Part274 = Instance.new("Part")
  297. Part275 = Instance.new("Part")
  298. Part276 = Instance.new("Part")
  299. Part277 = Instance.new("Part")
  300. Part278 = Instance.new("Part")
  301. Part279 = Instance.new("Part")
  302. Part280 = Instance.new("Part")
  303. Attachment281 = Instance.new("Attachment")
  304. Seat282 = Instance.new("Seat")
  305. Configuration283 = Instance.new("Configuration")
  306. NumberValue284 = Instance.new("NumberValue")
  307. NumberValue285 = Instance.new("NumberValue")
  308. NumberValue286 = Instance.new("NumberValue")
  309. NumberValue287 = Instance.new("NumberValue")
  310. Vector3Value288 = Instance.new("Vector3Value")
  311. Script289 = Instance.new("Script")
  312. Seat290 = Instance.new("Seat")
  313. Configuration291 = Instance.new("Configuration")
  314. NumberValue292 = Instance.new("NumberValue")
  315. NumberValue293 = Instance.new("NumberValue")
  316. NumberValue294 = Instance.new("NumberValue")
  317. NumberValue295 = Instance.new("NumberValue")
  318. Vector3Value296 = Instance.new("Vector3Value")
  319. Script297 = Instance.new("Script")
  320. Model298 = Instance.new("Model")
  321. Part299 = Instance.new("Part")
  322. ClickDetector300 = Instance.new("ClickDetector")
  323. Script301 = Instance.new("Script")
  324. TrussPart302 = Instance.new("TrussPart")
  325. Part303 = Instance.new("Part")
  326. ClickDetector304 = Instance.new("ClickDetector")
  327. Script305 = Instance.new("Script")
  328. Part306 = Instance.new("Part")
  329. TrussPart307 = Instance.new("TrussPart")
  330. TrussPart308 = Instance.new("TrussPart")
  331. Part309 = Instance.new("Part")
  332. Part310 = Instance.new("Part")
  333. Part311 = Instance.new("Part")
  334. Attachment312 = Instance.new("Attachment")
  335. Part313 = Instance.new("Part")
  336. Attachment314 = Instance.new("Attachment")
  337. Part315 = Instance.new("Part")
  338. Attachment316 = Instance.new("Attachment")
  339. Part317 = Instance.new("Part")
  340. Part318 = Instance.new("Part")
  341. Part319 = Instance.new("Part")
  342. Attachment320 = Instance.new("Attachment")
  343. Model321 = Instance.new("Model")
  344. Part322 = Instance.new("Part")
  345. Script323 = Instance.new("Script")
  346. ClickDetector324 = Instance.new("ClickDetector")
  347. Part325 = Instance.new("Part")
  348. Script326 = Instance.new("Script")
  349. ClickDetector327 = Instance.new("ClickDetector")
  350. Part328 = Instance.new("Part")
  351. BlockMesh329 = Instance.new("BlockMesh")
  352. Part330 = Instance.new("Part")
  353. Part331 = Instance.new("Part")
  354. Part332 = Instance.new("Part")
  355. Model0.Name = "Chamber"
  356. Model0.Parent = mas
  357. Model1.Name = "Victim1"
  358. Model1.Parent = Model0
  359. Humanoid2.Parent = Model1
  360. Humanoid2.RightLeg = Part4
  361. Humanoid2.LeftLeg = Part22
  362. Humanoid2.Torso = Part26
  363. BodyColors3.Parent = Model1
  364. BodyColors3.HeadColor = BrickColor.new("Bright yellow")
  365. BodyColors3.LeftArmColor = BrickColor.new("Medium stone grey")
  366. BodyColors3.LeftLegColor = BrickColor.new("Brick yellow")
  367. BodyColors3.RightArmColor = BrickColor.new("Medium stone grey")
  368. BodyColors3.RightLegColor = BrickColor.new("Brick yellow")
  369. BodyColors3.TorsoColor = BrickColor.new("Bright red")
  370. Part4.Name = "Right Leg"
  371. Part4.Parent = Model1
  372. Part4.BrickColor = BrickColor.new("Bright blue")
  373. Part4.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
  374. Part4.CanCollide = false
  375. Part4.FormFactor = Enum.FormFactor.Symmetric
  376. Part4.Size = Vector3.new(1, 2, 1)
  377. Part4.CFrame = CFrame.new(-8.88785839, 2.04116559, 32.7734909, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
  378. Part4.BottomSurface = Enum.SurfaceType.Smooth
  379. Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  380. Part4.Position = Vector3.new(-8.88785839, 2.04116559, 32.7734909)
  381. Part4.Orientation = Vector3.new(5.19000006, 40, 0)
  382. Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  383. Part5.Name = "Head"
  384. Part5.Parent = Model1
  385. Part5.BrickColor = BrickColor.new("Cool yellow")
  386. Part5.Rotation = Vector3.new(0, 40, 0)
  387. Part5.CanCollide = false
  388. Part5.FormFactor = Enum.FormFactor.Symmetric
  389. Part5.Size = Vector3.new(2, 1, 1)
  390. Part5.CFrame = CFrame.new(-9.21270561, 5.53708839, 33.1642189, 0.766044974, -3.20374966e-07, 0.642787099, -1.63239989e-07, 1, -3.12924385e-07, -0.64278698, -3.20374966e-07, 0.766045094)
  391. Part5.TopSurface = Enum.SurfaceType.Smooth
  392. Part5.Color = Color3.new(0.992157, 0.917647, 0.552941)
  393. Part5.Position = Vector3.new(-9.21270561, 5.53708839, 33.1642189)
  394. Part5.Orientation = Vector3.new(0, 40, 0)
  395. Part5.Color = Color3.new(0.992157, 0.917647, 0.552941)
  396. SpecialMesh6.Parent = Part5
  397. SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
  398. SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
  399. Decal7.Name = "face"
  400. Decal7.Parent = Part5
  401. Decal7.Texture = "rbxasset://textures/face.png"
  402. Weld8.Name = "HeadWeld"
  403. Weld8.Parent = Part5
  404. Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  405. Weld8.C1 = CFrame.new(1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  406. Weld9.Name = "HeadWeld"
  407. Weld9.Parent = Part5
  408. Weld9.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  409. Weld9.C1 = CFrame.new(-1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. Weld10.Name = "HeadWeld"
  411. Weld10.Parent = Part5
  412. Weld10.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  413. Weld10.C1 = CFrame.new(-1.5, -0.600000024, 0.699999988, 0.0163912401, -0.999865651, 0, 0.999865651, 0.0163912401, -0, 0, 0, 1)
  414. Weld11.Name = "HeadWeld"
  415. Weld11.Parent = Part5
  416. Weld11.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  417. Weld11.C1 = CFrame.new(1.5, -0.5, 0.699999988, 0.0163912401, 0.999865651, 0, -0.999865651, 0.0163912401, 0, 0, 0, 1)
  418. Weld12.Name = "HeadWeld"
  419. Weld12.Parent = Part5
  420. Weld12.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  421. Weld12.C1 = CFrame.new(2, -0.5, 0.699999988, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  422. Weld13.Name = "HeadWeld"
  423. Weld13.Parent = Part5
  424. Weld13.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  425. Weld13.C1 = CFrame.new(-1, -1, 1, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769, 0, 0, -0, -1)
  426. Weld14.Name = "HeadWeld"
  427. Weld14.Parent = Part5
  428. Weld14.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  429. Weld14.C1 = CFrame.new(0, 0.400000006, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  430. Weld15.Name = "HeadWeld"
  431. Weld15.Parent = Part5
  432. Weld15.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  433. Weld15.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  434. Weld16.Name = "HeadWeld"
  435. Weld16.Parent = Part5
  436. Weld16.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  437. Weld16.C1 = CFrame.new(0, 0.0500000007, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  438. Script17.Name = "Health"
  439. Script17.Parent = Model1
  440. table.insert(cors,sandbox(Script17,function()
  441. function waitForChild(parent, childName)
  442.  
  443. while true do
  444.  
  445. local child = parent:findFirstChild(childName)
  446.  
  447. if child then
  448.  
  449. return child
  450.  
  451. end
  452.  
  453. parent.ChildAdded:wait()
  454.  
  455. end
  456.  
  457. end
  458.  
  459.  
  460.  
  461. -- declarations
  462.  
  463.  
  464.  
  465. local Figure = script.Parent
  466.  
  467. local Head = waitForChild(Figure, "Head")
  468.  
  469. local Humanoid = waitForChild(Figure, "Humanoid")
  470.  
  471. Humanoid.Health=500
  472.  
  473. -- regeneration
  474.  
  475. --[[
  476.  
  477. while true do
  478.  
  479. local s = wait(4)
  480.  
  481. local health = Humanoid.Health
  482.  
  483. if health > 0 and health < Humanoid.MaxHealth then
  484.  
  485. health = health + 0.08 * s * Humanoid.MaxHealth
  486.  
  487. if health * 1.05 < Humanoid.MaxHealth then
  488.  
  489. Humanoid.Health = health
  490.  
  491. else
  492.  
  493. Humanoid.Health = Humanoid.MaxHealth
  494.  
  495. end
  496.  
  497. end
  498.  
  499. end
  500.  
  501. --]]
  502. end))
  503. IntValue18.Name = "Mode"
  504. IntValue18.Parent = Model1
  505. Script19.Parent = Model1
  506. table.insert(cors,sandbox(Script19,function()
  507. local larm = script.Parent:FindFirstChild("Left Arm")
  508. local rarm = script.Parent:FindFirstChild("Right Arm")
  509.  
  510. function findNearestTorso(pos)
  511. local list = game.Workspace:children()
  512. local torso = nil
  513. local dist = 1000
  514. local temp = nil
  515. local human = nil
  516. local temp2 = nil
  517. for x = 1, #list do
  518. temp2 = list[x]
  519. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  520. temp = temp2:findFirstChild("Torso")
  521. human = temp2:findFirstChild("Humanoid")
  522. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  523. if (temp.Position - pos).magnitude < dist then
  524. torso = temp
  525. dist = (temp.Position - pos).magnitude
  526. end
  527. end
  528. end
  529. end
  530. return torso
  531. end
  532.  
  533.  
  534.  
  535.  
  536. while true do
  537. wait(math.random(1,5))
  538. --local target = findNearestTorso(script.Parent.Torso.Position)
  539. --if target ~= nil then
  540. -- script.Parent.Zombie:MoveTo(target.Position, target)
  541. --end
  542.  
  543. script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
  544.  
  545.  
  546. end
  547.  
  548. end))
  549. Script20.Name = "Robot"
  550. Script20.Parent = Model1
  551. table.insert(cors,sandbox(Script20,function()
  552. ------------------
  553. --SPAWNING--
  554. ------------------
  555.  
  556. miked=script.Parent
  557.  
  558. itlh=miked.Torso:findFirstChild("Left Hip")
  559. itlh.Part0=miked.Torso
  560. itlh.Part1=miked:findFirstChild("Left Leg")
  561. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  562.  
  563. itrh=miked.Torso:findFirstChild("Right Hip")
  564. itrh.Part0=miked.Torso
  565. itrh.Part1=miked:findFirstChild("Right Leg")
  566. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  567.  
  568. itls=miked.Torso:findFirstChild("Left Shoulder")
  569. itls.Part1=miked.Torso
  570. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  571. itls.Part0=miked:findFirstChild("Left Arm")
  572.  
  573. itrs=miked.Torso:findFirstChild("Right Shoulder")
  574. itrs.Part1=miked.Torso
  575. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  576. itrs.Part0=miked:findFirstChild("Right Arm")
  577.  
  578. miked.Head:makeJoints()
  579. ------------------
  580. ------------------
  581.  
  582.  
  583.  
  584. function waitForChild(parent, childName)
  585. while true do
  586. local child = parent:findFirstChild(childName)
  587. if child then
  588. return child
  589. end
  590. parent.ChildAdded:wait()
  591. end
  592. end
  593.  
  594. local Figure = script.Parent
  595. local Torso = waitForChild(Figure, "Torso")
  596. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  597. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  598. local RightHip = waitForChild(Torso, "Right Hip")
  599. local LeftHip = waitForChild(Torso, "Left Hip")
  600. local Neck = waitForChild(Torso, "Neck")
  601. local Humanoid = waitForChild(Figure, "Humanoid")
  602. local pose = "Standing"
  603.  
  604. local toolAnim = "None"
  605. local toolAnimTime = 0
  606.  
  607. local isSeated = false
  608.  
  609.  
  610. function onRunning(speed)
  611. if isSeated then return end
  612.  
  613. if speed>0 then
  614. pose = "Running"
  615. else
  616. pose = "Standing"
  617. end
  618. end
  619.  
  620. function onDied()
  621. pose = "Dead"
  622.  
  623. local parts = Figure:GetChildren()
  624. for i=1,#parts do
  625. if parts.className == "Part" then
  626. Debris.AddItem(parts[i], 60)
  627. end
  628. end
  629. end
  630.  
  631. function onJumping()
  632. isSeated = false
  633. pose = "Jumping"
  634. end
  635.  
  636. function onClimbing()
  637. pose = "Climbing"
  638. end
  639.  
  640. function onGettingUp()
  641. pose = "GettingUp"
  642. end
  643.  
  644. function onFreeFall()
  645. pose = "FreeFall"
  646. end
  647.  
  648. function onDancing()
  649. pose = "Dancing"
  650. end
  651.  
  652. function onFallingDown()
  653. pose = "FallingDown"
  654. end
  655.  
  656. function onSeated()
  657. isSeated = true
  658. pose = "Seated"
  659. end
  660.  
  661.  
  662.  
  663. function moveJump()
  664. RightShoulder.MaxVelocity = 0.5
  665. LeftShoulder.MaxVelocity = 0.5
  666. RightShoulder.DesiredAngle = -3.14
  667. LeftShoulder.DesiredAngle = -3.14
  668. RightHip.DesiredAngle = 0
  669. LeftHip.DesiredAngle = 0
  670. end
  671.  
  672. function moveFreeFall()
  673. RightShoulder.MaxVelocity = 0.5
  674. LeftShoulder.MaxVelocity = 0.5
  675. RightShoulder.DesiredAngle = -1
  676. LeftShoulder.DesiredAngle = -1
  677. RightHip.DesiredAngle = 0
  678. LeftHip.DesiredAngle = 0
  679. end
  680.  
  681. function moveFloat()
  682. RightShoulder.MaxVelocity = 0.5
  683. LeftShoulder.MaxVelocity = 0.5
  684. RightShoulder.DesiredAngle = -1.57
  685. LeftShoulder.DesiredAngle = 1.57
  686. RightHip.DesiredAngle = 1.57
  687. LeftHip.DesiredAngle = -1.57
  688. end
  689.  
  690. function moveBoogy()
  691. while pose=="Boogy" do
  692. wait(.5)
  693. RightShoulder.MaxVelocity = 1
  694. LeftShoulder.MaxVelocity = 1
  695. RightShoulder.DesiredAngle = -3.14
  696. LeftShoulder.DesiredAngle = 0
  697. RightHip.DesiredAngle = 1.57
  698. LeftHip.DesiredAngle = 0
  699. wait(.5)
  700. RightShoulder.MaxVelocity = 1
  701. LeftShoulder.MaxVelocity = 1
  702. RightShoulder.DesiredAngle = 0
  703. LeftShoulder.DesiredAngle = -3.14
  704. RightHip.DesiredAngle = 0
  705. LeftHip.DesiredAngle = 1.57
  706. end
  707. end
  708.  
  709. function moveZombie()
  710. RightShoulder.MaxVelocity = 0.5
  711. LeftShoulder.MaxVelocity = 0.5
  712. RightShoulder.DesiredAngle = -1.57
  713. LeftShoulder.DesiredAngle = 1.57
  714. RightHip.DesiredAngle = 0
  715. LeftHip.DesiredAngle = 0
  716. end
  717.  
  718. function movePunch()
  719. script.Parent.Torso.Anchored=true
  720. RightShoulder.MaxVelocity = 60
  721. LeftShoulder.MaxVelocity = 0.5
  722. RightShoulder.DesiredAngle = -1.57
  723. LeftShoulder.DesiredAngle = 0
  724. RightHip.DesiredAngle = 0
  725. LeftHip.DesiredAngle = 0
  726. wait(1)
  727. script.Parent.Torso.Anchored=false
  728. pose="Standing"
  729.  
  730. end
  731.  
  732. function moveKick()
  733. RightShoulder.MaxVelocity = 0.5
  734. LeftShoulder.MaxVelocity = 0.5
  735. RightShoulder.DesiredAngle = 0
  736. LeftShoulder.DesiredAngle = 0
  737. RightHip.MaxVelocity = 40
  738. RightHip.DesiredAngle = 1.57
  739. LeftHip.DesiredAngle = 0
  740. wait(1)
  741. pose="Standing"
  742.  
  743. end
  744.  
  745. function moveFly()
  746. RightShoulder.MaxVelocity = 0.5
  747. LeftShoulder.MaxVelocity = 0.5
  748. RightShoulder.DesiredAngle = 0
  749. LeftShoulder.DesiredAngle = 0
  750. RightHip.MaxVelocity = 40
  751. RightHip.DesiredAngle = 1.57
  752. LeftHip.DesiredAngle = 0
  753. wait(1)
  754. pose="Standing"
  755.  
  756. end
  757.  
  758.  
  759. function moveClimb()
  760. RightShoulder.MaxVelocity = 0.5
  761. LeftShoulder.MaxVelocity = 0.5
  762. RightShoulder.DesiredAngle = -3.14
  763. LeftShoulder.DesiredAngle = 3.14
  764. RightHip.DesiredAngle = 0
  765. LeftHip.DesiredAngle = 0
  766. end
  767.  
  768. function moveSit()
  769. RightShoulder.MaxVelocity = 0.15
  770. LeftShoulder.MaxVelocity = 0.15
  771. RightShoulder.DesiredAngle = -3.14 /2
  772. LeftShoulder.DesiredAngle = -3.14 /2
  773. RightHip.DesiredAngle = 3.14 /2
  774. LeftHip.DesiredAngle = -3.14 /2
  775. end
  776.  
  777. function getTool()
  778.  
  779. kidTable = Figure:children()
  780. if (kidTable ~= nil) then
  781. numKids = #kidTable
  782. for i=1,numKids do
  783. if (kidTable[i].className == "Tool") then return kidTable[i] end
  784. end
  785. end
  786.  
  787. return nil
  788. end
  789.  
  790. function getToolAnim(tool)
  791.  
  792. c = tool:children()
  793. for i=1,#c do
  794. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  795. return c[i]
  796. end
  797. end
  798. return nil
  799. end
  800.  
  801. function animateTool()
  802.  
  803. if (toolAnim == "None") then
  804. RightShoulder.DesiredAngle = -1.57
  805. return
  806. end
  807.  
  808. if (toolAnim == "Slash") then
  809. RightShoulder.MaxVelocity = 0.5
  810. RightShoulder.DesiredAngle = 0
  811. return
  812. end
  813.  
  814. if (toolAnim == "Lunge") then
  815. RightShoulder.MaxVelocity = 0.5
  816. LeftShoulder.MaxVelocity = 0.5
  817. RightHip.MaxVelocity = 0.5
  818. LeftHip.MaxVelocity = 0.5
  819. RightShoulder.DesiredAngle = -1.57
  820. LeftShoulder.DesiredAngle = 1.0
  821. RightHip.DesiredAngle = 1.57
  822. LeftHip.DesiredAngle = 1.0
  823. return
  824. end
  825. end
  826.  
  827. function move(time)
  828. local amplitude
  829. local frequency
  830.  
  831. if (pose == "Jumping") then
  832. moveJump()
  833. return
  834. end
  835.  
  836. if (pose == "Zombie") then
  837. moveZombie()
  838. return
  839. end
  840.  
  841. if (pose == "Boogy") then
  842. moveBoogy()
  843. return
  844. end
  845.  
  846. if (pose == "Float") then
  847. moveFloat()
  848. return
  849. end
  850.  
  851. if (pose == "Punch") then
  852. movePunch()
  853. return
  854. end
  855.  
  856. if (pose == "Kick") then
  857. moveKick()
  858. return
  859. end
  860.  
  861. if (pose == "Fly") then
  862. moveFly()
  863. return
  864. end
  865.  
  866. if (pose == "FreeFall") then
  867. moveFreeFall()
  868. return
  869. end
  870.  
  871. if (pose == "Climbing") then
  872. moveClimb()
  873. return
  874. end
  875.  
  876. if (pose == "Seated") then
  877. moveSit()
  878. return
  879. end
  880.  
  881. amplitude = 0.1
  882. frequency = 1
  883.  
  884. RightShoulder.MaxVelocity = 0.15
  885. LeftShoulder.MaxVelocity = 0.15
  886. if (pose == "Running") then
  887. amplitude = 1
  888. frequency = 9
  889. elseif (pose == "Dancing") then
  890. amplitude = 2
  891. frequency = 16
  892. end
  893.  
  894.  
  895. desiredAngle = amplitude * math.sin(time*frequency)
  896. if pose~="Dancing" then
  897. RightShoulder.DesiredAngle = -desiredAngle
  898. LeftShoulder.DesiredAngle = desiredAngle
  899. RightHip.DesiredAngle = -desiredAngle
  900. LeftHip.DesiredAngle = -desiredAngle
  901. else
  902. RightShoulder.DesiredAngle = -desiredAngle
  903. LeftShoulder.DesiredAngle = desiredAngle
  904. RightHip.DesiredAngle = -desiredAngle
  905. LeftHip.DesiredAngle = -desiredAngle
  906. end
  907.  
  908.  
  909.  
  910. local tool = getTool()
  911.  
  912. if tool ~= nil then
  913.  
  914. animStringValueObject = getToolAnim(tool)
  915.  
  916. if animStringValueObject ~= nil then
  917. toolAnim = animStringValueObject.Value
  918. -- message recieved, delete StringValue
  919. animStringValueObject.Parent = nil
  920. toolAnimTime = time + .3
  921. end
  922.  
  923. if time > toolAnimTime then
  924. toolAnimTime = 0
  925. toolAnim = "None"
  926. end
  927.  
  928. animateTool()
  929.  
  930.  
  931. else
  932. toolAnim = "None"
  933. toolAnimTime = 0
  934. end
  935. end
  936.  
  937.  
  938. -- connect events
  939. -----------------------------------------------------------------------------------------------------------------------
  940.  
  941. function unequip()
  942. local items=script.Parent:children()
  943. for i=1, #items do
  944. if items[i].className=="Tool" then items[i]:remove() end
  945. end
  946. end
  947.  
  948.  
  949.  
  950.  
  951. -----------------------------------------------------------------------------------------------------------------------
  952. -----------------------------------------------------------------------------------------------------------------------
  953. -----------------------------------------------------------------------------------------------------------------------
  954. -----------------------------------------------------------------------------------------------------------------------
  955. -----------------------------------------------------------------------------------------------------------------------
  956. -----------------------------------------------------------------------------------------------------------------------
  957. -----------------------------------------------------------------------------------------------------------------------
  958. -----------------------------------------------------------------------------------------------------------------------
  959. -----------------------------------------------------------------------------------------------------------------------
  960. -----------------------------------------------------------------------------------------------------------------------
  961. -----------------------------------------------------------------------------------------------------------------------
  962. -----------------------------------------------------------------------------------------------------------------------
  963. dist=20
  964.  
  965. function followany()
  966. following=true
  967. while following==true do
  968.  
  969. local ch=game.Players:children()
  970. for i=1, #ch do
  971. local l=game.Workspace:findFirstChild(ch[i].Name)
  972. if l~=nil then
  973. local s=l.Torso
  974. local p=l.Torso.Position
  975. local q=script.Parent.Torso.Position
  976. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  977. if smallest==nil then
  978. smallest=d
  979. target=s
  980. elseif d<smallest then
  981. smallest=d
  982. target=s
  983. end
  984. end
  985. end
  986.  
  987. if smallest==nil then stopmoving() return end
  988.  
  989. if smallest>6*dist then return end
  990.  
  991. script.Parent.Humanoid:MoveTo(target.Position, target)
  992.  
  993. wait(0.5)
  994. for i=1, 6 do
  995. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  996. end
  997. end
  998. end
  999.  
  1000.  
  1001.  
  1002. function gohome()
  1003. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  1004. end
  1005.  
  1006. function stopmoving()
  1007. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  1008. end
  1009.  
  1010. function follow(name)
  1011. following=true
  1012.  
  1013. local p=game.Workspace:findFirstChild(name)
  1014. if p==nil then return end
  1015. while following==true do
  1016. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  1017. wait(0.5)
  1018. for i=1, 3 do
  1019. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1020. wait(0.5)
  1021. end
  1022. end
  1023. end
  1024.  
  1025.  
  1026. -----------------------------------------------------------------------------------------------------------------------
  1027. -----------------------------------------------------------------------------------------------------------------------
  1028. -----------------------------------------------------------------------------------------------------------------------
  1029. -----------------------------------------------------------------------------------------------------------------------
  1030. -----------------------------------------------------------------------------------------------------------------------
  1031. -----------------------------------------------------------------------------------------------------------------------
  1032. -----------------------------------------------------------------------------------------------------------------------
  1033. -----------------------------------------------------------------------------------------------------------------------
  1034. -----------------------------------------------------------------------------------------------------------------------
  1035. -----------------------------------------------------------------------------------------------------------------------
  1036. -----------------------------------------------------------------------------------------------------------------------
  1037. -----------------------------------------------------------------------------------------------------------------------
  1038.  
  1039.  
  1040. Humanoid.Died:connect(onDied)
  1041. Humanoid.Running:connect(onRunning)
  1042. Humanoid.Jumping:connect(onJumping)
  1043. Humanoid.Climbing:connect(onClimbing)
  1044. Humanoid.GettingUp:connect(onGettingUp)
  1045. Humanoid.FreeFalling:connect(onFreeFall)
  1046. Humanoid.FallingDown:connect(onFallingDown)
  1047. Humanoid.Seated:connect(onSeated)
  1048.  
  1049.  
  1050. --[[
  1051.  
  1052. function newSound(id)
  1053. local sound = Instance.new("Sound")
  1054. sound.SoundId = id
  1055. sound.Parent = script.Parent.Head
  1056. return sound
  1057. end
  1058.  
  1059.  
  1060. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  1061. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1062. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1063. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1064. local sJumping = newSound("rbxasset://sounds/button.wav")
  1065. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1066. sRunning.Looped = true
  1067.  
  1068. local Figure = script.Parent
  1069. local Head = waitForChild(Figure, "Head")
  1070. local Humanoid = waitForChild(Figure, "Humanoid")
  1071.  
  1072.  
  1073. function onDied()
  1074. sDied:play()
  1075. end
  1076.  
  1077. function onState(state, sound)
  1078. if state then
  1079. sound:play()
  1080. else
  1081. sound:pause()
  1082. end
  1083. end
  1084.  
  1085. function onRunning(speed)
  1086. if speed>0 then
  1087. sRunning:play()
  1088. else
  1089. sRunning:pause()
  1090. end
  1091. end
  1092.  
  1093.  
  1094. Humanoid.Died:connect(onDied)
  1095. Humanoid.Running:connect(onRunning)
  1096. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1097. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1098. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1099. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1100. --]]
  1101.  
  1102. local nextTime = 0
  1103. local runService = game:service("RunService");
  1104.  
  1105. while Figure.Parent~=nil do
  1106. time = runService.Stepped:wait()
  1107. if time > nextTime then
  1108. move(time)
  1109. nextTime = time + 0.1
  1110. end
  1111. end
  1112.  
  1113. end))
  1114. Part21.Name = "Left Arm"
  1115. Part21.Parent = Model1
  1116. Part21.BrickColor = BrickColor.new("Cool yellow")
  1117. Part21.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
  1118. Part21.CanCollide = false
  1119. Part21.FormFactor = Enum.FormFactor.Symmetric
  1120. Part21.Size = Vector3.new(1, 2, 1)
  1121. Part21.CFrame = CFrame.new(-10.3908567, 4.03909683, 34.0937347, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
  1122. Part21.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1123. Part21.Position = Vector3.new(-10.3908567, 4.03909683, 34.0937347)
  1124. Part21.Orientation = Vector3.new(5.19000006, 40, 0)
  1125. Part21.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1126. Part22.Name = "Left Leg"
  1127. Part22.Parent = Model1
  1128. Part22.BrickColor = BrickColor.new("Bright blue")
  1129. Part22.Rotation = Vector3.new(-6.76999998, 39.7999992, 4.33999968)
  1130. Part22.CanCollide = false
  1131. Part22.FormFactor = Enum.FormFactor.Symmetric
  1132. Part22.Size = Vector3.new(1, 2, 1)
  1133. Part22.CFrame = CFrame.new(-9.53754139, 2.04116583, 33.5549507, 0.766044974, -0.0581797734, 0.64014864, -1.63239989e-07, 0.995895445, 0.0905109048, -0.64278698, -0.0693360046, 0.76290071)
  1134. Part22.BottomSurface = Enum.SurfaceType.Smooth
  1135. Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1136. Part22.Position = Vector3.new(-9.53754139, 2.04116583, 33.5549507)
  1137. Part22.Orientation = Vector3.new(-5.19000006, 40, 0)
  1138. Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1139. Attachment23.Name = "Attachment1"
  1140. Attachment23.Parent = Part22
  1141. Attachment23.Rotation = Vector3.new(5.19298887, 50.0000572, 4.18714044e-05)
  1142. Attachment23.CFrame = CFrame.new(0, -0.25, 0.5, 0.64278698, -4.69744748e-07, 0.766045094, 0.0693360046, 0.995895505, -0.058179114, -0.76290071, 0.0905112773, 0.640148699)
  1143. Attachment23.Position = Vector3.new(0, -0.25, 0.5)
  1144. Attachment23.Axis = Vector3.new(0.64278698, 0.0693360046, -0.76290071)
  1145. Attachment23.Orientation = Vector3.new(3.33530116, 50.1160469, 3.98260689)
  1146. Attachment24.Name = "Attachment0"
  1147. Attachment24.Parent = Part22
  1148. Attachment24.Rotation = Vector3.new(-0, -90, 0)
  1149. Attachment24.CFrame = CFrame.new(0, -0.289999992, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1150. Attachment24.Position = Vector3.new(0, -0.289999992, 0.5)
  1151. Attachment24.Axis = Vector3.new(0, 0, 1)
  1152. Attachment24.Orientation = Vector3.new(-0, -90, 0)
  1153. RodConstraint25.Parent = Part22
  1154. RodConstraint25.Visible = true
  1155. RodConstraint25.Attachment0 = Attachment24
  1156. RodConstraint25.Attachment1 = Attachment264
  1157. RodConstraint25.Length = 4.043511390686
  1158. Part26.Name = "Torso"
  1159. Part26.Parent = Model1
  1160. Part26.BrickColor = BrickColor.new("Dark green")
  1161. Part26.Rotation = Vector3.new(0, 40, 0)
  1162. Part26.CanCollide = false
  1163. Part26.FormFactor = Enum.FormFactor.Symmetric
  1164. Part26.Size = Vector3.new(2, 2, 1)
  1165. Part26.CFrame = CFrame.new(-9.21270466, 4.03708839, 33.1642189, 0.766044974, -3.20374966e-07, 0.642787099, -1.63239989e-07, 1, -3.12924385e-07, -0.64278698, -3.20374966e-07, 0.766045094)
  1166. Part26.LeftSurface = Enum.SurfaceType.Weld
  1167. Part26.RightSurface = Enum.SurfaceType.Weld
  1168. Part26.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1169. Part26.Position = Vector3.new(-9.21270466, 4.03708839, 33.1642189)
  1170. Part26.Orientation = Vector3.new(0, 40, 0)
  1171. Part26.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1172. Decal27.Name = "roblox"
  1173. Decal27.Parent = Part26
  1174. Motor28.Name = "Right Shoulder"
  1175. Motor28.Parent = Part26
  1176. Motor28.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1177. Motor28.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1178. Motor28.DesiredAngle = 0.09063521027565
  1179. Motor28.MaxVelocity = 0.15000000596046
  1180. Motor29.Name = "Left Shoulder"
  1181. Motor29.Parent = Part26
  1182. Motor29.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1183. Motor29.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1184. Motor29.DesiredAngle = -0.09063521027565
  1185. Motor29.MaxVelocity = 0.15000000596046
  1186. Motor30.Name = "Right Hip"
  1187. Motor30.Parent = Part26
  1188. Motor30.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1189. Motor30.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1190. Motor30.DesiredAngle = 0.09063521027565
  1191. Motor30.MaxVelocity = 0.10000000149012
  1192. Motor31.Name = "Left Hip"
  1193. Motor31.Parent = Part26
  1194. Motor31.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1195. Motor31.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1196. Motor31.DesiredAngle = 0.09063521027565
  1197. Motor31.MaxVelocity = 0.10000000149012
  1198. Snap32.Name = "Neck"
  1199. Snap32.Parent = Part26
  1200. Snap32.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1201. Snap32.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1202. Part33.Name = "Right Arm"
  1203. Part33.Parent = Model1
  1204. Part33.BrickColor = BrickColor.new("Cool yellow")
  1205. Part33.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
  1206. Part33.CanCollide = false
  1207. Part33.FormFactor = Enum.FormFactor.Symmetric
  1208. Part33.Size = Vector3.new(1, 2, 1)
  1209. Part33.CFrame = CFrame.new(-8.0927248, 4.03909683, 32.1653748, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
  1210. Part33.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1211. Part33.Position = Vector3.new(-8.0927248, 4.03909683, 32.1653748)
  1212. Part33.Orientation = Vector3.new(5.19000006, 40, 0)
  1213. Part33.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1214. Script34.Name = "Ragdoll"
  1215. Script34.Parent = Model1
  1216. table.insert(cors,sandbox(Script34,function()
  1217. print("Hello world!")
  1218.  
  1219. Character = script.Parent
  1220. Humanoid = Character.Humanoid
  1221. Torso = Character.Torso
  1222.  
  1223. function OnDeath()
  1224. print("Death")
  1225. Humanoid.Parent = nil
  1226. if Torso then
  1227. local Head = Character:FindFirstChild("Head")
  1228. if Head then
  1229. local Neck = Instance.new("Weld")
  1230. Neck.Name = "Neck"
  1231. Neck.Part0 = Torso
  1232. Neck.Part1 = Head
  1233. Neck.C0 = CFrame.new(0, 1.5, 0)
  1234. Neck.C1 = CFrame.new()
  1235. Neck.Parent = Torso
  1236. end
  1237. local Limb = Character:FindFirstChild("Right Arm")
  1238. if Limb then
  1239.  
  1240. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1241. local Joint = Instance.new("Glue")
  1242. Joint.Name = "RightShoulder"
  1243. Joint.Part0 = Torso
  1244. Joint.Part1 = Limb
  1245. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1246. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1247. Joint.Parent = Torso
  1248.  
  1249. local B = Instance.new("Part")
  1250. B.TopSurface = 0
  1251. B.BottomSurface = 0
  1252. B.formFactor = "Symmetric"
  1253. B.Size = Vector3.new(1, 1, 1)
  1254. B.Transparency = 1
  1255. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1256. B.Parent = Character
  1257. local W = Instance.new("Weld")
  1258. W.Part0 = Limb
  1259. W.Part1 = B
  1260. W.C0 = CFrame.new(0, -0.5, 0)
  1261. W.Parent = Limb
  1262.  
  1263. end
  1264. local Limb = Character:FindFirstChild("Left Arm")
  1265. if Limb then
  1266.  
  1267. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1268. local Joint = Instance.new("Glue")
  1269. Joint.Name = "LeftShoulder"
  1270. Joint.Part0 = Torso
  1271. Joint.Part1 = Limb
  1272. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1273. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1274. Joint.Parent = Torso
  1275.  
  1276. local B = Instance.new("Part")
  1277. B.TopSurface = 0
  1278. B.BottomSurface = 0
  1279. B.formFactor = "Symmetric"
  1280. B.Size = Vector3.new(1, 1, 1)
  1281. B.Transparency = 1
  1282. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1283. B.Parent = Character
  1284. local W = Instance.new("Weld")
  1285. W.Part0 = Limb
  1286. W.Part1 = B
  1287. W.C0 = CFrame.new(0, -0.5, 0)
  1288. W.Parent = Limb
  1289.  
  1290. end
  1291. local Limb = Character:FindFirstChild("Right Leg")
  1292. if Limb then
  1293.  
  1294. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1295. local Joint = Instance.new("Glue")
  1296. Joint.Name = "RightHip"
  1297. Joint.Part0 = Torso
  1298. Joint.Part1 = Limb
  1299. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1300. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1301. Joint.Parent = Torso
  1302.  
  1303. local B = Instance.new("Part")
  1304. B.TopSurface = 0
  1305. B.BottomSurface = 0
  1306. B.formFactor = "Symmetric"
  1307. B.Size = Vector3.new(1, 1, 1)
  1308. B.Transparency = 1
  1309. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1310. B.Parent = Character
  1311. local W = Instance.new("Weld")
  1312. W.Part0 = Limb
  1313. W.Part1 = B
  1314. W.C0 = CFrame.new(0, -0.5, 0)
  1315. W.Parent = Limb
  1316.  
  1317. end
  1318. local Limb = Character:FindFirstChild("Left Leg")
  1319. if Limb then
  1320.  
  1321. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1322. local Joint = Instance.new("Glue")
  1323. Joint.Name = "LeftHip"
  1324. Joint.Part0 = Torso
  1325. Joint.Part1 = Limb
  1326. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1327. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1328. Joint.Parent = Torso
  1329.  
  1330. local B = Instance.new("Part")
  1331. B.TopSurface = 0
  1332. B.BottomSurface = 0
  1333. B.formFactor = "Symmetric"
  1334. B.Size = Vector3.new(1, 1, 1)
  1335. B.Transparency = 1
  1336. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1337. B.Parent = Character
  1338. local W = Instance.new("Weld")
  1339. W.Part0 = Limb
  1340. W.Part1 = B
  1341. W.C0 = CFrame.new(0, -0.5, 0)
  1342. W.Parent = Limb
  1343.  
  1344. end
  1345. --[
  1346. local Bar = Instance.new("Part")
  1347. Bar.TopSurface = 0
  1348. Bar.BottomSurface = 0
  1349. Bar.formFactor = "Symmetric"
  1350. Bar.Size = Vector3.new(1, 1, 1)
  1351. Bar.Transparency = 1
  1352. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1353. Bar.Parent = Character
  1354. local Weld = Instance.new("Weld")
  1355. Weld.Part0 = Torso
  1356. Weld.Part1 = Bar
  1357. Weld.C0 = CFrame.new(0, 0.5, 0)
  1358. Weld.Parent = Torso
  1359. --]]
  1360. end
  1361. end
  1362.  
  1363. Humanoid.Died:connect(OnDeath)
  1364.  
  1365. end))
  1366. Script35.Name = "BloodS"
  1367. Script35.Parent = Model1
  1368. table.insert(cors,sandbox(Script35,function()
  1369. function MakeBlood()
  1370.  
  1371. local blood = Instance.new("Part")
  1372. blood.formFactor = "Plate"
  1373. blood.Size = Vector3.new(1,0.4,1)
  1374. blood.Name = "Blood"
  1375. blood.Reflectance = 0.2
  1376. blood.Transparency = 0.1
  1377. blood.BrickColor = BrickColor.new("Really red")
  1378. blood.Locked = true
  1379. blood.BackSurface = "Smooth"
  1380. blood.TopSurface = "Smooth"
  1381.  
  1382. local CC = math.random(1,2)
  1383.  
  1384. if CC == 1 then
  1385.  
  1386. blood.CanCollide = true
  1387.  
  1388. elseif CC == 2 then
  1389.  
  1390. blood.CanCollide = false
  1391.  
  1392. end
  1393.  
  1394. blood.Position = script.Parent.Torso.Position
  1395. blood.Parent = script.Parent
  1396.  
  1397. end
  1398.  
  1399. humanoid = script.Parent.Humanoid
  1400. lhh = humanoid.Health
  1401.  
  1402. while true do
  1403.  
  1404. if humanoid.Health < lhh then
  1405.  
  1406. howmuch = math.random(7,20)
  1407. lhh = humanoid.Health
  1408.  
  1409. for i = 1 , howmuch do
  1410.  
  1411. MakeBlood()
  1412.  
  1413. end
  1414.  
  1415. end
  1416.  
  1417. wait(0.1)
  1418. end
  1419.  
  1420. end))
  1421. Model36.Name = "Victim2"
  1422. Model36.Parent = Model0
  1423. Humanoid37.Parent = Model36
  1424. Humanoid37.RightLeg = Part39
  1425. Humanoid37.LeftLeg = Part58
  1426. Humanoid37.Torso = Part61
  1427. BodyColors38.Parent = Model36
  1428. BodyColors38.HeadColor = BrickColor.new("Bright yellow")
  1429. BodyColors38.LeftArmColor = BrickColor.new("Medium stone grey")
  1430. BodyColors38.LeftLegColor = BrickColor.new("Brick yellow")
  1431. BodyColors38.RightArmColor = BrickColor.new("Medium stone grey")
  1432. BodyColors38.RightLegColor = BrickColor.new("Brick yellow")
  1433. BodyColors38.TorsoColor = BrickColor.new("Bright red")
  1434. Part39.Name = "Right Leg"
  1435. Part39.Parent = Model36
  1436. Part39.BrickColor = BrickColor.new("Bright blue")
  1437. Part39.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
  1438. Part39.CanCollide = false
  1439. Part39.FormFactor = Enum.FormFactor.Symmetric
  1440. Part39.Size = Vector3.new(1, 2, 1)
  1441. Part39.CFrame = CFrame.new(-10.0507269, 2.04117894, -8.21483803, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
  1442. Part39.BottomSurface = Enum.SurfaceType.Smooth
  1443. Part39.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1444. Part39.Position = Vector3.new(-10.0507269, 2.04117894, -8.21483803)
  1445. Part39.Orientation = Vector3.new(5.19000006, 130, 0)
  1446. Part39.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1447. Attachment40.Name = "Attachment0"
  1448. Attachment40.Parent = Part39
  1449. Attachment40.Rotation = Vector3.new(-0, -90, 0)
  1450. Attachment40.CFrame = CFrame.new(0.0199999996, -0.0899999961, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1451. Attachment40.Position = Vector3.new(0.0199999996, -0.0899999961, 0.5)
  1452. Attachment40.Axis = Vector3.new(0, 0, 1)
  1453. Attachment40.Orientation = Vector3.new(-0, -90, 0)
  1454. Part41.Name = "Head"
  1455. Part41.Parent = Model36
  1456. Part41.BrickColor = BrickColor.new("Cool yellow")
  1457. Part41.Rotation = Vector3.new(-180, 50, -180)
  1458. Part41.CanCollide = false
  1459. Part41.FormFactor = Enum.FormFactor.Symmetric
  1460. Part41.Size = Vector3.new(2, 1, 1)
  1461. Part41.CFrame = CFrame.new(-9.65999794, 5.53709984, -7.88999605, -0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, -0.64278698)
  1462. Part41.TopSurface = Enum.SurfaceType.Smooth
  1463. Part41.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1464. Part41.Position = Vector3.new(-9.65999794, 5.53709984, -7.88999605)
  1465. Part41.Orientation = Vector3.new(0, 130, 0)
  1466. Part41.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1467. SpecialMesh42.Parent = Part41
  1468. SpecialMesh42.Scale = Vector3.new(1.25, 1.25, 1.25)
  1469. SpecialMesh42.Scale = Vector3.new(1.25, 1.25, 1.25)
  1470. Decal43.Name = "face"
  1471. Decal43.Parent = Part41
  1472. Decal43.Texture = "rbxasset://textures/face.png"
  1473. Weld44.Name = "HeadWeld"
  1474. Weld44.Parent = Part41
  1475. Weld44.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1476. Weld44.C1 = CFrame.new(1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1477. Weld45.Name = "HeadWeld"
  1478. Weld45.Parent = Part41
  1479. Weld45.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1480. Weld45.C1 = CFrame.new(-1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1481. Weld46.Name = "HeadWeld"
  1482. Weld46.Parent = Part41
  1483. Weld46.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1484. Weld46.C1 = CFrame.new(-1.5, -0.600000024, 0.699999988, 0.0163912401, -0.999865651, 0, 0.999865651, 0.0163912401, -0, 0, 0, 1)
  1485. Weld47.Name = "HeadWeld"
  1486. Weld47.Parent = Part41
  1487. Weld47.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1488. Weld47.C1 = CFrame.new(1.5, -0.5, 0.699999988, 0.0163912401, 0.999865651, 0, -0.999865651, 0.0163912401, 0, 0, 0, 1)
  1489. Weld48.Name = "HeadWeld"
  1490. Weld48.Parent = Part41
  1491. Weld48.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1492. Weld48.C1 = CFrame.new(2, -0.5, 0.699999988, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  1493. Weld49.Name = "HeadWeld"
  1494. Weld49.Parent = Part41
  1495. Weld49.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1496. Weld49.C1 = CFrame.new(-1, -1, 1, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769, 0, 0, -0, -1)
  1497. Weld50.Name = "HeadWeld"
  1498. Weld50.Parent = Part41
  1499. Weld50.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1500. Weld50.C1 = CFrame.new(0, 0.400000006, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1501. Weld51.Name = "HeadWeld"
  1502. Weld51.Parent = Part41
  1503. Weld51.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1504. Weld51.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1505. Weld52.Name = "HeadWeld"
  1506. Weld52.Parent = Part41
  1507. Weld52.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1508. Weld52.C1 = CFrame.new(0, 0.0500000007, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1509. Script53.Name = "Health"
  1510. Script53.Parent = Model36
  1511. table.insert(cors,sandbox(Script53,function()
  1512. function waitForChild(parent, childName)
  1513.  
  1514. while true do
  1515.  
  1516. local child = parent:findFirstChild(childName)
  1517.  
  1518. if child then
  1519.  
  1520. return child
  1521.  
  1522. end
  1523.  
  1524. parent.ChildAdded:wait()
  1525.  
  1526. end
  1527.  
  1528. end
  1529.  
  1530.  
  1531.  
  1532. -- declarations
  1533.  
  1534.  
  1535.  
  1536. local Figure = script.Parent
  1537.  
  1538. local Head = waitForChild(Figure, "Head")
  1539.  
  1540. local Humanoid = waitForChild(Figure, "Humanoid")
  1541.  
  1542. Humanoid.Health=500
  1543.  
  1544. -- regeneration
  1545.  
  1546. --[[
  1547.  
  1548. while true do
  1549.  
  1550. local s = wait(4)
  1551.  
  1552. local health = Humanoid.Health
  1553.  
  1554. if health > 0 and health < Humanoid.MaxHealth then
  1555.  
  1556. health = health + 0.08 * s * Humanoid.MaxHealth
  1557.  
  1558. if health * 1.05 < Humanoid.MaxHealth then
  1559.  
  1560. Humanoid.Health = health
  1561.  
  1562. else
  1563.  
  1564. Humanoid.Health = Humanoid.MaxHealth
  1565.  
  1566. end
  1567.  
  1568. end
  1569.  
  1570. end
  1571.  
  1572. --]]
  1573. end))
  1574. IntValue54.Name = "Mode"
  1575. IntValue54.Parent = Model36
  1576. Script55.Parent = Model36
  1577. table.insert(cors,sandbox(Script55,function()
  1578. local larm = script.Parent:FindFirstChild("Left Arm")
  1579. local rarm = script.Parent:FindFirstChild("Right Arm")
  1580.  
  1581. function findNearestTorso(pos)
  1582. local list = game.Workspace:children()
  1583. local torso = nil
  1584. local dist = 1000
  1585. local temp = nil
  1586. local human = nil
  1587. local temp2 = nil
  1588. for x = 1, #list do
  1589. temp2 = list[x]
  1590. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  1591. temp = temp2:findFirstChild("Torso")
  1592. human = temp2:findFirstChild("Humanoid")
  1593. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1594. if (temp.Position - pos).magnitude < dist then
  1595. torso = temp
  1596. dist = (temp.Position - pos).magnitude
  1597. end
  1598. end
  1599. end
  1600. end
  1601. return torso
  1602. end
  1603.  
  1604.  
  1605.  
  1606.  
  1607. while true do
  1608. wait(math.random(1,5))
  1609. --local target = findNearestTorso(script.Parent.Torso.Position)
  1610. --if target ~= nil then
  1611. -- script.Parent.Zombie:MoveTo(target.Position, target)
  1612. --end
  1613.  
  1614. script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
  1615.  
  1616.  
  1617. end
  1618.  
  1619. end))
  1620. Script56.Name = "Robot"
  1621. Script56.Parent = Model36
  1622. table.insert(cors,sandbox(Script56,function()
  1623. ------------------
  1624. --SPAWNING--
  1625. ------------------
  1626.  
  1627. miked=script.Parent
  1628.  
  1629. itlh=miked.Torso:findFirstChild("Left Hip")
  1630. itlh.Part0=miked.Torso
  1631. itlh.Part1=miked:findFirstChild("Left Leg")
  1632. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1633.  
  1634. itrh=miked.Torso:findFirstChild("Right Hip")
  1635. itrh.Part0=miked.Torso
  1636. itrh.Part1=miked:findFirstChild("Right Leg")
  1637. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1638.  
  1639. itls=miked.Torso:findFirstChild("Left Shoulder")
  1640. itls.Part1=miked.Torso
  1641. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1642. itls.Part0=miked:findFirstChild("Left Arm")
  1643.  
  1644. itrs=miked.Torso:findFirstChild("Right Shoulder")
  1645. itrs.Part1=miked.Torso
  1646. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1647. itrs.Part0=miked:findFirstChild("Right Arm")
  1648.  
  1649. miked.Head:makeJoints()
  1650. ------------------
  1651. ------------------
  1652.  
  1653.  
  1654.  
  1655. function waitForChild(parent, childName)
  1656. while true do
  1657. local child = parent:findFirstChild(childName)
  1658. if child then
  1659. return child
  1660. end
  1661. parent.ChildAdded:wait()
  1662. end
  1663. end
  1664.  
  1665. local Figure = script.Parent
  1666. local Torso = waitForChild(Figure, "Torso")
  1667. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1668. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1669. local RightHip = waitForChild(Torso, "Right Hip")
  1670. local LeftHip = waitForChild(Torso, "Left Hip")
  1671. local Neck = waitForChild(Torso, "Neck")
  1672. local Humanoid = waitForChild(Figure, "Humanoid")
  1673. local pose = "Standing"
  1674.  
  1675. local toolAnim = "None"
  1676. local toolAnimTime = 0
  1677.  
  1678. local isSeated = false
  1679.  
  1680.  
  1681. function onRunning(speed)
  1682. if isSeated then return end
  1683.  
  1684. if speed>0 then
  1685. pose = "Running"
  1686. else
  1687. pose = "Standing"
  1688. end
  1689. end
  1690.  
  1691. function onDied()
  1692. pose = "Dead"
  1693.  
  1694. local parts = Figure:GetChildren()
  1695. for i=1,#parts do
  1696. if parts.className == "Part" then
  1697. Debris.AddItem(parts[i], 60)
  1698. end
  1699. end
  1700. end
  1701.  
  1702. function onJumping()
  1703. isSeated = false
  1704. pose = "Jumping"
  1705. end
  1706.  
  1707. function onClimbing()
  1708. pose = "Climbing"
  1709. end
  1710.  
  1711. function onGettingUp()
  1712. pose = "GettingUp"
  1713. end
  1714.  
  1715. function onFreeFall()
  1716. pose = "FreeFall"
  1717. end
  1718.  
  1719. function onDancing()
  1720. pose = "Dancing"
  1721. end
  1722.  
  1723. function onFallingDown()
  1724. pose = "FallingDown"
  1725. end
  1726.  
  1727. function onSeated()
  1728. isSeated = true
  1729. pose = "Seated"
  1730. end
  1731.  
  1732.  
  1733.  
  1734. function moveJump()
  1735. RightShoulder.MaxVelocity = 0.5
  1736. LeftShoulder.MaxVelocity = 0.5
  1737. RightShoulder.DesiredAngle = -3.14
  1738. LeftShoulder.DesiredAngle = -3.14
  1739. RightHip.DesiredAngle = 0
  1740. LeftHip.DesiredAngle = 0
  1741. end
  1742.  
  1743. function moveFreeFall()
  1744. RightShoulder.MaxVelocity = 0.5
  1745. LeftShoulder.MaxVelocity = 0.5
  1746. RightShoulder.DesiredAngle = -1
  1747. LeftShoulder.DesiredAngle = -1
  1748. RightHip.DesiredAngle = 0
  1749. LeftHip.DesiredAngle = 0
  1750. end
  1751.  
  1752. function moveFloat()
  1753. RightShoulder.MaxVelocity = 0.5
  1754. LeftShoulder.MaxVelocity = 0.5
  1755. RightShoulder.DesiredAngle = -1.57
  1756. LeftShoulder.DesiredAngle = 1.57
  1757. RightHip.DesiredAngle = 1.57
  1758. LeftHip.DesiredAngle = -1.57
  1759. end
  1760.  
  1761. function moveBoogy()
  1762. while pose=="Boogy" do
  1763. wait(.5)
  1764. RightShoulder.MaxVelocity = 1
  1765. LeftShoulder.MaxVelocity = 1
  1766. RightShoulder.DesiredAngle = -3.14
  1767. LeftShoulder.DesiredAngle = 0
  1768. RightHip.DesiredAngle = 1.57
  1769. LeftHip.DesiredAngle = 0
  1770. wait(.5)
  1771. RightShoulder.MaxVelocity = 1
  1772. LeftShoulder.MaxVelocity = 1
  1773. RightShoulder.DesiredAngle = 0
  1774. LeftShoulder.DesiredAngle = -3.14
  1775. RightHip.DesiredAngle = 0
  1776. LeftHip.DesiredAngle = 1.57
  1777. end
  1778. end
  1779.  
  1780. function moveZombie()
  1781. RightShoulder.MaxVelocity = 0.5
  1782. LeftShoulder.MaxVelocity = 0.5
  1783. RightShoulder.DesiredAngle = -1.57
  1784. LeftShoulder.DesiredAngle = 1.57
  1785. RightHip.DesiredAngle = 0
  1786. LeftHip.DesiredAngle = 0
  1787. end
  1788.  
  1789. function movePunch()
  1790. script.Parent.Torso.Anchored=true
  1791. RightShoulder.MaxVelocity = 60
  1792. LeftShoulder.MaxVelocity = 0.5
  1793. RightShoulder.DesiredAngle = -1.57
  1794. LeftShoulder.DesiredAngle = 0
  1795. RightHip.DesiredAngle = 0
  1796. LeftHip.DesiredAngle = 0
  1797. wait(1)
  1798. script.Parent.Torso.Anchored=false
  1799. pose="Standing"
  1800.  
  1801. end
  1802.  
  1803. function moveKick()
  1804. RightShoulder.MaxVelocity = 0.5
  1805. LeftShoulder.MaxVelocity = 0.5
  1806. RightShoulder.DesiredAngle = 0
  1807. LeftShoulder.DesiredAngle = 0
  1808. RightHip.MaxVelocity = 40
  1809. RightHip.DesiredAngle = 1.57
  1810. LeftHip.DesiredAngle = 0
  1811. wait(1)
  1812. pose="Standing"
  1813.  
  1814. end
  1815.  
  1816. function moveFly()
  1817. RightShoulder.MaxVelocity = 0.5
  1818. LeftShoulder.MaxVelocity = 0.5
  1819. RightShoulder.DesiredAngle = 0
  1820. LeftShoulder.DesiredAngle = 0
  1821. RightHip.MaxVelocity = 40
  1822. RightHip.DesiredAngle = 1.57
  1823. LeftHip.DesiredAngle = 0
  1824. wait(1)
  1825. pose="Standing"
  1826.  
  1827. end
  1828.  
  1829.  
  1830. function moveClimb()
  1831. RightShoulder.MaxVelocity = 0.5
  1832. LeftShoulder.MaxVelocity = 0.5
  1833. RightShoulder.DesiredAngle = -3.14
  1834. LeftShoulder.DesiredAngle = 3.14
  1835. RightHip.DesiredAngle = 0
  1836. LeftHip.DesiredAngle = 0
  1837. end
  1838.  
  1839. function moveSit()
  1840. RightShoulder.MaxVelocity = 0.15
  1841. LeftShoulder.MaxVelocity = 0.15
  1842. RightShoulder.DesiredAngle = -3.14 /2
  1843. LeftShoulder.DesiredAngle = -3.14 /2
  1844. RightHip.DesiredAngle = 3.14 /2
  1845. LeftHip.DesiredAngle = -3.14 /2
  1846. end
  1847.  
  1848. function getTool()
  1849.  
  1850. kidTable = Figure:children()
  1851. if (kidTable ~= nil) then
  1852. numKids = #kidTable
  1853. for i=1,numKids do
  1854. if (kidTable[i].className == "Tool") then return kidTable[i] end
  1855. end
  1856. end
  1857.  
  1858. return nil
  1859. end
  1860.  
  1861. function getToolAnim(tool)
  1862.  
  1863. c = tool:children()
  1864. for i=1,#c do
  1865. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  1866. return c[i]
  1867. end
  1868. end
  1869. return nil
  1870. end
  1871.  
  1872. function animateTool()
  1873.  
  1874. if (toolAnim == "None") then
  1875. RightShoulder.DesiredAngle = -1.57
  1876. return
  1877. end
  1878.  
  1879. if (toolAnim == "Slash") then
  1880. RightShoulder.MaxVelocity = 0.5
  1881. RightShoulder.DesiredAngle = 0
  1882. return
  1883. end
  1884.  
  1885. if (toolAnim == "Lunge") then
  1886. RightShoulder.MaxVelocity = 0.5
  1887. LeftShoulder.MaxVelocity = 0.5
  1888. RightHip.MaxVelocity = 0.5
  1889. LeftHip.MaxVelocity = 0.5
  1890. RightShoulder.DesiredAngle = -1.57
  1891. LeftShoulder.DesiredAngle = 1.0
  1892. RightHip.DesiredAngle = 1.57
  1893. LeftHip.DesiredAngle = 1.0
  1894. return
  1895. end
  1896. end
  1897.  
  1898. function move(time)
  1899. local amplitude
  1900. local frequency
  1901.  
  1902. if (pose == "Jumping") then
  1903. moveJump()
  1904. return
  1905. end
  1906.  
  1907. if (pose == "Zombie") then
  1908. moveZombie()
  1909. return
  1910. end
  1911.  
  1912. if (pose == "Boogy") then
  1913. moveBoogy()
  1914. return
  1915. end
  1916.  
  1917. if (pose == "Float") then
  1918. moveFloat()
  1919. return
  1920. end
  1921.  
  1922. if (pose == "Punch") then
  1923. movePunch()
  1924. return
  1925. end
  1926.  
  1927. if (pose == "Kick") then
  1928. moveKick()
  1929. return
  1930. end
  1931.  
  1932. if (pose == "Fly") then
  1933. moveFly()
  1934. return
  1935. end
  1936.  
  1937. if (pose == "FreeFall") then
  1938. moveFreeFall()
  1939. return
  1940. end
  1941.  
  1942. if (pose == "Climbing") then
  1943. moveClimb()
  1944. return
  1945. end
  1946.  
  1947. if (pose == "Seated") then
  1948. moveSit()
  1949. return
  1950. end
  1951.  
  1952. amplitude = 0.1
  1953. frequency = 1
  1954.  
  1955. RightShoulder.MaxVelocity = 0.15
  1956. LeftShoulder.MaxVelocity = 0.15
  1957. if (pose == "Running") then
  1958. amplitude = 1
  1959. frequency = 9
  1960. elseif (pose == "Dancing") then
  1961. amplitude = 2
  1962. frequency = 16
  1963. end
  1964.  
  1965.  
  1966. desiredAngle = amplitude * math.sin(time*frequency)
  1967. if pose~="Dancing" then
  1968. RightShoulder.DesiredAngle = -desiredAngle
  1969. LeftShoulder.DesiredAngle = desiredAngle
  1970. RightHip.DesiredAngle = -desiredAngle
  1971. LeftHip.DesiredAngle = -desiredAngle
  1972. else
  1973. RightShoulder.DesiredAngle = -desiredAngle
  1974. LeftShoulder.DesiredAngle = desiredAngle
  1975. RightHip.DesiredAngle = -desiredAngle
  1976. LeftHip.DesiredAngle = -desiredAngle
  1977. end
  1978.  
  1979.  
  1980.  
  1981. local tool = getTool()
  1982.  
  1983. if tool ~= nil then
  1984.  
  1985. animStringValueObject = getToolAnim(tool)
  1986.  
  1987. if animStringValueObject ~= nil then
  1988. toolAnim = animStringValueObject.Value
  1989. -- message recieved, delete StringValue
  1990. animStringValueObject.Parent = nil
  1991. toolAnimTime = time + .3
  1992. end
  1993.  
  1994. if time > toolAnimTime then
  1995. toolAnimTime = 0
  1996. toolAnim = "None"
  1997. end
  1998.  
  1999. animateTool()
  2000.  
  2001.  
  2002. else
  2003. toolAnim = "None"
  2004. toolAnimTime = 0
  2005. end
  2006. end
  2007.  
  2008.  
  2009. -- connect events
  2010. -----------------------------------------------------------------------------------------------------------------------
  2011.  
  2012. function unequip()
  2013. local items=script.Parent:children()
  2014. for i=1, #items do
  2015. if items[i].className=="Tool" then items[i]:remove() end
  2016. end
  2017. end
  2018.  
  2019.  
  2020.  
  2021.  
  2022. -----------------------------------------------------------------------------------------------------------------------
  2023. -----------------------------------------------------------------------------------------------------------------------
  2024. -----------------------------------------------------------------------------------------------------------------------
  2025. -----------------------------------------------------------------------------------------------------------------------
  2026. -----------------------------------------------------------------------------------------------------------------------
  2027. -----------------------------------------------------------------------------------------------------------------------
  2028. -----------------------------------------------------------------------------------------------------------------------
  2029. -----------------------------------------------------------------------------------------------------------------------
  2030. -----------------------------------------------------------------------------------------------------------------------
  2031. -----------------------------------------------------------------------------------------------------------------------
  2032. -----------------------------------------------------------------------------------------------------------------------
  2033. -----------------------------------------------------------------------------------------------------------------------
  2034. dist=20
  2035.  
  2036. function followany()
  2037. following=true
  2038. while following==true do
  2039.  
  2040. local ch=game.Players:children()
  2041. for i=1, #ch do
  2042. local l=game.Workspace:findFirstChild(ch[i].Name)
  2043. if l~=nil then
  2044. local s=l.Torso
  2045. local p=l.Torso.Position
  2046. local q=script.Parent.Torso.Position
  2047. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  2048. if smallest==nil then
  2049. smallest=d
  2050. target=s
  2051. elseif d<smallest then
  2052. smallest=d
  2053. target=s
  2054. end
  2055. end
  2056. end
  2057.  
  2058. if smallest==nil then stopmoving() return end
  2059.  
  2060. if smallest>6*dist then return end
  2061.  
  2062. script.Parent.Humanoid:MoveTo(target.Position, target)
  2063.  
  2064. wait(0.5)
  2065. for i=1, 6 do
  2066. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  2067. end
  2068. end
  2069. end
  2070.  
  2071.  
  2072.  
  2073. function gohome()
  2074. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  2075. end
  2076.  
  2077. function stopmoving()
  2078. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  2079. end
  2080.  
  2081. function follow(name)
  2082. following=true
  2083.  
  2084. local p=game.Workspace:findFirstChild(name)
  2085. if p==nil then return end
  2086. while following==true do
  2087. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  2088. wait(0.5)
  2089. for i=1, 3 do
  2090. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  2091. wait(0.5)
  2092. end
  2093. end
  2094. end
  2095.  
  2096.  
  2097. -----------------------------------------------------------------------------------------------------------------------
  2098. -----------------------------------------------------------------------------------------------------------------------
  2099. -----------------------------------------------------------------------------------------------------------------------
  2100. -----------------------------------------------------------------------------------------------------------------------
  2101. -----------------------------------------------------------------------------------------------------------------------
  2102. -----------------------------------------------------------------------------------------------------------------------
  2103. -----------------------------------------------------------------------------------------------------------------------
  2104. -----------------------------------------------------------------------------------------------------------------------
  2105. -----------------------------------------------------------------------------------------------------------------------
  2106. -----------------------------------------------------------------------------------------------------------------------
  2107. -----------------------------------------------------------------------------------------------------------------------
  2108. -----------------------------------------------------------------------------------------------------------------------
  2109.  
  2110.  
  2111. Humanoid.Died:connect(onDied)
  2112. Humanoid.Running:connect(onRunning)
  2113. Humanoid.Jumping:connect(onJumping)
  2114. Humanoid.Climbing:connect(onClimbing)
  2115. Humanoid.GettingUp:connect(onGettingUp)
  2116. Humanoid.FreeFalling:connect(onFreeFall)
  2117. Humanoid.FallingDown:connect(onFallingDown)
  2118. Humanoid.Seated:connect(onSeated)
  2119.  
  2120.  
  2121. --[[
  2122.  
  2123. function newSound(id)
  2124. local sound = Instance.new("Sound")
  2125. sound.SoundId = id
  2126. sound.Parent = script.Parent.Head
  2127. return sound
  2128. end
  2129.  
  2130.  
  2131. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  2132. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  2133. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  2134. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  2135. local sJumping = newSound("rbxasset://sounds/button.wav")
  2136. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  2137. sRunning.Looped = true
  2138.  
  2139. local Figure = script.Parent
  2140. local Head = waitForChild(Figure, "Head")
  2141. local Humanoid = waitForChild(Figure, "Humanoid")
  2142.  
  2143.  
  2144. function onDied()
  2145. sDied:play()
  2146. end
  2147.  
  2148. function onState(state, sound)
  2149. if state then
  2150. sound:play()
  2151. else
  2152. sound:pause()
  2153. end
  2154. end
  2155.  
  2156. function onRunning(speed)
  2157. if speed>0 then
  2158. sRunning:play()
  2159. else
  2160. sRunning:pause()
  2161. end
  2162. end
  2163.  
  2164.  
  2165. Humanoid.Died:connect(onDied)
  2166. Humanoid.Running:connect(onRunning)
  2167. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  2168. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  2169. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  2170. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  2171. --]]
  2172.  
  2173. local nextTime = 0
  2174. local runService = game:service("RunService");
  2175.  
  2176. while Figure.Parent~=nil do
  2177. time = runService.Stepped:wait()
  2178. if time > nextTime then
  2179. move(time)
  2180. nextTime = time + 0.1
  2181. end
  2182. end
  2183.  
  2184. end))
  2185. Part57.Name = "Left Arm"
  2186. Part57.Parent = Model36
  2187. Part57.BrickColor = BrickColor.new("Cool yellow")
  2188. Part57.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
  2189. Part57.CanCollide = false
  2190. Part57.FormFactor = Enum.FormFactor.Symmetric
  2191. Part57.Size = Vector3.new(1, 2, 1)
  2192. Part57.CFrame = CFrame.new(-8.73048306, 4.03910875, -6.71183872, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
  2193. Part57.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2194. Part57.Position = Vector3.new(-8.73048306, 4.03910875, -6.71183872)
  2195. Part57.Orientation = Vector3.new(5.19000006, 130, 0)
  2196. Part57.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2197. Part58.Name = "Left Leg"
  2198. Part58.Parent = Model36
  2199. Part58.BrickColor = BrickColor.new("Bright blue")
  2200. Part58.Rotation = Vector3.new(-171.949997, 49.7199974, 173.839996)
  2201. Part58.CanCollide = false
  2202. Part58.FormFactor = Enum.FormFactor.Symmetric
  2203. Part58.Size = Vector3.new(1, 2, 1)
  2204. Part58.CFrame = CFrame.new(-9.26926613, 2.04117894, -7.56515265, -0.64278698, -0.0693350285, 0.76290077, 0, 0.995895505, 0.0905103832, -0.766044974, 0.0581789017, -0.64014864)
  2205. Part58.BottomSurface = Enum.SurfaceType.Smooth
  2206. Part58.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  2207. Part58.Position = Vector3.new(-9.26926613, 2.04117894, -7.56515265)
  2208. Part58.Orientation = Vector3.new(-5.19000006, 130, 0)
  2209. Part58.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  2210. Attachment59.Name = "Attachment0"
  2211. Attachment59.Parent = Part58
  2212. Attachment59.Rotation = Vector3.new(-0, -90, 0)
  2213. Attachment59.CFrame = CFrame.new(0.0199999996, -0.589999974, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2214. Attachment59.Position = Vector3.new(0.0199999996, -0.589999974, 0.5)
  2215. Attachment59.Axis = Vector3.new(0, 0, 1)
  2216. Attachment59.Orientation = Vector3.new(-0, -90, 0)
  2217. RodConstraint60.Parent = Part58
  2218. RodConstraint60.Visible = true
  2219. RodConstraint60.Attachment0 = Attachment59
  2220. RodConstraint60.Attachment1 = Attachment320
  2221. RodConstraint60.Length = 3.4937551021576
  2222. Part61.Name = "Torso"
  2223. Part61.Parent = Model36
  2224. Part61.BrickColor = BrickColor.new("Dark green")
  2225. Part61.Rotation = Vector3.new(-180, 50, -180)
  2226. Part61.CanCollide = false
  2227. Part61.FormFactor = Enum.FormFactor.Symmetric
  2228. Part61.Size = Vector3.new(2, 2, 1)
  2229. Part61.CFrame = CFrame.new(-9.65999794, 4.03709984, -7.88999605, -0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, -0.64278698)
  2230. Part61.LeftSurface = Enum.SurfaceType.Weld
  2231. Part61.RightSurface = Enum.SurfaceType.Weld
  2232. Part61.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2233. Part61.Position = Vector3.new(-9.65999794, 4.03709984, -7.88999605)
  2234. Part61.Orientation = Vector3.new(0, 130, 0)
  2235. Part61.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2236. Decal62.Name = "roblox"
  2237. Decal62.Parent = Part61
  2238. Motor63.Name = "Right Shoulder"
  2239. Motor63.Parent = Part61
  2240. Motor63.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2241. Motor63.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2242. Motor63.DesiredAngle = 0.09063521027565
  2243. Motor63.MaxVelocity = 0.15000000596046
  2244. Motor64.Name = "Left Shoulder"
  2245. Motor64.Parent = Part61
  2246. Motor64.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2247. Motor64.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2248. Motor64.DesiredAngle = -0.09063521027565
  2249. Motor64.MaxVelocity = 0.15000000596046
  2250. Motor65.Name = "Right Hip"
  2251. Motor65.Parent = Part61
  2252. Motor65.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2253. Motor65.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2254. Motor65.DesiredAngle = 0.09063521027565
  2255. Motor65.MaxVelocity = 0.10000000149012
  2256. Motor66.Name = "Left Hip"
  2257. Motor66.Parent = Part61
  2258. Motor66.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2259. Motor66.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2260. Motor66.DesiredAngle = 0.09063521027565
  2261. Motor66.MaxVelocity = 0.10000000149012
  2262. Snap67.Name = "Neck"
  2263. Snap67.Parent = Part61
  2264. Snap67.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2265. Snap67.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2266. Part68.Name = "Right Arm"
  2267. Part68.Parent = Model36
  2268. Part68.BrickColor = BrickColor.new("Cool yellow")
  2269. Part68.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
  2270. Part68.CanCollide = false
  2271. Part68.FormFactor = Enum.FormFactor.Symmetric
  2272. Part68.Size = Vector3.new(1, 2, 1)
  2273. Part68.CFrame = CFrame.new(-10.6588459, 4.03910875, -9.00997353, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
  2274. Part68.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2275. Part68.Position = Vector3.new(-10.6588459, 4.03910875, -9.00997353)
  2276. Part68.Orientation = Vector3.new(5.19000006, 130, 0)
  2277. Part68.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2278. Script69.Name = "Ragdoll"
  2279. Script69.Parent = Model36
  2280. table.insert(cors,sandbox(Script69,function()
  2281. print("Hello world!")
  2282.  
  2283. Character = script.Parent
  2284. Humanoid = Character.Humanoid
  2285. Torso = Character.Torso
  2286.  
  2287. function OnDeath()
  2288. print("Death")
  2289. Humanoid.Parent = nil
  2290. if Torso then
  2291. local Head = Character:FindFirstChild("Head")
  2292. if Head then
  2293. local Neck = Instance.new("Weld")
  2294. Neck.Name = "Neck"
  2295. Neck.Part0 = Torso
  2296. Neck.Part1 = Head
  2297. Neck.C0 = CFrame.new(0, 1.5, 0)
  2298. Neck.C1 = CFrame.new()
  2299. Neck.Parent = Torso
  2300. end
  2301. local Limb = Character:FindFirstChild("Right Arm")
  2302. if Limb then
  2303.  
  2304. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  2305. local Joint = Instance.new("Glue")
  2306. Joint.Name = "RightShoulder"
  2307. Joint.Part0 = Torso
  2308. Joint.Part1 = Limb
  2309. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2310. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2311. Joint.Parent = Torso
  2312.  
  2313. local B = Instance.new("Part")
  2314. B.TopSurface = 0
  2315. B.BottomSurface = 0
  2316. B.formFactor = "Symmetric"
  2317. B.Size = Vector3.new(1, 1, 1)
  2318. B.Transparency = 1
  2319. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2320. B.Parent = Character
  2321. local W = Instance.new("Weld")
  2322. W.Part0 = Limb
  2323. W.Part1 = B
  2324. W.C0 = CFrame.new(0, -0.5, 0)
  2325. W.Parent = Limb
  2326.  
  2327. end
  2328. local Limb = Character:FindFirstChild("Left Arm")
  2329. if Limb then
  2330.  
  2331. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  2332. local Joint = Instance.new("Glue")
  2333. Joint.Name = "LeftShoulder"
  2334. Joint.Part0 = Torso
  2335. Joint.Part1 = Limb
  2336. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2337. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2338. Joint.Parent = Torso
  2339.  
  2340. local B = Instance.new("Part")
  2341. B.TopSurface = 0
  2342. B.BottomSurface = 0
  2343. B.formFactor = "Symmetric"
  2344. B.Size = Vector3.new(1, 1, 1)
  2345. B.Transparency = 1
  2346. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2347. B.Parent = Character
  2348. local W = Instance.new("Weld")
  2349. W.Part0 = Limb
  2350. W.Part1 = B
  2351. W.C0 = CFrame.new(0, -0.5, 0)
  2352. W.Parent = Limb
  2353.  
  2354. end
  2355. local Limb = Character:FindFirstChild("Right Leg")
  2356. if Limb then
  2357.  
  2358. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  2359. local Joint = Instance.new("Glue")
  2360. Joint.Name = "RightHip"
  2361. Joint.Part0 = Torso
  2362. Joint.Part1 = Limb
  2363. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2364. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2365. Joint.Parent = Torso
  2366.  
  2367. local B = Instance.new("Part")
  2368. B.TopSurface = 0
  2369. B.BottomSurface = 0
  2370. B.formFactor = "Symmetric"
  2371. B.Size = Vector3.new(1, 1, 1)
  2372. B.Transparency = 1
  2373. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2374. B.Parent = Character
  2375. local W = Instance.new("Weld")
  2376. W.Part0 = Limb
  2377. W.Part1 = B
  2378. W.C0 = CFrame.new(0, -0.5, 0)
  2379. W.Parent = Limb
  2380.  
  2381. end
  2382. local Limb = Character:FindFirstChild("Left Leg")
  2383. if Limb then
  2384.  
  2385. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  2386. local Joint = Instance.new("Glue")
  2387. Joint.Name = "LeftHip"
  2388. Joint.Part0 = Torso
  2389. Joint.Part1 = Limb
  2390. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2391. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2392. Joint.Parent = Torso
  2393.  
  2394. local B = Instance.new("Part")
  2395. B.TopSurface = 0
  2396. B.BottomSurface = 0
  2397. B.formFactor = "Symmetric"
  2398. B.Size = Vector3.new(1, 1, 1)
  2399. B.Transparency = 1
  2400. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2401. B.Parent = Character
  2402. local W = Instance.new("Weld")
  2403. W.Part0 = Limb
  2404. W.Part1 = B
  2405. W.C0 = CFrame.new(0, -0.5, 0)
  2406. W.Parent = Limb
  2407.  
  2408. end
  2409. --[
  2410. local Bar = Instance.new("Part")
  2411. Bar.TopSurface = 0
  2412. Bar.BottomSurface = 0
  2413. Bar.formFactor = "Symmetric"
  2414. Bar.Size = Vector3.new(1, 1, 1)
  2415. Bar.Transparency = 1
  2416. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  2417. Bar.Parent = Character
  2418. local Weld = Instance.new("Weld")
  2419. Weld.Part0 = Torso
  2420. Weld.Part1 = Bar
  2421. Weld.C0 = CFrame.new(0, 0.5, 0)
  2422. Weld.Parent = Torso
  2423. --]]
  2424. end
  2425. end
  2426.  
  2427. Humanoid.Died:connect(OnDeath)
  2428.  
  2429. end))
  2430. Script70.Name = "BloodS"
  2431. Script70.Parent = Model36
  2432. table.insert(cors,sandbox(Script70,function()
  2433. function MakeBlood()
  2434.  
  2435. local blood = Instance.new("Part")
  2436. blood.formFactor = "Plate"
  2437. blood.Size = Vector3.new(1,0.4,1)
  2438. blood.Name = "Blood"
  2439. blood.Reflectance = 0.2
  2440. blood.Transparency = 0.1
  2441. blood.BrickColor = BrickColor.new("Really red")
  2442. blood.Locked = true
  2443. blood.BackSurface = "Smooth"
  2444. blood.TopSurface = "Smooth"
  2445.  
  2446. local CC = math.random(1,2)
  2447.  
  2448. if CC == 1 then
  2449.  
  2450. blood.CanCollide = true
  2451.  
  2452. elseif CC == 2 then
  2453.  
  2454. blood.CanCollide = false
  2455.  
  2456. end
  2457.  
  2458. blood.Position = script.Parent.Torso.Position
  2459. blood.Parent = script.Parent
  2460.  
  2461. end
  2462.  
  2463. humanoid = script.Parent.Humanoid
  2464. lhh = humanoid.Health
  2465.  
  2466. while true do
  2467.  
  2468. if humanoid.Health < lhh then
  2469.  
  2470. howmuch = math.random(7,20)
  2471. lhh = humanoid.Health
  2472.  
  2473. for i = 1 , howmuch do
  2474.  
  2475. MakeBlood()
  2476.  
  2477. end
  2478.  
  2479. end
  2480.  
  2481. wait(0.1)
  2482. end
  2483.  
  2484. end))
  2485. Part71.Parent = Model0
  2486. Part71.BrickColor = BrickColor.new("Fossil")
  2487. Part71.Anchored = true
  2488. Part71.Size = Vector3.new(40.5099907, 20.1400013, 0.49999997)
  2489. Part71.CFrame = CFrame.new(-24.9950008, 19.3700104, -12.2271767, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2490. Part71.BottomSurface = Enum.SurfaceType.Smooth
  2491. Part71.TopSurface = Enum.SurfaceType.Smooth
  2492. Part71.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2493. Part71.Position = Vector3.new(-24.9950008, 19.3700104, -12.2271767)
  2494. Part71.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2495. Part72.Parent = Model0
  2496. Part72.Material = Enum.Material.Ice
  2497. Part72.BrickColor = BrickColor.new("Black")
  2498. Part72.Anchored = true
  2499. Part72.Size = Vector3.new(41.5000038, 1, 49.8799934)
  2500. Part72.CFrame = CFrame.new(-24.9400024, 0.500003994, 12.5099983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2501. Part72.BottomSurface = Enum.SurfaceType.Smooth
  2502. Part72.TopSurface = Enum.SurfaceType.Smooth
  2503. Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2504. Part72.Position = Vector3.new(-24.9400024, 0.500003994, 12.5099983)
  2505. Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2506. Part73.Parent = Model0
  2507. Part73.BrickColor = BrickColor.new("Fossil")
  2508. Part73.Anchored = true
  2509. Part73.Size = Vector3.new(41.3700066, 28.4400024, 0.49999997)
  2510. Part73.CFrame = CFrame.new(-24.9450054, 15.220005, 37.1100006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2511. Part73.BottomSurface = Enum.SurfaceType.Smooth
  2512. Part73.TopSurface = Enum.SurfaceType.Smooth
  2513. Part73.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2514. Part73.Position = Vector3.new(-24.9450054, 15.220005, 37.1100006)
  2515. Part73.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2516. Attachment74.Name = "Attachment0"
  2517. Attachment74.Parent = Part73
  2518. Attachment74.Rotation = Vector3.new(0, 90, 0)
  2519. Attachment74.CFrame = CFrame.new(19.8799992, -12.5199995, -0.249999985, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2520. Attachment74.Position = Vector3.new(19.8799992, -12.5199995, -0.249999985)
  2521. Attachment74.Axis = Vector3.new(0, 0, -1)
  2522. Attachment74.Orientation = Vector3.new(0, 90, 0)
  2523. Part75.Parent = Model0
  2524. Part75.BrickColor = BrickColor.new("Really black")
  2525. Part75.Anchored = true
  2526. Part75.Size = Vector3.new(0.789999843, 1, 13.7299986)
  2527. Part75.CFrame = CFrame.new(-44.6388016, 17.3300037, 9.99782753, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2528. Part75.BottomSurface = Enum.SurfaceType.Smooth
  2529. Part75.TopSurface = Enum.SurfaceType.Smooth
  2530. Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2531. Part75.Position = Vector3.new(-44.6388016, 17.3300037, 9.99782753)
  2532. Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2533. Part76.Parent = Model0
  2534. Part76.BrickColor = BrickColor.new("Fossil")
  2535. Part76.Anchored = true
  2536. Part76.Size = Vector3.new(0.560000062, 28.4400024, 49.4000015)
  2537. Part76.CFrame = CFrame.new(-4.54000425, 15.220005, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2538. Part76.BottomSurface = Enum.SurfaceType.Smooth
  2539. Part76.TopSurface = Enum.SurfaceType.Smooth
  2540. Part76.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2541. Part76.Position = Vector3.new(-4.54000425, 15.220005, 12.2228251)
  2542. Part76.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2543. Attachment77.Name = "Attachment1"
  2544. Attachment77.Parent = Part76
  2545. Attachment77.Rotation = Vector3.new(-2.78630381e-07, 39.9999466, -5.19296932)
  2546. Attachment77.CFrame = CFrame.new(-0.280000031, -13.5900002, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 3.7252903e-09, -0.64014864, -0.0581788942, 0.766044974)
  2547. Attachment77.Position = Vector3.new(-0.280000031, -13.5900002, -24.1599998)
  2548. Attachment77.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  2549. Attachment77.Orientation = Vector3.new(-2.13443414e-07, 39.9999504, -5.1929698)
  2550. Part78.Parent = Model0
  2551. Part78.BrickColor = BrickColor.new("Fossil")
  2552. Part78.Anchored = true
  2553. Part78.Size = Vector3.new(0.560000062, 16.8600025, 49.2799988)
  2554. Part78.CFrame = CFrame.new(-45.3138046, 9.43000603, 12.1694336, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2555. Part78.BottomSurface = Enum.SurfaceType.Smooth
  2556. Part78.TopSurface = Enum.SurfaceType.Smooth
  2557. Part78.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2558. Part78.Position = Vector3.new(-45.3138046, 9.43000603, 12.1694336)
  2559. Part78.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2560. Part79.Parent = Model0
  2561. Part79.BrickColor = BrickColor.new("Fossil")
  2562. Part79.Anchored = true
  2563. Part79.Size = Vector3.new(0.560000062, 28.4400024, 20.8700008)
  2564. Part79.CFrame = CFrame.new(-45.3138046, 15.220005, 26.3744316, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2565. Part79.BottomSurface = Enum.SurfaceType.Smooth
  2566. Part79.TopSurface = Enum.SurfaceType.Smooth
  2567. Part79.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2568. Part79.Position = Vector3.new(-45.3138046, 15.220005, 26.3744316)
  2569. Part79.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2570. Part80.Parent = Model0
  2571. Part80.BrickColor = BrickColor.new("Fossil")
  2572. Part80.Anchored = true
  2573. Part80.Size = Vector3.new(0.560000062, 6.32000589, 49.390007)
  2574. Part80.CFrame = CFrame.new(-45.3138046, 26.2800083, 12.2178278, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2575. Part80.BottomSurface = Enum.SurfaceType.Smooth
  2576. Part80.TopSurface = Enum.SurfaceType.Smooth
  2577. Part80.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2578. Part80.Position = Vector3.new(-45.3138046, 26.2800083, 12.2178278)
  2579. Part80.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2580. Part81.Parent = Model0
  2581. Part81.BrickColor = BrickColor.new("Really black")
  2582. Part81.Anchored = true
  2583. Part81.Size = Vector3.new(0.789999843, 1, 13.7299986)
  2584. Part81.CFrame = CFrame.new(-44.6388016, 23.4560204, 9.99782753, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2585. Part81.BottomSurface = Enum.SurfaceType.Smooth
  2586. Part81.TopSurface = Enum.SurfaceType.Smooth
  2587. Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2588. Part81.Position = Vector3.new(-44.6388016, 23.4560204, 9.99782753)
  2589. Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2590. Part82.Parent = Model0
  2591. Part82.BrickColor = BrickColor.new("Fossil")
  2592. Part82.Anchored = true
  2593. Part82.Size = Vector3.new(0.560000062, 28.4400024, 16.6300049)
  2594. Part82.CFrame = CFrame.new(-45.3138046, 15.220005, -4.16217327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2595. Part82.BottomSurface = Enum.SurfaceType.Smooth
  2596. Part82.TopSurface = Enum.SurfaceType.Smooth
  2597. Part82.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2598. Part82.Position = Vector3.new(-45.3138046, 15.220005, -4.16217327)
  2599. Part82.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2600. Part83.Parent = Model0
  2601. Part83.Material = Enum.Material.Ice
  2602. Part83.BrickColor = BrickColor.new("Black")
  2603. Part83.Anchored = true
  2604. Part83.Size = Vector3.new(15.1200132, 1, 17.6899986)
  2605. Part83.CFrame = CFrame.new(-27.1599998, 37.0703468, 9.54500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2606. Part83.BottomSurface = Enum.SurfaceType.Smooth
  2607. Part83.TopSurface = Enum.SurfaceType.Smooth
  2608. Part83.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2609. Part83.Position = Vector3.new(-27.1599998, 37.0703468, 9.54500008)
  2610. Part83.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2611. Part84.Parent = Model0
  2612. Part84.BrickColor = BrickColor.new("Fossil")
  2613. Part84.Anchored = true
  2614. Part84.Size = Vector3.new(35.0199928, 28.4400024, 0.49999997)
  2615. Part84.CFrame = CFrame.new(-22.2500019, 15.220005, -12.2271767, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2616. Part84.BottomSurface = Enum.SurfaceType.Smooth
  2617. Part84.TopSurface = Enum.SurfaceType.Smooth
  2618. Part84.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2619. Part84.Position = Vector3.new(-22.2500019, 15.220005, -12.2271767)
  2620. Part84.Color = Color3.new(0.623529, 0.631373, 0.67451)
  2621. Part85.Parent = Model0
  2622. Part85.BrickColor = BrickColor.new("Really black")
  2623. Part85.Anchored = true
  2624. Part85.Size = Vector3.new(0.789999843, 7.13000059, 0.959998429)
  2625. Part85.CFrame = CFrame.new(-44.6388016, 20.3950081, 3.57519531, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2626. Part85.BottomSurface = Enum.SurfaceType.Smooth
  2627. Part85.TopSurface = Enum.SurfaceType.Smooth
  2628. Part85.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2629. Part85.Position = Vector3.new(-44.6388016, 20.3950081, 3.57519531)
  2630. Part85.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2631. Model86.Name = "Killer"
  2632. Model86.Parent = Model0
  2633. Model86.PrimaryPart = Part234
  2634. Part87.Name = "Head"
  2635. Part87.Parent = Model86
  2636. Part87.BrickColor = BrickColor.new("Bright yellow")
  2637. Part87.Rotation = Vector3.new(0, -90, 0)
  2638. Part87.Velocity = Vector3.new(0, -1, 0)
  2639. Part87.CanCollide = false
  2640. Part87.FormFactor = Enum.FormFactor.Symmetric
  2641. Part87.Size = Vector3.new(2, 1, 1)
  2642. Part87.CFrame = CFrame.new(-27.430006, 34.2830048, 9.9700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2643. Part87.TopSurface = Enum.SurfaceType.Smooth
  2644. Part87.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2645. Part87.Position = Vector3.new(-27.430006, 34.2830048, 9.9700098)
  2646. Part87.Orientation = Vector3.new(0, -90, 0)
  2647. Part87.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2648. SpecialMesh88.Parent = Part87
  2649. SpecialMesh88.Scale = Vector3.new(1.25, 1.25, 1.25)
  2650. SpecialMesh88.Scale = Vector3.new(1.25, 1.25, 1.25)
  2651. Sound89.Parent = Part87
  2652. Sound89.SoundId = "rbxasset://sounds/uuhhh.wav"
  2653. Sound90.Parent = Part87
  2654. Sound90.SoundId = "rbxasset://sounds/splat.wav"
  2655. Sound91.Parent = Part87
  2656. Sound91.SoundId = "rbxasset://sounds/swoosh.wav"
  2657. Sound92.Parent = Part87
  2658. Sound92.SoundId = "rbxasset://sounds/hit.wav"
  2659. Sound93.Parent = Part87
  2660. Sound93.SoundId = "rbxasset://sounds/button.wav"
  2661. Sound94.Parent = Part87
  2662. Sound94.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2663. Sound94.Looped = true
  2664. Sound95.Parent = Part87
  2665. Sound95.SoundId = "rbxasset://sounds/uuhhh.wav"
  2666. Sound96.Parent = Part87
  2667. Sound96.SoundId = "rbxasset://sounds/splat.wav"
  2668. Sound97.Parent = Part87
  2669. Sound97.SoundId = "rbxasset://sounds/swoosh.wav"
  2670. Sound98.Parent = Part87
  2671. Sound98.SoundId = "rbxasset://sounds/hit.wav"
  2672. Sound99.Parent = Part87
  2673. Sound99.SoundId = "rbxasset://sounds/button.wav"
  2674. Sound100.Parent = Part87
  2675. Sound100.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2676. Sound100.Looped = true
  2677. Sound101.Parent = Part87
  2678. Sound101.SoundId = "rbxasset://sounds/uuhhh.wav"
  2679. Sound102.Parent = Part87
  2680. Sound102.SoundId = "rbxasset://sounds/splat.wav"
  2681. Sound103.Parent = Part87
  2682. Sound103.SoundId = "rbxasset://sounds/swoosh.wav"
  2683. Sound104.Parent = Part87
  2684. Sound104.SoundId = "rbxasset://sounds/hit.wav"
  2685. Sound105.Parent = Part87
  2686. Sound105.SoundId = "rbxasset://sounds/button.wav"
  2687. Sound106.Parent = Part87
  2688. Sound106.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2689. Sound106.Looped = true
  2690. Sound107.Parent = Part87
  2691. Sound107.SoundId = "rbxasset://sounds/uuhhh.wav"
  2692. Sound108.Parent = Part87
  2693. Sound108.SoundId = "rbxasset://sounds/splat.wav"
  2694. Sound109.Parent = Part87
  2695. Sound109.SoundId = "rbxasset://sounds/swoosh.wav"
  2696. Sound110.Parent = Part87
  2697. Sound110.SoundId = "rbxasset://sounds/hit.wav"
  2698. Sound111.Parent = Part87
  2699. Sound111.SoundId = "rbxasset://sounds/button.wav"
  2700. Sound112.Parent = Part87
  2701. Sound112.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2702. Sound112.Looped = true
  2703. Sound113.Parent = Part87
  2704. Sound113.SoundId = "rbxasset://sounds/uuhhh.wav"
  2705. Sound114.Parent = Part87
  2706. Sound114.SoundId = "rbxasset://sounds/splat.wav"
  2707. Sound115.Parent = Part87
  2708. Sound115.SoundId = "rbxasset://sounds/swoosh.wav"
  2709. Sound116.Parent = Part87
  2710. Sound116.SoundId = "rbxasset://sounds/hit.wav"
  2711. Sound117.Parent = Part87
  2712. Sound117.SoundId = "rbxasset://sounds/button.wav"
  2713. Sound118.Parent = Part87
  2714. Sound118.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2715. Sound118.Looped = true
  2716. Sound119.Parent = Part87
  2717. Sound119.SoundId = "rbxasset://sounds/uuhhh.wav"
  2718. Sound120.Parent = Part87
  2719. Sound120.SoundId = "rbxasset://sounds/splat.wav"
  2720. Sound121.Parent = Part87
  2721. Sound121.SoundId = "rbxasset://sounds/swoosh.wav"
  2722. Sound122.Parent = Part87
  2723. Sound122.SoundId = "rbxasset://sounds/hit.wav"
  2724. Sound123.Parent = Part87
  2725. Sound123.SoundId = "rbxasset://sounds/button.wav"
  2726. Sound124.Parent = Part87
  2727. Sound124.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2728. Sound124.Looped = true
  2729. Sound125.Parent = Part87
  2730. Sound125.SoundId = "rbxasset://sounds/uuhhh.wav"
  2731. Sound126.Parent = Part87
  2732. Sound126.SoundId = "rbxasset://sounds/splat.wav"
  2733. Sound127.Parent = Part87
  2734. Sound127.SoundId = "rbxasset://sounds/swoosh.wav"
  2735. Sound128.Parent = Part87
  2736. Sound128.SoundId = "rbxasset://sounds/hit.wav"
  2737. Sound129.Parent = Part87
  2738. Sound129.SoundId = "rbxasset://sounds/button.wav"
  2739. Sound130.Parent = Part87
  2740. Sound130.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2741. Sound130.Looped = true
  2742. Sound131.Parent = Part87
  2743. Sound131.SoundId = "rbxasset://sounds/uuhhh.wav"
  2744. Sound132.Parent = Part87
  2745. Sound132.SoundId = "rbxasset://sounds/splat.wav"
  2746. Sound133.Parent = Part87
  2747. Sound133.SoundId = "rbxasset://sounds/swoosh.wav"
  2748. Sound134.Parent = Part87
  2749. Sound134.SoundId = "rbxasset://sounds/hit.wav"
  2750. Sound135.Parent = Part87
  2751. Sound135.SoundId = "rbxasset://sounds/button.wav"
  2752. Sound136.Parent = Part87
  2753. Sound136.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2754. Sound136.Looped = true
  2755. Sound137.Parent = Part87
  2756. Sound137.SoundId = "rbxasset://sounds/uuhhh.wav"
  2757. Sound138.Parent = Part87
  2758. Sound138.SoundId = "rbxasset://sounds/splat.wav"
  2759. Sound139.Parent = Part87
  2760. Sound139.SoundId = "rbxasset://sounds/swoosh.wav"
  2761. Sound140.Parent = Part87
  2762. Sound140.SoundId = "rbxasset://sounds/hit.wav"
  2763. Sound141.Parent = Part87
  2764. Sound141.SoundId = "rbxasset://sounds/button.wav"
  2765. Sound142.Parent = Part87
  2766. Sound142.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2767. Sound142.Looped = true
  2768. Sound143.Parent = Part87
  2769. Sound143.SoundId = "rbxasset://sounds/uuhhh.wav"
  2770. Sound144.Parent = Part87
  2771. Sound144.SoundId = "rbxasset://sounds/splat.wav"
  2772. Sound145.Parent = Part87
  2773. Sound145.SoundId = "rbxasset://sounds/swoosh.wav"
  2774. Sound146.Parent = Part87
  2775. Sound146.SoundId = "rbxasset://sounds/hit.wav"
  2776. Sound147.Parent = Part87
  2777. Sound147.SoundId = "rbxasset://sounds/button.wav"
  2778. Sound148.Parent = Part87
  2779. Sound148.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2780. Sound148.Looped = true
  2781. Sound149.Parent = Part87
  2782. Sound149.SoundId = "rbxasset://sounds/uuhhh.wav"
  2783. Sound150.Parent = Part87
  2784. Sound150.SoundId = "rbxasset://sounds/splat.wav"
  2785. Sound151.Parent = Part87
  2786. Sound151.SoundId = "rbxasset://sounds/swoosh.wav"
  2787. Sound152.Parent = Part87
  2788. Sound152.SoundId = "rbxasset://sounds/hit.wav"
  2789. Sound153.Parent = Part87
  2790. Sound153.SoundId = "rbxasset://sounds/button.wav"
  2791. Sound154.Parent = Part87
  2792. Sound154.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2793. Sound154.Looped = true
  2794. Sound155.Parent = Part87
  2795. Sound155.SoundId = "rbxasset://sounds/uuhhh.wav"
  2796. Sound156.Parent = Part87
  2797. Sound156.SoundId = "rbxasset://sounds/splat.wav"
  2798. Sound157.Parent = Part87
  2799. Sound157.SoundId = "rbxasset://sounds/swoosh.wav"
  2800. Sound158.Parent = Part87
  2801. Sound158.SoundId = "rbxasset://sounds/hit.wav"
  2802. Sound159.Parent = Part87
  2803. Sound159.SoundId = "rbxasset://sounds/button.wav"
  2804. Sound160.Parent = Part87
  2805. Sound160.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2806. Sound160.Looped = true
  2807. Sound161.Parent = Part87
  2808. Sound161.SoundId = "rbxasset://sounds/uuhhh.wav"
  2809. Sound162.Parent = Part87
  2810. Sound162.SoundId = "rbxasset://sounds/splat.wav"
  2811. Sound163.Parent = Part87
  2812. Sound163.SoundId = "rbxasset://sounds/swoosh.wav"
  2813. Sound164.Parent = Part87
  2814. Sound164.SoundId = "rbxasset://sounds/hit.wav"
  2815. Sound165.Parent = Part87
  2816. Sound165.SoundId = "rbxasset://sounds/button.wav"
  2817. Sound166.Parent = Part87
  2818. Sound166.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2819. Sound166.Looped = true
  2820. Sound167.Parent = Part87
  2821. Sound167.SoundId = "rbxasset://sounds/uuhhh.wav"
  2822. Sound168.Parent = Part87
  2823. Sound168.SoundId = "rbxasset://sounds/splat.wav"
  2824. Sound169.Parent = Part87
  2825. Sound169.SoundId = "rbxasset://sounds/swoosh.wav"
  2826. Sound170.Parent = Part87
  2827. Sound170.SoundId = "rbxasset://sounds/hit.wav"
  2828. Sound171.Parent = Part87
  2829. Sound171.SoundId = "rbxasset://sounds/button.wav"
  2830. Sound172.Parent = Part87
  2831. Sound172.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2832. Sound172.Looped = true
  2833. Sound173.Parent = Part87
  2834. Sound173.SoundId = "rbxasset://sounds/uuhhh.wav"
  2835. Sound174.Parent = Part87
  2836. Sound174.SoundId = "rbxasset://sounds/splat.wav"
  2837. Sound175.Parent = Part87
  2838. Sound175.SoundId = "rbxasset://sounds/swoosh.wav"
  2839. Sound176.Parent = Part87
  2840. Sound176.SoundId = "rbxasset://sounds/hit.wav"
  2841. Sound177.Parent = Part87
  2842. Sound177.SoundId = "rbxasset://sounds/button.wav"
  2843. Sound178.Parent = Part87
  2844. Sound178.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2845. Sound178.Looped = true
  2846. Sound179.Parent = Part87
  2847. Sound179.SoundId = "rbxasset://sounds/uuhhh.wav"
  2848. Sound180.Parent = Part87
  2849. Sound180.SoundId = "rbxasset://sounds/splat.wav"
  2850. Sound181.Parent = Part87
  2851. Sound181.SoundId = "rbxasset://sounds/swoosh.wav"
  2852. Sound182.Parent = Part87
  2853. Sound182.SoundId = "rbxasset://sounds/hit.wav"
  2854. Sound183.Parent = Part87
  2855. Sound183.SoundId = "rbxasset://sounds/button.wav"
  2856. Sound184.Parent = Part87
  2857. Sound184.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2858. Sound184.Looped = true
  2859. Sound185.Parent = Part87
  2860. Sound185.SoundId = "rbxasset://sounds/uuhhh.wav"
  2861. Sound186.Parent = Part87
  2862. Sound186.SoundId = "rbxasset://sounds/splat.wav"
  2863. Sound187.Parent = Part87
  2864. Sound187.SoundId = "rbxasset://sounds/swoosh.wav"
  2865. Sound188.Parent = Part87
  2866. Sound188.SoundId = "rbxasset://sounds/hit.wav"
  2867. Sound189.Parent = Part87
  2868. Sound189.SoundId = "rbxasset://sounds/button.wav"
  2869. Sound190.Parent = Part87
  2870. Sound190.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2871. Sound190.Looped = true
  2872. Sound191.Parent = Part87
  2873. Sound191.SoundId = "rbxasset://sounds/uuhhh.wav"
  2874. Sound192.Parent = Part87
  2875. Sound192.SoundId = "rbxasset://sounds/splat.wav"
  2876. Sound193.Parent = Part87
  2877. Sound193.SoundId = "rbxasset://sounds/swoosh.wav"
  2878. Sound194.Parent = Part87
  2879. Sound194.SoundId = "rbxasset://sounds/hit.wav"
  2880. Sound195.Parent = Part87
  2881. Sound195.SoundId = "rbxasset://sounds/button.wav"
  2882. Sound196.Parent = Part87
  2883. Sound196.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2884. Sound196.Looped = true
  2885. Sound197.Parent = Part87
  2886. Sound197.SoundId = "rbxasset://sounds/uuhhh.wav"
  2887. Sound198.Parent = Part87
  2888. Sound198.SoundId = "rbxasset://sounds/splat.wav"
  2889. Sound199.Parent = Part87
  2890. Sound199.SoundId = "rbxasset://sounds/swoosh.wav"
  2891. Sound200.Parent = Part87
  2892. Sound200.SoundId = "rbxasset://sounds/hit.wav"
  2893. Sound201.Parent = Part87
  2894. Sound201.SoundId = "rbxasset://sounds/button.wav"
  2895. Sound202.Parent = Part87
  2896. Sound202.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2897. Sound202.Looped = true
  2898. Sound203.Parent = Part87
  2899. Sound203.SoundId = "rbxasset://sounds/uuhhh.wav"
  2900. Sound204.Parent = Part87
  2901. Sound204.SoundId = "rbxasset://sounds/splat.wav"
  2902. Sound205.Parent = Part87
  2903. Sound205.SoundId = "rbxasset://sounds/swoosh.wav"
  2904. Sound206.Parent = Part87
  2905. Sound206.SoundId = "rbxasset://sounds/hit.wav"
  2906. Sound207.Parent = Part87
  2907. Sound207.SoundId = "rbxasset://sounds/button.wav"
  2908. Sound208.Parent = Part87
  2909. Sound208.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2910. Sound208.Looped = true
  2911. Sound209.Parent = Part87
  2912. Sound209.SoundId = "rbxasset://sounds/uuhhh.wav"
  2913. Sound210.Parent = Part87
  2914. Sound210.SoundId = "rbxasset://sounds/splat.wav"
  2915. Sound211.Parent = Part87
  2916. Sound211.SoundId = "rbxasset://sounds/swoosh.wav"
  2917. Sound212.Parent = Part87
  2918. Sound212.SoundId = "rbxasset://sounds/hit.wav"
  2919. Sound213.Parent = Part87
  2920. Sound213.SoundId = "rbxasset://sounds/button.wav"
  2921. Sound214.Parent = Part87
  2922. Sound214.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2923. Sound214.Looped = true
  2924. Sound215.Parent = Part87
  2925. Sound215.SoundId = "rbxasset://sounds/uuhhh.wav"
  2926. Sound216.Parent = Part87
  2927. Sound216.SoundId = "rbxasset://sounds/splat.wav"
  2928. Sound217.Parent = Part87
  2929. Sound217.SoundId = "rbxasset://sounds/swoosh.wav"
  2930. Sound218.Parent = Part87
  2931. Sound218.SoundId = "rbxasset://sounds/hit.wav"
  2932. Sound219.Parent = Part87
  2933. Sound219.SoundId = "rbxasset://sounds/button.wav"
  2934. Sound220.Parent = Part87
  2935. Sound220.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2936. Sound220.Looped = true
  2937. Sound221.Parent = Part87
  2938. Sound221.SoundId = "rbxasset://sounds/uuhhh.wav"
  2939. Sound222.Parent = Part87
  2940. Sound222.SoundId = "rbxasset://sounds/splat.wav"
  2941. Sound223.Parent = Part87
  2942. Sound223.SoundId = "rbxasset://sounds/swoosh.wav"
  2943. Sound224.Parent = Part87
  2944. Sound224.SoundId = "rbxasset://sounds/hit.wav"
  2945. Sound225.Parent = Part87
  2946. Sound225.SoundId = "rbxasset://sounds/button.wav"
  2947. Sound226.Parent = Part87
  2948. Sound226.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2949. Sound226.Looped = true
  2950. Sound227.Parent = Part87
  2951. Sound227.SoundId = "rbxasset://sounds/uuhhh.wav"
  2952. Sound228.Parent = Part87
  2953. Sound228.SoundId = "rbxasset://sounds/splat.wav"
  2954. Sound229.Parent = Part87
  2955. Sound229.SoundId = "rbxasset://sounds/swoosh.wav"
  2956. Sound230.Parent = Part87
  2957. Sound230.SoundId = "rbxasset://sounds/hit.wav"
  2958. Sound231.Parent = Part87
  2959. Sound231.SoundId = "rbxasset://sounds/button.wav"
  2960. Sound232.Parent = Part87
  2961. Sound232.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2962. Sound232.Looped = true
  2963. Decal233.Parent = Part87
  2964. Decal233.Texture = "http://www.roblox.com/asset/?id=1220907390"
  2965. Part234.Name = "Torso"
  2966. Part234.Parent = Model86
  2967. Part234.BrickColor = BrickColor.new("Black")
  2968. Part234.Rotation = Vector3.new(0, -90, 0)
  2969. Part234.Velocity = Vector3.new(0, -1, 0)
  2970. Part234.CanCollide = false
  2971. Part234.FormFactor = Enum.FormFactor.Symmetric
  2972. Part234.Size = Vector3.new(2, 2, 1)
  2973. Part234.CFrame = CFrame.new(-27.430006, 32.7830048, 9.9700098, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  2974. Part234.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2975. Part234.Position = Vector3.new(-27.430006, 32.7830048, 9.9700098)
  2976. Part234.Orientation = Vector3.new(0, -90, 0)
  2977. Part234.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2978. Motor235.Name = "Left Hip"
  2979. Motor235.Parent = Part234
  2980. Motor235.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2981. Motor235.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2982. Motor235.Part0 = Part234
  2983. Motor235.Part1 = Part240
  2984. Motor235.DesiredAngle = -0.068333640694618
  2985. Motor235.MaxVelocity = 0.10000000149012
  2986. Snap236.Name = "Neck"
  2987. Snap236.Parent = Part234
  2988. Snap236.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2989. Snap236.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2990. Motor237.Name = "Right Hip"
  2991. Motor237.Parent = Part234
  2992. Motor237.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2993. Motor237.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2994. Motor237.Part0 = Part234
  2995. Motor237.Part1 = Part241
  2996. Motor237.DesiredAngle = -0.068333640694618
  2997. Motor237.MaxVelocity = 0.10000000149012
  2998. Motor238.Name = "Right Shoulder"
  2999. Motor238.Parent = Part234
  3000. Motor238.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3001. Motor238.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3002. Motor238.Part0 = Part245
  3003. Motor238.Part1 = Part234
  3004. Motor238.DesiredAngle = -0.068333640694618
  3005. Motor238.MaxVelocity = 0.15000000596046
  3006. Motor239.Name = "Left Shoulder"
  3007. Motor239.Parent = Part234
  3008. Motor239.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3009. Motor239.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3010. Motor239.Part0 = Part247
  3011. Motor239.Part1 = Part234
  3012. Motor239.DesiredAngle = 0.068333640694618
  3013. Motor239.MaxVelocity = 0.15000000596046
  3014. Part240.Name = "Left Leg"
  3015. Part240.Parent = Model86
  3016. Part240.BrickColor = BrickColor.new("Black")
  3017. Part240.Rotation = Vector3.new(0, -90, 0)
  3018. Part240.Velocity = Vector3.new(0, -1, 0)
  3019. Part240.CanCollide = false
  3020. Part240.FormFactor = Enum.FormFactor.Symmetric
  3021. Part240.Size = Vector3.new(1, 2, 1)
  3022. Part240.CFrame = CFrame.new(-27.430006, 30.7830048, 9.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3023. Part240.BottomSurface = Enum.SurfaceType.Smooth
  3024. Part240.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3025. Part240.Position = Vector3.new(-27.430006, 30.7830048, 9.4700098)
  3026. Part240.Orientation = Vector3.new(0, -90, 0)
  3027. Part240.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3028. Part241.Name = "Right Leg"
  3029. Part241.Parent = Model86
  3030. Part241.BrickColor = BrickColor.new("Black")
  3031. Part241.Rotation = Vector3.new(0, -90, 0)
  3032. Part241.Velocity = Vector3.new(0, -1, 0)
  3033. Part241.CanCollide = false
  3034. Part241.FormFactor = Enum.FormFactor.Symmetric
  3035. Part241.Size = Vector3.new(1, 2, 1)
  3036. Part241.CFrame = CFrame.new(-27.430006, 30.7830048, 10.4700098, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  3037. Part241.BottomSurface = Enum.SurfaceType.Smooth
  3038. Part241.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3039. Part241.Position = Vector3.new(-27.430006, 30.7830048, 10.4700098)
  3040. Part241.Orientation = Vector3.new(0, -90, 0)
  3041. Part241.Color = Color3.new(0.105882, 0.164706, 0.207843)
  3042. Humanoid242.Name = "Zombie"
  3043. Humanoid242.Parent = Model86
  3044. Humanoid242.RightLeg = Part241
  3045. Humanoid242.LeftLeg = Part240
  3046. Humanoid242.Torso = Part234
  3047. BodyColors243.Parent = Model86
  3048. BodyColors243.HeadColor = BrickColor.new("Bright yellow")
  3049. BodyColors243.LeftArmColor = BrickColor.new("Medium stone grey")
  3050. BodyColors243.LeftLegColor = BrickColor.new("Brick yellow")
  3051. BodyColors243.RightArmColor = BrickColor.new("Medium stone grey")
  3052. BodyColors243.RightLegColor = BrickColor.new("Brick yellow")
  3053. BodyColors243.TorsoColor = BrickColor.new("Bright red")
  3054. IntValue244.Name = "Mode"
  3055. IntValue244.Parent = Model86
  3056. Part245.Name = "Right Arm"
  3057. Part245.Parent = Model86
  3058. Part245.BrickColor = BrickColor.new("Cool yellow")
  3059. Part245.Rotation = Vector3.new(0, -90, 0)
  3060. Part245.Velocity = Vector3.new(0, -1, 0)
  3061. Part245.FormFactor = Enum.FormFactor.Symmetric
  3062. Part245.Size = Vector3.new(1, 2, 1)
  3063. Part245.CFrame = CFrame.new(-27.430006, 32.7830048, 11.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3064. Part245.Color = Color3.new(0.992157, 0.917647, 0.552941)
  3065. Part245.Position = Vector3.new(-27.430006, 32.7830048, 11.4700098)
  3066. Part245.Orientation = Vector3.new(0, -90, 0)
  3067. Part245.Color = Color3.new(0.992157, 0.917647, 0.552941)
  3068. Weld246.Name = "RightGrip"
  3069. Weld246.Parent = Part245
  3070. Weld246.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
  3071. Weld246.C1 = CFrame.new(0.652674198, -0.0821215212, 0.0751298293, -0.0274157617, 0.991445243, 0.127611369, -0.0517252237, 0.126081318, -0.990670502, -0.998284876, -0.0337607116, 0.047826115)
  3072. Weld246.Part0 = Part245
  3073. Weld246.Part1 = nil
  3074. Part247.Name = "Left Arm"
  3075. Part247.Parent = Model86
  3076. Part247.BrickColor = BrickColor.new("Cool yellow")
  3077. Part247.Rotation = Vector3.new(0, -90, 0)
  3078. Part247.Velocity = Vector3.new(0, -1, 0)
  3079. Part247.FormFactor = Enum.FormFactor.Symmetric
  3080. Part247.Size = Vector3.new(1, 2, 1)
  3081. Part247.CFrame = CFrame.new(-27.430006, 32.7830048, 8.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3082. Part247.Color = Color3.new(0.992157, 0.917647, 0.552941)
  3083. Part247.Position = Vector3.new(-27.430006, 32.7830048, 8.4700098)
  3084. Part247.Orientation = Vector3.new(0, -90, 0)
  3085. Part247.Color = Color3.new(0.992157, 0.917647, 0.552941)
  3086. Script248.Name = "README"
  3087. Script248.Parent = Model86
  3088. Script248.Disabled = true
  3089. table.insert(cors,sandbox(Script248,function()
  3090. --[[
  3091.  
  3092. ROBOTS v1
  3093.  
  3094. User Manual
  3095.  
  3096. ---------------------------------------------------------------------
  3097. Before you start:
  3098. 1. If you want to let the robot use weapons then get the Robot Weapon Hub from the toolbox.
  3099. 2. Look at the list of names in commander. Change these names to change who can command
  3100. your robot. Delete "Commander" if you want everyone to be able to control it.
  3101. 3. Delete the robot spawn pad if you dont want the robot to come back when dead.
  3102.  
  3103.  
  3104. The robot is only half done, I was going to add the ability to fire rockets, patrol set points, kill
  3105. one team only and so on. I got fed up of making stuff for it, and Im only releasing it now as
  3106. so many people have patiently been waiting for it. Its likely Ill update it in the future.
  3107.  
  3108.  
  3109. HOW TO USE IT:
  3110. It listens to what you type (if you are one of the people it is listening to)
  3111. Change the name of the robot to whatever you want, and it will do what you say when you say its name.
  3112.  
  3113. Commands:
  3114.  
  3115. {Zombue} dance
  3116. go home
  3117. run
  3118. climb
  3119. jump
  3120. zombie
  3121. disco
  3122. float
  3123. punch
  3124. kick
  3125. fly
  3126.  
  3127. heal
  3128. defend
  3129.  
  3130. stop
  3131.  
  3132. follow {rebel234}
  3133. follow all
  3134. kill {rebel234}
  3135. kill all
  3136.  
  3137.  
  3138. equip sword
  3139. rocket
  3140. slingshot
  3141. pbg
  3142. superball
  3143. trowel
  3144. bomb
  3145.  
  3146. unequip
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153. e.g.:
  3154. Yellow kill miked
  3155.  
  3156.  
  3157.  
  3158. Also you can type it however you like, just include the keywords:
  3159. e.g.:
  3160. Yellow my best friend in the world, can you do me a favour and kill that miked guy?
  3161.  
  3162.  
  3163.  
  3164. Its not case sensitive too:
  3165. e.g.:
  3166. YelLOW KiLl MiKeD
  3167.  
  3168.  
  3169.  
  3170.  
  3171. Also if you have lots of robots do this to get al their attention:
  3172.  
  3173. Everyone kill miked
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188. --]]
  3189.  
  3190.  
  3191.  
  3192. end))
  3193. Script249.Parent = Model86
  3194. table.insert(cors,sandbox(Script249,function()
  3195. local larm = script.Parent:FindFirstChild("Left Arm")
  3196. local rarm = script.Parent:FindFirstChild("Right Arm")
  3197.  
  3198. function findNearestTorso(pos)
  3199. local list = game.Workspace:children()
  3200. local torso = nil
  3201. local dist = 1000
  3202. local temp = nil
  3203. local human = nil
  3204. local temp2 = nil
  3205. for x = 1, #list do
  3206. temp2 = list[x]
  3207. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  3208. temp = temp2:findFirstChild("Torso")
  3209. human = temp2:findFirstChild("Humanoid")
  3210. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3211. if (temp.Position - pos).magnitude < dist then
  3212. torso = temp
  3213. dist = (temp.Position - pos).magnitude
  3214. end
  3215. end
  3216. end
  3217. end
  3218. return torso
  3219. end
  3220.  
  3221. function Hit(hit)
  3222. local human = hit.Parent:FindFirstChild("Humanoid")
  3223. if human ~= nil then
  3224. human.Health = human.Health -8
  3225. end
  3226. end
  3227.  
  3228. larm.Touched:connect(Hit)
  3229. rarm.Touched:connect(Hit)
  3230.  
  3231. while true do
  3232. wait(0.1)
  3233. local target = findNearestTorso(script.Parent.Torso.Position)
  3234. if target ~= nil then
  3235. script.Parent.Zombie:MoveTo(target.Position, target)
  3236. end
  3237. end
  3238.  
  3239. end))
  3240. Script250.Name = "Robot"
  3241. Script250.Parent = Model86
  3242. table.insert(cors,sandbox(Script250,function()
  3243. model = script.Parent
  3244. backup = model:Clone()
  3245. regentime = 1 --5 minutes
  3246.  
  3247. ------------------
  3248. --SPAWNING--
  3249. ------------------
  3250.  
  3251. miked=script.Parent
  3252.  
  3253. itlh=miked.Torso:findFirstChild("Left Hip")
  3254. itlh.Part0=miked.Torso
  3255. itlh.Part1=miked:findFirstChild("Left Leg")
  3256. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3257.  
  3258. itrh=miked.Torso:findFirstChild("Right Hip")
  3259. itrh.Part0=miked.Torso
  3260. itrh.Part1=miked:findFirstChild("Right Leg")
  3261. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3262.  
  3263. itls=miked.Torso:findFirstChild("Left Shoulder")
  3264. itls.Part1=miked.Torso
  3265. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3266. itls.Part0=miked:findFirstChild("Left Arm")
  3267.  
  3268. itrs=miked.Torso:findFirstChild("Right Shoulder")
  3269. itrs.Part1=miked.Torso
  3270. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3271. itrs.Part0=miked:findFirstChild("Right Arm")
  3272.  
  3273. miked.Head:makeJoints()
  3274. ------------------
  3275. ------------------
  3276.  
  3277.  
  3278. function waitForChild(parent, childName)
  3279. while true do
  3280. local child = parent:findFirstChild(childName)
  3281. if child then
  3282. return child
  3283. end
  3284. parent.ChildAdded:wait()
  3285. end
  3286. end
  3287.  
  3288. local Figure = script.Parent
  3289. local Torso = waitForChild(Figure, "Torso")
  3290. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  3291. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  3292. local RightHip = waitForChild(Torso, "Right Hip")
  3293. local LeftHip = waitForChild(Torso, "Left Hip")
  3294. local Neck = waitForChild(Torso, "Neck")
  3295. local Humanoid = waitForChild(Figure, "Zombie")
  3296. local pose = "Standing"
  3297.  
  3298. local toolAnim = "None"
  3299. local toolAnimTime = 0
  3300.  
  3301. local isSeated = false
  3302.  
  3303.  
  3304. function onRunning(speed)
  3305. if isSeated then return end
  3306.  
  3307. if speed>0 then
  3308. pose = "Running"
  3309. else
  3310. pose = "Standing"
  3311. end
  3312. end
  3313.  
  3314. function onDied()
  3315. pose = "Dead"
  3316. wait(regentime)
  3317. wait(1)
  3318. model:remove()
  3319. model = backup:Clone()
  3320. wait(3)
  3321. model.Parent = game.Workspace
  3322. model:MakeJoints()
  3323. end
  3324.  
  3325. function onJumping()
  3326. isSeated = false
  3327. pose = "Jumping"
  3328. end
  3329.  
  3330. function onClimbing()
  3331. pose = "Climbing"
  3332. end
  3333.  
  3334. function onGettingUp()
  3335. pose = "GettingUp"
  3336. end
  3337.  
  3338. function onFreeFall()
  3339. pose = "FreeFall"
  3340. end
  3341.  
  3342. function onDancing()
  3343. pose = "Dancing"
  3344. end
  3345.  
  3346. function onFallingDown()
  3347. pose = "FallingDown"
  3348. end
  3349.  
  3350. function onSeated()
  3351. isSeated = true
  3352. pose = "Seated"
  3353. end
  3354.  
  3355.  
  3356.  
  3357. function moveJump()
  3358. RightShoulder.MaxVelocity = 1
  3359. LeftShoulder.MaxVelocity = 1
  3360. RightShoulder.DesiredAngle = -3.14
  3361. LeftShoulder.DesiredAngle = -3.14
  3362. RightHip.DesiredAngle = 0
  3363. LeftHip.DesiredAngle = 0
  3364. end
  3365.  
  3366. function moveFreeFall()
  3367. RightShoulder.MaxVelocity = 0.5
  3368. LeftShoulder.MaxVelocity = 0.5
  3369. RightShoulder.DesiredAngle = -1
  3370. LeftShoulder.DesiredAngle = -1
  3371. RightHip.DesiredAngle = 0
  3372. LeftHip.DesiredAngle = 0
  3373. end
  3374.  
  3375. function moveFloat()
  3376. RightShoulder.MaxVelocity = 0.5
  3377. LeftShoulder.MaxVelocity = 0.5
  3378. RightShoulder.DesiredAngle = -1.57
  3379. LeftShoulder.DesiredAngle = 1.57
  3380. RightHip.DesiredAngle = 1.57
  3381. LeftHip.DesiredAngle = -1.57
  3382. end
  3383.  
  3384. function moveBoogy()
  3385. while pose=="Boogy" do
  3386. wait(.5)
  3387. RightShoulder.MaxVelocity = 1
  3388. LeftShoulder.MaxVelocity = 1
  3389. RightShoulder.DesiredAngle = -3.14
  3390. LeftShoulder.DesiredAngle = 0
  3391. RightHip.DesiredAngle = 1.57
  3392. LeftHip.DesiredAngle = 0
  3393. wait(.5)
  3394. RightShoulder.MaxVelocity = 1
  3395. LeftShoulder.MaxVelocity = 1
  3396. RightShoulder.DesiredAngle = 0
  3397. LeftShoulder.DesiredAngle = -3.14
  3398. RightHip.DesiredAngle = 0
  3399. LeftHip.DesiredAngle = 1.57
  3400. end
  3401. end
  3402.  
  3403. function moveZombie()
  3404. RightShoulder.MaxVelocity = 0.5
  3405. LeftShoulder.MaxVelocity = 0.5
  3406. RightShoulder.DesiredAngle = -1.57
  3407. LeftShoulder.DesiredAngle = 1.57
  3408. RightHip.DesiredAngle = 0
  3409. LeftHip.DesiredAngle = 0
  3410. end
  3411.  
  3412. function movePunch()
  3413. script.Parent.Torso.Anchored=true
  3414. RightShoulder.MaxVelocity = 60
  3415. LeftShoulder.MaxVelocity = 0.5
  3416. RightShoulder.DesiredAngle = -1.57
  3417. LeftShoulder.DesiredAngle = 0
  3418. RightHip.DesiredAngle = 0
  3419. LeftHip.DesiredAngle = 0
  3420. wait(1)
  3421. script.Parent.Torso.Anchored=false
  3422. pose="Standing"
  3423.  
  3424. end
  3425.  
  3426. function moveKick()
  3427. RightShoulder.MaxVelocity = 0.5
  3428. LeftShoulder.MaxVelocity = 0.5
  3429. RightShoulder.DesiredAngle = 0
  3430. LeftShoulder.DesiredAngle = 0
  3431. RightHip.MaxVelocity = 40
  3432. RightHip.DesiredAngle = 1.57
  3433. LeftHip.DesiredAngle = 0
  3434. wait(1)
  3435. pose="Standing"
  3436.  
  3437. end
  3438.  
  3439. function moveFly()
  3440. RightShoulder.MaxVelocity = 0.5
  3441. LeftShoulder.MaxVelocity = 0.5
  3442. RightShoulder.DesiredAngle = 0
  3443. LeftShoulder.DesiredAngle = 0
  3444. RightHip.MaxVelocity = 40
  3445. RightHip.DesiredAngle = 1.57
  3446. LeftHip.DesiredAngle = 0
  3447. wait(1)
  3448. pose="Standing"
  3449.  
  3450. end
  3451.  
  3452.  
  3453. function moveClimb()
  3454. RightShoulder.MaxVelocity = 0.5
  3455. LeftShoulder.MaxVelocity = 0.5
  3456. RightShoulder.DesiredAngle = -3.14
  3457. LeftShoulder.DesiredAngle = 3.14
  3458. RightHip.DesiredAngle = 0
  3459. LeftHip.DesiredAngle = 0
  3460. end
  3461.  
  3462. function moveSit()
  3463. RightShoulder.MaxVelocity = 0.15
  3464. LeftShoulder.MaxVelocity = 0.15
  3465. RightShoulder.DesiredAngle = -3.14 /2
  3466. LeftShoulder.DesiredAngle = -3.14 /2
  3467. RightHip.DesiredAngle = 3.14 /2
  3468. LeftHip.DesiredAngle = -3.14 /2
  3469. end
  3470.  
  3471. function getTool()
  3472.  
  3473. kidTable = Figure:children()
  3474. if (kidTable ~= nil) then
  3475. numKids = #kidTable
  3476. for i=1,numKids do
  3477. if (kidTable[i].className == "Tool") then return kidTable[i] end
  3478. end
  3479. end
  3480.  
  3481. return nil
  3482. end
  3483.  
  3484. function getToolAnim(tool)
  3485.  
  3486. c = tool:children()
  3487. for i=1,#c do
  3488. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  3489. return c[i]
  3490. end
  3491. end
  3492. return nil
  3493. end
  3494.  
  3495. function animateTool()
  3496.  
  3497. if (toolAnim == "None") then
  3498. RightShoulder.DesiredAngle = -1.57
  3499. return
  3500. end
  3501.  
  3502. if (toolAnim == "Slash") then
  3503. RightShoulder.MaxVelocity = 0.5
  3504. RightShoulder.DesiredAngle = 0
  3505. return
  3506. end
  3507.  
  3508. if (toolAnim == "Lunge") then
  3509. RightShoulder.MaxVelocity = 0.5
  3510. LeftShoulder.MaxVelocity = 0.5
  3511. RightHip.MaxVelocity = 0.5
  3512. LeftHip.MaxVelocity = 0.5
  3513. RightShoulder.DesiredAngle = -1.57
  3514. LeftShoulder.DesiredAngle = 1.0
  3515. RightHip.DesiredAngle = 1.57
  3516. LeftHip.DesiredAngle = 1.0
  3517. return
  3518. end
  3519. end
  3520.  
  3521. function move(time)
  3522. local amplitude
  3523. local frequency
  3524.  
  3525. if (pose == "Jumping") then
  3526. moveJump()
  3527. return
  3528. end
  3529.  
  3530. if (pose == "Zombie") then
  3531. moveZombie()
  3532. return
  3533. end
  3534.  
  3535. if (pose == "Boogy") then
  3536. moveBoogy()
  3537. return
  3538. end
  3539.  
  3540. if (pose == "Float") then
  3541. moveFloat()
  3542. return
  3543. end
  3544.  
  3545. if (pose == "Punch") then
  3546. movePunch()
  3547. return
  3548. end
  3549.  
  3550. if (pose == "Kick") then
  3551. moveKick()
  3552. return
  3553. end
  3554.  
  3555. if (pose == "Fly") then
  3556. moveFly()
  3557. return
  3558. end
  3559.  
  3560. if (pose == "FreeFall") then
  3561. moveFreeFall()
  3562. return
  3563. end
  3564.  
  3565. if (pose == "Climbing") then
  3566. moveClimb()
  3567. return
  3568. end
  3569.  
  3570. if (pose == "Seated") then
  3571. moveSit()
  3572. return
  3573. end
  3574.  
  3575. amplitude = 0.1
  3576. frequency = 1
  3577.  
  3578. RightShoulder.MaxVelocity = 0.15
  3579. LeftShoulder.MaxVelocity = 0.15
  3580. if (pose == "Running") then
  3581. amplitude = 1
  3582. frequency = 9
  3583. elseif (pose == "Dancing") then
  3584. amplitude = 2
  3585. frequency = 16
  3586. end
  3587.  
  3588.  
  3589. desiredAngle = amplitude * math.sin(time*frequency)
  3590. if pose~="Dancing" then
  3591. RightShoulder.DesiredAngle = -desiredAngle
  3592. LeftShoulder.DesiredAngle = desiredAngle
  3593. RightHip.DesiredAngle = -desiredAngle
  3594. LeftHip.DesiredAngle = -desiredAngle
  3595. else
  3596. RightShoulder.DesiredAngle = desiredAngle
  3597. LeftShoulder.DesiredAngle = desiredAngle
  3598. RightHip.DesiredAngle = -desiredAngle
  3599. LeftHip.DesiredAngle = -desiredAngle
  3600. end
  3601.  
  3602.  
  3603.  
  3604. local tool = getTool()
  3605.  
  3606. if tool ~= nil then
  3607.  
  3608. animStringValueObject = getToolAnim(tool)
  3609.  
  3610. if animStringValueObject ~= nil then
  3611. toolAnim = animStringValueObject.Value
  3612. -- message recieved, delete StringValue
  3613. animStringValueObject.Parent = nil
  3614. toolAnimTime = time + .3
  3615. end
  3616.  
  3617. if time > toolAnimTime then
  3618. toolAnimTime = 0
  3619. toolAnim = "None"
  3620. end
  3621.  
  3622. animateTool()
  3623.  
  3624.  
  3625. else
  3626. toolAnim = "None"
  3627. toolAnimTime = 0
  3628. end
  3629. end
  3630.  
  3631.  
  3632. -- connect events
  3633. -----------------------------------------------------------------------------------------------------------------------
  3634.  
  3635. function unequip()
  3636. local items=script.Parent:children()
  3637. for i=1, #items do
  3638. if items[i].className=="Tool" then items[i]:remove() end
  3639. end
  3640. end
  3641.  
  3642. function onChatted(msg, recipient)
  3643. msg = string.lower(msg)
  3644.  
  3645. if string.match(msg, string.lower(script.Parent.Name))~=nil or string.match(msg, "everyone") then
  3646. if string.match(msg, "equip") then
  3647. if game.Workspace:findFirstChild("Hub") then
  3648. if string.match(msg, "rocket") then unequip()
  3649. game.Workspace.Hub.Rocket:clone().Parent=script.Parent
  3650. elseif string.match(msg, "slingshot") then unequip()
  3651. game.Workspace.Hub.Slingshot:clone().Parent=script.Parent
  3652. elseif string.match(msg, "sword") then unequip()
  3653. game.Workspace.Hub.Sword:clone().Parent=script.Parent
  3654. elseif string.match(msg, "pbg") then unequip()
  3655. game.Workspace.Hub.PBG:clone().Parent=script.Parent
  3656. elseif string.match(msg, "superball") then unequip()
  3657. game.Workspace.Hub.Superball:clone().Parent=script.Parent
  3658. elseif string.match(msg, "trowel") then unequip()
  3659. game.Workspace.Hub.Trowel:clone().Parent=script.Parent
  3660. elseif string.match(msg, "bomb") then unequip()
  3661. game.Workspace.Hub.Bomb:clone().Parent=script.Parent
  3662. end
  3663. end
  3664. end
  3665. if string.match(msg, "unequip") then unequip() end
  3666. if string.match(msg, "run") then onRunning(1) end
  3667. if string.match(msg, "climb") then onClimbing() end
  3668. if string.match(msg, "jump") then onJumping() end
  3669. if string.match(msg, "zombie") then pose="Zombie" end
  3670. if string.match(msg, "disco") then pose="Boogy" end
  3671. if string.match(msg, "float") then pose="Float" end
  3672. if string.match(msg, "punch") then pose="Punch" end
  3673. if string.match(msg, "kick") then pose="Kick" end
  3674. if string.match(msg, "fly") then pose="Fly" end
  3675. if string.match(msg, "heal") then script.Parent.Humanoid.Health=script.Parent.Humanoid.MaxHealth end
  3676. if string.match(msg, "defend") then defence() end
  3677. if string.match(msg, "stop") then pose="Standing"; proxkill=false; following=false; stopmoving() end
  3678. if string.match(msg, "go home") then following=false; gohome() end
  3679. if string.match(msg, "follow") then
  3680. if string.match(msg, "all") then
  3681. followany()
  3682. else
  3683. local egg=game.Players:children()
  3684. for i=1, #egg do
  3685. if string.match(msg, string.lower(egg[i].Name)) then
  3686. follow(egg[i].Name)
  3687. return
  3688. end
  3689. end
  3690. end
  3691. end
  3692. if string.match(msg, "kill") then
  3693. if string.match(msg, "all") then
  3694. attackany()
  3695. else
  3696. local egg=game.Players:children()
  3697. for i=1, #egg do
  3698. if string.match(msg, string.lower(egg[i].Name)) then
  3699. attack(egg[i].Name)
  3700. return
  3701. end
  3702. end
  3703. end
  3704. end
  3705.  
  3706. end
  3707. end
  3708.  
  3709. if game.Players.NumPlayers>1 then
  3710. x=game.Players:children()
  3711.  
  3712. for i=1, #x do
  3713. if script.Parent:findFirstChild("Commander")~=nil then
  3714. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  3715. local ch=script.Parent.Commander:children()
  3716. for i=1, #ch do
  3717. if string.lower(ch[i].Name)==string.lower(x[i].Name) then
  3718. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3719. end
  3720. end
  3721. elseif string.lower(script.Parent.Commander.Value)==string.lower(x[i].Name) then
  3722. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3723. end
  3724. else
  3725. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3726. end
  3727. end
  3728. end
  3729.  
  3730.  
  3731. function onPlayerEntered(Player)
  3732. while Player.Name==nil do
  3733. wait(2)
  3734. end
  3735. if script.Parent:findFirstChild("Commander")~=nil then
  3736. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  3737. local ch=script.Parent.Commander:children()
  3738. for i=1, #ch do
  3739. if string.lower(ch[i].Name)==string.lower(Player.Name) then
  3740. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3741. end
  3742. end
  3743. elseif string.lower(script.Parent.Commander.Value)==string.lower(Player.Name) then
  3744. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3745. end
  3746. else
  3747. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  3748. end
  3749. end
  3750.  
  3751. game.Players.ChildAdded:connect(onPlayerEntered)
  3752.  
  3753.  
  3754.  
  3755. -----------------------------------------------------------------------------------------------------------------------
  3756. -----------------------------------------------------------------------------------------------------------------------
  3757. -----------------------------------------------------------------------------------------------------------------------
  3758. -----------------------------------------------------------------------------------------------------------------------
  3759. -----------------------------------------------------------------------------------------------------------------------
  3760. -----------------------------------------------------------------------------------------------------------------------
  3761. -----------------------------------------------------------------------------------------------------------------------
  3762. -----------------------------------------------------------------------------------------------------------------------
  3763. -----------------------------------------------------------------------------------------------------------------------
  3764. -----------------------------------------------------------------------------------------------------------------------
  3765. -----------------------------------------------------------------------------------------------------------------------
  3766. -----------------------------------------------------------------------------------------------------------------------
  3767. dist=20
  3768.  
  3769. function followany()
  3770. following=true
  3771. while following==true do
  3772.  
  3773. local ch=game.Players:children()
  3774. for i=1, #ch do
  3775. local l=game.Workspace:findFirstChild(ch[i].Name)
  3776. if l~=nil then
  3777. local s=l.Torso
  3778. local p=l.Torso.Position
  3779. local q=script.Parent.Torso.Position
  3780. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  3781. if smallest==nil then
  3782. smallest=d
  3783. target=s
  3784. elseif d<smallest then
  3785. smallest=d
  3786. target=s
  3787. end
  3788. end
  3789. end
  3790.  
  3791. if smallest==nil then stopmoving() return end
  3792.  
  3793. if smallest>6*dist then return end
  3794.  
  3795. script.Parent.Humanoid:MoveTo(target.Position, target)
  3796.  
  3797. wait(0.5)
  3798. for i=1, 6 do
  3799. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  3800. end
  3801. end
  3802. end
  3803.  
  3804.  
  3805.  
  3806. function gohome()
  3807. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  3808. end
  3809. function stopmoving()
  3810. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  3811. end
  3812.  
  3813. function follow(name)
  3814. following=true
  3815.  
  3816. local p=game.Workspace:findFirstChild(name)
  3817. if p==nil then return end
  3818. while following==true do
  3819. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  3820. wait(0.5)
  3821. for i=1, 3 do
  3822. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  3823. wait(0.5)
  3824. end
  3825. end
  3826. end
  3827.  
  3828. function attack(name)
  3829. if script.Parent:findFirstChild("Sword")~=nil then
  3830. following=true
  3831. local p=game.Workspace:findFirstChild(name)
  3832. if p==nil then return end
  3833. while following==true do
  3834. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  3835. wait(0.5)
  3836. for i=1, 3 do
  3837. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  3838. local l=p.Torso.Position
  3839. local q=script.Parent.Torso.Position
  3840. local d=math.sqrt( ((l.x-q.x)^2)+((l.y-q.y)^2)+((l.z-q.z)^2) )
  3841. if d<10 then
  3842. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso); slash()
  3843. if (q.y-l.y)>3 and (q.y-l.y)<7 then
  3844. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  3845. end
  3846. end
  3847. wait(1)
  3848. end
  3849. end
  3850. end
  3851. end
  3852.  
  3853. function attackany()
  3854. if script.Parent:findFirstChild("Sword")~=nil then
  3855.  
  3856. following=true
  3857. while following==true do
  3858.  
  3859. local ch=game.Players:children()
  3860. for i=1, #ch do
  3861. local l=game.Workspace:findFirstChild(ch[i].Name)
  3862. if l~=nil then
  3863. local s=l.Torso
  3864. local p=l.Torso.Position
  3865. local q=script.Parent.Torso.Position
  3866. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  3867. if smallest==nil then
  3868. smallest=d
  3869. target=s
  3870. elseif d<smallest then
  3871. smallest=d
  3872. target=s
  3873. end
  3874. end
  3875. end
  3876.  
  3877. if smallest==nil then stopmoving() return end
  3878.  
  3879. if smallest>6*dist then return end
  3880.  
  3881. script.Parent.Humanoid:MoveTo(target.Position, target)
  3882.  
  3883. if smallest<10 then
  3884. slash()
  3885. end
  3886. if target.Parent==nil then stopmoving() return end
  3887. wait(0.5)
  3888. for i=1, 3 do
  3889. if target.Parent.Humanoid.Health<1 then
  3890. stopmoving()
  3891. else
  3892. local p=target.Position
  3893. local q=script.Parent.Torso.Position
  3894. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  3895. if d<10 then
  3896. script.Parent.Humanoid:MoveTo(target.Position, target); slash()
  3897. if (q.y-p.y)>3 and (q.y-p.y)<7 then
  3898. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  3899. end
  3900. end
  3901. wait(1)
  3902. end
  3903. end
  3904. end
  3905. end
  3906. end
  3907.  
  3908.  
  3909. function patrol()
  3910. if points==nil then
  3911. points=0
  3912. if game.Workspace:findFirstChild("pp1")~=nil then
  3913. pp1=game.Workspace:findFirstChild("pp1")
  3914. local points=points+1
  3915. if game.Workspace:findFirstChild("pp2")~=nil then
  3916. pp2=game.Workspace:findFirstChild("pp2")
  3917. local points=points+1
  3918. if game.Workspace:findFirstChild("pp3")~=nil then
  3919. pp3=game.Workspace:findFirstChild("pp3")
  3920. local points=points+1
  3921. if game.Workspace:findFirstChild("pp4")~=nil then
  3922. pp4=game.Workspace:findFirstChild("pp4")
  3923. local points=points+1
  3924. if game.Workspace:findFirstChild("pp5")~=nil then
  3925. pp5=game.Workspace:findFirstChild("pp5")
  3926. local points=points+1
  3927. if game.Workspace:findFirstChild("pp6")~=nil then
  3928. pp6=game.Workspace:findFirstChild("pp6")
  3929. local points=points+1
  3930. if game.Workspace:findFirstChild("pp7")~=nil then
  3931. pp7=game.Workspace:findFirstChild("pp7")
  3932. local points=points+1
  3933. if game.Workspace:findFirstChild("pp8")~=nil then
  3934. pp8=game.Workspace:findFirstChild("pp8")
  3935. local points=points+1
  3936. if game.Workspace:findFirstChild("pp9")~=nil then
  3937. pp9=game.Workspace:findFirstChild("pp9")
  3938. local points=points+1
  3939. end
  3940. end
  3941. end
  3942. end
  3943. end
  3944. end
  3945. end
  3946. end
  3947. end
  3948. end
  3949.  
  3950. if points<1 then return end
  3951. patrolling=true
  3952. local time=2
  3953. if points==1 then return end
  3954. if points>1 then
  3955. while patrolling==true do
  3956. script.Parent.Humanoid:MoveTo(pp1.Position, pp1)
  3957. wait(time)
  3958. script.Parent.Humanoid:MoveTo(pp2.Position, pp2)
  3959. wait(time)
  3960. if points>2 then
  3961. script.Parent.Humanoid:MoveTo(pp3.Position, pp3)
  3962. wait(time)
  3963. if points>3 then
  3964. script.Parent.Humanoid:MoveTo(pp4.Position, pp4)
  3965. wait(time)
  3966. if points>4 then
  3967. script.Parent.Humanoid:MoveTo(pp5.Position, pp5)
  3968. wait(time)
  3969. if points>5 then
  3970. script.Parent.Humanoid:MoveTo(pp6.Position, pp6)
  3971. wait(time)
  3972. if points>6 then
  3973. script.Parent.Humanoid:MoveTo(pp7.Position, pp7)
  3974. wait(time)
  3975. if points>7 then
  3976. script.Parent.Humanoid:MoveTo(pp8.Position, pp8)
  3977. wait(time)
  3978. if points>8 then
  3979. script.Parent.Humanoid:MoveTo(pp9.Position, pp9)
  3980. wait(time)
  3981. end
  3982. end
  3983. end
  3984. end
  3985. end
  3986. end
  3987. end
  3988. end
  3989. end
  3990. end
  3991.  
  3992.  
  3993. function goto(pos,part)
  3994. while true do
  3995. end
  3996. end
  3997.  
  3998.  
  3999. function slash()
  4000. for i=1, 3 do
  4001. wait(.3)
  4002. RightShoulder.MaxVelocity = 2
  4003. LeftShoulder.MaxVelocity = 1
  4004. RightShoulder.DesiredAngle = -2.14
  4005. LeftShoulder.DesiredAngle = 0
  4006. RightHip.DesiredAngle = 0
  4007. LeftHip.DesiredAngle = 0
  4008. wait(.2)
  4009. RightShoulder.MaxVelocity = 2
  4010. LeftShoulder.MaxVelocity = 1
  4011. RightShoulder.DesiredAngle = 0
  4012. LeftShoulder.DesiredAngle = 0
  4013. RightHip.DesiredAngle = 0
  4014. LeftHip.DesiredAngle = 0
  4015. end
  4016. end
  4017.  
  4018. function defence()
  4019. proxkill=true
  4020. while proxkill==true do
  4021. local ch=game.Players:children()
  4022. for i=1, #ch do
  4023. local p=game.Workspace:findFirstChild(ch[i].Name)
  4024. if p~=nil then
  4025. local p=p.Torso.Position
  4026. local q=script.Parent.Torso.Position
  4027. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  4028. if d<dist and d>8 then
  4029. local ex=Instance.new("Explosion")
  4030. ex.Position=p
  4031. ex.Parent=game.Workspace
  4032. end
  4033. end
  4034. end
  4035. wait(1)
  4036. end
  4037. end
  4038.  
  4039.  
  4040.  
  4041.  
  4042. -----------------------------------------------------------------------------------------------------------------------
  4043. -----------------------------------------------------------------------------------------------------------------------
  4044. -----------------------------------------------------------------------------------------------------------------------
  4045. -----------------------------------------------------------------------------------------------------------------------
  4046. -----------------------------------------------------------------------------------------------------------------------
  4047. -----------------------------------------------------------------------------------------------------------------------
  4048. -----------------------------------------------------------------------------------------------------------------------
  4049. -----------------------------------------------------------------------------------------------------------------------
  4050. -----------------------------------------------------------------------------------------------------------------------
  4051. -----------------------------------------------------------------------------------------------------------------------
  4052. -----------------------------------------------------------------------------------------------------------------------
  4053. -----------------------------------------------------------------------------------------------------------------------
  4054.  
  4055.  
  4056. Humanoid.Died:connect(onDied)
  4057. Humanoid.Running:connect(onRunning)
  4058. Humanoid.Jumping:connect(onJumping)
  4059. Humanoid.Climbing:connect(onClimbing)
  4060. Humanoid.GettingUp:connect(onGettingUp)
  4061. Humanoid.FreeFalling:connect(onFreeFall)
  4062. Humanoid.FallingDown:connect(onFallingDown)
  4063. Humanoid.Seated:connect(onSeated)
  4064.  
  4065.  
  4066. --[[
  4067.  
  4068. function newSound(id)
  4069. local sound = Instance.new("Sound")
  4070. sound.SoundId = id
  4071. sound.Parent = script.Parent.Head
  4072. return sound
  4073. end
  4074.  
  4075.  
  4076. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  4077. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  4078. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  4079. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  4080. local sJumping = newSound("rbxasset://sounds/button.wav")
  4081. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  4082. sRunning.Looped = true
  4083.  
  4084. local Figure = script.Parent
  4085. local Head = waitForChild(Figure, "Head")
  4086. local Humanoid = waitForChild(Figure, "Humanoid")
  4087.  
  4088.  
  4089. function onDied()
  4090. sDied:play()
  4091. end
  4092.  
  4093. function onState(state, sound)
  4094. if state then
  4095. sound:play()
  4096. else
  4097. sound:pause()
  4098. end
  4099. end
  4100.  
  4101. function onRunning(speed)
  4102. if speed>0 then
  4103. sRunning:play()
  4104. else
  4105. sRunning:pause()
  4106. end
  4107. end
  4108.  
  4109.  
  4110. Humanoid.Died:connect(onDied)
  4111. Humanoid.Running:connect(onRunning)
  4112. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  4113. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  4114. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  4115. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  4116. --]]
  4117.  
  4118. local nextTime = 0
  4119. local runService = game:service("RunService");
  4120.  
  4121. while Figure.Parent~=nil do
  4122. time = runService.Stepped:wait()
  4123. if time > nextTime then
  4124. move(time)
  4125. nextTime = time + 0.1
  4126. end
  4127. end
  4128.  
  4129. end))
  4130. Tool251.Name = "Combat Knife"
  4131. Tool251.Parent = Model86
  4132. Tool251.GripForward = Vector3.new(-0.127611369, 0.990670502, -0.047826115)
  4133. Tool251.GripPos = Vector3.new(0.652674198, -0.0821215212, 0.0751298293)
  4134. Tool251.GripRight = Vector3.new(-0.0274157617, -0.0517252237, -0.998284876)
  4135. Tool251.GripUp = Vector3.new(0.991445243, 0.126081318, -0.0337607116)
  4136. Tool251.ToolTip = "Made by 12904(Builder/Scripter)"
  4137. Script252.Name = "SwordScript"
  4138. Script252.Parent = Tool251
  4139. table.insert(cors,sandbox(Script252,function()
  4140. -- Made by 12904(Builder/Scripter)
  4141.  
  4142. local Event = script.Parent.SwordEvent
  4143. local Handle = script.Parent.Handle
  4144. local CoolDown = .75
  4145. local Fire = true
  4146. local On = false
  4147. local fire2 = true
  4148.  
  4149. script.Parent.Equipped:connect(function(Mouse)
  4150. Event:Fire(Handle, CoolDown, Mouse)
  4151. end)
  4152.  
  4153.  
  4154. script.Parent.Activated:connect(function()
  4155. if Fire == true then
  4156. Fire = false
  4157. spawn(function()
  4158. On = true
  4159. wait(.3)
  4160. On = false
  4161. end)
  4162. On = false
  4163. Event:Fire(CoolDown, Handle, 2)
  4164. wait(CoolDown)
  4165.  
  4166. Fire = true
  4167. end
  4168. end)
  4169.  
  4170.  
  4171.  
  4172. script.Parent.Unequipped:connect(function(Mouse)
  4173. Event:Fire(2, 6, Mouse)
  4174. end)
  4175.  
  4176.  
  4177.  
  4178.  
  4179. Handle.Touched:connect(function(Hit)
  4180. if not Hit:IsDescendantOf(script.Parent.Parent) then
  4181. if Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent:FindFirstChild("Head") then
  4182. if fire2 == true then
  4183. fire2 = false
  4184. if On == true then
  4185. Hit.Parent.Humanoid:TakeDamage(35)
  4186. end
  4187. wait(CoolDown)
  4188. fire2 = true
  4189. end
  4190. end
  4191. end
  4192. end)
  4193.  
  4194.  
  4195.  
  4196.  
  4197. end))
  4198. Animation253.Name = "Slash"
  4199. Animation253.Parent = Tool251
  4200. Animation253.AnimationId = "http://www.roblox.com/Asset?ID=28090109"
  4201. BindableEvent254.Name = "SwordEvent"
  4202. BindableEvent254.Parent = Tool251
  4203. LocalScript255.Name = "SwordLocalScript"
  4204. LocalScript255.Parent = Tool251
  4205. table.insert(cors,sandbox(LocalScript255,function()
  4206. -- Made by 12904(Builder/Scripter)
  4207.  
  4208. local Event = script.Parent.SwordEvent
  4209. local Anims = {script.Parent.OH}
  4210. local Sound1 = script.Parent.Handle.Hit
  4211. local Sound2 = script.Parent.Handle.Equipped
  4212.  
  4213.  
  4214. Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
  4215. if Tuple1 == script.Parent.Handle and Tuple2 == .75 then
  4216.  
  4217. end
  4218. end)
  4219.  
  4220. Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
  4221. if Tuple2 == script.Parent.Handle and Tuple1 == .75 then
  4222. Sound1:Play()
  4223. local ani = Anims[math.random(1, #Anims)]
  4224. local loadedani = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(ani)
  4225. loadedani:Play()
  4226. end
  4227. end)
  4228.  
  4229.  
  4230.  
  4231. Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
  4232. if Tuple1 == 2 and Tuple2 == 6 then
  4233. Sound2:Play()
  4234. end
  4235. end)
  4236. end))
  4237. Animation256.Name = "Thrust"
  4238. Animation256.Parent = Tool251
  4239. Animation256.AnimationId = "http://www.roblox.com/Asset?ID=94161333"
  4240. Animation257.Name = "OH"
  4241. Animation257.Parent = Tool251
  4242. Animation257.AnimationId = "http://www.roblox.com/Asset?ID=94160738"
  4243. Sound258.Name = "Equipped"
  4244. Sound258.Parent = mas
  4245. Sound258.SoundId = "rbxasset://sounds/unsheath.wav"
  4246. Sound258.Volume = 1
  4247. Sound259.Name = "Hit"
  4248. Sound259.Parent = mas
  4249. Sound259.SoundId = "rbxasset://sounds/swordslash.wav"
  4250. Sound259.Volume = 0.69999998807907
  4251. Part260.Parent = Model0
  4252. Part260.Material = Enum.Material.Glass
  4253. Part260.BrickColor = BrickColor.new("Pastel Blue")
  4254. Part260.Transparency = 0.60000002384186
  4255. Part260.Anchored = true
  4256. Part260.Size = Vector3.new(0.300000012, 5.13000011, 11.8800039)
  4257. Part260.CFrame = CFrame.new(-44.4338036, 20.3950062, 9.95282364, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4258. Part260.BottomSurface = Enum.SurfaceType.Smooth
  4259. Part260.TopSurface = Enum.SurfaceType.Smooth
  4260. Part260.Color = Color3.new(0.501961, 0.733333, 0.858824)
  4261. Part260.Position = Vector3.new(-44.4338036, 20.3950062, 9.95282364)
  4262. Part260.Color = Color3.new(0.501961, 0.733333, 0.858824)
  4263. Part261.Parent = Model0
  4264. Part261.BrickColor = BrickColor.new("Really black")
  4265. Part261.Anchored = true
  4266. Part261.Size = Vector3.new(0.789999843, 7.13000059, 0.959998429)
  4267. Part261.CFrame = CFrame.new(-44.6388016, 20.3950081, 16.3828278, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4268. Part261.BottomSurface = Enum.SurfaceType.Smooth
  4269. Part261.TopSurface = Enum.SurfaceType.Smooth
  4270. Part261.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4271. Part261.Position = Vector3.new(-44.6388016, 20.3950081, 16.3828278)
  4272. Part261.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4273. Part262.Parent = Model0
  4274. Part262.BrickColor = BrickColor.new("Fossil")
  4275. Part262.Anchored = true
  4276. Part262.Size = Vector3.new(7.81999636, 15.5399981, 0.680000007)
  4277. Part262.CFrame = CFrame.new(-49.0800018, 21.8499966, -10.6399822, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4278. Part262.BottomSurface = Enum.SurfaceType.Smooth
  4279. Part262.TopSurface = Enum.SurfaceType.Smooth
  4280. Part262.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4281. Part262.Position = Vector3.new(-49.0800018, 21.8499966, -10.6399822)
  4282. Part262.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4283. Part263.Parent = Model0
  4284. Part263.BrickColor = BrickColor.new("Fossil")
  4285. Part263.Anchored = true
  4286. Part263.Size = Vector3.new(0.580000103, 6.75, 5.15000057)
  4287. Part263.CFrame = CFrame.new(-5.1100049, 4.1850028, 33.0346222, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4288. Part263.BottomSurface = Enum.SurfaceType.Smooth
  4289. Part263.TopSurface = Enum.SurfaceType.Smooth
  4290. Part263.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4291. Part263.Position = Vector3.new(-5.1100049, 4.1850028, 33.0346222)
  4292. Part263.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4293. Attachment264.Name = "Attachment1"
  4294. Attachment264.Parent = Part263
  4295. Attachment264.Rotation = Vector3.new(3.65265237e-06, -50.0000496, 5.19300318)
  4296. Attachment264.CFrame = CFrame.new(-0.290000051, -1.04999995, 0.579999983, 0.64014864, -0.0581792668, -0.766044974, 0.0905109048, 0.995895505, -4.09781933e-08, 0.76290071, -0.0693354011, 0.64278698)
  4297. Attachment264.Position = Vector3.new(-0.290000051, -1.04999995, 0.579999983)
  4298. Attachment264.Axis = Vector3.new(0.64014864, 0.0905109048, 0.76290071)
  4299. Attachment264.Orientation = Vector3.new(2.34787763e-06, -50.0000496, 5.19299984)
  4300. Part265.Parent = Model0
  4301. Part265.BrickColor = BrickColor.new("Fossil")
  4302. Part265.Anchored = true
  4303. Part265.Size = Vector3.new(0.560000062, 28.4400024, 49.4000015)
  4304. Part265.CFrame = CFrame.new(-4.54000425, 15.220005, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4305. Part265.BottomSurface = Enum.SurfaceType.Smooth
  4306. Part265.TopSurface = Enum.SurfaceType.Smooth
  4307. Part265.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4308. Part265.Position = Vector3.new(-4.54000425, 15.220005, 12.2228251)
  4309. Part265.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4310. Attachment266.Name = "Attachment1"
  4311. Attachment266.Parent = Part265
  4312. Attachment266.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
  4313. Attachment266.CFrame = CFrame.new(-0.280000031, -13.5900002, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
  4314. Attachment266.Position = Vector3.new(-0.280000031, -13.5900002, -24.1599998)
  4315. Attachment266.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  4316. Attachment266.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
  4317. Model267.Parent = Model0
  4318. Part268.Name = "ROFL"
  4319. Part268.Parent = Model267
  4320. Part268.BrickColor = BrickColor.new("Fossil")
  4321. Part268.Anchored = true
  4322. Part268.FormFactor = Enum.FormFactor.Plate
  4323. Part268.Size = Vector3.new(7, 1.20000005, 2)
  4324. Part268.CFrame = CFrame.new(-49.042881, 0.600024223, -9.92998695, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4325. Part268.TopSurface = Enum.SurfaceType.Smooth
  4326. Part268.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4327. Part268.Position = Vector3.new(-49.042881, 0.600024223, -9.92998695)
  4328. Part268.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4329. Part269.Name = "ROFL"
  4330. Part269.Parent = Model267
  4331. Part269.BrickColor = BrickColor.new("Fossil")
  4332. Part269.Anchored = true
  4333. Part269.FormFactor = Enum.FormFactor.Plate
  4334. Part269.Size = Vector3.new(7, 1.20000005, 2)
  4335. Part269.CFrame = CFrame.new(-49.0428734, 1.80002499, -8.92998886, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4336. Part269.TopSurface = Enum.SurfaceType.Smooth
  4337. Part269.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4338. Part269.Position = Vector3.new(-49.0428734, 1.80002499, -8.92998886)
  4339. Part269.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4340. Part270.Name = "ROFL"
  4341. Part270.Parent = Model267
  4342. Part270.BrickColor = BrickColor.new("Fossil")
  4343. Part270.Anchored = true
  4344. Part270.FormFactor = Enum.FormFactor.Plate
  4345. Part270.Size = Vector3.new(7, 1.20000005, 2)
  4346. Part270.CFrame = CFrame.new(-49.042881, 3.00002384, -7.92999268, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4347. Part270.TopSurface = Enum.SurfaceType.Smooth
  4348. Part270.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4349. Part270.Position = Vector3.new(-49.042881, 3.00002384, -7.92999268)
  4350. Part270.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4351. Part271.Name = "ROFL"
  4352. Part271.Parent = Model267
  4353. Part271.BrickColor = BrickColor.new("Fossil")
  4354. Part271.Anchored = true
  4355. Part271.FormFactor = Enum.FormFactor.Plate
  4356. Part271.Size = Vector3.new(7, 1.20000005, 2)
  4357. Part271.CFrame = CFrame.new(-49.0428734, 4.2000246, -6.92999268, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4358. Part271.TopSurface = Enum.SurfaceType.Smooth
  4359. Part271.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4360. Part271.Position = Vector3.new(-49.0428734, 4.2000246, -6.92999268)
  4361. Part271.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4362. Part272.Name = "ROFL"
  4363. Part272.Parent = Model267
  4364. Part272.BrickColor = BrickColor.new("Fossil")
  4365. Part272.Anchored = true
  4366. Part272.FormFactor = Enum.FormFactor.Plate
  4367. Part272.Size = Vector3.new(7, 1.20000005, 2)
  4368. Part272.CFrame = CFrame.new(-49.0428734, 5.40002346, -5.9299984, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4369. Part272.TopSurface = Enum.SurfaceType.Smooth
  4370. Part272.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4371. Part272.Position = Vector3.new(-49.0428734, 5.40002346, -5.9299984)
  4372. Part272.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4373. Part273.Name = "ROFL"
  4374. Part273.Parent = Model267
  4375. Part273.BrickColor = BrickColor.new("Fossil")
  4376. Part273.Anchored = true
  4377. Part273.FormFactor = Enum.FormFactor.Plate
  4378. Part273.Size = Vector3.new(7, 1.20000005, 2)
  4379. Part273.CFrame = CFrame.new(-49.0428848, 6.60002422, -4.93000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4380. Part273.TopSurface = Enum.SurfaceType.Smooth
  4381. Part273.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4382. Part273.Position = Vector3.new(-49.0428848, 6.60002422, -4.93000031)
  4383. Part273.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4384. Part274.Name = "ROFL"
  4385. Part274.Parent = Model267
  4386. Part274.BrickColor = BrickColor.new("Fossil")
  4387. Part274.Anchored = true
  4388. Part274.FormFactor = Enum.FormFactor.Plate
  4389. Part274.Size = Vector3.new(7, 1.20000005, 2)
  4390. Part274.CFrame = CFrame.new(-49.0428886, 7.80002499, -3.92999721, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4391. Part274.TopSurface = Enum.SurfaceType.Smooth
  4392. Part274.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4393. Part274.Position = Vector3.new(-49.0428886, 7.80002499, -3.92999721)
  4394. Part274.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4395. Part275.Name = "ROFL"
  4396. Part275.Parent = Model267
  4397. Part275.BrickColor = BrickColor.new("Fossil")
  4398. Part275.Anchored = true
  4399. Part275.FormFactor = Enum.FormFactor.Plate
  4400. Part275.Size = Vector3.new(7, 1.20000005, 2)
  4401. Part275.CFrame = CFrame.new(-49.0428886, 9.00002384, -2.93000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4402. Part275.TopSurface = Enum.SurfaceType.Smooth
  4403. Part275.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4404. Part275.Position = Vector3.new(-49.0428886, 9.00002384, -2.93000007)
  4405. Part275.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4406. Part276.Name = "ROFL"
  4407. Part276.Parent = Model267
  4408. Part276.BrickColor = BrickColor.new("Fossil")
  4409. Part276.Anchored = true
  4410. Part276.FormFactor = Enum.FormFactor.Plate
  4411. Part276.Size = Vector3.new(7, 1.20000005, 2)
  4412. Part276.CFrame = CFrame.new(-49.0428963, 10.2000265, -1.93000722, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4413. Part276.TopSurface = Enum.SurfaceType.Smooth
  4414. Part276.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4415. Part276.Position = Vector3.new(-49.0428963, 10.2000265, -1.93000722)
  4416. Part276.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4417. Part277.Name = "ROFL"
  4418. Part277.Parent = Model267
  4419. Part277.BrickColor = BrickColor.new("Fossil")
  4420. Part277.Anchored = true
  4421. Part277.FormFactor = Enum.FormFactor.Plate
  4422. Part277.Size = Vector3.new(7, 1.20000005, 2)
  4423. Part277.CFrame = CFrame.new(-49.0428886, 11.400033, -0.929999352, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4424. Part277.TopSurface = Enum.SurfaceType.Smooth
  4425. Part277.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4426. Part277.Position = Vector3.new(-49.0428886, 11.400033, -0.929999352)
  4427. Part277.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4428. Part278.Name = "ROFL"
  4429. Part278.Parent = Model267
  4430. Part278.BrickColor = BrickColor.new("Fossil")
  4431. Part278.Anchored = true
  4432. Part278.FormFactor = Enum.FormFactor.Plate
  4433. Part278.Size = Vector3.new(7, 0.800000012, 2)
  4434. Part278.CFrame = CFrame.new(-49.0428963, 12.4000292, 0.0699965954, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4435. Part278.TopSurface = Enum.SurfaceType.Smooth
  4436. Part278.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4437. Part278.Position = Vector3.new(-49.0428963, 12.4000292, 0.0699965954)
  4438. Part278.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4439. Part279.Parent = Model0
  4440. Part279.BrickColor = BrickColor.new("Fossil")
  4441. Part279.Anchored = true
  4442. Part279.Size = Vector3.new(7.81999636, 1.05000007, 45.7999916)
  4443. Part279.CFrame = CFrame.new(-49.0800018, 29.0950012, 11.9200153, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4444. Part279.BottomSurface = Enum.SurfaceType.Smooth
  4445. Part279.TopSurface = Enum.SurfaceType.Smooth
  4446. Part279.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4447. Part279.Position = Vector3.new(-49.0800018, 29.0950012, 11.9200153)
  4448. Part279.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4449. Part280.Parent = Model0
  4450. Part280.BrickColor = BrickColor.new("Fossil")
  4451. Part280.Anchored = true
  4452. Part280.Size = Vector3.new(12.4900045, 0.790002763, 49.4000015)
  4453. Part280.CFrame = CFrame.new(-39.8212128, 29.045002, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4454. Part280.BottomSurface = Enum.SurfaceType.Smooth
  4455. Part280.TopSurface = Enum.SurfaceType.Smooth
  4456. Part280.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4457. Part280.Position = Vector3.new(-39.8212128, 29.045002, 12.2228251)
  4458. Part280.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4459. Attachment281.Name = "Attachment1"
  4460. Attachment281.Parent = Part280
  4461. Attachment281.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
  4462. Attachment281.CFrame = CFrame.new(-6.24500275, -0.37750122, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
  4463. Attachment281.Position = Vector3.new(-6.24500275, -0.37750122, -24.1599998)
  4464. Attachment281.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  4465. Attachment281.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
  4466. Seat282.Parent = mas
  4467. Seat282.Material = Enum.Material.Sand
  4468. Seat282.BrickColor = BrickColor.new("Bright red")
  4469. Seat282.Transparency = 1
  4470. Seat282.Rotation = Vector3.new(88.5899963, -81.8300018, 88.5699997)
  4471. Seat282.Anchored = true
  4472. Seat282.FormFactor = Enum.FormFactor.Custom
  4473. Seat282.Size = Vector3.new(2.56531739, 0.21377641, 2.13776422)
  4474. Seat282.CFrame = CFrame.new(-47.5213432, 16.1666355, 12.8096209, 0.00354599906, -0.142032966, -0.989855647, -5.89999836e-05, 0.989861786, -0.142034069, 0.999993742, 0.000562054105, 0.00350166904)
  4475. Seat282.BottomSurface = Enum.SurfaceType.Smooth
  4476. Seat282.TopSurface = Enum.SurfaceType.Smooth
  4477. Seat282.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4478. Seat282.Position = Vector3.new(-47.5213432, 16.1666355, 12.8096209)
  4479. Seat282.Orientation = Vector3.new(8.17000008, -89.7999954, 0)
  4480. Seat282.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4481. Configuration283.Parent = Seat282
  4482. NumberValue284.Name = "Head Angle"
  4483. NumberValue284.Parent = Configuration283
  4484. NumberValue285.Name = "Legs Angle"
  4485. NumberValue285.Parent = Configuration283
  4486. NumberValue285.Value = -10
  4487. NumberValue286.Name = "Arms Angle"
  4488. NumberValue286.Parent = Configuration283
  4489. NumberValue286.Value = -45
  4490. NumberValue287.Name = "Sitting Angle"
  4491. NumberValue287.Parent = Configuration283
  4492. Vector3Value288.Name = "Sitting Position"
  4493. Vector3Value288.Parent = Configuration283
  4494. Vector3Value288.Value = Vector3.new(0, 0.5, 0.5)
  4495. Script289.Name = "OperationScript"
  4496. Script289.Parent = Seat282
  4497. table.insert(cors,sandbox(Script289,function()
  4498. local WaitFor = (function(parent, child_name)
  4499. local found = parent:FindFirstChild(child_name)
  4500. while found == nil do
  4501. parent.ChildAdded:wait()
  4502. found = parent:FindFirstChild(child_name)
  4503. if found then break end
  4504. end
  4505. return found
  4506. end)
  4507.  
  4508. local last = { neckC1 = nil, rshoC0 = nil, lshoC0 = nil, rhipC0 = nil, lhipC0 = nil }
  4509.  
  4510. local ApplyModifications = (function(weld, char)
  4511. local torso = WaitFor(char, "Torso")
  4512. local neck = WaitFor(torso, "Neck")
  4513. local rsho = WaitFor(torso, "Right Shoulder")
  4514. local lsho = WaitFor(torso, "Left Shoulder")
  4515. local rhip = WaitFor(torso, "Right Hip")
  4516. local lhip = WaitFor(torso, "Left Hip")
  4517.  
  4518. local config = script.Parent.Configuration
  4519. local head_ang = config["Head Angle"].Value
  4520. local legs_ang = config["Legs Angle"].Value
  4521. local arms_ang = config["Arms Angle"].Value
  4522. local sit_ang = config["Sitting Angle"].Value
  4523. local sit_pos = config["Sitting Position"].Value
  4524.  
  4525. --First adjust sitting position and angle
  4526. --Add 90 to the angle because that's what most people will be expecting.
  4527. weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad((sit_ang) + 90), 0, 0)
  4528.  
  4529. weld.C0 = CFrame.new(sit_pos)
  4530.  
  4531. last.neckC1 = neck.C1
  4532. last.rshoC0 = rsho.C0
  4533. last.lshoC0 = lsho.C0
  4534. last.rhipC0 = rhip.C0
  4535. last.lhipC0 = lhip.C0
  4536.  
  4537. --Now adjust the neck angle.
  4538. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(math.rad(head_ang), 0, 0)
  4539.  
  4540.  
  4541. --Now adjust the arms angle.
  4542. rsho.C0 = rsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(arms_ang))
  4543. lsho.C0 = lsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-arms_ang))
  4544.  
  4545.  
  4546. --Now the legs
  4547. rhip.C0 = rhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(legs_ang))
  4548. lhip.C0 = lhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-legs_ang))
  4549. end)
  4550.  
  4551. local RevertModifications = (function(weld, char)
  4552. --Any modifications done in ApplyModifications have to be reverted here if they
  4553. --change any welds - otherwise people will wonder why their head is pointing the wrong way.
  4554.  
  4555. local torso = WaitFor(char, "Torso")
  4556. local neck = WaitFor(torso, "Neck")
  4557. local rsho = WaitFor(torso, "Right Shoulder")
  4558. local lsho = WaitFor(torso, "Left Shoulder")
  4559. local rhip = WaitFor(torso, "Right Hip")
  4560. local lhip = WaitFor(torso, "Left Hip")
  4561.  
  4562.  
  4563. --Now adjust the neck angle.
  4564. neck.C1 = last.neckC1 or CFrame.new()
  4565.  
  4566. rsho.C0 = last.rshoC0 or CFrame.new()
  4567. lsho.C0 = last.lshoC0 or CFrame.new()
  4568.  
  4569. rhip.C0 = last.rhipC0 or CFrame.new()
  4570. lhip.C0 = last.lhipC0 or CFrame.new()
  4571.  
  4572. weld:Destroy()
  4573. end)
  4574.  
  4575. script.Parent.ChildAdded:connect(function(c)
  4576. if c:IsA("Weld") then
  4577. local character = nil
  4578. if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
  4579. character = c.Part1.Parent
  4580. else return end
  4581. ApplyModifications(c, character)
  4582. end
  4583. end)
  4584.  
  4585. script.Parent.ChildRemoved:connect(function(c)
  4586. if c:IsA("Weld") then
  4587. local character = nil
  4588. if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
  4589. character = c.Part1.Parent
  4590. else return end
  4591. RevertModifications(c, character)
  4592. end
  4593. end)
  4594. end))
  4595. Seat290.Parent = mas
  4596. Seat290.Material = Enum.Material.Sand
  4597. Seat290.BrickColor = BrickColor.new("Bright red")
  4598. Seat290.Transparency = 1
  4599. Seat290.Rotation = Vector3.new(88.5899963, -81.8300018, 88.5699997)
  4600. Seat290.Anchored = true
  4601. Seat290.FormFactor = Enum.FormFactor.Custom
  4602. Seat290.Size = Vector3.new(2.56531739, 0.21377641, 2.13776422)
  4603. Seat290.CFrame = CFrame.new(-47.5215302, 16.1666393, 7.143466, 0.00354599906, -0.142032966, -0.989855647, -5.89999836e-05, 0.989861786, -0.142034069, 0.999993742, 0.000562054105, 0.00350166904)
  4604. Seat290.BottomSurface = Enum.SurfaceType.Smooth
  4605. Seat290.TopSurface = Enum.SurfaceType.Smooth
  4606. Seat290.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4607. Seat290.Position = Vector3.new(-47.5215302, 16.1666393, 7.143466)
  4608. Seat290.Orientation = Vector3.new(8.17000008, -89.7999954, 0)
  4609. Seat290.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4610. Configuration291.Parent = Seat290
  4611. NumberValue292.Name = "Head Angle"
  4612. NumberValue292.Parent = Configuration291
  4613. NumberValue293.Name = "Legs Angle"
  4614. NumberValue293.Parent = Configuration291
  4615. NumberValue293.Value = -10
  4616. NumberValue294.Name = "Arms Angle"
  4617. NumberValue294.Parent = Configuration291
  4618. NumberValue294.Value = -45
  4619. NumberValue295.Name = "Sitting Angle"
  4620. NumberValue295.Parent = Configuration291
  4621. Vector3Value296.Name = "Sitting Position"
  4622. Vector3Value296.Parent = Configuration291
  4623. Vector3Value296.Value = Vector3.new(0, 0.5, 0.5)
  4624. Script297.Name = "OperationScript"
  4625. Script297.Parent = Seat290
  4626. table.insert(cors,sandbox(Script297,function()
  4627. local WaitFor = (function(parent, child_name)
  4628. local found = parent:FindFirstChild(child_name)
  4629. while found == nil do
  4630. parent.ChildAdded:wait()
  4631. found = parent:FindFirstChild(child_name)
  4632. if found then break end
  4633. end
  4634. return found
  4635. end)
  4636.  
  4637. local last = { neckC1 = nil, rshoC0 = nil, lshoC0 = nil, rhipC0 = nil, lhipC0 = nil }
  4638.  
  4639. local ApplyModifications = (function(weld, char)
  4640. local torso = WaitFor(char, "Torso")
  4641. local neck = WaitFor(torso, "Neck")
  4642. local rsho = WaitFor(torso, "Right Shoulder")
  4643. local lsho = WaitFor(torso, "Left Shoulder")
  4644. local rhip = WaitFor(torso, "Right Hip")
  4645. local lhip = WaitFor(torso, "Left Hip")
  4646.  
  4647. local config = script.Parent.Configuration
  4648. local head_ang = config["Head Angle"].Value
  4649. local legs_ang = config["Legs Angle"].Value
  4650. local arms_ang = config["Arms Angle"].Value
  4651. local sit_ang = config["Sitting Angle"].Value
  4652. local sit_pos = config["Sitting Position"].Value
  4653.  
  4654. --First adjust sitting position and angle
  4655. --Add 90 to the angle because that's what most people will be expecting.
  4656. weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad((sit_ang) + 90), 0, 0)
  4657.  
  4658. weld.C0 = CFrame.new(sit_pos)
  4659.  
  4660. last.neckC1 = neck.C1
  4661. last.rshoC0 = rsho.C0
  4662. last.lshoC0 = lsho.C0
  4663. last.rhipC0 = rhip.C0
  4664. last.lhipC0 = lhip.C0
  4665.  
  4666. --Now adjust the neck angle.
  4667. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(math.rad(head_ang), 0, 0)
  4668.  
  4669.  
  4670. --Now adjust the arms angle.
  4671. rsho.C0 = rsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(arms_ang))
  4672. lsho.C0 = lsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-arms_ang))
  4673.  
  4674.  
  4675. --Now the legs
  4676. rhip.C0 = rhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(legs_ang))
  4677. lhip.C0 = lhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-legs_ang))
  4678. end)
  4679.  
  4680. local RevertModifications = (function(weld, char)
  4681. --Any modifications done in ApplyModifications have to be reverted here if they
  4682. --change any welds - otherwise people will wonder why their head is pointing the wrong way.
  4683.  
  4684. local torso = WaitFor(char, "Torso")
  4685. local neck = WaitFor(torso, "Neck")
  4686. local rsho = WaitFor(torso, "Right Shoulder")
  4687. local lsho = WaitFor(torso, "Left Shoulder")
  4688. local rhip = WaitFor(torso, "Right Hip")
  4689. local lhip = WaitFor(torso, "Left Hip")
  4690.  
  4691.  
  4692. --Now adjust the neck angle.
  4693. neck.C1 = last.neckC1 or CFrame.new()
  4694.  
  4695. rsho.C0 = last.rshoC0 or CFrame.new()
  4696. lsho.C0 = last.lshoC0 or CFrame.new()
  4697.  
  4698. rhip.C0 = last.rhipC0 or CFrame.new()
  4699. lhip.C0 = last.lhipC0 or CFrame.new()
  4700.  
  4701. weld:Destroy()
  4702. end)
  4703.  
  4704. script.Parent.ChildAdded:connect(function(c)
  4705. if c:IsA("Weld") then
  4706. local character = nil
  4707. if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
  4708. character = c.Part1.Parent
  4709. else return end
  4710. ApplyModifications(c, character)
  4711. end
  4712. end)
  4713.  
  4714. script.Parent.ChildRemoved:connect(function(c)
  4715. if c:IsA("Weld") then
  4716. local character = nil
  4717. if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
  4718. character = c.Part1.Parent
  4719. else return end
  4720. RevertModifications(c, character)
  4721. end
  4722. end)
  4723. end))
  4724. Model298.Name = "Button Door"
  4725. Model298.Parent = Model0
  4726. Part299.Name = "Open"
  4727. Part299.Parent = Model298
  4728. Part299.BrickColor = BrickColor.new("Bright green")
  4729. Part299.Rotation = Vector3.new(-90, 0, 90)
  4730. Part299.Anchored = true
  4731. Part299.FormFactor = Enum.FormFactor.Plate
  4732. Part299.Size = Vector3.new(2, 0.400000006, 2)
  4733. Part299.CFrame = CFrame.new(-45.7953377, 19.7077999, 28.0808773, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  4734. Part299.BottomSurface = Enum.SurfaceType.Smooth
  4735. Part299.TopSurface = Enum.SurfaceType.Smooth
  4736. Part299.Color = Color3.new(0.294118, 0.592157, 0.294118)
  4737. Part299.Position = Vector3.new(-45.7953377, 19.7077999, 28.0808773)
  4738. Part299.Orientation = Vector3.new(-90, 90, 0)
  4739. Part299.Color = Color3.new(0.294118, 0.592157, 0.294118)
  4740. ClickDetector300.Parent = Part299
  4741. Script301.Parent = Part299
  4742. table.insert(cors,sandbox(Script301,function()
  4743. function onClicked()
  4744. script.Parent.Parent.Door.Transparency=0.5
  4745. script.Parent.Parent.Door.CanCollide=false
  4746. end
  4747. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  4748. end))
  4749. TrussPart302.Parent = Model298
  4750. TrussPart302.BrickColor = BrickColor.new("Really black")
  4751. TrussPart302.Rotation = Vector3.new(90, 0, -90)
  4752. TrussPart302.Anchored = true
  4753. TrussPart302.Size = Vector3.new(2, 12, 2)
  4754. TrussPart302.CFrame = CFrame.new(-28.175848, 28.7830029, 2.17000103, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  4755. TrussPart302.BackSurface = Enum.SurfaceType.Smooth
  4756. TrussPart302.FrontSurface = Enum.SurfaceType.Smooth
  4757. TrussPart302.RightSurface = Enum.SurfaceType.Smooth
  4758. TrussPart302.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4759. TrussPart302.Position = Vector3.new(-28.175848, 28.7830029, 2.17000103)
  4760. TrussPart302.Orientation = Vector3.new(90, 90, 0)
  4761. TrussPart302.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4762. Part303.Name = "Close"
  4763. Part303.Parent = Model298
  4764. Part303.BrickColor = BrickColor.new("Bright red")
  4765. Part303.Rotation = Vector3.new(0, 0, 90)
  4766. Part303.Anchored = true
  4767. Part303.FormFactor = Enum.FormFactor.Plate
  4768. Part303.Size = Vector3.new(2, 0.400000006, 2)
  4769. Part303.CFrame = CFrame.new(-45.8077164, 17.7191525, 28.0585632, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  4770. Part303.BottomSurface = Enum.SurfaceType.Smooth
  4771. Part303.TopSurface = Enum.SurfaceType.Smooth
  4772. Part303.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4773. Part303.Position = Vector3.new(-45.8077164, 17.7191525, 28.0585632)
  4774. Part303.Orientation = Vector3.new(0, 0, 90)
  4775. Part303.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4776. ClickDetector304.Parent = Part303
  4777. Script305.Parent = Part303
  4778. table.insert(cors,sandbox(Script305,function()
  4779. function onClicked()
  4780. script.Parent.Parent.Door.Transparency=0
  4781. script.Parent.Parent.Door.CanCollide=true
  4782. end
  4783. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  4784. end))
  4785. Part306.Name = "Door"
  4786. Part306.Parent = Model298
  4787. Part306.BrickColor = BrickColor.new("Dark stone grey")
  4788. Part306.Rotation = Vector3.new(90, 0, -90)
  4789. Part306.Anchored = true
  4790. Part306.Size = Vector3.new(12, 12, 2)
  4791. Part306.CFrame = CFrame.new(-28.175848, 28.7830029, 9.17000103, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  4792. Part306.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4793. Part306.Position = Vector3.new(-28.175848, 28.7830029, 9.17000103)
  4794. Part306.Orientation = Vector3.new(90, 90, 0)
  4795. Part306.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4796. TrussPart307.Parent = Model298
  4797. TrussPart307.BrickColor = BrickColor.new("Really black")
  4798. TrussPart307.Rotation = Vector3.new(90, 90, 0)
  4799. TrussPart307.Anchored = true
  4800. TrussPart307.Size = Vector3.new(2, 16, 2)
  4801. TrussPart307.CFrame = CFrame.new(-21.1758404, 28.7830029, 9.17000103, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  4802. TrussPart307.BottomSurface = Enum.SurfaceType.Smooth
  4803. TrussPart307.LeftSurface = Enum.SurfaceType.Smooth
  4804. TrussPart307.RightSurface = Enum.SurfaceType.Smooth
  4805. TrussPart307.TopSurface = Enum.SurfaceType.Smooth
  4806. TrussPart307.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4807. TrussPart307.Position = Vector3.new(-21.1758404, 28.7830029, 9.17000103)
  4808. TrussPart307.Orientation = Vector3.new(0, 90, 90)
  4809. TrussPart307.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4810. TrussPart308.Parent = Model298
  4811. TrussPart308.BrickColor = BrickColor.new("Really black")
  4812. TrussPart308.Rotation = Vector3.new(90, 0, -90)
  4813. TrussPart308.Anchored = true
  4814. TrussPart308.Size = Vector3.new(2, 12, 2)
  4815. TrussPart308.CFrame = CFrame.new(-28.175848, 28.7830029, 16.1699944, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  4816. TrussPart308.BackSurface = Enum.SurfaceType.Smooth
  4817. TrussPart308.FrontSurface = Enum.SurfaceType.Smooth
  4818. TrussPart308.LeftSurface = Enum.SurfaceType.Smooth
  4819. TrussPart308.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4820. TrussPart308.Position = Vector3.new(-28.175848, 28.7830029, 16.1699944)
  4821. TrussPart308.Orientation = Vector3.new(90, 90, 0)
  4822. TrussPart308.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  4823. Part309.Parent = Model0
  4824. Part309.BrickColor = BrickColor.new("Fossil")
  4825. Part309.Anchored = true
  4826. Part309.Size = Vector3.new(0.820000112, 7.16000128, 17.7000008)
  4827. Part309.CFrame = CFrame.new(-34.5722542, 33.0167084, 9.36000252, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4828. Part309.BottomSurface = Enum.SurfaceType.Smooth
  4829. Part309.TopSurface = Enum.SurfaceType.Smooth
  4830. Part309.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4831. Part309.Position = Vector3.new(-34.5722542, 33.0167084, 9.36000252)
  4832. Part309.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4833. Part310.Parent = Model0
  4834. Part310.BrickColor = BrickColor.new("Fossil")
  4835. Part310.Anchored = true
  4836. Part310.Size = Vector3.new(14.8100014, 7.16000128, 2.66000104)
  4837. Part310.CFrame = CFrame.new(-26.7900887, 33.0167084, 1.84000242, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4838. Part310.BottomSurface = Enum.SurfaceType.Smooth
  4839. Part310.TopSurface = Enum.SurfaceType.Smooth
  4840. Part310.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4841. Part310.Position = Vector3.new(-26.7900887, 33.0167084, 1.84000242)
  4842. Part310.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4843. Part311.Parent = Model0
  4844. Part311.BrickColor = BrickColor.new("Fossil")
  4845. Part311.Anchored = true
  4846. Part311.Size = Vector3.new(18.9500046, 0.790002763, 49.4000015)
  4847. Part311.CFrame = CFrame.new(-13.7350111, 29.045002, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4848. Part311.BottomSurface = Enum.SurfaceType.Smooth
  4849. Part311.TopSurface = Enum.SurfaceType.Smooth
  4850. Part311.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4851. Part311.Position = Vector3.new(-13.7350111, 29.045002, 12.2228251)
  4852. Part311.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4853. Attachment312.Name = "Attachment1"
  4854. Attachment312.Parent = Part311
  4855. Attachment312.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
  4856. Attachment312.CFrame = CFrame.new(-9.47500324, -0.37750122, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
  4857. Attachment312.Position = Vector3.new(-9.47500324, -0.37750122, -24.1599998)
  4858. Attachment312.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  4859. Attachment312.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
  4860. Part313.Parent = Model0
  4861. Part313.BrickColor = BrickColor.new("Fossil")
  4862. Part313.Anchored = true
  4863. Part313.Size = Vector3.new(41.3600044, 0.790002763, 15.0700016)
  4864. Part313.CFrame = CFrame.new(-24.9400082, 29.045002, -4.94217491, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4865. Part313.BottomSurface = Enum.SurfaceType.Smooth
  4866. Part313.TopSurface = Enum.SurfaceType.Smooth
  4867. Part313.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4868. Part313.Position = Vector3.new(-24.9400082, 29.045002, -4.94217491)
  4869. Part313.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4870. Attachment314.Name = "Attachment1"
  4871. Attachment314.Parent = Part313
  4872. Attachment314.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
  4873. Attachment314.CFrame = CFrame.new(-20.6800041, -0.37750122, -7.37026596, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
  4874. Attachment314.Position = Vector3.new(-20.6800041, -0.37750122, -7.37026596)
  4875. Attachment314.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  4876. Attachment314.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
  4877. Part315.Parent = Model0
  4878. Part315.BrickColor = BrickColor.new("Fossil")
  4879. Part315.Anchored = true
  4880. Part315.Size = Vector3.new(41.3600044, 0.790002763, 20.4799995)
  4881. Part315.CFrame = CFrame.new(-24.9400082, 29.045002, 26.6933441, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4882. Part315.BottomSurface = Enum.SurfaceType.Smooth
  4883. Part315.TopSurface = Enum.SurfaceType.Smooth
  4884. Part315.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4885. Part315.Position = Vector3.new(-24.9400082, 29.045002, 26.6933441)
  4886. Part315.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4887. Attachment316.Name = "Attachment1"
  4888. Attachment316.Parent = Part315
  4889. Attachment316.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
  4890. Attachment316.CFrame = CFrame.new(-20.6800041, -0.37750122, -10.0161276, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
  4891. Attachment316.Position = Vector3.new(-20.6800041, -0.37750122, -10.0161276)
  4892. Attachment316.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
  4893. Attachment316.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
  4894. Part317.Parent = Model0
  4895. Part317.BrickColor = BrickColor.new("Fossil")
  4896. Part317.Anchored = true
  4897. Part317.Size = Vector3.new(2.78999949, 7.16000128, 17.7000008)
  4898. Part317.CFrame = CFrame.new(-20.7800865, 33.0167084, 9.36000252, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4899. Part317.BottomSurface = Enum.SurfaceType.Smooth
  4900. Part317.TopSurface = Enum.SurfaceType.Smooth
  4901. Part317.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4902. Part317.Position = Vector3.new(-20.7800865, 33.0167084, 9.36000252)
  4903. Part317.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4904. Part318.Parent = Model0
  4905. Part318.BrickColor = BrickColor.new("Fossil")
  4906. Part318.Anchored = true
  4907. Part318.Size = Vector3.new(14.8100014, 7.16000128, 3.0300014)
  4908. Part318.CFrame = CFrame.new(-26.7900887, 33.0167084, 16.7029533, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4909. Part318.BottomSurface = Enum.SurfaceType.Smooth
  4910. Part318.TopSurface = Enum.SurfaceType.Smooth
  4911. Part318.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4912. Part318.Position = Vector3.new(-26.7900887, 33.0167084, 16.7029533)
  4913. Part318.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4914. Part319.Parent = Model0
  4915. Part319.BrickColor = BrickColor.new("Fossil")
  4916. Part319.Anchored = true
  4917. Part319.Size = Vector3.new(0.580000103, 6.75, 5.15000057)
  4918. Part319.CFrame = CFrame.new(-5.1100049, 4.1850028, -7.92217493, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4919. Part319.BottomSurface = Enum.SurfaceType.Smooth
  4920. Part319.TopSurface = Enum.SurfaceType.Smooth
  4921. Part319.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4922. Part319.Position = Vector3.new(-5.1100049, 4.1850028, -7.92217493)
  4923. Part319.Color = Color3.new(0.623529, 0.631373, 0.67451)
  4924. Attachment320.Name = "Attachment1"
  4925. Attachment320.Parent = Part319
  4926. Attachment320.Rotation = Vector3.new(2.78630381e-07, 39.9999466, 5.19296932)
  4927. Attachment320.CFrame = CFrame.new(-0.290000051, -2.20000005, -0.0199999996, 0.76290077, -0.0693350211, 0.64278692, 0.0905103832, 0.995895505, -3.7252903e-09, -0.64014864, 0.0581788942, 0.766044974)
  4928. Attachment320.Position = Vector3.new(-0.290000051, -2.20000005, -0.0199999996)
  4929. Attachment320.Axis = Vector3.new(0.76290077, 0.0905103832, -0.64014864)
  4930. Attachment320.Orientation = Vector3.new(2.13443414e-07, 39.9999504, 5.1929698)
  4931. Model321.Name = "basement door"
  4932. Model321.Parent = Model0
  4933. Part322.Name = "Close2"
  4934. Part322.Parent = Model321
  4935. Part322.BrickColor = BrickColor.new("Bright red")
  4936. Part322.Rotation = Vector3.new(90, 0, 90)
  4937. Part322.Anchored = true
  4938. Part322.FormFactor = Enum.FormFactor.Plate
  4939. Part322.Size = Vector3.new(1, 0.400000006, 1)
  4940. Part322.CFrame = CFrame.new(-45.8042488, 17.5703239, 19.2953262, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  4941. Part322.BottomSurface = Enum.SurfaceType.Smooth
  4942. Part322.TopSurface = Enum.SurfaceType.Smooth
  4943. Part322.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4944. Part322.Position = Vector3.new(-45.8042488, 17.5703239, 19.2953262)
  4945. Part322.Orientation = Vector3.new(90, -90, 0)
  4946. Part322.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4947. Script323.Parent = Part322
  4948. table.insert(cors,sandbox(Script323,function()
  4949. function myfunction()
  4950.  
  4951. script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  4952. script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  4953. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  4954. -- So the 2 times Parent means: The Parent, Of the Parent.
  4955. end
  4956.  
  4957. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  4958. end))
  4959. ClickDetector324.Parent = Part322
  4960. Part325.Name = "Open1"
  4961. Part325.Parent = Model321
  4962. Part325.BrickColor = BrickColor.new("Bright green")
  4963. Part325.Rotation = Vector3.new(90, 0, -90)
  4964. Part325.Anchored = true
  4965. Part325.FormFactor = Enum.FormFactor.Plate
  4966. Part325.Size = Vector3.new(1, 0.400000006, 1)
  4967. Part325.CFrame = CFrame.new(-45.8160706, 18.5802307, 19.2879162, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  4968. Part325.BottomSurface = Enum.SurfaceType.Smooth
  4969. Part325.TopSurface = Enum.SurfaceType.Smooth
  4970. Part325.Color = Color3.new(0.294118, 0.592157, 0.294118)
  4971. Part325.Position = Vector3.new(-45.8160706, 18.5802307, 19.2879162)
  4972. Part325.Orientation = Vector3.new(90, 90, 0)
  4973. Part325.Color = Color3.new(0.294118, 0.592157, 0.294118)
  4974. Script326.Parent = Part325
  4975. table.insert(cors,sandbox(Script326,function()
  4976. function myfunction()
  4977.  
  4978. script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  4979. script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  4980. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  4981. -- So the 2 times Parent means: The Parent, Of the Parent.
  4982. end
  4983.  
  4984. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  4985. end))
  4986. ClickDetector327.Parent = Part325
  4987. Part328.Name = "Door"
  4988. Part328.Parent = Model321
  4989. Part328.BrickColor = BrickColor.new("Dark stone grey")
  4990. Part328.Anchored = true
  4991. Part328.Size = Vector3.new(6, 8.40000057, 1)
  4992. Part328.CFrame = CFrame.new(-42.0527992, 5.25653601, -11.8532372, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4993. Part328.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4994. Part328.Position = Vector3.new(-42.0527992, 5.25653601, -11.8532372)
  4995. Part328.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4996. BlockMesh329.Parent = Part328
  4997. BlockMesh329.Offset = Vector3.new(0, 0.0500000007, 0)
  4998. Part330.Parent = Model0
  4999. Part330.BrickColor = BrickColor.new("Fossil")
  5000. Part330.Anchored = true
  5001. Part330.Size = Vector3.new(6.98999977, 1, 33.8600006)
  5002. Part330.CFrame = CFrame.new(-49.08881, 13.3200045, 17.3694344, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5003. Part330.BottomSurface = Enum.SurfaceType.Smooth
  5004. Part330.TopSurface = Enum.SurfaceType.Smooth
  5005. Part330.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5006. Part330.Position = Vector3.new(-49.08881, 13.3200045, 17.3694344)
  5007. Part330.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5008. Part331.Parent = Model0
  5009. Part331.BrickColor = BrickColor.new("Fossil")
  5010. Part331.Anchored = true
  5011. Part331.Size = Vector3.new(0.400000155, 29.6200008, 45.7999916)
  5012. Part331.CFrame = CFrame.new(-52.7900124, 14.8100004, 11.9200153, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5013. Part331.BottomSurface = Enum.SurfaceType.Smooth
  5014. Part331.TopSurface = Enum.SurfaceType.Smooth
  5015. Part331.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5016. Part331.Position = Vector3.new(-52.7900124, 14.8100004, 11.9200153)
  5017. Part331.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5018. Part332.Parent = Model0
  5019. Part332.BrickColor = BrickColor.new("Fossil")
  5020. Part332.Anchored = true
  5021. Part332.Size = Vector3.new(7.81999636, 29.5499992, 0.570000052)
  5022. Part332.CFrame = CFrame.new(-49.0800018, 14.845005, 34.5350113, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5023. Part332.BottomSurface = Enum.SurfaceType.Smooth
  5024. Part332.TopSurface = Enum.SurfaceType.Smooth
  5025. Part332.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5026. Part332.Position = Vector3.new(-49.0800018, 14.845005, 34.5350113)
  5027. Part332.Color = Color3.new(0.623529, 0.631373, 0.67451)
  5028. for i,v in pairs(mas:GetChildren()) do
  5029. v.Parent = workspace
  5030. pcall(function() v:MakeJoints() end)
  5031. end
  5032. mas:Destroy()
  5033. for i,v in pairs(cors) do
  5034. spawn(function()
  5035. pcall(v)
  5036. end)
  5037. end
Add Comment
Please, Sign In to add comment