sawgamer1

Untitled

Jun 24th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.02 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: MeshPart,Attachment,TouchTransmitter,Animator,UnionOperation
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Model")
  30. o5 = Instance.new("Vector3Value")
  31. o6 = Instance.new("ManualWeld")
  32. o7 = Instance.new("Motor6D")
  33. o8 = Instance.new("ManualWeld")
  34. o9 = Instance.new("ManualWeld")
  35. o13 = Instance.new("Vector3Value")
  36. o14 = Instance.new("Motor6D")
  37. o15 = Instance.new("ParticleEmitter")
  38. o16 = Instance.new("Script")
  39. o20 = Instance.new("Vector3Value")
  40. o21 = Instance.new("Script")
  41. o22 = Instance.new("Motor6D")
  42. o23 = Instance.new("Script")
  43. o24 = Instance.new("Script")
  44. o29 = Instance.new("Vector3Value")
  45. o30 = Instance.new("Motor6D")
  46. o35 = Instance.new("Motor6D")
  47. o36 = Instance.new("Vector3Value")
  48. o40 = Instance.new("Vector3Value")
  49. o41 = Instance.new("Motor6D")
  50. o50 = Instance.new("Motor6D")
  51. o51 = Instance.new("Vector3Value")
  52. o52 = Instance.new("Script")
  53. o55 = Instance.new("Vector3Value")
  54. o56 = Instance.new("Motor6D")
  55. o57 = Instance.new("ManualWeld")
  56. o58 = Instance.new("ManualWeld")
  57. o62 = Instance.new("Vector3Value")
  58. o63 = Instance.new("Motor6D")
  59. o64 = Instance.new("ParticleEmitter")
  60. o65 = Instance.new("Script")
  61. o69 = Instance.new("Vector3Value")
  62. o70 = Instance.new("Script")
  63. o71 = Instance.new("Motor6D")
  64. o72 = Instance.new("Script")
  65. o73 = Instance.new("Script")
  66. o78 = Instance.new("Vector3Value")
  67. o79 = Instance.new("Motor6D")
  68. o84 = Instance.new("Motor6D")
  69. o85 = Instance.new("Vector3Value")
  70. o89 = Instance.new("Vector3Value")
  71. o90 = Instance.new("Motor6D")
  72. o91 = Instance.new("Script")
  73. o92 = Instance.new("Humanoid")
  74. o94 = Instance.new("Script")
  75. o104 = Instance.new("Motor6D")
  76. o105 = Instance.new("Vector3Value")
  77. o106 = Instance.new("ParticleEmitter")
  78. o107 = Instance.new("Script")
  79. o108 = Instance.new("StringValue")
  80. o109 = Instance.new("Animation")
  81. o110 = Instance.new("StringValue")
  82. o111 = Instance.new("Animation")
  83. o112 = Instance.new("StringValue")
  84. o113 = Instance.new("Animation")
  85. o114 = Instance.new("NumberValue")
  86. o115 = Instance.new("Animation")
  87. o116 = Instance.new("NumberValue")
  88. o117 = Instance.new("Animation")
  89. o118 = Instance.new("NumberValue")
  90. o119 = Instance.new("StringValue")
  91. o120 = Instance.new("Animation")
  92. o121 = Instance.new("NumberValue")
  93. o122 = Instance.new("Animation")
  94. o123 = Instance.new("NumberValue")
  95. o124 = Instance.new("Animation")
  96. o125 = Instance.new("NumberValue")
  97. o126 = Instance.new("StringValue")
  98. o127 = Instance.new("Animation")
  99. o128 = Instance.new("NumberValue")
  100. o129 = Instance.new("Animation")
  101. o130 = Instance.new("NumberValue")
  102. o131 = Instance.new("Animation")
  103. o132 = Instance.new("NumberValue")
  104. o133 = Instance.new("StringValue")
  105. o134 = Instance.new("Animation")
  106. o135 = Instance.new("StringValue")
  107. o136 = Instance.new("Animation")
  108. o137 = Instance.new("NumberValue")
  109. o138 = Instance.new("Animation")
  110. o139 = Instance.new("NumberValue")
  111. o140 = Instance.new("Animation")
  112. o141 = Instance.new("NumberValue")
  113. o142 = Instance.new("StringValue")
  114. o143 = Instance.new("Animation")
  115. o144 = Instance.new("StringValue")
  116. o145 = Instance.new("Animation")
  117. o146 = Instance.new("StringValue")
  118. o147 = Instance.new("Animation")
  119. o148 = Instance.new("StringValue")
  120. o149 = Instance.new("Animation")
  121. o150 = Instance.new("StringValue")
  122. o151 = Instance.new("Animation")
  123. o152 = Instance.new("StringValue")
  124. o153 = Instance.new("Animation")
  125. o154 = Instance.new("StringValue")
  126. o155 = Instance.new("Animation")
  127. o156 = Instance.new("StringValue")
  128. o157 = Instance.new("Animation")
  129. o158 = Instance.new("StringValue")
  130. o159 = Instance.new("Animation")
  131. o160 = Instance.new("StringValue")
  132. o161 = Instance.new("Animation")
  133. o162 = Instance.new("StringValue")
  134. o163 = Instance.new("Animation")
  135. o164 = Instance.new("StringValue")
  136. o165 = Instance.new("Animation")
  137. o166 = Instance.new("Part")
  138. o168 = Instance.new("Vector3Value")
  139. o169 = Instance.new("Part")
  140. o170 = Instance.new("SpecialMesh")
  141. o177 = Instance.new("Motor6D")
  142. o178 = Instance.new("Vector3Value")
  143. o179 = Instance.new("Sound")
  144. o180 = Instance.new("Sound")
  145. o181 = Instance.new("Sound")
  146. o182 = Instance.new("Sound")
  147. o183 = Instance.new("Sound")
  148. o184 = Instance.new("Sound")
  149. o185 = Instance.new("Sound")
  150. o186 = Instance.new("Sound")
  151. o187 = Instance.new("Sound")
  152. o188 = Instance.new("Script")
  153. o189 = Instance.new("Script")
  154. o190 = Instance.new("Model")
  155. o191 = Instance.new("Part")
  156. o192 = Instance.new("Part")
  157. o194 = Instance.new("ParticleEmitter")
  158. o195 = Instance.new("Script")
  159. o197 = Instance.new("Part")
  160. o200 = Instance.new("ManualWeld")
  161. o1.Name = "Boss-Furnace Zombie"
  162. o1.Parent = mas
  163. o2.Name = "Furnace Zombie"
  164. o2.Parent = o1
  165. o5.Name = "OriginalSize"
  166. o5.Parent = mas
  167. o5.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  168. o6.Name = "LeftFoot Terrain Joint"
  169. o6.Parent = mas
  170. o6.Part1 = mas
  171. o7.Name = "LeftAnkle"
  172. o7.Parent = mas
  173. o7.C0 = CFrame.new(-0.00382620096, -0.710131407, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  174. o7.C1 = CFrame.new(-0.00901681185, 0.032443285, 0.000177569687, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  175. o7.Part0 = mas
  176. o7.Part1 = mas
  177. o7.CurrentAngle = 0.053525634109974
  178. o8.Name = "LeftFoot Terrain Joint"
  179. o8.Parent = mas
  180. o8.Part1 = mas
  181. o9.Name = "LeftFoot Terrain Joint"
  182. o9.Parent = mas
  183. o9.Part1 = mas
  184. o13.Name = "OriginalSize"
  185. o13.Parent = mas
  186. o13.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  187. o14.Name = "LeftWrist"
  188. o14.Parent = mas
  189. o14.C0 = CFrame.new(-0.0016657114, -0.682255626, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  190. o14.C1 = CFrame.new(-0.000386238098, 0.0579008311, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. o14.Part0 = mas
  192. o14.Part1 = mas
  193. o15.Name = "FireParticle"
  194. o15.Parent = mas
  195. o15.Rotation = NumberRange.new(100000,100000)
  196. o15.Size = NumberSequence.new(1.1731845140457,0.75,0.3846150636673,0)
  197. o15.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0, 0))
  198. o15.LightEmission = 0.75
  199. o15.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  200. o15.ZOffset = 1
  201. o15.Acceleration = Vector3.new(0, 300, 0)
  202. o15.Lifetime = NumberRange.new(0.20000000298023,0.20000000298023)
  203. o15.Rate = 200
  204. o15.RotSpeed = NumberRange.new(1,1)
  205. o15.Speed = NumberRange.new(0,0)
  206. o16.Parent = o15
  207. table.insert(cors,coroutine.create(function()
  208. wait()
  209. runDummyScript(function()
  210. while true do
  211.  
  212. script.Parent.Enabled = false
  213.  
  214. wait(20)
  215.  
  216. script.Parent.Enabled = true
  217.  
  218. wait(5)
  219.  
  220. end
  221. end,o16)
  222. end))
  223. o20.Name = "OriginalSize"
  224. o20.Parent = mas
  225. o20.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  226. o21.Name = "Damage Script"
  227. o21.Parent = mas
  228. table.insert(cors,coroutine.create(function()
  229. wait()
  230. runDummyScript(function()
  231. function onTouched(hit)
  232. local human = hit.Parent:findFirstChild("Humanoid")
  233. if (human ~= nil) then
  234. human.Health = human.Health - 5 -- Change the amount to change the damage.
  235. end
  236. end
  237. script.Parent.Touched:connect(onTouched)
  238. end,o21)
  239. end))
  240. o22.Name = "LeftElbow"
  241. o22.Parent = mas
  242. o22.C0 = CFrame.new(-0.00166511536, -0.263139546, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  243. o22.C1 = CFrame.new(-0.0016657114, 0.122950554, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  244. o22.Part0 = mas
  245. o22.Part1 = mas
  246. o22.CurrentAngle = -0.0043710088357329
  247. o23.Name = "Damage Script"
  248. o23.Parent = mas
  249. table.insert(cors,coroutine.create(function()
  250. wait()
  251. runDummyScript(function()
  252. function onTouched(hit)
  253. local human = hit.Parent:findFirstChild("Humanoid")
  254. if (human ~= nil) then
  255. human.Health = human.Health - 20 -- Change the amount to change the damage.
  256. end
  257. end
  258. script.Parent.Touched:connect(onTouched)
  259. end,o23)
  260. end))
  261. o24.Parent = o23
  262. table.insert(cors,coroutine.create(function()
  263. wait()
  264. runDummyScript(function()
  265. while true do
  266.  
  267. script.Parent.Disabled = true
  268.  
  269. wait(20)
  270.  
  271. script.Parent.Disabled = false
  272.  
  273. wait(5)
  274.  
  275. end
  276. end,o24)
  277. end))
  278. o29.Name = "OriginalSize"
  279. o29.Parent = mas
  280. o29.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  281. o30.Name = "LeftKnee"
  282. o30.Parent = mas
  283. o30.C0 = CFrame.new(-0.00382620096, -0.264486194, 0.000586740673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  284. o30.C1 = CFrame.new(-0.00382620096, 0.289868593, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  285. o30.Part0 = mas
  286. o30.Part1 = mas
  287. o30.CurrentAngle = 3.7316322476499e-08
  288. o35.Name = "LeftShoulder"
  289. o35.Parent = mas
  290. o35.C0 = CFrame.new(-1.24955308, 0.556408584, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  291. o35.C1 = CFrame.new(0.247964978, 0.456732988, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  292. o35.Part0 = mas
  293. o35.Part1 = mas
  294. o35.CurrentAngle = -0.4555284678936
  295. o36.Name = "OriginalSize"
  296. o36.Parent = mas
  297. o36.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  298. o40.Name = "OriginalSize"
  299. o40.Parent = mas
  300. o40.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  301. o41.Name = "LeftHip"
  302. o41.Parent = mas
  303. o41.C0 = CFrame.new(-0.50451982, -0.243062243, 0.00122789107, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  304. o41.C1 = CFrame.new(-0.00382620096, 0.4851138, 0.000686740503, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  305. o41.Part0 = mas
  306. o41.Part1 = mas
  307. o41.CurrentAngle = -0.38807913661003
  308. o50.Name = "Root"
  309. o50.Parent = mas
  310. o50.C1 = CFrame.new(0.000280171633, 0.133037761, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  311. o50.Part0 = o166
  312. o50.Part1 = mas
  313. o50.CurrentAngle = 0.067971117794514
  314. o51.Name = "OriginalSize"
  315. o51.Parent = mas
  316. o51.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  317. o52.Name = "Read me"
  318. o52.Parent = o2
  319. table.insert(cors,coroutine.create(function()
  320. wait()
  321. runDummyScript(function()
  322. --| Help for R15 model Zombie |--
  323. --
  324. -- To edit the zombie's damage go to LeftLowerArm/RightLowerArm > Damage Script > human.Health = human.Health - 5
  325. -- Edit the number to whatever you'd like
  326. -- The player will recieve damage from the LeftLowerArm and RightLowerArm
  327. -- To edit the walkspeed go to Humanoid > Scroll to the bottom > Edit the number shown after WalkSpeed
  328. -- You can also edit max health and spawn health under Humanoid > game
  329. --
  330. -- Have fun!
  331. --
  332. -- ImFarAway
  333. end,o52)
  334. end))
  335. o55.Name = "OriginalSize"
  336. o55.Parent = mas
  337. o55.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  338. o56.Name = "RightAnkle"
  339. o56.Parent = mas
  340. o56.C0 = CFrame.new(0.00382620096, -0.710731506, 0.000283418223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  341. o56.C1 = CFrame.new(0.00901681185, 0.0318431854, 0.000155551359, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  342. o56.Part0 = mas
  343. o56.Part1 = mas
  344. o56.CurrentAngle = -0.28917965292931
  345. o57.Name = "RightFoot Terrain Joint"
  346. o57.Parent = mas
  347. o57.Part1 = mas
  348. o58.Name = "RightFoot Terrain Joint"
  349. o58.Parent = mas
  350. o58.Part1 = mas
  351. o62.Name = "OriginalSize"
  352. o62.Parent = mas
  353. o62.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  354. o63.Name = "RightWrist"
  355. o63.Parent = mas
  356. o63.C0 = CFrame.new(0.00214457512, -0.682049513, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  357. o63.C1 = CFrame.new(0.000865101814, 0.058106944, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  358. o63.Part0 = mas
  359. o63.Part1 = mas
  360. o64.Name = "FireParticle"
  361. o64.Parent = mas
  362. o64.Rotation = NumberRange.new(100000,100000)
  363. o64.Size = NumberSequence.new(1.1731845140457,0.75,0.3846150636673,0)
  364. o64.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0, 0))
  365. o64.Enabled = false
  366. o64.LightEmission = 0.75
  367. o64.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  368. o64.ZOffset = 1
  369. o64.Acceleration = Vector3.new(0, 300, 0)
  370. o64.Lifetime = NumberRange.new(0.20000000298023,0.20000000298023)
  371. o64.Rate = 200
  372. o64.RotSpeed = NumberRange.new(1,1)
  373. o64.Speed = NumberRange.new(0,0)
  374. o65.Parent = o64
  375. table.insert(cors,coroutine.create(function()
  376. wait()
  377. runDummyScript(function()
  378. while true do
  379.  
  380. script.Parent.Enabled = false
  381.  
  382. wait(20)
  383.  
  384. script.Parent.Enabled = true
  385.  
  386. wait(5)
  387.  
  388. end
  389. end,o65)
  390. end))
  391. o69.Name = "OriginalSize"
  392. o69.Parent = mas
  393. o69.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  394. o70.Name = "Damage Script"
  395. o70.Parent = mas
  396. table.insert(cors,coroutine.create(function()
  397. wait()
  398. runDummyScript(function()
  399. function onTouched(hit)
  400. local human = hit.Parent:findFirstChild("Humanoid")
  401. if (human ~= nil) then
  402. human.Health = human.Health - 5 -- Change the amount to change the damage.
  403. end
  404. end
  405. script.Parent.Touched:connect(onTouched)
  406. end,o70)
  407. end))
  408. o71.Name = "RightElbow"
  409. o71.Parent = mas
  410. o71.C0 = CFrame.new(0.00214397907, -0.263139546, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  411. o71.C1 = CFrame.new(0.00214457512, 0.122950554, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  412. o71.Part0 = mas
  413. o71.Part1 = mas
  414. o71.CurrentAngle = -0.008651458658278
  415. o72.Name = "Damage Script"
  416. o72.Parent = mas
  417. o72.Disabled = true
  418. table.insert(cors,coroutine.create(function()
  419. wait()
  420. runDummyScript(function()
  421. function onTouched(hit)
  422. local human = hit.Parent:findFirstChild("Humanoid")
  423. if (human ~= nil) then
  424. human.Health = human.Health - 20 -- Change the amount to change the damage.
  425. end
  426. end
  427. script.Parent.Touched:connect(onTouched)
  428. end,o72)
  429. end))
  430. o73.Parent = o72
  431. table.insert(cors,coroutine.create(function()
  432. wait()
  433. runDummyScript(function()
  434. while true do
  435.  
  436. script.Parent.Disabled = true
  437.  
  438. wait(20)
  439.  
  440. script.Parent.Disabled = false
  441.  
  442. wait(5)
  443.  
  444. end
  445. end,o73)
  446. end))
  447. o78.Name = "OriginalSize"
  448. o78.Parent = mas
  449. o78.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  450. o79.Name = "RightKnee"
  451. o79.Parent = mas
  452. o79.C0 = CFrame.new(0.00382620096, -0.265086174, 0.000426991843, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  453. o79.C1 = CFrame.new(0.00382620096, 0.289268613, 0.000145851634, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  454. o79.Part0 = mas
  455. o79.Part1 = mas
  456. o79.CurrentAngle = -6.3460618093814e-08
  457. o84.Name = "RightShoulder"
  458. o84.Parent = mas
  459. o84.C0 = CFrame.new(1.25031853, 0.5565539, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  460. o84.C1 = CFrame.new(-0.24787569, 0.456878304, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  461. o84.Part0 = mas
  462. o84.Part1 = mas
  463. o84.CurrentAngle = 0.84690576791763
  464. o85.Name = "OriginalSize"
  465. o85.Parent = mas
  466. o85.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  467. o89.Name = "OriginalSize"
  468. o89.Parent = mas
  469. o89.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  470. o90.Name = "RightHip"
  471. o90.Parent = mas
  472. o90.C0 = CFrame.new(0.505080223, -0.243262246, 0.00102789141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  473. o90.C1 = CFrame.new(0.00382620096, 0.484913796, 0.000486815348, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  474. o90.Part0 = mas
  475. o90.Part1 = mas
  476. o90.CurrentAngle = 0.35391557216644
  477. o91.Parent = o2
  478. table.insert(cors,coroutine.create(function()
  479. wait()
  480. runDummyScript(function()
  481. local larm = script.Parent:FindFirstChild("HumanoidRootPart")
  482. local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
  483.  
  484. function findNearestTorso(pos)
  485. local list = game.Workspace:children()
  486. local torso = nil
  487. local dist = 10000
  488. local temp = nil
  489. local human = nil
  490. local temp2 = nil
  491. for x = 1, #list do
  492. temp2 = list[x]
  493. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  494. temp = temp2:findFirstChild("HumanoidRootPart")
  495. human = temp2:findFirstChild("Humanoid")
  496. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  497. if (temp.Position - pos).magnitude < dist then
  498. torso = temp
  499. dist = (temp.Position - pos).magnitude
  500. end
  501. end
  502. end
  503. end
  504. return torso
  505. end
  506.  
  507.  
  508.  
  509.  
  510. while true do
  511. wait(math.random(1,5))
  512. local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
  513. if target ~= nil then
  514. script.Parent.Humanoid:MoveTo(target.Position, target)
  515. end
  516.  
  517. end
  518.  
  519. end,o91)
  520. end))
  521. o92.Parent = o2
  522. o92.Torso = o166
  523. o92.WalkToPart = mas
  524. o92.Health = 10000
  525. o92.MaxHealth = 10000
  526. o92.WalkSpeed = 13
  527. o94.Parent = o92
  528. table.insert(cors,coroutine.create(function()
  529. wait()
  530. runDummyScript(function()
  531. while true do
  532.  
  533. script.Parent.WalkSpeed = 13
  534.  
  535. wait(20)
  536.  
  537. script.Parent.WalkSpeed = 20
  538.  
  539. wait(5)
  540.  
  541. end
  542. end,o94)
  543. end))
  544. o104.Name = "Waist"
  545. o104.Parent = mas
  546. o104.C0 = CFrame.new(0.000280171633, 0.537143946, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547. o104.C1 = CFrame.new(0.000338107347, -0.463463932, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  548. o104.Part0 = mas
  549. o104.Part1 = mas
  550. o104.CurrentAngle = -0.10320875048637
  551. o105.Name = "OriginalSize"
  552. o105.Parent = mas
  553. o105.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  554. o106.Name = "Darkness"
  555. o106.Parent = mas
  556. o106.Transparency = NumberSequence.new(1,0.98000001907349,0.96791446208954,0.97326201200485,0.98000001907349,1)
  557. o106.Rotation = NumberRange.new(-100,100)
  558. o106.Size = NumberSequence.new(10,10)
  559. o106.Color = ColorSequence.new(Color3.new(0.831373, 0.454902, 0.0196078),Color3.new(0.831373, 0.454902, 0.0196078))
  560. o106.LightEmission = 0.5
  561. o106.Texture = "rbxassetid://75202463"
  562. o106.ZOffset = 1
  563. o106.Rate = 3
  564. o106.Speed = NumberRange.new(0,0)
  565. o107.Name = "Animate"
  566. o107.Parent = o2
  567. table.insert(cors,coroutine.create(function()
  568. wait()
  569. runDummyScript(function()
  570. function waitForChild(parent, childName)
  571. local child = parent:findFirstChild(childName)
  572. if child then return child end
  573. while true do
  574. child = parent.ChildAdded:wait()
  575. if child.Name==childName then return child end
  576. end
  577. end
  578.  
  579. local Figure = script.Parent
  580. local Humanoid = waitForChild(Figure, "Humanoid")
  581. local pose = "Standing"
  582.  
  583. local currentAnim = ""
  584. local currentAnimInstance = nil
  585. local currentAnimTrack = nil
  586. local currentAnimKeyframeHandler = nil
  587. local currentAnimSpeed = 1.0
  588. local animTable = {}
  589. local animNames = {
  590. idle = {
  591. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  592. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  593. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  594. },
  595. walk = {
  596. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  597. },
  598. run = {
  599. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  600. },
  601. swim = {
  602. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  603. },
  604. swimidle = {
  605. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  606. },
  607. jump = {
  608. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  609. },
  610. fall = {
  611. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  612. },
  613. climb = {
  614. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  615. },
  616. sit = {
  617. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  618. },
  619. toolnone = {
  620. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  621. },
  622. toolslash = {
  623. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  624. -- { id = "slash.xml", weight = 10 }
  625. },
  626. toollunge = {
  627. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  628. },
  629. wave = {
  630. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  631. },
  632. point = {
  633. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  634. },
  635. dance = {
  636. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  637. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  638. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  639. },
  640. dance2 = {
  641. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  642. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  643. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  644. },
  645. dance3 = {
  646. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  647. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  648. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  649. },
  650. laugh = {
  651. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  652. },
  653. cheer = {
  654. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  655. },
  656. }
  657.  
  658. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  659. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  660.  
  661. math.randomseed(tick())
  662.  
  663. function configureAnimationSet(name, fileList)
  664. if (animTable[name] ~= nil) then
  665. for _, connection in pairs(animTable[name].connections) do
  666. connection:disconnect()
  667. end
  668. end
  669. animTable[name] = {}
  670. animTable[name].count = 0
  671. animTable[name].totalWeight = 0
  672. animTable[name].connections = {}
  673.  
  674. -- check for config values
  675. local config = script:FindFirstChild(name)
  676. if (config ~= nil) then
  677. -- print("Loading anims " .. name)
  678. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  679. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  680. local idx = 1
  681. for _, childPart in pairs(config:GetChildren()) do
  682. if (childPart:IsA("Animation")) then
  683. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  684. animTable[name][idx] = {}
  685. animTable[name][idx].anim = childPart
  686. local weightObject = childPart:FindFirstChild("Weight")
  687. if (weightObject == nil) then
  688. animTable[name][idx].weight = 1
  689. else
  690. animTable[name][idx].weight = weightObject.Value
  691. end
  692. animTable[name].count = animTable[name].count + 1
  693. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  694. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  695. idx = idx + 1
  696. end
  697. end
  698. end
  699.  
  700. -- fallback to defaults
  701. if (animTable[name].count <= 0) then
  702. for idx, anim in pairs(fileList) do
  703. animTable[name][idx] = {}
  704. animTable[name][idx].anim = Instance.new("Animation")
  705. animTable[name][idx].anim.Name = name
  706. animTable[name][idx].anim.AnimationId = anim.id
  707. animTable[name][idx].weight = anim.weight
  708. animTable[name].count = animTable[name].count + 1
  709. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  710. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  711. end
  712. end
  713. end
  714.  
  715. -- Setup animation objects
  716. function scriptChildModified(child)
  717. local fileList = animNames[child.Name]
  718. if (fileList ~= nil) then
  719. configureAnimationSet(child.Name, fileList)
  720. end
  721. end
  722.  
  723. script.ChildAdded:connect(scriptChildModified)
  724. script.ChildRemoved:connect(scriptChildModified)
  725.  
  726.  
  727. for name, fileList in pairs(animNames) do
  728. configureAnimationSet(name, fileList)
  729. end
  730.  
  731. -- ANIMATION
  732.  
  733. -- declarations
  734. local toolAnim = "None"
  735. local toolAnimTime = 0
  736.  
  737. local jumpAnimTime = 0
  738. local jumpAnimDuration = 0.31
  739.  
  740. local toolTransitionTime = 0.1
  741. local fallTransitionTime = 0.2
  742.  
  743. -- functions
  744.  
  745. function stopAllAnimations()
  746. local oldAnim = currentAnim
  747.  
  748. -- return to idle if finishing an emote
  749. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  750. oldAnim = "idle"
  751. end
  752.  
  753. currentAnim = ""
  754. currentAnimInstance = nil
  755. if (currentAnimKeyframeHandler ~= nil) then
  756. currentAnimKeyframeHandler:disconnect()
  757. end
  758.  
  759. if (currentAnimTrack ~= nil) then
  760. currentAnimTrack:Stop()
  761. currentAnimTrack:Destroy()
  762. currentAnimTrack = nil
  763. end
  764. return oldAnim
  765. end
  766.  
  767. function setAnimationSpeed(speed)
  768. if speed ~= currentAnimSpeed then
  769. currentAnimSpeed = speed
  770. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  771. end
  772. end
  773.  
  774. function keyFrameReachedFunc(frameName)
  775. if (frameName == "End") then
  776. -- print("Keyframe : ".. frameName)
  777.  
  778. local repeatAnim = currentAnim
  779. -- return to idle if finishing an emote
  780. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  781. repeatAnim = "idle"
  782. end
  783.  
  784. local animSpeed = currentAnimSpeed
  785. playAnimation(repeatAnim, 0.15, Humanoid)
  786. setAnimationSpeed(animSpeed)
  787. end
  788. end
  789.  
  790. -- Preload animations
  791. function playAnimation(animName, transitionTime, humanoid)
  792.  
  793. local roll = math.random(1, animTable[animName].totalWeight)
  794. local origRoll = roll
  795. local idx = 1
  796. while (roll > animTable[animName][idx].weight) do
  797. roll = roll - animTable[animName][idx].weight
  798. idx = idx + 1
  799. end
  800.  
  801. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  802.  
  803. local anim = animTable[animName][idx].anim
  804.  
  805. -- switch animation
  806. if (anim ~= currentAnimInstance) then
  807.  
  808. if (currentAnimTrack ~= nil) then
  809. currentAnimTrack:Stop(transitionTime)
  810. currentAnimTrack:Destroy()
  811. end
  812.  
  813. currentAnimSpeed = 1.0
  814.  
  815. -- load it to the humanoid; get AnimationTrack
  816. currentAnimTrack = humanoid:LoadAnimation(anim)
  817.  
  818. -- play the animation
  819. currentAnimTrack:Play(transitionTime)
  820. currentAnim = animName
  821. currentAnimInstance = anim
  822.  
  823. -- set up keyframe name triggers
  824. if (currentAnimKeyframeHandler ~= nil) then
  825. currentAnimKeyframeHandler:disconnect()
  826. end
  827. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  828.  
  829. end
  830.  
  831. end
  832.  
  833. -------------------------------------------------------------------------------------------
  834. -------------------------------------------------------------------------------------------
  835.  
  836. local toolAnimName = ""
  837. local toolAnimTrack = nil
  838. local toolAnimInstance = nil
  839. local currentToolAnimKeyframeHandler = nil
  840.  
  841. function toolKeyFrameReachedFunc(frameName)
  842. if (frameName == "End") then
  843. -- print("Keyframe : ".. frameName)
  844. playToolAnimation(toolAnimName, 0.0, Humanoid)
  845. end
  846. end
  847.  
  848.  
  849. function playToolAnimation(animName, transitionTime, humanoid)
  850.  
  851. local roll = math.random(1, animTable[animName].totalWeight)
  852. local origRoll = roll
  853. local idx = 1
  854. while (roll > animTable[animName][idx].weight) do
  855. roll = roll - animTable[animName][idx].weight
  856. idx = idx + 1
  857. end
  858. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  859. local anim = animTable[animName][idx].anim
  860.  
  861. if (toolAnimInstance ~= anim) then
  862.  
  863. if (toolAnimTrack ~= nil) then
  864. toolAnimTrack:Stop()
  865. toolAnimTrack:Destroy()
  866. transitionTime = 0
  867. end
  868.  
  869. -- load it to the humanoid; get AnimationTrack
  870. toolAnimTrack = humanoid:LoadAnimation(anim)
  871.  
  872. -- play the animation
  873. toolAnimTrack:Play(transitionTime)
  874. toolAnimName = animName
  875. toolAnimInstance = anim
  876.  
  877. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  878. end
  879. end
  880.  
  881. function stopToolAnimations()
  882. local oldAnim = toolAnimName
  883.  
  884. if (currentToolAnimKeyframeHandler ~= nil) then
  885. currentToolAnimKeyframeHandler:disconnect()
  886. end
  887.  
  888. toolAnimName = ""
  889. toolAnimInstance = nil
  890. if (toolAnimTrack ~= nil) then
  891. toolAnimTrack:Stop()
  892. toolAnimTrack:Destroy()
  893. toolAnimTrack = nil
  894. end
  895.  
  896.  
  897. return oldAnim
  898. end
  899.  
  900. -------------------------------------------------------------------------------------------
  901. -------------------------------------------------------------------------------------------
  902.  
  903.  
  904. function onRunning(speed)
  905. if speed > 0.01 then
  906. local scale = 15.0
  907. playAnimation("walk", 0.1, Humanoid)
  908. setAnimationSpeed(speed / scale)
  909. pose = "Running"
  910. else
  911. playAnimation("idle", 0.1, Humanoid)
  912. pose = "Standing"
  913. end
  914. end
  915.  
  916. function onDied()
  917. pose = "Dead"
  918. end
  919.  
  920. function onJumping()
  921. playAnimation("jump", 0.1, Humanoid)
  922. jumpAnimTime = jumpAnimDuration
  923. pose = "Jumping"
  924. end
  925.  
  926. function onClimbing(speed)
  927. local scale = 5.0
  928. playAnimation("climb", 0.1, Humanoid)
  929. setAnimationSpeed(speed / scale)
  930. pose = "Climbing"
  931. end
  932.  
  933. function onGettingUp()
  934. pose = "GettingUp"
  935. end
  936.  
  937. function onFreeFall()
  938. if (jumpAnimTime <= 0) then
  939. playAnimation("fall", fallTransitionTime, Humanoid)
  940. end
  941. pose = "FreeFall"
  942. end
  943.  
  944. function onFallingDown()
  945. pose = "FallingDown"
  946. end
  947.  
  948. function onSeated()
  949. pose = "Seated"
  950. end
  951.  
  952. function onPlatformStanding()
  953. pose = "PlatformStanding"
  954. end
  955.  
  956. function onSwimming(speed)
  957. if speed > 1.00 then
  958. local scale = 10.0
  959. playAnimation("swim", 0.4, Humanoid)
  960. setAnimationSpeed(speed / scale)
  961. pose = "Swimming"
  962. else
  963. playAnimation("swimidle", 0.4, Humanoid)
  964. pose = "Standing"
  965. end
  966. end
  967.  
  968. function getTool()
  969. for _, kid in ipairs(Figure:GetChildren()) do
  970. if kid.className == "Tool" then return kid end
  971. end
  972. return nil
  973. end
  974.  
  975. function getToolAnim(tool)
  976. for _, c in ipairs(tool:GetChildren()) do
  977. if c.Name == "toolanim" and c.className == "StringValue" then
  978. return c
  979. end
  980. end
  981. return nil
  982. end
  983.  
  984. function animateTool()
  985.  
  986. if (toolAnim == "None") then
  987. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  988. return
  989. end
  990.  
  991. if (toolAnim == "Slash") then
  992. playToolAnimation("toolslash", 0, Humanoid)
  993. return
  994. end
  995.  
  996. if (toolAnim == "Lunge") then
  997. playToolAnimation("toollunge", 0, Humanoid)
  998. return
  999. end
  1000. end
  1001.  
  1002. function moveSit()
  1003. RightShoulder.MaxVelocity = 0.15
  1004. LeftShoulder.MaxVelocity = 0.15
  1005. RightShoulder:SetDesiredAngle(3.14 /2)
  1006. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1007. RightHip:SetDesiredAngle(3.14 /2)
  1008. LeftHip:SetDesiredAngle(-3.14 /2)
  1009. end
  1010.  
  1011. local lastTick = 0
  1012.  
  1013. function move(time)
  1014. local amplitude = 1
  1015. local frequency = 1
  1016. local deltaTime = time - lastTick
  1017. lastTick = time
  1018.  
  1019. local climbFudge = 0
  1020. local setAngles = false
  1021.  
  1022. if (jumpAnimTime > 0) then
  1023. jumpAnimTime = jumpAnimTime - deltaTime
  1024. end
  1025.  
  1026. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1027. playAnimation("fall", fallTransitionTime, Humanoid)
  1028. elseif (pose == "Seated") then
  1029. playAnimation("sit", 0.5, Humanoid)
  1030. return
  1031. elseif (pose == "Running") then
  1032. playAnimation("walk", 0.1, Humanoid)
  1033. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1034. stopAllAnimations()
  1035. amplitude = 0.1
  1036. frequency = 1
  1037. setAngles = true
  1038. end
  1039.  
  1040. -- Tool Animation handling
  1041. local tool = getTool()
  1042. if tool then
  1043.  
  1044. animStringValueObject = getToolAnim(tool)
  1045.  
  1046. if animStringValueObject then
  1047. toolAnim = animStringValueObject.Value
  1048. -- message recieved, delete StringValue
  1049. animStringValueObject.Parent = nil
  1050. toolAnimTime = time + .3
  1051. end
  1052.  
  1053. if time > toolAnimTime then
  1054. toolAnimTime = 0
  1055. toolAnim = "None"
  1056. end
  1057.  
  1058. animateTool()
  1059. else
  1060. stopToolAnimations()
  1061. toolAnim = "None"
  1062. toolAnimInstance = nil
  1063. toolAnimTime = 0
  1064. end
  1065. end
  1066.  
  1067. -- connect events
  1068. Humanoid.Died:connect(onDied)
  1069. Humanoid.Running:connect(onRunning)
  1070. Humanoid.Jumping:connect(onJumping)
  1071. Humanoid.Climbing:connect(onClimbing)
  1072. Humanoid.GettingUp:connect(onGettingUp)
  1073. Humanoid.FreeFalling:connect(onFreeFall)
  1074. Humanoid.FallingDown:connect(onFallingDown)
  1075. Humanoid.Seated:connect(onSeated)
  1076. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1077. Humanoid.Swimming:connect(onSwimming)
  1078.  
  1079. -- setup emote chat hook
  1080. script.msg.Changed:connect(function(msg)
  1081. script.msg.Value = ""
  1082. local emote = ""
  1083. if (string.sub(msg, 1, 3) == "/e ") then
  1084. emote = string.sub(msg, 4)
  1085. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1086. emote = string.sub(msg, 8)
  1087. end
  1088.  
  1089. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1090. playAnimation(emote, 0.1, Humanoid)
  1091. end
  1092. -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1093. end)
  1094.  
  1095.  
  1096. -- main program
  1097.  
  1098. local runService = game:service("RunService");
  1099.  
  1100. -- print("bottom")
  1101.  
  1102. -- initialize to idle
  1103. playAnimation("idle", 0.1, Humanoid)
  1104. pose = "Standing"
  1105.  
  1106. while Figure.Parent~=nil do
  1107. local _, time = wait(0.1)
  1108. move(time)
  1109. end
  1110.  
  1111.  
  1112.  
  1113. end,o107)
  1114. end))
  1115. o108.Name = "cheer"
  1116. o108.Parent = o107
  1117. o109.Name = "CheerAnim"
  1118. o109.Parent = o108
  1119. o109.AnimationId = "http://www.roblox.com/asset/?id=507770677"
  1120. o110.Name = "climb"
  1121. o110.Parent = o107
  1122. o111.Name = "ClimbAnim"
  1123. o111.Parent = o110
  1124. o111.AnimationId = "http://www.roblox.com/asset/?id=1083182000"
  1125. o112.Name = "dance"
  1126. o112.Parent = o107
  1127. o113.Name = "Animation1"
  1128. o113.Parent = o112
  1129. o113.AnimationId = "http://www.roblox.com/asset/?id=507771019"
  1130. o114.Name = "Weight"
  1131. o114.Parent = o113
  1132. o114.Value = 10
  1133. o115.Name = "Animation2"
  1134. o115.Parent = o112
  1135. o115.AnimationId = "http://www.roblox.com/asset/?id=507771955"
  1136. o116.Name = "Weight"
  1137. o116.Parent = o115
  1138. o116.Value = 10
  1139. o117.Name = "Animation3"
  1140. o117.Parent = o112
  1141. o117.AnimationId = "http://www.roblox.com/asset/?id=507772104"
  1142. o118.Name = "Weight"
  1143. o118.Parent = o117
  1144. o118.Value = 10
  1145. o119.Name = "dance2"
  1146. o119.Parent = o107
  1147. o120.Name = "Animation1"
  1148. o120.Parent = o119
  1149. o120.AnimationId = "http://www.roblox.com/asset/?id=507776043"
  1150. o121.Name = "Weight"
  1151. o121.Parent = o120
  1152. o121.Value = 10
  1153. o122.Name = "Animation2"
  1154. o122.Parent = o119
  1155. o122.AnimationId = "http://www.roblox.com/asset/?id=507776720"
  1156. o123.Name = "Weight"
  1157. o123.Parent = o122
  1158. o123.Value = 10
  1159. o124.Name = "Animation3"
  1160. o124.Parent = o119
  1161. o124.AnimationId = "http://www.roblox.com/asset/?id=507776879"
  1162. o125.Name = "Weight"
  1163. o125.Parent = o124
  1164. o125.Value = 10
  1165. o126.Name = "dance3"
  1166. o126.Parent = o107
  1167. o127.Name = "Animation1"
  1168. o127.Parent = o126
  1169. o127.AnimationId = "http://www.roblox.com/asset/?id=507777268"
  1170. o128.Name = "Weight"
  1171. o128.Parent = o127
  1172. o128.Value = 10
  1173. o129.Name = "Animation2"
  1174. o129.Parent = o126
  1175. o129.AnimationId = "http://www.roblox.com/asset/?id=507777451"
  1176. o130.Name = "Weight"
  1177. o130.Parent = o129
  1178. o130.Value = 10
  1179. o131.Name = "Animation3"
  1180. o131.Parent = o126
  1181. o131.AnimationId = "http://www.roblox.com/asset/?id=507777623"
  1182. o132.Name = "Weight"
  1183. o132.Parent = o131
  1184. o132.Value = 10
  1185. o133.Name = "fall"
  1186. o133.Parent = o107
  1187. o134.Name = "FallAnim"
  1188. o134.Parent = o133
  1189. o134.AnimationId = "http://www.roblox.com/asset/?id=1083189019"
  1190. o135.Name = "idle"
  1191. o135.Parent = o107
  1192. o136.Name = "Animation1"
  1193. o136.Parent = o135
  1194. o136.AnimationId = "http://www.roblox.com/asset/?id=1083195517"
  1195. o137.Name = "Weight"
  1196. o137.Parent = o136
  1197. o137.Value = 9
  1198. o138.Name = "Animation2"
  1199. o138.Parent = o135
  1200. o138.AnimationId = "http://www.roblox.com/asset/?id=1083214717"
  1201. o139.Name = "Weight"
  1202. o139.Parent = o138
  1203. o139.Value = 1
  1204. o140.Name = "CheerAnim"
  1205. o140.Parent = o135
  1206. o140.AnimationId = "http://www.roblox.com/asset/?id=507770677"
  1207. o141.Name = "Weight"
  1208. o141.Parent = o140
  1209. o141.Value = 1
  1210. o142.Name = "jump"
  1211. o142.Parent = o107
  1212. o143.Name = "!ID!"
  1213. o143.Parent = o142
  1214. o143.AnimationId = "http://www.roblox.com/asset/?id=1083218792"
  1215. o144.Name = "laugh"
  1216. o144.Parent = o107
  1217. o145.Name = "LaughAnim"
  1218. o145.Parent = o144
  1219. o145.AnimationId = "http://www.roblox.com/asset/?id=507770818"
  1220. o146.Name = "point"
  1221. o146.Parent = o107
  1222. o147.Name = "PointAnim"
  1223. o147.Parent = o146
  1224. o147.AnimationId = "http://www.roblox.com/asset/?id=507770453"
  1225. o148.Name = "run"
  1226. o148.Parent = o107
  1227. o149.Name = "RunAnim"
  1228. o149.Parent = o148
  1229. o149.AnimationId = "http://www.roblox.com/asset/?id=1083216690"
  1230. o150.Name = "sit"
  1231. o150.Parent = o107
  1232. o151.Name = "SitAnim"
  1233. o151.Parent = o150
  1234. o151.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  1235. o152.Name = "swim"
  1236. o152.Parent = o107
  1237. o153.Name = "Swim"
  1238. o153.Parent = o152
  1239. o153.AnimationId = "http://www.roblox.com/asset/?id=1083222527"
  1240. o154.Name = "swimidle"
  1241. o154.Parent = o107
  1242. o155.Name = "SwimIdle"
  1243. o155.Parent = o154
  1244. o155.AnimationId = "http://www.roblox.com/asset/?id=1083225406"
  1245. o156.Name = "toollunge"
  1246. o156.Parent = o107
  1247. o157.Name = "ToolLungeAnim"
  1248. o157.Parent = o156
  1249. o157.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1250. o158.Name = "toolnone"
  1251. o158.Parent = o107
  1252. o159.Name = "ToolNoneAnim"
  1253. o159.Parent = o158
  1254. o159.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1255. o160.Name = "toolslash"
  1256. o160.Parent = o107
  1257. o161.Name = "ToolSlashAnim"
  1258. o161.Parent = o160
  1259. o161.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1260. o162.Name = "walk"
  1261. o162.Parent = o107
  1262. o163.Name = "WalkAnim"
  1263. o163.Parent = o162
  1264. o163.AnimationId = "http://www.roblox.com/asset/?id=1083178339"
  1265. o164.Name = "wave"
  1266. o164.Parent = o107
  1267. o165.Name = "WaveAnim"
  1268. o165.Parent = o164
  1269. o165.AnimationId = "http://www.roblox.com/asset/?id=507770239"
  1270. o166.Name = "HumanoidRootPart"
  1271. o166.Parent = o2
  1272. o166.Material = Enum.Material.Metal
  1273. o166.BrickColor = BrickColor.new("Black")
  1274. o166.Transparency = 1
  1275. o166.Position = Vector3.new(50.9547386, 2.3499999, 11.0416451)
  1276. o166.Rotation = Vector3.new(-180, -62.2999992, -180)
  1277. o166.CanCollide = false
  1278. o166.Size = Vector3.new(2, 2, 1)
  1279. o166.CFrame = CFrame.new(50.9547386, 2.3499999, 11.0416451, -0.464846224, 1.33575337e-08, -0.885391414, 7.72393705e-09, 1, 1.1031382e-08, 0.885391414, -1.71081116e-09, -0.464846224)
  1280. o166.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1281. o166.Position = Vector3.new(50.9547386, 2.3499999, 11.0416451)
  1282. o168.Name = "OriginalSize"
  1283. o168.Parent = o166
  1284. o168.Value = Vector3.new(2, 2, 1)
  1285. o169.Name = "Head"
  1286. o169.Parent = o2
  1287. o169.Material = Enum.Material.Metal
  1288. o169.BrickColor = BrickColor.new("Black")
  1289. o169.Transparency = 0.99000000953674
  1290. o169.Position = Vector3.new(50.9245872, 4.01740217, 11.3232861)
  1291. o169.Rotation = Vector3.new(-162.479996, -60.0099983, -164.23999)
  1292. o169.FormFactor = Enum.FormFactor.Custom
  1293. o169.Size = Vector3.new(1, 1, 1)
  1294. o169.CFrame = CFrame.new(50.9245872, 4.01740217, 11.3232861, -0.481100708, 0.135804176, -0.866082728, 0.00810051523, 0.988575101, 0.150511637, 0.876627862, 0.0653955266, -0.47670424)
  1295. o169.BottomSurface = Enum.SurfaceType.Smooth
  1296. o169.TopSurface = Enum.SurfaceType.Smooth
  1297. o169.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1298. o169.Position = Vector3.new(50.9245872, 4.01740217, 11.3232861)
  1299. o170.Parent = o169
  1300. o170.MeshId = "http://www.roblox.com/asset?id=419776358"
  1301. o170.MeshType = Enum.MeshType.FileMesh
  1302. o177.Name = "Neck"
  1303. o177.Parent = o169
  1304. o177.C0 = CFrame.new(0.000338107347, 0.806032121, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1305. o177.C1 = CFrame.new(-2.72095203e-05, -0.565615535, 0.00386685133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1306. o177.Part0 = mas
  1307. o177.Part1 = o169
  1308. o177.CurrentAngle = 0.036354959011078
  1309. o178.Name = "OriginalSize"
  1310. o178.Parent = o169
  1311. o178.Value = Vector3.new(1, 1, 1)
  1312. o179.Name = "GettingUp"
  1313. o179.Parent = o169
  1314. o179.Archivable = false
  1315. o179.SoundId = "rbxasset://sounds/action_get_up.mp3"
  1316. o179.Volume = 0.64999997615814
  1317. o180.Name = "Died"
  1318. o180.Parent = o169
  1319. o180.Archivable = false
  1320. o180.SoundId = "rbxasset://sounds/uuhhh.mp3"
  1321. o180.Volume = 0.64999997615814
  1322. o181.Name = "FreeFalling"
  1323. o181.Parent = o169
  1324. o181.Archivable = false
  1325. o181.SoundId = "rbxasset://sounds/action_falling.mp3"
  1326. o181.Volume = 0.64999997615814
  1327. o181.Looped = true
  1328. o182.Name = "Jumping"
  1329. o182.Parent = o169
  1330. o182.Archivable = false
  1331. o182.SoundId = "rbxasset://sounds/action_jump.mp3"
  1332. o182.Volume = 0.64999997615814
  1333. o183.Name = "Landing"
  1334. o183.Parent = o169
  1335. o183.Archivable = false
  1336. o183.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  1337. o183.Volume = 0.64999997615814
  1338. o184.Name = "Splash"
  1339. o184.Parent = o169
  1340. o184.Archivable = false
  1341. o184.SoundId = "rbxasset://sounds/impact_water.mp3"
  1342. o184.Volume = 0.64999997615814
  1343. o185.Name = "Running"
  1344. o185.Parent = o169
  1345. o185.Archivable = false
  1346. o185.Pitch = 1.8500000238419
  1347. o185.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  1348. o185.Volume = 0.64999997615814
  1349. o185.Looped = true
  1350. o186.Name = "Swimming"
  1351. o186.Parent = o169
  1352. o186.Archivable = false
  1353. o186.Pitch = 1.6000000238419
  1354. o186.SoundId = "rbxasset://sounds/action_swim.mp3"
  1355. o186.Volume = 0.64999997615814
  1356. o186.Looped = true
  1357. o187.Name = "Climbing"
  1358. o187.Parent = o169
  1359. o187.Archivable = false
  1360. o187.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  1361. o187.Volume = 0.64999997615814
  1362. o187.Looped = true
  1363. o188.Name = "Sound"
  1364. o188.Parent = o2
  1365. table.insert(cors,coroutine.create(function()
  1366. wait()
  1367. runDummyScript(function()
  1368. --[[
  1369. Author: @spotco
  1370. This script creates sounds which are placed under the character head.
  1371. These sounds are used by the "LocalSound" script.
  1372.  
  1373. To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
  1374. The default Sound script loaded for every character will then be replaced with your copy of the script.
  1375. ]]--
  1376.  
  1377. function CreateNewSound(name, id, looped, pitch, parent)
  1378. local sound = Instance.new("Sound")
  1379. sound.SoundId = id
  1380. sound.Name = name
  1381. sound.archivable = false
  1382. sound.Parent = parent
  1383. sound.Pitch = pitch
  1384. sound.Looped = looped
  1385.  
  1386. sound.MinDistance = 5
  1387. sound.MaxDistance = 150
  1388. sound.Volume = 0.65
  1389.  
  1390. return sound
  1391. end
  1392.  
  1393. local head = script.Parent:FindFirstChild("Head")
  1394. if head == nil then
  1395. error("Sound script parent has no child Head.")
  1396. return
  1397. end
  1398.  
  1399.  
  1400. CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
  1401. CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
  1402. CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
  1403. CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
  1404. CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
  1405. CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
  1406. CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
  1407. CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
  1408. CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
  1409. end,o188)
  1410. end))
  1411. o189.Name = "LocalSound"
  1412. o189.Parent = o188
  1413. table.insert(cors,coroutine.create(function()
  1414. wait()
  1415. runDummyScript(function()
  1416. --[[
  1417. Author: @spotco
  1418. This script runs locally for the player of the given humanoid.
  1419. This script triggers humanoid sound play/pause actions locally.
  1420.  
  1421. The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
  1422. immediately for the player and is replicated to all other players.
  1423.  
  1424. This script is optimized to reduce network traffic through minimizing the amount of property replication.
  1425. ]]--
  1426.  
  1427. --All sounds are referenced by this ID
  1428. local SFX = {
  1429. Died = 0;
  1430. Running = 1;
  1431. Swimming = 2;
  1432. Climbing = 3,
  1433. Jumping = 4;
  1434. GettingUp = 5;
  1435. FreeFalling = 6;
  1436. FallingDown = 7;
  1437. Landing = 8;
  1438. Splash = 9;
  1439. }
  1440.  
  1441. local Humanoid = nil
  1442. local Head = nil
  1443.  
  1444. --SFX ID to Sound object
  1445. local Sounds = {}
  1446.  
  1447. do
  1448. local Figure = script.Parent.Parent
  1449. Head = Figure:WaitForChild("Head")
  1450. while not Humanoid do
  1451. for _,NewHumanoid in pairs(Figure:GetChildren()) do
  1452. if NewHumanoid:IsA("Humanoid") then
  1453. Humanoid = NewHumanoid
  1454. break
  1455. end
  1456. end
  1457. Figure.ChildAdded:wait()
  1458. end
  1459.  
  1460. Sounds[SFX.Died] = Head:WaitForChild("Died")
  1461. Sounds[SFX.Running] = Head:WaitForChild("Running")
  1462. Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
  1463. Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
  1464. Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
  1465. Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
  1466. Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
  1467. Sounds[SFX.Landing] = Head:WaitForChild("Landing")
  1468. Sounds[SFX.Splash] = Head:WaitForChild("Splash")
  1469. end
  1470.  
  1471. local Util
  1472. Util = {
  1473.  
  1474. --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
  1475. YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
  1476. --(y - y1)/(x - x1) = m
  1477. local m = (pt1y - pt2y) / (pt1x - pt2x)
  1478. --float b = pt1.y - m * pt1.x;
  1479. local b = (pt1y - m * pt1x)
  1480. return m * x + b
  1481. end;
  1482.  
  1483. --Clamps the value of "val" between the "min" and "max"
  1484. Clamp = function(val,min,max)
  1485. return math.min(max,math.max(min,val))
  1486. end;
  1487.  
  1488. --Gets the horizontal (x,z) velocity magnitude of the given part
  1489. HorizontalSpeed = function(Head)
  1490. local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
  1491. return hVel.magnitude
  1492. end;
  1493.  
  1494. --Gets the vertical (y) velocity magnitude of the given part
  1495. VerticalSpeed = function(Head)
  1496. return math.abs(Head.Velocity.Y)
  1497. end;
  1498.  
  1499. --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
  1500. --If these properties are enabled, use them.
  1501. Play = function(sound)
  1502. if sound.TimePosition ~= 0 then
  1503. sound.TimePosition = 0
  1504. end
  1505. if not sound.IsPlaying then
  1506. sound.Playing = true
  1507. end
  1508. end;
  1509. Pause = function(sound)
  1510. if sound.IsPlaying then
  1511. sound.Playing = false
  1512. end
  1513. end;
  1514. Resume = function(sound)
  1515. if not sound.IsPlaying then
  1516. sound.Playing = true
  1517. end
  1518. end;
  1519. Stop = function(sound)
  1520. if sound.IsPlaying then
  1521. sound.Playing = false
  1522. end
  1523. if sound.TimePosition ~= 0 then
  1524. sound.TimePosition = 0
  1525. end
  1526. end;
  1527. }
  1528.  
  1529. do
  1530. -- List of all active Looped sounds
  1531. local playingLoopedSounds = {}
  1532.  
  1533. -- Last seen Enum.HumanoidStateType
  1534. local activeState = nil
  1535.  
  1536. -- Verify and set that "sound" is in "playingLoopedSounds".
  1537. function setSoundInPlayingLoopedSounds(sound)
  1538. for i=1, #playingLoopedSounds do
  1539. if playingLoopedSounds[i] == sound then
  1540. return
  1541. end
  1542. end
  1543. table.insert(playingLoopedSounds,sound)
  1544. end
  1545.  
  1546. -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
  1547. function stopPlayingLoopedSoundsExcept(except)
  1548. for i=#playingLoopedSounds,1,-1 do
  1549. if playingLoopedSounds[i] ~= except then
  1550. Util.Pause(playingLoopedSounds[i])
  1551. table.remove(playingLoopedSounds,i)
  1552. end
  1553. end
  1554. end
  1555.  
  1556. -- Table of Enum.HumanoidStateType to handling function
  1557. local stateUpdateHandler = {
  1558. [Enum.HumanoidStateType.Dead] = function()
  1559. stopPlayingLoopedSoundsExcept()
  1560. local sound = Sounds[SFX.Died]
  1561. Util.Play(sound)
  1562. end;
  1563.  
  1564. [Enum.HumanoidStateType.RunningNoPhysics] = function()
  1565. stateUpdated(Enum.HumanoidStateType.Running)
  1566. end;
  1567.  
  1568. [Enum.HumanoidStateType.Running] = function()
  1569. local sound = Sounds[SFX.Running]
  1570. stopPlayingLoopedSoundsExcept(sound)
  1571.  
  1572. if Util.HorizontalSpeed(Head) > 0.5 then
  1573. Util.Resume(sound)
  1574. setSoundInPlayingLoopedSounds(sound)
  1575. else
  1576. stopPlayingLoopedSoundsExcept()
  1577. end
  1578. end;
  1579.  
  1580. [Enum.HumanoidStateType.Swimming] = function()
  1581. if activeState ~= Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head) > 0.1 then
  1582. local splashSound = Sounds[SFX.Splash]
  1583. splashSound.Volume = Util.Clamp(
  1584. Util.YForLineGivenXAndTwoPts(
  1585. Util.VerticalSpeed(Head),
  1586. 100, 0.28,
  1587. 350, 1),
  1588. 0,1)
  1589. Util.Play(splashSound)
  1590. end
  1591.  
  1592. do
  1593. local sound = Sounds[SFX.Swimming]
  1594. stopPlayingLoopedSoundsExcept(sound)
  1595. Util.Resume(sound)
  1596. setSoundInPlayingLoopedSounds(sound)
  1597. end
  1598. end;
  1599.  
  1600. [Enum.HumanoidStateType.Climbing] = function()
  1601. local sound = Sounds[SFX.Climbing]
  1602. if Util.VerticalSpeed(Head) > 0.1 then
  1603. Util.Resume(sound)
  1604. stopPlayingLoopedSoundsExcept(sound)
  1605. else
  1606. stopPlayingLoopedSoundsExcept()
  1607. end
  1608. setSoundInPlayingLoopedSounds(sound)
  1609. end;
  1610.  
  1611. [Enum.HumanoidStateType.Jumping] = function()
  1612. if activeState == Enum.HumanoidStateType.Jumping then
  1613. return
  1614. end
  1615. stopPlayingLoopedSoundsExcept()
  1616. local sound = Sounds[SFX.Jumping]
  1617. Util.Play(sound)
  1618. end;
  1619.  
  1620. [Enum.HumanoidStateType.GettingUp] = function()
  1621. stopPlayingLoopedSoundsExcept()
  1622. local sound = Sounds[SFX.GettingUp]
  1623. Util.Play(sound)
  1624. end;
  1625.  
  1626. [Enum.HumanoidStateType.Freefall] = function()
  1627. if activeState == Enum.HumanoidStateType.Freefall then
  1628. return
  1629. end
  1630. local sound = Sounds[SFX.FreeFalling]
  1631. sound.Volume = 0
  1632. stopPlayingLoopedSoundsExcept()
  1633. end;
  1634.  
  1635. [Enum.HumanoidStateType.FallingDown] = function()
  1636. stopPlayingLoopedSoundsExcept()
  1637. end;
  1638.  
  1639. [Enum.HumanoidStateType.Landed] = function()
  1640. stopPlayingLoopedSoundsExcept()
  1641. if Util.VerticalSpeed(Head) > 75 then
  1642. local landingSound = Sounds[SFX.Landing]
  1643. landingSound.Volume = Util.Clamp(
  1644. Util.YForLineGivenXAndTwoPts(
  1645. Util.VerticalSpeed(Head),
  1646. 50, 0,
  1647. 100, 1),
  1648. 0,1)
  1649. Util.Play(landingSound)
  1650. end
  1651. end
  1652. }
  1653.  
  1654. -- Handle state event fired or OnChange fired
  1655. function stateUpdated(state)
  1656. if stateUpdateHandler[state] ~= nil then
  1657. stateUpdateHandler[state]()
  1658. end
  1659. activeState = state
  1660. end
  1661.  
  1662. Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
  1663. Humanoid.Running:connect( function() stateUpdated(Enum.HumanoidStateType.Running) end)
  1664. Humanoid.Swimming:connect( function() stateUpdated(Enum.HumanoidStateType.Swimming) end)
  1665. Humanoid.Climbing:connect( function() stateUpdated(Enum.HumanoidStateType.Climbing) end)
  1666. Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
  1667. Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
  1668. Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
  1669. Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
  1670.  
  1671. -- required for proper handling of Landed event
  1672. Humanoid.StateChanged:connect(function(old, new)
  1673. stateUpdated(new)
  1674. end)
  1675.  
  1676.  
  1677. function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
  1678. local stepScale = stepDeltaSeconds / tickSpeedSeconds
  1679. do
  1680. local sound = Sounds[SFX.FreeFalling]
  1681. if activeState == Enum.HumanoidStateType.Freefall then
  1682. if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
  1683. Util.Resume(sound)
  1684.  
  1685. --Volume takes 1.1 seconds to go from volume 0 to 1
  1686. local ANIMATION_LENGTH_SECONDS = 1.1
  1687.  
  1688. local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
  1689. sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
  1690. else
  1691. sound.Volume = 0
  1692. end
  1693. else
  1694. Util.Pause(sound)
  1695. end
  1696. end
  1697.  
  1698. do
  1699. local sound = Sounds[SFX.Running]
  1700. if activeState == Enum.HumanoidStateType.Running then
  1701. if Util.HorizontalSpeed(Head) < 0.5 then
  1702. Util.Pause(sound)
  1703. end
  1704. end
  1705. end
  1706. end
  1707.  
  1708. local lastTick = tick()
  1709. local TICK_SPEED_SECONDS = 0.25
  1710. while true do
  1711. onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
  1712. lastTick = tick()
  1713. wait(TICK_SPEED_SECONDS)
  1714. end
  1715. end
  1716.  
  1717. end,o189)
  1718. end))
  1719. o190.Parent = o2
  1720. o191.Parent = o190
  1721. o191.Material = Enum.Material.Metal
  1722. o191.BrickColor = BrickColor.new("Black")
  1723. o191.Reflectance = 0.5
  1724. o191.Transparency = 1
  1725. o191.Position = Vector3.new(46.342205, 4.8114872, 10.7486134)
  1726. o191.Rotation = Vector3.new(64.9300003, -69.2999954, -27.4499989)
  1727. o191.RotVelocity = Vector3.new(0, -3.44673824, 0)
  1728. o191.Velocity = Vector3.new(-13.9093094, 0, -8.4333725)
  1729. o191.CanCollide = false
  1730. o191.Size = Vector3.new(0.200000003, 1.45000005, 2)
  1731. o191.CFrame = CFrame.new(46.342205, 4.8114872, 10.7486134, 0.313750237, 0.162966117, -0.935415685, -0.947220802, -0.0145814847, -0.320250273, -0.0658297092, 0.986523807, 0.149790004)
  1732. o191.LeftSurface = Enum.SurfaceType.Weld
  1733. o191.RightSurface = Enum.SurfaceType.Weld
  1734. o191.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1735. o191.Position = Vector3.new(46.342205, 4.8114872, 10.7486134)
  1736. o191.Velocity = Vector3.new(-13.9093094, 0, -8.4333725)
  1737. o192.Parent = o190
  1738. o192.Material = Enum.Material.Metal
  1739. o192.BrickColor = BrickColor.new("Black")
  1740. o192.Reflectance = 0.5
  1741. o192.Transparency = 1
  1742. o192.Position = Vector3.new(46.4033508, 4.62152767, 10.7357206)
  1743. o192.Rotation = Vector3.new(64.9300003, -69.2999954, -27.4499989)
  1744. o192.RotVelocity = Vector3.new(0, -3.44673824, 0)
  1745. o192.Velocity = Vector3.new(-13.864872, 0, -8.22261906)
  1746. o192.CanCollide = false
  1747. o192.Size = Vector3.new(0.200000003, 1.45000005, 2)
  1748. o192.CFrame = CFrame.new(46.4033508, 4.62152767, 10.7357206, 0.313746721, 0.16296795, -0.93541652, -0.947221994, -0.0145806419, -0.320246696, -0.0658289418, 0.986523509, 0.149792254)
  1749. o192.LeftSurface = Enum.SurfaceType.Weld
  1750. o192.RightSurface = Enum.SurfaceType.Weld
  1751. o192.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1752. o192.Position = Vector3.new(46.4033508, 4.62152767, 10.7357206)
  1753. o192.Velocity = Vector3.new(-13.864872, 0, -8.22261906)
  1754. o194.Name = "FireParticle"
  1755. o194.Parent = mas
  1756. o194.Rotation = NumberRange.new(100000,100000)
  1757. o194.Size = NumberSequence.new(1.1731845140457,0.75,0.3846150636673,0)
  1758. o194.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0, 0))
  1759. o194.Enabled = false
  1760. o194.LightEmission = 0.75
  1761. o194.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1762. o194.ZOffset = 1
  1763. o194.Acceleration = Vector3.new(0, 300, 0)
  1764. o194.Lifetime = NumberRange.new(0.20000000298023,0.20000000298023)
  1765. o194.Rate = 200
  1766. o194.RotSpeed = NumberRange.new(1,1)
  1767. o194.Speed = NumberRange.new(0,0)
  1768. o195.Parent = o194
  1769. table.insert(cors,coroutine.create(function()
  1770. wait()
  1771. runDummyScript(function()
  1772. while true do
  1773.  
  1774. script.Parent.Enabled = false
  1775.  
  1776. wait(20)
  1777.  
  1778. script.Parent.Enabled = true
  1779.  
  1780. wait(5)
  1781.  
  1782. end
  1783. end,o195)
  1784. end))
  1785. o197.Parent = o190
  1786. o197.Material = Enum.Material.Metal
  1787. o197.BrickColor = BrickColor.new("Black")
  1788. o197.Reflectance = 0.5
  1789. o197.Position = Vector3.new(44.6981812, 3.60448694, 9.68939018)
  1790. o197.Rotation = Vector3.new(102.610001, -54.4599991, 108.5)
  1791. o197.RotVelocity = Vector3.new(0, -0.667089462, 0)
  1792. o197.Velocity = Vector3.new(-12.5376873, 0, -3.53663993)
  1793. o197.CanCollide = false
  1794. o197.Size = Vector3.new(0.200000003, 0.300000012, 0.200000003)
  1795. o197.CFrame = CFrame.new(44.6981812, 3.60448694, 9.68939018, -0.184472263, -0.551199853, -0.813724995, 0.045024924, 0.822325706, -0.567232966, 0.981805623, -0.141276628, -0.126878545)
  1796. o197.BottomSurface = Enum.SurfaceType.Weld
  1797. o197.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1798. o197.Position = Vector3.new(44.6981812, 3.60448694, 9.68939018)
  1799. o197.Velocity = Vector3.new(-12.5376873, 0, -3.53663993)
  1800. o200.Name = "Union-to-Union Strong Joint"
  1801. o200.Parent = mas
  1802. o200.C0 = CFrame.new(-0.626907349, -0.670824051, 0.450000644, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
  1803. o200.C1 = CFrame.new(-0.109256744, -0.39245224, -1.15927124, 2.32706032e-08, 1, 6.52119212e-08, 1.05119796e-07, -6.52119212e-08, 1, 1, -2.32705961e-08, -1.05119796e-07)
  1804. o200.Part0 = mas
  1805. o200.Part1 = mas
  1806. mas.Parent = workspace
  1807. mas:MakeJoints()
  1808. local mas1 = mas:GetChildren()
  1809. for i=1,#mas1 do
  1810. mas1[i].Parent = workspace
  1811. ypcall(function() mas1[i]:MakeJoints() end)
  1812. end
  1813. mas:Destroy()
  1814. for i=1,#cors do
  1815. coroutine.resume(cors[i])
  1816. end
Advertisement
Add Comment
Please, Sign In to add comment