Advertisement
REX_THE_LEAKER

(NPC) Fling Anthro (no fe)

Jan 16th, 2019
1,653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.19 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Part1 = Instance.new("Part")
  20. Humanoid2 = Instance.new("Humanoid")
  21. MeshPart3 = Instance.new("MeshPart")
  22. Vector3Value4 = Instance.new("Vector3Value")
  23. Vector3Value5 = Instance.new("Vector3Value")
  24. Vector3Value6 = Instance.new("Vector3Value")
  25. Vector3Value7 = Instance.new("Vector3Value")
  26. Vector3Value8 = Instance.new("Vector3Value")
  27. Vector3Value9 = Instance.new("Vector3Value")
  28. Motor6D10 = Instance.new("Motor6D")
  29. Script11 = Instance.new("Script")
  30. ObjectValue12 = Instance.new("ObjectValue")
  31. Sound13 = Instance.new("Sound")
  32. Weld14 = Instance.new("Weld")
  33. MeshPart15 = Instance.new("MeshPart")
  34. Vector3Value16 = Instance.new("Vector3Value")
  35. Vector3Value17 = Instance.new("Vector3Value")
  36. Vector3Value18 = Instance.new("Vector3Value")
  37. Motor6D19 = Instance.new("Motor6D")
  38. Script20 = Instance.new("Script")
  39. ObjectValue21 = Instance.new("ObjectValue")
  40. Sound22 = Instance.new("Sound")
  41. Weld23 = Instance.new("Weld")
  42. MeshPart24 = Instance.new("MeshPart")
  43. Vector3Value25 = Instance.new("Vector3Value")
  44. Vector3Value26 = Instance.new("Vector3Value")
  45. Vector3Value27 = Instance.new("Vector3Value")
  46. Motor6D28 = Instance.new("Motor6D")
  47. Script29 = Instance.new("Script")
  48. ObjectValue30 = Instance.new("ObjectValue")
  49. Sound31 = Instance.new("Sound")
  50. Weld32 = Instance.new("Weld")
  51. MeshPart33 = Instance.new("MeshPart")
  52. Vector3Value34 = Instance.new("Vector3Value")
  53. Vector3Value35 = Instance.new("Vector3Value")
  54. Vector3Value36 = Instance.new("Vector3Value")
  55. Vector3Value37 = Instance.new("Vector3Value")
  56. Motor6D38 = Instance.new("Motor6D")
  57. Script39 = Instance.new("Script")
  58. ObjectValue40 = Instance.new("ObjectValue")
  59. Sound41 = Instance.new("Sound")
  60. Weld42 = Instance.new("Weld")
  61. MeshPart43 = Instance.new("MeshPart")
  62. Vector3Value44 = Instance.new("Vector3Value")
  63. Vector3Value45 = Instance.new("Vector3Value")
  64. Vector3Value46 = Instance.new("Vector3Value")
  65. Motor6D47 = Instance.new("Motor6D")
  66. Script48 = Instance.new("Script")
  67. ObjectValue49 = Instance.new("ObjectValue")
  68. Sound50 = Instance.new("Sound")
  69. Weld51 = Instance.new("Weld")
  70. MeshPart52 = Instance.new("MeshPart")
  71. Vector3Value53 = Instance.new("Vector3Value")
  72. Vector3Value54 = Instance.new("Vector3Value")
  73. Vector3Value55 = Instance.new("Vector3Value")
  74. Motor6D56 = Instance.new("Motor6D")
  75. Script57 = Instance.new("Script")
  76. ObjectValue58 = Instance.new("ObjectValue")
  77. Sound59 = Instance.new("Sound")
  78. Weld60 = Instance.new("Weld")
  79. MeshPart61 = Instance.new("MeshPart")
  80. Vector3Value62 = Instance.new("Vector3Value")
  81. Vector3Value63 = Instance.new("Vector3Value")
  82. Vector3Value64 = Instance.new("Vector3Value")
  83. Vector3Value65 = Instance.new("Vector3Value")
  84. Motor6D66 = Instance.new("Motor6D")
  85. Script67 = Instance.new("Script")
  86. ObjectValue68 = Instance.new("ObjectValue")
  87. Sound69 = Instance.new("Sound")
  88. Weld70 = Instance.new("Weld")
  89. MeshPart71 = Instance.new("MeshPart")
  90. Vector3Value72 = Instance.new("Vector3Value")
  91. Vector3Value73 = Instance.new("Vector3Value")
  92. Vector3Value74 = Instance.new("Vector3Value")
  93. Vector3Value75 = Instance.new("Vector3Value")
  94. Vector3Value76 = Instance.new("Vector3Value")
  95. Vector3Value77 = Instance.new("Vector3Value")
  96. Vector3Value78 = Instance.new("Vector3Value")
  97. Vector3Value79 = Instance.new("Vector3Value")
  98. Vector3Value80 = Instance.new("Vector3Value")
  99. Vector3Value81 = Instance.new("Vector3Value")
  100. Motor6D82 = Instance.new("Motor6D")
  101. Script83 = Instance.new("Script")
  102. ObjectValue84 = Instance.new("ObjectValue")
  103. Sound85 = Instance.new("Sound")
  104. Weld86 = Instance.new("Weld")
  105. MeshPart87 = Instance.new("MeshPart")
  106. Vector3Value88 = Instance.new("Vector3Value")
  107. Vector3Value89 = Instance.new("Vector3Value")
  108. Motor6D90 = Instance.new("Motor6D")
  109. Script91 = Instance.new("Script")
  110. ObjectValue92 = Instance.new("ObjectValue")
  111. Sound93 = Instance.new("Sound")
  112. Weld94 = Instance.new("Weld")
  113. MeshPart95 = Instance.new("MeshPart")
  114. Vector3Value96 = Instance.new("Vector3Value")
  115. Vector3Value97 = Instance.new("Vector3Value")
  116. Vector3Value98 = Instance.new("Vector3Value")
  117. Motor6D99 = Instance.new("Motor6D")
  118. Script100 = Instance.new("Script")
  119. ObjectValue101 = Instance.new("ObjectValue")
  120. Sound102 = Instance.new("Sound")
  121. Weld103 = Instance.new("Weld")
  122. MeshPart104 = Instance.new("MeshPart")
  123. Vector3Value105 = Instance.new("Vector3Value")
  124. Vector3Value106 = Instance.new("Vector3Value")
  125. Vector3Value107 = Instance.new("Vector3Value")
  126. Motor6D108 = Instance.new("Motor6D")
  127. Script109 = Instance.new("Script")
  128. ObjectValue110 = Instance.new("ObjectValue")
  129. Sound111 = Instance.new("Sound")
  130. Weld112 = Instance.new("Weld")
  131. MeshPart113 = Instance.new("MeshPart")
  132. Vector3Value114 = Instance.new("Vector3Value")
  133. Vector3Value115 = Instance.new("Vector3Value")
  134. Motor6D116 = Instance.new("Motor6D")
  135. Script117 = Instance.new("Script")
  136. ObjectValue118 = Instance.new("ObjectValue")
  137. Sound119 = Instance.new("Sound")
  138. Weld120 = Instance.new("Weld")
  139. MeshPart121 = Instance.new("MeshPart")
  140. Vector3Value122 = Instance.new("Vector3Value")
  141. Vector3Value123 = Instance.new("Vector3Value")
  142. Vector3Value124 = Instance.new("Vector3Value")
  143. Motor6D125 = Instance.new("Motor6D")
  144. Script126 = Instance.new("Script")
  145. ObjectValue127 = Instance.new("ObjectValue")
  146. Sound128 = Instance.new("Sound")
  147. Weld129 = Instance.new("Weld")
  148. MeshPart130 = Instance.new("MeshPart")
  149. Vector3Value131 = Instance.new("Vector3Value")
  150. Vector3Value132 = Instance.new("Vector3Value")
  151. Vector3Value133 = Instance.new("Vector3Value")
  152. Motor6D134 = Instance.new("Motor6D")
  153. Script135 = Instance.new("Script")
  154. ObjectValue136 = Instance.new("ObjectValue")
  155. Sound137 = Instance.new("Sound")
  156. Weld138 = Instance.new("Weld")
  157. MeshPart139 = Instance.new("MeshPart")
  158. Vector3Value140 = Instance.new("Vector3Value")
  159. Vector3Value141 = Instance.new("Vector3Value")
  160. Vector3Value142 = Instance.new("Vector3Value")
  161. Vector3Value143 = Instance.new("Vector3Value")
  162. Vector3Value144 = Instance.new("Vector3Value")
  163. Vector3Value145 = Instance.new("Vector3Value")
  164. Vector3Value146 = Instance.new("Vector3Value")
  165. Vector3Value147 = Instance.new("Vector3Value")
  166. Motor6D148 = Instance.new("Motor6D")
  167. Script149 = Instance.new("Script")
  168. ObjectValue150 = Instance.new("ObjectValue")
  169. Sound151 = Instance.new("Sound")
  170. Weld152 = Instance.new("Weld")
  171. BodyColors153 = Instance.new("BodyColors")
  172. Animation154 = Instance.new("Animation")
  173. Script155 = Instance.new("Script")
  174. Script156 = Instance.new("Script")
  175. StringValue157 = Instance.new("StringValue")
  176. StringValue158 = Instance.new("StringValue")
  177. Animation159 = Instance.new("Animation")
  178. StringValue160 = Instance.new("StringValue")
  179. Animation161 = Instance.new("Animation")
  180. StringValue162 = Instance.new("StringValue")
  181. Animation163 = Instance.new("Animation")
  182. StringValue164 = Instance.new("StringValue")
  183. Animation165 = Instance.new("Animation")
  184. StringValue166 = Instance.new("StringValue")
  185. Animation167 = Instance.new("Animation")
  186. StringValue168 = Instance.new("StringValue")
  187. Animation169 = Instance.new("Animation")
  188. StringValue170 = Instance.new("StringValue")
  189. Animation171 = Instance.new("Animation")
  190. StringValue172 = Instance.new("StringValue")
  191. Animation173 = Instance.new("Animation")
  192. StringValue174 = Instance.new("StringValue")
  193. Animation175 = Instance.new("Animation")
  194. StringValue176 = Instance.new("StringValue")
  195. Animation177 = Instance.new("Animation")
  196. NumberValue178 = Instance.new("NumberValue")
  197. Animation179 = Instance.new("Animation")
  198. NumberValue180 = Instance.new("NumberValue")
  199. LocalScript181 = Instance.new("LocalScript")
  200. Script182 = Instance.new("Script")
  201. Script183 = Instance.new("Script")
  202. Model0.Name = "Moving Anthro [NPC]"
  203. Model0.Parent = mas
  204. Part1.Name = "HumanoidRootPart"
  205. Part1.Parent = Model0
  206. Part1.CFrame = CFrame.new(31.1215858, 3.44281507, -4.01275587, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  207. Part1.Orientation = Vector3.new(0, -166, 0)
  208. Part1.Position = Vector3.new(31.1215858, 3.44281507, -4.01275587)
  209. Part1.Rotation = Vector3.new(-180, -14, -180)
  210. Part1.Transparency = 1
  211. Part1.Size = Vector3.new(2, 2, 1)
  212. Humanoid2.Parent = Model0
  213. Humanoid2.HipHeight = 2.5
  214. Humanoid2.RigType = Enum.HumanoidRigType.R15
  215. Humanoid2.Torso = Part1
  216. MeshPart3.Name = "Head"
  217. MeshPart3.Parent = Model0
  218. MeshPart3.CFrame = CFrame.new(31.1299171, 6.04462719, -3.97958207, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  219. MeshPart3.Orientation = Vector3.new(0, -166, 0)
  220. MeshPart3.Position = Vector3.new(31.1299171, 6.04462719, -3.97958207)
  221. MeshPart3.Rotation = Vector3.new(-180, -14, -180)
  222. MeshPart3.Color = Color3.new(0.992157, 0.917647, 0.552941)
  223. MeshPart3.Size = Vector3.new(0.692578018, 1.00110412, 0.93025893)
  224. MeshPart3.BrickColor = BrickColor.new("Cool yellow")
  225. MeshPart3.brickColor = BrickColor.new("Cool yellow")
  226. MeshPart3.TextureID = "rbxassetid://853067666"
  227. Vector3Value4.Name = "OriginalPivot"
  228. Vector3Value4.Parent = mas
  229. Vector3Value4.Value = Vector3.new(-0, -0.307155728, -0.0454159304)
  230. Vector3Value5.Name = "OriginalPivot"
  231. Vector3Value5.Parent = mas
  232. Vector3Value5.Value = Vector3.new(4.8650584e-08, 0.199901581, 0.0273513794)
  233. Vector3Value6.Name = "OriginalPivot"
  234. Vector3Value6.Parent = mas
  235. Vector3Value6.Value = Vector3.new(4.8650584e-08, 0.199901581, 0.0273513794)
  236. Vector3Value7.Name = "OriginalPivot"
  237. Vector3Value7.Parent = mas
  238. Vector3Value7.Value = Vector3.new(4.86505876e-08, -0.190885663, -0.287648618)
  239. Vector3Value8.Name = "OriginalPivot"
  240. Vector3Value8.Parent = mas
  241. Vector3Value8.Value = Vector3.new(4.8650584e-08, -0.0821859837, 0.0273513775)
  242. Vector3Value9.Name = "OriginalSize"
  243. Vector3Value9.Parent = MeshPart3
  244. Vector3Value9.Value = Vector3.new(0.554062426, 0.800883293, 0.744207144)
  245. Motor6D10.Name = "Neck"
  246. Motor6D10.Parent = MeshPart3
  247. Motor6D10.C0 = CFrame.new(-0, 0.981102705, -0.0461568236, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  248. Motor6D10.C1 = CFrame.new(-0, -0.38394466, -0.0567699149, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  249. Motor6D10.Part0 = MeshPart71
  250. Motor6D10.Part1 = MeshPart3
  251. Motor6D10.part1 = MeshPart3
  252. Script11.Name = "RepelScript"
  253. Script11.Parent = MeshPart3
  254. table.insert(cors,sandbox(Script11,function()
  255. -- Adds a repulsive force to anything this object touches
  256. local Part = script.Parent
  257.  
  258. local Debris = game:GetService('Debris')
  259.  
  260. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  261.  
  262. local MAGNITUDE = 3E4
  263. local TIME_OF_FORCE = 0.2
  264.  
  265. Part.Touched:connect(function(other)
  266. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  267. if not other.Anchored then
  268. local punchSound = script:FindFirstChild('PunchSound')
  269. if punchSound then punchSound:Play() end
  270. local direction = (other.Position - Part.Position).unit
  271. local bodyForce = Instance.new('BodyForce')
  272. bodyForce.force = MAGNITUDE * direction
  273. bodyForce.Parent = other
  274. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  275. end
  276. end)
  277.  
  278.  
  279. end))
  280. ObjectValue12.Name = "CharacterToIgnore"
  281. ObjectValue12.Parent = Script11
  282. Sound13.Name = "PunchSound"
  283. Sound13.Parent = Script11
  284. Sound13.SoundId = "http://www.roblox.com/asset?id=121603067"
  285. Sound13.Volume = 0.20000000298023
  286. Weld14.Name = "RightGrip"
  287. Weld14.Parent = MeshPart3
  288. Weld14.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  289. Weld14.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  290. MeshPart15.Name = "LeftHand"
  291. MeshPart15.Parent = Model0
  292. MeshPart15.CFrame = CFrame.new(31.9613819, 2.81080198, -3.93414092, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  293. MeshPart15.Orientation = Vector3.new(0, -166, 0)
  294. MeshPart15.Position = Vector3.new(31.9613819, 2.81080198, -3.93414092)
  295. MeshPart15.Rotation = Vector3.new(-180, -14, -180)
  296. MeshPart15.Color = Color3.new(0.992157, 0.917647, 0.552941)
  297. MeshPart15.Size = Vector3.new(0.369217873, 0.77686739, 0.423293173)
  298. MeshPart15.BrickColor = BrickColor.new("Cool yellow")
  299. MeshPart15.brickColor = BrickColor.new("Cool yellow")
  300. MeshPart15.TextureID = "rbxassetid://853067666"
  301. Vector3Value16.Name = "OriginalPivot"
  302. Vector3Value16.Parent = mas
  303. Vector3Value16.Value = Vector3.new(-0.0833167434, 0.217594564, 0.0342649072)
  304. Vector3Value17.Name = "OriginalPivot"
  305. Vector3Value17.Parent = mas
  306. Vector3Value17.Value = Vector3.new(0.0266832709, 0.00519376993, 0.223540157)
  307. Vector3Value18.Name = "OriginalSize"
  308. Vector3Value18.Parent = MeshPart15
  309. Vector3Value18.Value = Vector3.new(0.295374304, 0.621493936, 0.338634551)
  310. Motor6D19.Name = "LeftWrist"
  311. Motor6D19.Parent = MeshPart15
  312. Motor6D19.C0 = CFrame.new(-0.0185980648, -0.507891953, -0.166260213, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  313. Motor6D19.C1 = CFrame.new(-0.104145929, 0.27199322, 0.0428311341, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  314. Motor6D19.Part0 = MeshPart24
  315. Motor6D19.Part1 = MeshPart15
  316. Motor6D19.part1 = MeshPart15
  317. Script20.Name = "RepelScript"
  318. Script20.Parent = MeshPart15
  319. table.insert(cors,sandbox(Script20,function()
  320. -- Adds a repulsive force to anything this object touches
  321. local Part = script.Parent
  322.  
  323. local Debris = game:GetService('Debris')
  324.  
  325. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  326.  
  327. local MAGNITUDE = 3E4
  328. local TIME_OF_FORCE = 0.2
  329.  
  330. Part.Touched:connect(function(other)
  331. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  332. if not other.Anchored then
  333. local punchSound = script:FindFirstChild('PunchSound')
  334. if punchSound then punchSound:Play() end
  335. local direction = (other.Position - Part.Position).unit
  336. local bodyForce = Instance.new('BodyForce')
  337. bodyForce.force = MAGNITUDE * direction
  338. bodyForce.Parent = other
  339. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  340. end
  341. end)
  342.  
  343.  
  344. end))
  345. ObjectValue21.Name = "CharacterToIgnore"
  346. ObjectValue21.Parent = Script20
  347. Sound22.Name = "PunchSound"
  348. Sound22.Parent = Script20
  349. Sound22.SoundId = "http://www.roblox.com/asset?id=121603067"
  350. Sound22.Volume = 0.20000000298023
  351. Weld23.Name = "RightGrip"
  352. Weld23.Parent = MeshPart15
  353. Weld23.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  354. Weld23.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  355. MeshPart24.Name = "LeftLowerArm"
  356. MeshPart24.Parent = Model0
  357. MeshPart24.CFrame = CFrame.new(31.9938297, 3.59068632, -4.15771627, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  358. MeshPart24.Orientation = Vector3.new(0, -166, 0)
  359. MeshPart24.Position = Vector3.new(31.9938297, 3.59068632, -4.15771627)
  360. MeshPart24.Rotation = Vector3.new(-180, -14, -180)
  361. MeshPart24.Color = Color3.new(0.992157, 0.917647, 0.552941)
  362. MeshPart24.Size = Vector3.new(0.352709144, 1.14867127, 0.586645305)
  363. MeshPart24.BrickColor = BrickColor.new("Cool yellow")
  364. MeshPart24.brickColor = BrickColor.new("Cool yellow")
  365. MeshPart24.TextureID = "rbxassetid://853067666"
  366. Vector3Value25.Name = "OriginalPivot"
  367. Vector3Value25.Parent = mas
  368. Vector3Value25.Value = Vector3.new(-0.0148784518, 0.398414522, 0.135081902)
  369. Vector3Value26.Name = "OriginalPivot"
  370. Vector3Value26.Parent = mas
  371. Vector3Value26.Value = Vector3.new(-0.0148784518, -0.406313568, -0.133008167)
  372. Vector3Value27.Name = "OriginalSize"
  373. Vector3Value27.Parent = MeshPart24
  374. Vector3Value27.Value = Vector3.new(0.282167315, 0.918937027, 0.469316244)
  375. Motor6D28.Name = "LeftElbow"
  376. Motor6D28.Parent = MeshPart24
  377. Motor6D28.C0 = CFrame.new(-0.115770847, -0.543107688, 0.0500396714, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  378. Motor6D28.C1 = CFrame.new(-0.0185980648, 0.498018146, 0.168852374, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  379. Motor6D28.Part0 = MeshPart33
  380. Motor6D28.Part1 = MeshPart24
  381. Motor6D28.part1 = MeshPart24
  382. Script29.Name = "RepelScript"
  383. Script29.Parent = MeshPart24
  384. table.insert(cors,sandbox(Script29,function()
  385. -- Adds a repulsive force to anything this object touches
  386. local Part = script.Parent
  387.  
  388. local Debris = game:GetService('Debris')
  389.  
  390. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  391.  
  392. local MAGNITUDE = 3E4
  393. local TIME_OF_FORCE = 0.2
  394.  
  395. Part.Touched:connect(function(other)
  396. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  397. if not other.Anchored then
  398. local punchSound = script:FindFirstChild('PunchSound')
  399. if punchSound then punchSound:Play() end
  400. local direction = (other.Position - Part.Position).unit
  401. local bodyForce = Instance.new('BodyForce')
  402. bodyForce.force = MAGNITUDE * direction
  403. bodyForce.Parent = other
  404. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  405. end
  406. end)
  407.  
  408.  
  409. end))
  410. ObjectValue30.Name = "CharacterToIgnore"
  411. ObjectValue30.Parent = Script29
  412. Sound31.Name = "PunchSound"
  413. Sound31.Parent = Script29
  414. Sound31.SoundId = "http://www.roblox.com/asset?id=121603067"
  415. Sound31.Volume = 0.20000000298023
  416. Weld32.Name = "RightGrip"
  417. Weld32.Parent = MeshPart24
  418. Weld32.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  419. Weld32.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  420. MeshPart33.Name = "LeftUpperArm"
  421. MeshPart33.Parent = Model0
  422. MeshPart33.CFrame = CFrame.new(31.8708267, 4.63181496, -4.24949503, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  423. MeshPart33.Orientation = Vector3.new(0, -166, 0)
  424. MeshPart33.Position = Vector3.new(31.8708267, 4.63181496, -4.24949503)
  425. MeshPart33.Rotation = Vector3.new(-180, -14, -180)
  426. MeshPart33.Color = Color3.new(0.992157, 0.917647, 0.552941)
  427. MeshPart33.Size = Vector3.new(0.494093299, 1.34736133, 0.643033743)
  428. MeshPart33.BrickColor = BrickColor.new("Cool yellow")
  429. MeshPart33.brickColor = BrickColor.new("Cool yellow")
  430. MeshPart33.TextureID = "rbxassetid://853067666"
  431. Vector3Value34.Name = "OriginalPivot"
  432. Vector3Value34.Parent = mas
  433. Vector3Value34.Value = Vector3.new(0.132383347, 0.29369086, 0.0288424864)
  434. Vector3Value35.Name = "OriginalPivot"
  435. Vector3Value35.Parent = mas
  436. Vector3Value35.Value = Vector3.new(-0.0926166773, -0.434486151, 0.0400317386)
  437. Vector3Value36.Name = "OriginalPivot"
  438. Vector3Value36.Parent = mas
  439. Vector3Value36.Value = Vector3.new(0.0873833299, 0.558677971, -0.0387829915)
  440. Vector3Value37.Name = "OriginalSize"
  441. Vector3Value37.Parent = MeshPart33
  442. Vector3Value37.Value = Vector3.new(0.395274639, 1.07788908, 0.514427006)
  443. Motor6D38.Name = "LeftShoulder"
  444. Motor6D38.Parent = MeshPart33
  445. Motor6D38.C0 = CFrame.new(-0.618749976, 0.319366306, 0.129334018, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  446. Motor6D38.C1 = CFrame.new(0.165479183, 0.36711359, 0.0360531062, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  447. Motor6D38.Part0 = MeshPart71
  448. Motor6D38.Part1 = MeshPart33
  449. Motor6D38.part1 = MeshPart33
  450. Script39.Name = "RepelScript"
  451. Script39.Parent = MeshPart33
  452. table.insert(cors,sandbox(Script39,function()
  453. -- Adds a repulsive force to anything this object touches
  454. local Part = script.Parent
  455.  
  456. local Debris = game:GetService('Debris')
  457.  
  458. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  459.  
  460. local MAGNITUDE = 3E4
  461. local TIME_OF_FORCE = 0.2
  462.  
  463. Part.Touched:connect(function(other)
  464. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  465. if not other.Anchored then
  466. local punchSound = script:FindFirstChild('PunchSound')
  467. if punchSound then punchSound:Play() end
  468. local direction = (other.Position - Part.Position).unit
  469. local bodyForce = Instance.new('BodyForce')
  470. bodyForce.force = MAGNITUDE * direction
  471. bodyForce.Parent = other
  472. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  473. end
  474. end)
  475.  
  476.  
  477. end))
  478. ObjectValue40.Name = "CharacterToIgnore"
  479. ObjectValue40.Parent = Script39
  480. Sound41.Name = "PunchSound"
  481. Sound41.Parent = Script39
  482. Sound41.SoundId = "http://www.roblox.com/asset?id=121603067"
  483. Sound41.Volume = 0.20000000298023
  484. Weld42.Name = "RightGrip"
  485. Weld42.Parent = MeshPart33
  486. Weld42.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  487. Weld42.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  488. MeshPart43.Name = "RightHand"
  489. MeshPart43.Parent = Model0
  490. MeshPart43.CFrame = CFrame.new(30.4169445, 2.81083822, -3.54911661, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  491. MeshPart43.Orientation = Vector3.new(0, -166, 0)
  492. MeshPart43.Position = Vector3.new(30.4169445, 2.81083822, -3.54911661)
  493. MeshPart43.Rotation = Vector3.new(-180, -14, -180)
  494. MeshPart43.Color = Color3.new(0.992157, 0.917647, 0.552941)
  495. MeshPart43.Size = Vector3.new(0.369218022, 0.776867568, 0.423293173)
  496. MeshPart43.BrickColor = BrickColor.new("Cool yellow")
  497. MeshPart43.brickColor = BrickColor.new("Cool yellow")
  498. MeshPart43.TextureID = "rbxassetid://853067666"
  499. Vector3Value44.Name = "OriginalPivot"
  500. Vector3Value44.Parent = mas
  501. Vector3Value44.Value = Vector3.new(0.0833166838, 0.217594504, 0.0342649072)
  502. Vector3Value45.Name = "OriginalPivot"
  503. Vector3Value45.Parent = mas
  504. Vector3Value45.Value = Vector3.new(-0.0266832709, 0.00519371033, 0.223540157)
  505. Vector3Value46.Name = "OriginalSize"
  506. Vector3Value46.Parent = MeshPart43
  507. Vector3Value46.Value = Vector3.new(0.295374423, 0.621494055, 0.338634551)
  508. Motor6D47.Name = "RightWrist"
  509. Motor6D47.Parent = MeshPart43
  510. Motor6D47.C0 = CFrame.new(0.0185979903, -0.507891893, -0.166260213, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  511. Motor6D47.C1 = CFrame.new(0.104145855, 0.27199313, 0.0428311341, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  512. Motor6D47.Part0 = MeshPart52
  513. Motor6D47.Part1 = MeshPart43
  514. Motor6D47.part1 = MeshPart43
  515. Script48.Name = "RepelScript"
  516. Script48.Parent = MeshPart43
  517. table.insert(cors,sandbox(Script48,function()
  518. -- Adds a repulsive force to anything this object touches
  519. local Part = script.Parent
  520.  
  521. local Debris = game:GetService('Debris')
  522.  
  523. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  524.  
  525. local MAGNITUDE = 3E4
  526. local TIME_OF_FORCE = 0.2
  527.  
  528. Part.Touched:connect(function(other)
  529. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  530. if not other.Anchored then
  531. local punchSound = script:FindFirstChild('PunchSound')
  532. if punchSound then punchSound:Play() end
  533. local direction = (other.Position - Part.Position).unit
  534. local bodyForce = Instance.new('BodyForce')
  535. bodyForce.force = MAGNITUDE * direction
  536. bodyForce.Parent = other
  537. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  538. end
  539. end)
  540.  
  541.  
  542. end))
  543. ObjectValue49.Name = "CharacterToIgnore"
  544. ObjectValue49.Parent = Script48
  545. Sound50.Name = "PunchSound"
  546. Sound50.Parent = Script48
  547. Sound50.SoundId = "http://www.roblox.com/asset?id=121603067"
  548. Sound50.Volume = 0.20000000298023
  549. Weld51.Name = "RightGrip"
  550. Weld51.Parent = MeshPart43
  551. Weld51.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  552. Weld51.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  553. MeshPart52.Name = "RightLowerArm"
  554. MeshPart52.Parent = Model0
  555. MeshPart52.CFrame = CFrame.new(30.2833767, 3.59072638, -3.73130512, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  556. MeshPart52.Orientation = Vector3.new(0, -166, 0)
  557. MeshPart52.Position = Vector3.new(30.2833767, 3.59072638, -3.73130512)
  558. MeshPart52.Rotation = Vector3.new(-180, -14, -180)
  559. MeshPart52.Color = Color3.new(0.992157, 0.917647, 0.552941)
  560. MeshPart52.Size = Vector3.new(0.352708548, 1.14867139, 0.586645305)
  561. MeshPart52.BrickColor = BrickColor.new("Cool yellow")
  562. MeshPart52.brickColor = BrickColor.new("Cool yellow")
  563. MeshPart52.TextureID = "rbxassetid://853067666"
  564. Vector3Value53.Name = "OriginalPivot"
  565. Vector3Value53.Parent = mas
  566. Vector3Value53.Value = Vector3.new(0.0148784518, 0.398414552, 0.135081902)
  567. Vector3Value54.Name = "OriginalPivot"
  568. Vector3Value54.Parent = mas
  569. Vector3Value54.Value = Vector3.new(0.0148783922, -0.406313539, -0.133008167)
  570. Vector3Value55.Name = "OriginalSize"
  571. Vector3Value55.Parent = MeshPart52
  572. Vector3Value55.Value = Vector3.new(0.282166839, 0.918937087, 0.469316244)
  573. Motor6D56.Name = "RightElbow"
  574. Motor6D56.Parent = MeshPart52
  575. Motor6D56.C0 = CFrame.new(0.115770772, -0.543107688, 0.0500396714, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  576. Motor6D56.C1 = CFrame.new(0.0185980648, 0.498018205, 0.168852374, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  577. Motor6D56.Part0 = MeshPart61
  578. Motor6D56.Part1 = MeshPart52
  579. Motor6D56.part1 = MeshPart52
  580. Script57.Name = "RepelScript"
  581. Script57.Parent = MeshPart52
  582. table.insert(cors,sandbox(Script57,function()
  583. -- Adds a repulsive force to anything this object touches
  584. local Part = script.Parent
  585.  
  586. local Debris = game:GetService('Debris')
  587.  
  588. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  589.  
  590. local MAGNITUDE = 3E4
  591. local TIME_OF_FORCE = 0.2
  592.  
  593. Part.Touched:connect(function(other)
  594. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  595. if not other.Anchored then
  596. local punchSound = script:FindFirstChild('PunchSound')
  597. if punchSound then punchSound:Play() end
  598. local direction = (other.Position - Part.Position).unit
  599. local bodyForce = Instance.new('BodyForce')
  600. bodyForce.force = MAGNITUDE * direction
  601. bodyForce.Parent = other
  602. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  603. end
  604. end)
  605.  
  606.  
  607. end))
  608. ObjectValue58.Name = "CharacterToIgnore"
  609. ObjectValue58.Parent = Script57
  610. Sound59.Name = "PunchSound"
  611. Sound59.Parent = Script57
  612. Sound59.SoundId = "http://www.roblox.com/asset?id=121603067"
  613. Sound59.Volume = 0.20000000298023
  614. Weld60.Name = "RightGrip"
  615. Weld60.Parent = MeshPart52
  616. Weld60.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  617. Weld60.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  618. MeshPart61.Name = "RightUpperArm"
  619. MeshPart61.Parent = Model0
  620. MeshPart61.CFrame = CFrame.new(30.3489475, 4.63185072, -3.87009478, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  621. MeshPart61.Orientation = Vector3.new(0, -166, 0)
  622. MeshPart61.Position = Vector3.new(30.3489475, 4.63185072, -3.87009478)
  623. MeshPart61.Rotation = Vector3.new(-180, -14, -180)
  624. MeshPart61.Color = Color3.new(0.992157, 0.917647, 0.552941)
  625. MeshPart61.Size = Vector3.new(0.49409315, 1.34736133, 0.643033743)
  626. MeshPart61.BrickColor = BrickColor.new("Cool yellow")
  627. MeshPart61.brickColor = BrickColor.new("Cool yellow")
  628. MeshPart61.TextureID = "rbxassetid://853067666"
  629. Vector3Value62.Name = "OriginalPivot"
  630. Vector3Value62.Parent = mas
  631. Vector3Value62.Value = Vector3.new(-0.132383406, 0.29369086, 0.0288424864)
  632. Vector3Value63.Name = "OriginalPivot"
  633. Vector3Value63.Parent = mas
  634. Vector3Value63.Value = Vector3.new(0.0926166177, -0.434486151, 0.0400317386)
  635. Vector3Value64.Name = "OriginalPivot"
  636. Vector3Value64.Parent = mas
  637. Vector3Value64.Value = Vector3.new(-0.0873833895, 0.535106838, -0.0387829915)
  638. Vector3Value65.Name = "OriginalSize"
  639. Vector3Value65.Parent = MeshPart61
  640. Vector3Value65.Value = Vector3.new(0.39527452, 1.07788908, 0.514427006)
  641. Motor6D66.Name = "RightShoulder"
  642. Motor6D66.Parent = MeshPart61
  643. Motor6D66.C0 = CFrame.new(0.618749976, 0.319366306, 0.129334018, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  644. Motor6D66.C1 = CFrame.new(-0.165479258, 0.36711359, 0.0360531062, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  645. Motor6D66.Part0 = MeshPart71
  646. Motor6D66.Part1 = MeshPart61
  647. Motor6D66.part1 = MeshPart61
  648. Script67.Name = "RepelScript"
  649. Script67.Parent = MeshPart61
  650. table.insert(cors,sandbox(Script67,function()
  651. -- Adds a repulsive force to anything this object touches
  652. local Part = script.Parent
  653.  
  654. local Debris = game:GetService('Debris')
  655.  
  656. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  657.  
  658. local MAGNITUDE = 3E4
  659. local TIME_OF_FORCE = 0.2
  660.  
  661. Part.Touched:connect(function(other)
  662. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  663. if not other.Anchored then
  664. local punchSound = script:FindFirstChild('PunchSound')
  665. if punchSound then punchSound:Play() end
  666. local direction = (other.Position - Part.Position).unit
  667. local bodyForce = Instance.new('BodyForce')
  668. bodyForce.force = MAGNITUDE * direction
  669. bodyForce.Parent = other
  670. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  671. end
  672. end)
  673.  
  674.  
  675. end))
  676. ObjectValue68.Name = "CharacterToIgnore"
  677. ObjectValue68.Parent = Script67
  678. Sound69.Name = "PunchSound"
  679. Sound69.Parent = Script67
  680. Sound69.SoundId = "http://www.roblox.com/asset?id=121603067"
  681. Sound69.Volume = 0.20000000298023
  682. Weld70.Name = "RightGrip"
  683. Weld70.Parent = MeshPart61
  684. Weld70.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  685. Weld70.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  686. MeshPart71.Name = "UpperTorso"
  687. MeshPart71.Parent = Model0
  688. MeshPart71.CFrame = CFrame.new(31.132452, 4.67957973, -3.96928406, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  689. MeshPart71.Orientation = Vector3.new(0, -166, 0)
  690. MeshPart71.Position = Vector3.new(31.132452, 4.67957973, -3.96928406)
  691. MeshPart71.Rotation = Vector3.new(-180, -14, -180)
  692. MeshPart71.Color = Color3.new(0.156863, 0.498039, 0.278431)
  693. MeshPart71.Size = Vector3.new(1.48787153, 2.23114824, 1.00564289)
  694. MeshPart71.BrickColor = BrickColor.new("Dark green")
  695. MeshPart71.brickColor = BrickColor.new("Dark green")
  696. MeshPart71.TextureID = "rbxassetid://853067666"
  697. Vector3Value72.Name = "OriginalPivot"
  698. Vector3Value72.Parent = mas
  699. Vector3Value72.Value = Vector3.new(-0, -0.674412072, 0.0358418524)
  700. Vector3Value73.Name = "OriginalPivot"
  701. Vector3Value73.Parent = mas
  702. Vector3Value73.Value = Vector3.new(-0, 0.784882188, -0.0369254574)
  703. Vector3Value74.Name = "OriginalPivot"
  704. Vector3Value74.Parent = mas
  705. Vector3Value74.Value = Vector3.new(-0.495000005, 0.255493045, 0.103467211)
  706. Vector3Value75.Name = "OriginalPivot"
  707. Vector3Value75.Parent = mas
  708. Vector3Value75.Value = Vector3.new(0.495000005, 0.255493045, 0.103467211)
  709. Vector3Value76.Name = "OriginalPivot"
  710. Vector3Value76.Parent = mas
  711. Vector3Value76.Value = Vector3.new(0, -0.339812875, -0.384158134)
  712. Vector3Value77.Name = "OriginalPivot"
  713. Vector3Value77.Parent = mas
  714. Vector3Value77.Value = Vector3.new(0, -0.339812875, 0.255841851)
  715. Vector3Value78.Name = "OriginalPivot"
  716. Vector3Value78.Parent = mas
  717. Vector3Value78.Value = Vector3.new(9.01869512e-09, 0.660187125, 0.035841804)
  718. Vector3Value79.Name = "OriginalPivot"
  719. Vector3Value79.Parent = mas
  720. Vector3Value79.Value = Vector3.new(0.349999994, 0.55018723, 0.0358417779)
  721. Vector3Value80.Name = "OriginalPivot"
  722. Vector3Value80.Parent = mas
  723. Vector3Value80.Value = Vector3.new(-0.349545687, 0.55018723, 0.0358416587)
  724. Vector3Value81.Name = "OriginalSize"
  725. Vector3Value81.Parent = MeshPart71
  726. Vector3Value81.Value = Vector3.new(1.19029725, 1.78491855, 0.804514349)
  727. Motor6D82.Name = "Waist"
  728. Motor6D82.Parent = MeshPart71
  729. Motor6D82.C0 = CFrame.new(-0, 0.449568778, 0.0911856443, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  730. Motor6D82.C1 = CFrame.new(-0, -0.843015075, 0.0448023155, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  731. Motor6D82.Part0 = MeshPart139
  732. Motor6D82.Part1 = MeshPart71
  733. Motor6D82.part1 = MeshPart71
  734. Script83.Name = "RepelScript"
  735. Script83.Parent = MeshPart71
  736. table.insert(cors,sandbox(Script83,function()
  737. -- Adds a repulsive force to anything this object touches
  738. local Part = script.Parent
  739.  
  740. local Debris = game:GetService('Debris')
  741.  
  742. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  743.  
  744. local MAGNITUDE = 3E4
  745. local TIME_OF_FORCE = 0.2
  746.  
  747. Part.Touched:connect(function(other)
  748. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  749. if not other.Anchored then
  750. local punchSound = script:FindFirstChild('PunchSound')
  751. if punchSound then punchSound:Play() end
  752. local direction = (other.Position - Part.Position).unit
  753. local bodyForce = Instance.new('BodyForce')
  754. bodyForce.force = MAGNITUDE * direction
  755. bodyForce.Parent = other
  756. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  757. end
  758. end)
  759.  
  760.  
  761. end))
  762. ObjectValue84.Name = "CharacterToIgnore"
  763. ObjectValue84.Parent = Script83
  764. Sound85.Name = "PunchSound"
  765. Sound85.Parent = Script83
  766. Sound85.SoundId = "http://www.roblox.com/asset?id=121603067"
  767. Sound85.Volume = 0.20000000298023
  768. Weld86.Name = "RightGrip"
  769. Weld86.Parent = MeshPart71
  770. Weld86.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  771. Weld86.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  772. MeshPart87.Name = "LeftFoot"
  773. MeshPart87.Parent = Model0
  774. MeshPart87.CFrame = CFrame.new(31.4490128, 0.251838148, -3.88203955, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  775. MeshPart87.Orientation = Vector3.new(0, -166, 0)
  776. MeshPart87.Position = Vector3.new(31.4490128, 0.251838148, -3.88203955)
  777. MeshPart87.Rotation = Vector3.new(-180, -14, -180)
  778. MeshPart87.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  779. MeshPart87.Size = Vector3.new(0.433085203, 0.503646135, 1.06404793)
  780. MeshPart87.BrickColor = BrickColor.new("Bright blue")
  781. MeshPart87.brickColor = BrickColor.new("Bright blue")
  782. MeshPart87.TextureID = "rbxassetid://853067666"
  783. Vector3Value88.Name = "OriginalPivot"
  784. Vector3Value88.Parent = mas
  785. Vector3Value88.Value = Vector3.new(-0.0265804231, 0.00242400169, 0.179639131)
  786. Vector3Value89.Name = "OriginalSize"
  787. Vector3Value89.Parent = MeshPart87
  788. Vector3Value89.Value = Vector3.new(0.346468151, 0.402916908, 0.85123831)
  789. Motor6D90.Name = "LeftAnkle"
  790. Motor6D90.Parent = MeshPart87
  791. Motor6D90.C0 = CFrame.new(-0.0208500773, -0.907178521, -0.0181139186, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  792. Motor6D90.C1 = CFrame.new(-0.0332255289, 0.00303000212, 0.224548906, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  793. Motor6D90.Part0 = MeshPart95
  794. Motor6D90.Part1 = MeshPart87
  795. Motor6D90.part1 = MeshPart87
  796. Script91.Name = "RepelScript"
  797. Script91.Parent = MeshPart87
  798. table.insert(cors,sandbox(Script91,function()
  799. -- Adds a repulsive force to anything this object touches
  800. local Part = script.Parent
  801.  
  802. local Debris = game:GetService('Debris')
  803.  
  804. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  805.  
  806. local MAGNITUDE = 3E4
  807. local TIME_OF_FORCE = 0.2
  808.  
  809. Part.Touched:connect(function(other)
  810. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  811. if not other.Anchored then
  812. local punchSound = script:FindFirstChild('PunchSound')
  813. if punchSound then punchSound:Play() end
  814. local direction = (other.Position - Part.Position).unit
  815. local bodyForce = Instance.new('BodyForce')
  816. bodyForce.force = MAGNITUDE * direction
  817. bodyForce.Parent = other
  818. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  819. end
  820. end)
  821.  
  822.  
  823. end))
  824. ObjectValue92.Name = "CharacterToIgnore"
  825. ObjectValue92.Parent = Script91
  826. Sound93.Name = "PunchSound"
  827. Sound93.Parent = Script91
  828. Sound93.SoundId = "http://www.roblox.com/asset?id=121603067"
  829. Sound93.Volume = 0.20000000298023
  830. Weld94.Name = "RightGrip"
  831. Weld94.Parent = MeshPart87
  832. Weld94.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  833. Weld94.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  834. MeshPart95.Name = "LeftLowerLeg"
  835. MeshPart95.Parent = Model0
  836. MeshPart95.CFrame = CFrame.new(31.4023438, 1.16204774, -4.1204896, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  837. MeshPart95.Orientation = Vector3.new(0, -166, 0)
  838. MeshPart95.Position = Vector3.new(31.4023438, 1.16204774, -4.1204896)
  839. MeshPart95.Rotation = Vector3.new(-180, -14, -180)
  840. MeshPart95.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  841. MeshPart95.Size = Vector3.new(0.567250729, 1.82340312, 0.722959042)
  842. MeshPart95.BrickColor = BrickColor.new("Bright blue")
  843. MeshPart95.brickColor = BrickColor.new("Bright blue")
  844. MeshPart95.TextureID = "rbxassetid://853067666"
  845. Vector3Value96.Name = "OriginalPivot"
  846. Vector3Value96.Parent = mas
  847. Vector3Value96.Value = Vector3.new(-0.0166786611, 0.659965277, -0.0292149782)
  848. Vector3Value97.Name = "OriginalPivot"
  849. Vector3Value97.Parent = mas
  850. Vector3Value97.Value = Vector3.new(-0.0166800618, -0.725742817, -0.0144911343)
  851. Vector3Value98.Name = "OriginalSize"
  852. Vector3Value98.Parent = MeshPart95
  853. Vector3Value98.Value = Vector3.new(0.453800559, 1.45872247, 0.578367233)
  854. Motor6D99.Name = "LeftKnee"
  855. Motor6D99.Parent = MeshPart95
  856. Motor6D99.C0 = CFrame.new(0.00771716237, -0.594468415, 0.0933873057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  857. Motor6D99.C1 = CFrame.new(-0.0208483264, 0.824956596, -0.0365187228, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  858. Motor6D99.Part0 = MeshPart104
  859. Motor6D99.Part1 = MeshPart95
  860. Motor6D99.part1 = MeshPart95
  861. Script100.Name = "RepelScript"
  862. Script100.Parent = MeshPart95
  863. table.insert(cors,sandbox(Script100,function()
  864. -- Adds a repulsive force to anything this object touches
  865. local Part = script.Parent
  866.  
  867. local Debris = game:GetService('Debris')
  868.  
  869. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  870.  
  871. local MAGNITUDE = 3E4
  872. local TIME_OF_FORCE = 0.2
  873.  
  874. Part.Touched:connect(function(other)
  875. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  876. if not other.Anchored then
  877. local punchSound = script:FindFirstChild('PunchSound')
  878. if punchSound then punchSound:Play() end
  879. local direction = (other.Position - Part.Position).unit
  880. local bodyForce = Instance.new('BodyForce')
  881. bodyForce.force = MAGNITUDE * direction
  882. bodyForce.Parent = other
  883. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  884. end
  885. end)
  886.  
  887.  
  888. end))
  889. ObjectValue101.Name = "CharacterToIgnore"
  890. ObjectValue101.Parent = Script100
  891. Sound102.Name = "PunchSound"
  892. Sound102.Parent = Script100
  893. Sound102.SoundId = "http://www.roblox.com/asset?id=121603067"
  894. Sound102.Volume = 0.20000000298023
  895. Weld103.Name = "RightGrip"
  896. Weld103.Parent = MeshPart95
  897. Weld103.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  898. Weld103.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  899. MeshPart104.Name = "LeftUpperLeg"
  900. MeshPart104.Parent = Model0
  901. MeshPart104.CFrame = CFrame.new(31.4615173, 2.58147144, -4.00135136, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  902. MeshPart104.Orientation = Vector3.new(0, -166, 0)
  903. MeshPart104.Position = Vector3.new(31.4615173, 2.58147144, -4.00135136)
  904. MeshPart104.Rotation = Vector3.new(-180, -14, -180)
  905. MeshPart104.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  906. MeshPart104.Size = Vector3.new(0.61734277, 1.89089322, 0.802329183)
  907. MeshPart104.BrickColor = BrickColor.new("Bright blue")
  908. MeshPart104.brickColor = BrickColor.new("Bright blue")
  909. MeshPart104.TextureID = "rbxassetid://853067666"
  910. Vector3Value105.Name = "OriginalPivot"
  911. Vector3Value105.Parent = mas
  912. Vector3Value105.Value = Vector3.new(0.00617405772, 0.677015483, -0.0151920542)
  913. Vector3Value106.Name = "OriginalPivot"
  914. Vector3Value106.Parent = mas
  915. Vector3Value106.Value = Vector3.new(0.0061737299, -0.475574732, 0.0747098476)
  916. Vector3Value107.Name = "OriginalSize"
  917. Vector3Value107.Parent = MeshPart104
  918. Vector3Value107.Value = Vector3.new(0.493874222, 1.51271462, 0.641863346)
  919. Motor6D108.Name = "LeftHip"
  920. Motor6D108.Parent = MeshPart104
  921. Motor6D108.C0 = CFrame.new(-0.319378495, 0.0407524444, -0.021102028, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  922. Motor6D108.C1 = CFrame.new(0.00771757215, 0.846269369, -0.0189900678, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  923. Motor6D108.Part0 = MeshPart139
  924. Motor6D108.Part1 = MeshPart104
  925. Motor6D108.part1 = MeshPart104
  926. Script109.Name = "RepelScript"
  927. Script109.Parent = MeshPart104
  928. table.insert(cors,sandbox(Script109,function()
  929. -- Adds a repulsive force to anything this object touches
  930. local Part = script.Parent
  931.  
  932. local Debris = game:GetService('Debris')
  933.  
  934. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  935.  
  936. local MAGNITUDE = 3E4
  937. local TIME_OF_FORCE = 0.2
  938.  
  939. Part.Touched:connect(function(other)
  940. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  941. if not other.Anchored then
  942. local punchSound = script:FindFirstChild('PunchSound')
  943. if punchSound then punchSound:Play() end
  944. local direction = (other.Position - Part.Position).unit
  945. local bodyForce = Instance.new('BodyForce')
  946. bodyForce.force = MAGNITUDE * direction
  947. bodyForce.Parent = other
  948. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  949. end
  950. end)
  951.  
  952.  
  953. end))
  954. ObjectValue110.Name = "CharacterToIgnore"
  955. ObjectValue110.Parent = Script109
  956. Sound111.Name = "PunchSound"
  957. Sound111.Parent = Script109
  958. Sound111.SoundId = "http://www.roblox.com/asset?id=121603067"
  959. Sound111.Volume = 0.20000000298023
  960. Weld112.Name = "RightGrip"
  961. Weld112.Parent = MeshPart104
  962. Weld112.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  963. Weld112.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  964. MeshPart113.Name = "RightFoot"
  965. MeshPart113.Parent = Model0
  966. MeshPart113.CFrame = CFrame.new(30.8937073, 0.251859844, -3.7435708, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  967. MeshPart113.Orientation = Vector3.new(0, -166, 0)
  968. MeshPart113.Position = Vector3.new(30.8937073, 0.251859844, -3.7435708)
  969. MeshPart113.Rotation = Vector3.new(-180, -14, -180)
  970. MeshPart113.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  971. MeshPart113.Size = Vector3.new(0.433085561, 0.503645539, 1.06404793)
  972. MeshPart113.BrickColor = BrickColor.new("Bright blue")
  973. MeshPart113.brickColor = BrickColor.new("Bright blue")
  974. MeshPart113.TextureID = "rbxassetid://853067666"
  975. Vector3Value114.Name = "OriginalPivot"
  976. Vector3Value114.Parent = mas
  977. Vector3Value114.Value = Vector3.new(0.0270769298, 0.0017683506, 0.179639086)
  978. Vector3Value115.Name = "OriginalSize"
  979. Vector3Value115.Parent = MeshPart113
  980. Vector3Value115.Value = Vector3.new(0.346468449, 0.402916431, 0.85123831)
  981. Motor6D116.Name = "RightAnkle"
  982. Motor6D116.Parent = MeshPart113
  983. Motor6D116.C0 = CFrame.new(0.0214695558, -0.907988548, -0.0181149151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  984. Motor6D116.C1 = CFrame.new(0.0338461623, 0.00221043825, 0.224548861, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  985. Motor6D116.Part0 = MeshPart121
  986. Motor6D116.Part1 = MeshPart113
  987. Motor6D116.part1 = MeshPart113
  988. Script117.Name = "RepelScript"
  989. Script117.Parent = MeshPart113
  990. table.insert(cors,sandbox(Script117,function()
  991. -- Adds a repulsive force to anything this object touches
  992. local Part = script.Parent
  993.  
  994. local Debris = game:GetService('Debris')
  995.  
  996. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  997.  
  998. local MAGNITUDE = 3E4
  999. local TIME_OF_FORCE = 0.2
  1000.  
  1001. Part.Touched:connect(function(other)
  1002. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1003. if not other.Anchored then
  1004. local punchSound = script:FindFirstChild('PunchSound')
  1005. if punchSound then punchSound:Play() end
  1006. local direction = (other.Position - Part.Position).unit
  1007. local bodyForce = Instance.new('BodyForce')
  1008. bodyForce.force = MAGNITUDE * direction
  1009. bodyForce.Parent = other
  1010. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1011. end
  1012. end)
  1013.  
  1014.  
  1015. end))
  1016. ObjectValue118.Name = "CharacterToIgnore"
  1017. ObjectValue118.Parent = Script117
  1018. Sound119.Name = "PunchSound"
  1019. Sound119.Parent = Script117
  1020. Sound119.SoundId = "http://www.roblox.com/asset?id=121603067"
  1021. Sound119.Volume = 0.20000000298023
  1022. Weld120.Name = "RightGrip"
  1023. Weld120.Parent = MeshPart113
  1024. Weld120.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1025. Weld120.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1026. MeshPart121.Name = "RightLowerLeg"
  1027. MeshPart121.Parent = Model0
  1028. MeshPart121.CFrame = CFrame.new(30.8230209, 1.1620605, -3.9760344, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  1029. MeshPart121.Orientation = Vector3.new(0, -166, 0)
  1030. MeshPart121.Position = Vector3.new(30.8230209, 1.1620605, -3.9760344)
  1031. MeshPart121.Rotation = Vector3.new(-180, -14, -180)
  1032. MeshPart121.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1033. MeshPart121.Size = Vector3.new(0.567250729, 1.82340324, 0.72296077)
  1034. MeshPart121.BrickColor = BrickColor.new("Bright blue")
  1035. MeshPart121.brickColor = BrickColor.new("Bright blue")
  1036. MeshPart121.TextureID = "rbxassetid://853067666"
  1037. Vector3Value122.Name = "OriginalPivot"
  1038. Vector3Value122.Parent = mas
  1039. Vector3Value122.Value = Vector3.new(0.0171756446, 0.659609318, -0.0291916057)
  1040. Vector3Value123.Name = "OriginalPivot"
  1041. Vector3Value123.Parent = mas
  1042. Vector3Value123.Value = Vector3.new(0.0171756446, -0.726390839, -0.0144919315)
  1043. Vector3Value124.Name = "OriginalSize"
  1044. Vector3Value124.Parent = MeshPart121
  1045. Vector3Value124.Value = Vector3.new(0.453800559, 1.45872259, 0.578368604)
  1046. Motor6D125.Name = "RightKnee"
  1047. Motor6D125.Parent = MeshPart121
  1048. Motor6D125.C0 = CFrame.new(-0.00709604472, -0.594914436, 0.0933924392, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1049. Motor6D125.C1 = CFrame.new(0.0214695558, 0.824511647, -0.036489509, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1050. Motor6D125.Part0 = MeshPart130
  1051. Motor6D125.Part1 = MeshPart121
  1052. Motor6D125.part1 = MeshPart121
  1053. Script126.Name = "RepelScript"
  1054. Script126.Parent = MeshPart121
  1055. table.insert(cors,sandbox(Script126,function()
  1056. -- Adds a repulsive force to anything this object touches
  1057. local Part = script.Parent
  1058.  
  1059. local Debris = game:GetService('Debris')
  1060.  
  1061. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1062.  
  1063. local MAGNITUDE = 3E4
  1064. local TIME_OF_FORCE = 0.2
  1065.  
  1066. Part.Touched:connect(function(other)
  1067. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1068. if not other.Anchored then
  1069. local punchSound = script:FindFirstChild('PunchSound')
  1070. if punchSound then punchSound:Play() end
  1071. local direction = (other.Position - Part.Position).unit
  1072. local bodyForce = Instance.new('BodyForce')
  1073. bodyForce.force = MAGNITUDE * direction
  1074. bodyForce.Parent = other
  1075. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1076. end
  1077. end)
  1078.  
  1079.  
  1080. end))
  1081. ObjectValue127.Name = "CharacterToIgnore"
  1082. ObjectValue127.Parent = Script126
  1083. Sound128.Name = "PunchSound"
  1084. Sound128.Parent = Script126
  1085. Sound128.SoundId = "http://www.roblox.com/asset?id=121603067"
  1086. Sound128.Volume = 0.20000000298023
  1087. Weld129.Name = "RightGrip"
  1088. Weld129.Parent = MeshPart121
  1089. Weld129.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1090. Weld129.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1091. MeshPart130.Name = "RightUpperLeg"
  1092. MeshPart130.Parent = Model0
  1093. MeshPart130.CFrame = CFrame.new(30.8267536, 2.58148646, -3.84309983, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  1094. MeshPart130.Orientation = Vector3.new(0, -166, 0)
  1095. MeshPart130.Position = Vector3.new(30.8267536, 2.58148646, -3.84309983)
  1096. MeshPart130.Rotation = Vector3.new(-180, -14, -180)
  1097. MeshPart130.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  1098. MeshPart130.Size = Vector3.new(0.61734277, 1.89089394, 0.802323341)
  1099. MeshPart130.BrickColor = BrickColor.new("Bright blue")
  1100. MeshPart130.brickColor = BrickColor.new("Bright blue")
  1101. MeshPart130.TextureID = "rbxassetid://853067666"
  1102. Vector3Value131.Name = "OriginalPivot"
  1103. Vector3Value131.Parent = mas
  1104. Vector3Value131.Value = Vector3.new(-0.00567683578, 0.677068412, -0.0151865557)
  1105. Vector3Value132.Name = "OriginalPivot"
  1106. Vector3Value132.Parent = mas
  1107. Vector3Value132.Value = Vector3.new(-0.00567683578, -0.475931525, 0.0747139528)
  1108. Vector3Value133.Name = "OriginalSize"
  1109. Vector3Value133.Parent = MeshPart130
  1110. Vector3Value133.Value = Vector3.new(0.493874222, 1.5127151, 0.641858697)
  1111. Motor6D134.Name = "RightHip"
  1112. Motor6D134.Parent = MeshPart130
  1113. Motor6D134.C0 = CFrame.new(0.320000023, 0.0408187844, -0.021102028, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1114. Motor6D134.C1 = CFrame.new(-0.00709604472, 0.84633553, -0.0189831946, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1115. Motor6D134.Part0 = MeshPart139
  1116. Motor6D134.Part1 = MeshPart130
  1117. Motor6D134.part1 = MeshPart130
  1118. Script135.Name = "RepelScript"
  1119. Script135.Parent = MeshPart130
  1120. table.insert(cors,sandbox(Script135,function()
  1121. -- Adds a repulsive force to anything this object touches
  1122. local Part = script.Parent
  1123.  
  1124. local Debris = game:GetService('Debris')
  1125.  
  1126. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1127.  
  1128. local MAGNITUDE = 3E4
  1129. local TIME_OF_FORCE = 0.2
  1130.  
  1131. Part.Touched:connect(function(other)
  1132. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1133. if not other.Anchored then
  1134. local punchSound = script:FindFirstChild('PunchSound')
  1135. if punchSound then punchSound:Play() end
  1136. local direction = (other.Position - Part.Position).unit
  1137. local bodyForce = Instance.new('BodyForce')
  1138. bodyForce.force = MAGNITUDE * direction
  1139. bodyForce.Parent = other
  1140. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1141. end
  1142. end)
  1143.  
  1144.  
  1145. end))
  1146. ObjectValue136.Name = "CharacterToIgnore"
  1147. ObjectValue136.Parent = Script135
  1148. Sound137.Name = "PunchSound"
  1149. Sound137.Parent = Script135
  1150. Sound137.SoundId = "http://www.roblox.com/asset?id=121603067"
  1151. Sound137.Volume = 0.20000000298023
  1152. Weld138.Name = "RightGrip"
  1153. Weld138.Parent = MeshPart130
  1154. Weld138.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1155. Weld138.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1156. MeshPart139.Name = "LowerTorso"
  1157. MeshPart139.Parent = Model0
  1158. MeshPart139.CFrame = CFrame.new(31.1436424, 3.38699579, -3.92427826, -0.97030282, 2.34305717e-05, -0.241893664, 2.27350138e-05, 1, 5.66664266e-06, 0.241893664, -1.09535314e-09, -0.97030282)
  1159. MeshPart139.Orientation = Vector3.new(0, -166, 0)
  1160. MeshPart139.Position = Vector3.new(31.1436424, 3.38699579, -3.92427826)
  1161. MeshPart139.Rotation = Vector3.new(-180, -14, -180)
  1162. MeshPart139.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1163. MeshPart139.Size = Vector3.new(1.19766641, 0.867998302, 0.90235424)
  1164. MeshPart139.BrickColor = BrickColor.new("Dark green")
  1165. MeshPart139.brickColor = BrickColor.new("Dark green")
  1166. MeshPart139.TextureID = "rbxassetid://853067666"
  1167. Vector3Value140.Name = "OriginalPivot"
  1168. Vector3Value140.Parent = mas
  1169. Vector3Value140.Value = Vector3.new(-0, 0.044655025, 0.0729485154)
  1170. Vector3Value141.Name = "OriginalPivot"
  1171. Vector3Value141.Parent = mas
  1172. Vector3Value141.Value = Vector3.new(-0, 0.359655023, 0.0729485154)
  1173. Vector3Value142.Name = "OriginalPivot"
  1174. Vector3Value142.Parent = mas
  1175. Vector3Value142.Value = Vector3.new(-0.25550279, 0.0326019563, -0.0168816224)
  1176. Vector3Value143.Name = "OriginalPivot"
  1177. Vector3Value143.Parent = mas
  1178. Vector3Value143.Value = Vector3.new(0.256000012, 0.0326550268, -0.0168816224)
  1179. Vector3Value144.Name = "OriginalPivot"
  1180. Vector3Value144.Parent = mas
  1181. Vector3Value144.Value = Vector3.new(-3.02791591e-07, -0.0814045072, 0.0729485154)
  1182. Vector3Value145.Name = "OriginalPivot"
  1183. Vector3Value145.Parent = mas
  1184. Vector3Value145.Value = Vector3.new(-1.30105766e-08, -0.0814045072, -0.177051485)
  1185. Vector3Value146.Name = "OriginalPivot"
  1186. Vector3Value146.Parent = mas
  1187. Vector3Value146.Value = Vector3.new(-2.72039316e-08, -0.0814045072, 0.358314306)
  1188. Vector3Value147.Name = "OriginalSize"
  1189. Vector3Value147.Parent = MeshPart139
  1190. Vector3Value147.Value = Vector3.new(0.958133101, 0.694398642, 0.721883416)
  1191. Motor6D148.Name = "Root"
  1192. Motor6D148.Parent = MeshPart139
  1193. Motor6D148.C1 = CFrame.new(-0, 0.0558187813, 0.0911856443, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1194. Motor6D148.Part0 = Part1
  1195. Motor6D148.Part1 = MeshPart139
  1196. Motor6D148.part1 = MeshPart139
  1197. Script149.Name = "RepelScript"
  1198. Script149.Parent = MeshPart139
  1199. table.insert(cors,sandbox(Script149,function()
  1200. -- Adds a repulsive force to anything this object touches
  1201. local Part = script.Parent
  1202.  
  1203. local Debris = game:GetService('Debris')
  1204.  
  1205. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1206.  
  1207. local MAGNITUDE = 3E4
  1208. local TIME_OF_FORCE = 0.2
  1209.  
  1210. Part.Touched:connect(function(other)
  1211. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1212. if not other.Anchored then
  1213. local punchSound = script:FindFirstChild('PunchSound')
  1214. if punchSound then punchSound:Play() end
  1215. local direction = (other.Position - Part.Position).unit
  1216. local bodyForce = Instance.new('BodyForce')
  1217. bodyForce.force = MAGNITUDE * direction
  1218. bodyForce.Parent = other
  1219. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1220. end
  1221. end)
  1222.  
  1223.  
  1224. end))
  1225. ObjectValue150.Name = "CharacterToIgnore"
  1226. ObjectValue150.Parent = Script149
  1227. Sound151.Name = "PunchSound"
  1228. Sound151.Parent = Script149
  1229. Sound151.SoundId = "http://www.roblox.com/asset?id=121603067"
  1230. Sound151.Volume = 0.20000000298023
  1231. Weld152.Name = "RightGrip"
  1232. Weld152.Parent = MeshPart139
  1233. Weld152.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1234. Weld152.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1235. BodyColors153.Parent = Model0
  1236. Animation154.Parent = Model0
  1237. Animation154.AnimationId = "rbxassetid://774242142"
  1238. Script155.Name = "Move"
  1239. Script155.Parent = Model0
  1240. table.insert(cors,sandbox(Script155,function()
  1241. local CurrentPart = nil
  1242. local MaxInc = 60
  1243.  
  1244. function onTouched(hit)
  1245. if hit.Parent == nil then
  1246. return
  1247. end
  1248.  
  1249. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1250.  
  1251. if humanoid == nil then
  1252. CurrentPart = hit
  1253. end
  1254. end
  1255.  
  1256. function waitForChild(parent, childName)
  1257. local child = parent:findFirstChild(childName)
  1258.  
  1259. if child then
  1260. return child
  1261. end
  1262.  
  1263. while true do
  1264. print(childName)
  1265.  
  1266. child = parent.ChildAdded:wait()
  1267.  
  1268. if child.Name==childName then
  1269. return child
  1270. end
  1271. end
  1272. end
  1273.  
  1274. local Figure = script.Parent
  1275. local Humanoid = waitForChild(Figure, "Humanoid")
  1276. local Torso = waitForChild(Figure, "HumanoidRootPart")
  1277. local Left = waitForChild(Figure, "LeftFoot")
  1278. local Right = waitForChild(Figure, "RightFoot")
  1279.  
  1280. Humanoid.Jump = true
  1281.  
  1282. Left.Touched:connect(onTouched)
  1283. Right.Touched:connect(onTouched)
  1284.  
  1285. while true do
  1286. wait(math.random(2, 6))
  1287.  
  1288. if CurrentPart ~= nil then
  1289. if math.random(5, 7) == 1 then
  1290. Humanoid.Jump = true
  1291. end
  1292.  
  1293. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  1294. end
  1295. end
  1296. end))
  1297. Script156.Name = "Animate"
  1298. Script156.Parent = Model0
  1299. table.insert(cors,sandbox(Script156,function()
  1300. function waitForChild(parent, childName)
  1301. local child = parent:findFirstChild(childName)
  1302. if child then return child end
  1303. while true do
  1304. child = parent.ChildAdded:wait()
  1305. if child.Name==childName then return child end
  1306. end
  1307. end
  1308.  
  1309. local Figure = script.Parent
  1310. local Humanoid = waitForChild(Figure, "Humanoid")
  1311. local pose = "Standing"
  1312.  
  1313. local currentAnim = ""
  1314. local currentAnimInstance = nil
  1315. local currentAnimTrack = nil
  1316. local currentAnimKeyframeHandler = nil
  1317. local currentAnimSpeed = 1.0
  1318. local animTable = {}
  1319. local animNames = {
  1320. idle = {
  1321. { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
  1322. { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
  1323. { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
  1324. },
  1325. walk = {
  1326. { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
  1327. },
  1328. run = {
  1329. { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
  1330. },
  1331. swim = {
  1332. { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
  1333. },
  1334. swimidle = {
  1335. { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
  1336. },
  1337. jump = {
  1338. { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
  1339. },
  1340. fall = {
  1341. { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
  1342. },
  1343. climb = {
  1344. { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
  1345. },
  1346. sit = {
  1347. { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
  1348. },
  1349. toolnone = {
  1350. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1351. },
  1352. toolslash = {
  1353. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1354. -- { id = "slash.xml", weight = 10 }
  1355. },
  1356. toollunge = {
  1357. { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  1358. },
  1359. wave = {
  1360. { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  1361. },
  1362. point = {
  1363. { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  1364. },
  1365. dance = {
  1366. { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  1367. { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  1368. { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  1369. },
  1370. dance2 = {
  1371. { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  1372. { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  1373. { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  1374. },
  1375. dance3 = {
  1376. { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  1377. { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  1378. { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  1379. },
  1380. laugh = {
  1381. { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  1382. },
  1383. cheer = {
  1384. { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  1385. },
  1386. }
  1387.  
  1388. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1389. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1390.  
  1391. math.randomseed(tick())
  1392.  
  1393. function configureAnimationSet(name, fileList)
  1394. if (animTable[name] ~= nil) then
  1395. for _, connection in pairs(animTable[name].connections) do
  1396. connection:disconnect()
  1397. end
  1398. end
  1399. animTable[name] = {}
  1400. animTable[name].count = 0
  1401. animTable[name].totalWeight = 0
  1402. animTable[name].connections = {}
  1403.  
  1404. -- check for config values
  1405. local config = script:FindFirstChild(name)
  1406. if (config ~= nil) then
  1407. -- print("Loading anims " .. name)
  1408. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1409. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1410. local idx = 1
  1411. for _, childPart in pairs(config:GetChildren()) do
  1412. if (childPart:IsA("Animation")) then
  1413. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1414. animTable[name][idx] = {}
  1415. animTable[name][idx].anim = childPart
  1416. local weightObject = childPart:FindFirstChild("Weight")
  1417. if (weightObject == nil) then
  1418. animTable[name][idx].weight = 1
  1419. else
  1420. animTable[name][idx].weight = weightObject.Value
  1421. end
  1422. animTable[name].count = animTable[name].count + 1
  1423. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1424. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1425. idx = idx + 1
  1426. end
  1427. end
  1428. end
  1429.  
  1430. -- fallback to defaults
  1431. if (animTable[name].count <= 0) then
  1432. for idx, anim in pairs(fileList) do
  1433. animTable[name][idx] = {}
  1434. animTable[name][idx].anim = Instance.new("Animation")
  1435. animTable[name][idx].anim.Name = name
  1436. animTable[name][idx].anim.AnimationId = anim.id
  1437. animTable[name][idx].weight = anim.weight
  1438. animTable[name].count = animTable[name].count + 1
  1439. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1440. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1441. end
  1442. end
  1443. end
  1444.  
  1445. -- Setup animation objects
  1446. function scriptChildModified(child)
  1447. local fileList = animNames[child.Name]
  1448. if (fileList ~= nil) then
  1449. configureAnimationSet(child.Name, fileList)
  1450. end
  1451. end
  1452.  
  1453. script.ChildAdded:connect(scriptChildModified)
  1454. script.ChildRemoved:connect(scriptChildModified)
  1455.  
  1456.  
  1457. for name, fileList in pairs(animNames) do
  1458. configureAnimationSet(name, fileList)
  1459. end
  1460.  
  1461. -- ANIMATION
  1462.  
  1463. -- declarations
  1464. local toolAnim = "None"
  1465. local toolAnimTime = 0
  1466.  
  1467. local jumpAnimTime = 0
  1468. local jumpAnimDuration = 0.31
  1469.  
  1470. local toolTransitionTime = 0.1
  1471. local fallTransitionTime = 0.2
  1472.  
  1473. -- functions
  1474.  
  1475. function stopAllAnimations()
  1476. local oldAnim = currentAnim
  1477.  
  1478. -- return to idle if finishing an emote
  1479. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1480. oldAnim = "idle"
  1481. end
  1482.  
  1483. currentAnim = ""
  1484. currentAnimInstance = nil
  1485. if (currentAnimKeyframeHandler ~= nil) then
  1486. currentAnimKeyframeHandler:disconnect()
  1487. end
  1488.  
  1489. if (currentAnimTrack ~= nil) then
  1490. currentAnimTrack:Stop()
  1491. currentAnimTrack:Destroy()
  1492. currentAnimTrack = nil
  1493. end
  1494. return oldAnim
  1495. end
  1496.  
  1497. function setAnimationSpeed(speed)
  1498. if speed ~= currentAnimSpeed then
  1499. currentAnimSpeed = speed
  1500. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1501. end
  1502. end
  1503.  
  1504. function keyFrameReachedFunc(frameName)
  1505. if (frameName == "End") then
  1506. -- print("Keyframe : ".. frameName)
  1507.  
  1508. local repeatAnim = currentAnim
  1509. -- return to idle if finishing an emote
  1510. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1511. repeatAnim = "idle"
  1512. end
  1513.  
  1514. local animSpeed = currentAnimSpeed
  1515. playAnimation(repeatAnim, 0.15, Humanoid)
  1516. setAnimationSpeed(animSpeed)
  1517. end
  1518. end
  1519.  
  1520. -- Preload animations
  1521. function playAnimation(animName, transitionTime, humanoid)
  1522.  
  1523. local roll = math.random(1, animTable[animName].totalWeight)
  1524. local origRoll = roll
  1525. local idx = 1
  1526. while (roll > animTable[animName][idx].weight) do
  1527. roll = roll - animTable[animName][idx].weight
  1528. idx = idx + 1
  1529. end
  1530.  
  1531. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1532.  
  1533. local anim = animTable[animName][idx].anim
  1534.  
  1535. -- switch animation
  1536. if (anim ~= currentAnimInstance) then
  1537.  
  1538. if (currentAnimTrack ~= nil) then
  1539. currentAnimTrack:Stop(transitionTime)
  1540. currentAnimTrack:Destroy()
  1541. end
  1542.  
  1543. currentAnimSpeed = 1.0
  1544.  
  1545. -- load it to the humanoid; get AnimationTrack
  1546. currentAnimTrack = humanoid:LoadAnimation(anim)
  1547.  
  1548. -- play the animation
  1549. currentAnimTrack:Play(transitionTime)
  1550. currentAnim = animName
  1551. currentAnimInstance = anim
  1552.  
  1553. -- set up keyframe name triggers
  1554. if (currentAnimKeyframeHandler ~= nil) then
  1555. currentAnimKeyframeHandler:disconnect()
  1556. end
  1557. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1558.  
  1559. end
  1560.  
  1561. end
  1562.  
  1563. -------------------------------------------------------------------------------------------
  1564. -------------------------------------------------------------------------------------------
  1565.  
  1566. local toolAnimName = ""
  1567. local toolAnimTrack = nil
  1568. local toolAnimInstance = nil
  1569. local currentToolAnimKeyframeHandler = nil
  1570.  
  1571. function toolKeyFrameReachedFunc(frameName)
  1572. if (frameName == "End") then
  1573. -- print("Keyframe : ".. frameName)
  1574. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1575. end
  1576. end
  1577.  
  1578.  
  1579. function playToolAnimation(animName, transitionTime, humanoid)
  1580.  
  1581. local roll = math.random(1, animTable[animName].totalWeight)
  1582. local origRoll = roll
  1583. local idx = 1
  1584. while (roll > animTable[animName][idx].weight) do
  1585. roll = roll - animTable[animName][idx].weight
  1586. idx = idx + 1
  1587. end
  1588. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1589. local anim = animTable[animName][idx].anim
  1590.  
  1591. if (toolAnimInstance ~= anim) then
  1592.  
  1593. if (toolAnimTrack ~= nil) then
  1594. toolAnimTrack:Stop()
  1595. toolAnimTrack:Destroy()
  1596. transitionTime = 0
  1597. end
  1598.  
  1599. -- load it to the humanoid; get AnimationTrack
  1600. toolAnimTrack = humanoid:LoadAnimation(anim)
  1601.  
  1602. -- play the animation
  1603. toolAnimTrack:Play(transitionTime)
  1604. toolAnimName = animName
  1605. toolAnimInstance = anim
  1606.  
  1607. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1608. end
  1609. end
  1610.  
  1611. function stopToolAnimations()
  1612. local oldAnim = toolAnimName
  1613.  
  1614. if (currentToolAnimKeyframeHandler ~= nil) then
  1615. currentToolAnimKeyframeHandler:disconnect()
  1616. end
  1617.  
  1618. toolAnimName = ""
  1619. toolAnimInstance = nil
  1620. if (toolAnimTrack ~= nil) then
  1621. toolAnimTrack:Stop()
  1622. toolAnimTrack:Destroy()
  1623. toolAnimTrack = nil
  1624. end
  1625.  
  1626.  
  1627. return oldAnim
  1628. end
  1629.  
  1630. -------------------------------------------------------------------------------------------
  1631. -------------------------------------------------------------------------------------------
  1632.  
  1633.  
  1634. function onRunning(speed)
  1635. if speed > 0.01 then
  1636. local scale = 15.0
  1637. playAnimation("walk", 0.1, Humanoid)
  1638. setAnimationSpeed(speed / scale)
  1639. pose = "Running"
  1640. else
  1641. playAnimation("idle", 0.1, Humanoid)
  1642. pose = "Standing"
  1643. end
  1644. end
  1645.  
  1646. function onDied()
  1647. pose = "Dead"
  1648. end
  1649.  
  1650. function onJumping()
  1651. playAnimation("jump", 0.1, Humanoid)
  1652. jumpAnimTime = jumpAnimDuration
  1653. pose = "Jumping"
  1654. end
  1655.  
  1656. function onClimbing(speed)
  1657. local scale = 5.0
  1658. playAnimation("climb", 0.1, Humanoid)
  1659. setAnimationSpeed(speed / scale)
  1660. pose = "Climbing"
  1661. end
  1662.  
  1663. function onGettingUp()
  1664. pose = "GettingUp"
  1665. end
  1666.  
  1667. function onFreeFall()
  1668. if (jumpAnimTime <= 0) then
  1669. playAnimation("fall", fallTransitionTime, Humanoid)
  1670. end
  1671. pose = "FreeFall"
  1672. end
  1673.  
  1674. function onFallingDown()
  1675. pose = "FallingDown"
  1676. end
  1677.  
  1678. function onSeated()
  1679. pose = "Seated"
  1680. end
  1681.  
  1682. function onPlatformStanding()
  1683. pose = "PlatformStanding"
  1684. end
  1685.  
  1686. function onSwimming(speed)
  1687. if speed > 1.00 then
  1688. local scale = 10.0
  1689. playAnimation("swim", 0.4, Humanoid)
  1690. setAnimationSpeed(speed / scale)
  1691. pose = "Swimming"
  1692. else
  1693. playAnimation("swimidle", 0.4, Humanoid)
  1694. pose = "Standing"
  1695. end
  1696. end
  1697.  
  1698. function getTool()
  1699. for _, kid in ipairs(Figure:GetChildren()) do
  1700. if kid.className == "Tool" then return kid end
  1701. end
  1702. return nil
  1703. end
  1704.  
  1705. function getToolAnim(tool)
  1706. for _, c in ipairs(tool:GetChildren()) do
  1707. if c.Name == "toolanim" and c.className == "StringValue" then
  1708. return c
  1709. end
  1710. end
  1711. return nil
  1712. end
  1713.  
  1714. function animateTool()
  1715.  
  1716. if (toolAnim == "None") then
  1717. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1718. return
  1719. end
  1720.  
  1721. if (toolAnim == "Slash") then
  1722. playToolAnimation("toolslash", 0, Humanoid)
  1723. return
  1724. end
  1725.  
  1726. if (toolAnim == "Lunge") then
  1727. playToolAnimation("toollunge", 0, Humanoid)
  1728. return
  1729. end
  1730. end
  1731.  
  1732. function moveSit()
  1733. RightShoulder.MaxVelocity = 0.15
  1734. LeftShoulder.MaxVelocity = 0.15
  1735. RightShoulder:SetDesiredAngle(3.14 /2)
  1736. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1737. RightHip:SetDesiredAngle(3.14 /2)
  1738. LeftHip:SetDesiredAngle(-3.14 /2)
  1739. end
  1740.  
  1741. local lastTick = 0
  1742.  
  1743. function move(time)
  1744. local amplitude = 1
  1745. local frequency = 1
  1746. local deltaTime = time - lastTick
  1747. lastTick = time
  1748.  
  1749. local climbFudge = 0
  1750. local setAngles = false
  1751.  
  1752. if (jumpAnimTime > 0) then
  1753. jumpAnimTime = jumpAnimTime - deltaTime
  1754. end
  1755.  
  1756. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1757. playAnimation("fall", fallTransitionTime, Humanoid)
  1758. elseif (pose == "Seated") then
  1759. playAnimation("sit", 0.5, Humanoid)
  1760. return
  1761. elseif (pose == "Running") then
  1762. playAnimation("walk", 0.1, Humanoid)
  1763. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1764. stopAllAnimations()
  1765. amplitude = 0.1
  1766. frequency = 1
  1767. setAngles = true
  1768. end
  1769.  
  1770. -- Tool Animation handling
  1771. local tool = getTool()
  1772. if tool then
  1773.  
  1774. animStringValueObject = getToolAnim(tool)
  1775.  
  1776. if animStringValueObject then
  1777. toolAnim = animStringValueObject.Value
  1778. -- message recieved, delete StringValue
  1779. animStringValueObject.Parent = nil
  1780. toolAnimTime = time + .3
  1781. end
  1782.  
  1783. if time > toolAnimTime then
  1784. toolAnimTime = 0
  1785. toolAnim = "None"
  1786. end
  1787.  
  1788. animateTool()
  1789. else
  1790. stopToolAnimations()
  1791. toolAnim = "None"
  1792. toolAnimInstance = nil
  1793. toolAnimTime = 0
  1794. end
  1795. end
  1796.  
  1797. -- connect events
  1798. Humanoid.Died:connect(onDied)
  1799. Humanoid.Running:connect(onRunning)
  1800. Humanoid.Jumping:connect(onJumping)
  1801. Humanoid.Climbing:connect(onClimbing)
  1802. Humanoid.GettingUp:connect(onGettingUp)
  1803. Humanoid.FreeFalling:connect(onFreeFall)
  1804. Humanoid.FallingDown:connect(onFallingDown)
  1805. Humanoid.Seated:connect(onSeated)
  1806. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1807. Humanoid.Swimming:connect(onSwimming)
  1808.  
  1809. -- setup emote chat hook
  1810. script.msg.Changed:connect(function(msg)
  1811. script.msg.Value = ""
  1812. local emote = ""
  1813. if (string.sub(msg, 1, 3) == "/e ") then
  1814. emote = string.sub(msg, 4)
  1815. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1816. emote = string.sub(msg, 8)
  1817. end
  1818.  
  1819. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1820. playAnimation(emote, 0.1, Humanoid)
  1821. end
  1822. -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1823. end)
  1824.  
  1825.  
  1826. -- main program
  1827.  
  1828. local runService = game:service("RunService");
  1829.  
  1830. -- print("bottom")
  1831.  
  1832. -- initialize to idle
  1833. playAnimation("idle", 0.1, Humanoid)
  1834. pose = "Standing"
  1835.  
  1836. while Figure.Parent~=nil do
  1837. local _, time = wait(0.1)
  1838. move(time)
  1839. end
  1840.  
  1841.  
  1842.  
  1843. end))
  1844. StringValue157.Name = "msg"
  1845. StringValue157.Parent = Script156
  1846. StringValue158.Name = "climb"
  1847. StringValue158.Parent = Script156
  1848. Animation159.Name = "ClimbAnim"
  1849. Animation159.Parent = StringValue158
  1850. Animation159.AnimationId = "http://www.roblox.com/asset/?id=507765644"
  1851. StringValue160.Name = "fall"
  1852. StringValue160.Parent = Script156
  1853. Animation161.Name = "FallAnim"
  1854. Animation161.Parent = StringValue160
  1855. Animation161.AnimationId = "http://www.roblox.com/asset/?id=507767968"
  1856. StringValue162.Name = "jump"
  1857. StringValue162.Parent = Script156
  1858. Animation163.Name = "JumpAnim"
  1859. Animation163.Parent = StringValue162
  1860. Animation163.AnimationId = "http://www.roblox.com/asset/?id=507765000"
  1861. StringValue164.Name = "run"
  1862. StringValue164.Parent = Script156
  1863. Animation165.Name = "RunAnim"
  1864. Animation165.Parent = StringValue164
  1865. Animation165.AnimationId = "http://www.roblox.com/asset/?id=5077677142"
  1866. StringValue166.Name = "sit"
  1867. StringValue166.Parent = Script156
  1868. Animation167.Name = "SitAnim"
  1869. Animation167.Parent = StringValue166
  1870. Animation167.AnimationId = "http://www.roblox.com/asset/?id=507768133"
  1871. StringValue168.Name = "swim"
  1872. StringValue168.Parent = Script156
  1873. Animation169.Name = "Swim"
  1874. Animation169.Parent = StringValue168
  1875. Animation169.AnimationId = "http://www.roblox.com/asset/?id=507784897"
  1876. StringValue170.Name = "swimidle"
  1877. StringValue170.Parent = Script156
  1878. Animation171.Name = "SwimIdle"
  1879. Animation171.Parent = StringValue170
  1880. Animation171.AnimationId = "http://www.roblox.com/asset/?id=481825862"
  1881. StringValue172.Name = "toolnone"
  1882. StringValue172.Parent = Script156
  1883. Animation173.Name = "ToolNoneAnim"
  1884. Animation173.Parent = StringValue172
  1885. Animation173.AnimationId = "http://www.roblox.com/asset/?id=507768375"
  1886. StringValue174.Name = "walk"
  1887. StringValue174.Parent = Script156
  1888. Animation175.Name = "RunAnim"
  1889. Animation175.Parent = StringValue174
  1890. Animation175.AnimationId = "http://www.roblox.com/asset/?id=507777826"
  1891. StringValue176.Name = "idle"
  1892. StringValue176.Parent = Script156
  1893. Animation177.Name = "Animation1"
  1894. Animation177.Parent = StringValue176
  1895. Animation177.AnimationId = "http://www.roblox.com/asset/?id=507766388"
  1896. NumberValue178.Name = "Weight"
  1897. NumberValue178.Parent = Animation177
  1898. NumberValue178.Value = 9
  1899. Animation179.Name = "Animation2"
  1900. Animation179.Parent = StringValue176
  1901. Animation179.AnimationId = "http://www.roblox.com/asset/?id=507766666"
  1902. NumberValue180.Name = "Weight"
  1903. NumberValue180.Parent = Animation179
  1904. NumberValue180.Value = 1
  1905. LocalScript181.Name = "RagdollClient"
  1906. LocalScript181.Parent = Model0
  1907. table.insert(cors,sandbox(LocalScript181,function()
  1908. local character = script.Parent
  1909.  
  1910. function recurse(root,callback,i)
  1911. i= i or 0
  1912. for _,v in pairs(root:GetChildren()) do
  1913. i = i + 1
  1914. callback(i,v)
  1915.  
  1916. if #v:GetChildren() > 0 then
  1917. i = recurse(v,callback,i)
  1918. end
  1919. end
  1920.  
  1921. return i
  1922. end
  1923.  
  1924. function ragdollJoint(part0, part1, attachmentName, className, properties)
  1925. attachmentName = attachmentName.."RigAttachment"
  1926. local constraint = Instance.new(className.."Constraint")
  1927. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1928. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1929. constraint.Name = "RagdollConstraint"..part1.Name
  1930.  
  1931. for _,propertyData in next,properties or {} do
  1932. constraint[propertyData[1]] = propertyData[2]
  1933. end
  1934.  
  1935. constraint.Parent = character
  1936. end
  1937.  
  1938. function getAttachment0(attachmentName)
  1939. for _,child in next,character:GetChildren() do
  1940. local attachment = child:FindFirstChild(attachmentName)
  1941. if attachment then
  1942. return attachment
  1943. end
  1944. end
  1945. end
  1946.  
  1947. character:WaitForChild("Humanoid").Died:connect(function()
  1948. local camera = workspace.CurrentCamera
  1949. if camera.CameraSubject == character.Humanoid then--If developer isn't controlling camera
  1950. camera.CameraSubject = character.UpperTorso
  1951. end
  1952.  
  1953. --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process
  1954. character.HumanoidRootPart.Anchored = true
  1955. character.HumanoidRootPart.CanCollide = false
  1956.  
  1957. --Helps to fix constraint spasms
  1958. recurse(character, function(_,v)
  1959. if v:IsA("Attachment") then
  1960. v.Axis = Vector3.new(0, 1, 0)
  1961. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1962. v.Rotation = Vector3.new(0, 0, 0)
  1963. end
  1964. end)
  1965.  
  1966. --Re-attach hats
  1967. for _,child in next,character:GetChildren() do
  1968. if child:IsA("Accoutrement") then
  1969. --Loop through all parts instead of only checking for one to be forwards-compatible in the event
  1970. --ROBLOX implements multi-part accessories
  1971. for _,part in next,child:GetChildren() do
  1972. if part:IsA("BasePart") then
  1973. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1974. local attachment0 = getAttachment0(attachment1.Name)
  1975. if attachment0 and attachment1 then
  1976. --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where
  1977. --joints connecting a character are perpetually deleted while the character is dead
  1978. local constraint = Instance.new("HingeConstraint")
  1979. constraint.Attachment0 = attachment0
  1980. constraint.Attachment1 = attachment1
  1981. constraint.LimitsEnabled = true
  1982. constraint.UpperAngle = 0 --Simulate weld by making it difficult for constraint to move
  1983. constraint.LowerAngle = 0
  1984. constraint.Parent = character
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990.  
  1991. ragdollJoint(character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1992. {"LimitsEnabled",true};
  1993. {"UpperAngle",5};
  1994. })
  1995. ragdollJoint(character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1996. {"LimitsEnabled",true};
  1997. {"UpperAngle",15};
  1998. })
  1999.  
  2000. local handProperties = {
  2001. {"LimitsEnabled", true};
  2002. {"UpperAngle",0};
  2003. {"LowerAngle",0};
  2004. }
  2005. ragdollJoint(character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  2006. ragdollJoint(character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  2007.  
  2008. local shinProperties = {
  2009. {"LimitsEnabled", true};
  2010. {"UpperAngle", 0};
  2011. {"LowerAngle", -75};
  2012. }
  2013. ragdollJoint(character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  2014. ragdollJoint(character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  2015.  
  2016. local footProperties = {
  2017. {"LimitsEnabled", true};
  2018. {"UpperAngle", 15};
  2019. {"LowerAngle", -45};
  2020. }
  2021. ragdollJoint(character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  2022. ragdollJoint(character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  2023.  
  2024. --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped
  2025. ragdollJoint(character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  2026. ragdollJoint(character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  2027. ragdollJoint(character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  2028. ragdollJoint(character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  2029. ragdollJoint(character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  2030. ragdollJoint(character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  2031. end)
  2032. end))
  2033. Script182.Name = "Sound"
  2034. Script182.Parent = Model0
  2035. table.insert(cors,sandbox(Script182,function()
  2036. --[[
  2037. Author: @spotco
  2038. This script creates sounds which are placed under the character head.
  2039. These sounds are used by the "LocalSound" script.
  2040.  
  2041. To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
  2042. The default Sound script loaded for every character will then be replaced with your copy of the script.
  2043. ]]--
  2044.  
  2045. function CreateNewSound(name, id, looped, pitch, parent)
  2046. local sound = Instance.new("Sound")
  2047. sound.SoundId = id
  2048. sound.Name = name
  2049. sound.archivable = false
  2050. sound.Parent = parent
  2051. sound.Pitch = pitch
  2052. sound.Looped = looped
  2053.  
  2054. sound.MinDistance = 5
  2055. sound.MaxDistance = 150
  2056. sound.Volume = 0.65
  2057.  
  2058. return sound
  2059. end
  2060.  
  2061. local head = script.Parent:FindFirstChild("Head")
  2062. if head == nil then
  2063. error("Sound script parent has no child Head.")
  2064. return
  2065. end
  2066.  
  2067.  
  2068. CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
  2069. CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
  2070. CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
  2071. CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
  2072. CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
  2073. CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
  2074. CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
  2075. CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
  2076. CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
  2077. end))
  2078. Script183.Name = "LocalSound"
  2079. Script183.Parent = Script182
  2080. table.insert(cors,sandbox(Script183,function()
  2081. --[[
  2082. Author: @spotco
  2083. This script runs locally for the player of the given humanoid.
  2084. This script triggers humanoid sound play/pause actions locally.
  2085.  
  2086. The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
  2087. immediately for the player and is replicated to all other players.
  2088.  
  2089. This script is optimized to reduce network traffic through minimizing the amount of property replication.
  2090. ]]--
  2091.  
  2092. --All sounds are referenced by this ID
  2093. local SFX = {
  2094. Died = 0;
  2095. Running = 1;
  2096. Swimming = 2;
  2097. Climbing = 3,
  2098. Jumping = 4;
  2099. GettingUp = 5;
  2100. FreeFalling = 6;
  2101. FallingDown = 7;
  2102. Landing = 8;
  2103. Splash = 9;
  2104. }
  2105.  
  2106. local Humanoid = nil
  2107. local Head = nil
  2108.  
  2109. --SFX ID to Sound object
  2110. local Sounds = {}
  2111.  
  2112. do
  2113. local Figure = script.Parent.Parent
  2114. Head = Figure:WaitForChild("Head")
  2115. while not Humanoid do
  2116. for _,NewHumanoid in pairs(Figure:GetChildren()) do
  2117. if NewHumanoid:IsA("Humanoid") then
  2118. Humanoid = NewHumanoid
  2119. break
  2120. end
  2121. end
  2122. Figure.ChildAdded:wait()
  2123. end
  2124.  
  2125. Sounds[SFX.Died] = Head:WaitForChild("Died")
  2126. Sounds[SFX.Running] = Head:WaitForChild("Running")
  2127. Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
  2128. Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
  2129. Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
  2130. Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
  2131. Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
  2132. Sounds[SFX.Landing] = Head:WaitForChild("Landing")
  2133. Sounds[SFX.Splash] = Head:WaitForChild("Splash")
  2134. end
  2135.  
  2136. local Util
  2137. Util = {
  2138.  
  2139. --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
  2140. YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
  2141. --(y - y1)/(x - x1) = m
  2142. local m = (pt1y - pt2y) / (pt1x - pt2x)
  2143. --float b = pt1.y - m * pt1.x;
  2144. local b = (pt1y - m * pt1x)
  2145. return m * x + b
  2146. end;
  2147.  
  2148. --Clamps the value of "val" between the "min" and "max"
  2149. Clamp = function(val,min,max)
  2150. return math.min(max,math.max(min,val))
  2151. end;
  2152.  
  2153. --Gets the horizontal (x,z) velocity magnitude of the given part
  2154. HorizontalSpeed = function(Head)
  2155. local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
  2156. return hVel.magnitude
  2157. end;
  2158.  
  2159. --Gets the vertical (y) velocity magnitude of the given part
  2160. VerticalSpeed = function(Head)
  2161. return math.abs(Head.Velocity.Y)
  2162. end;
  2163.  
  2164. --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
  2165. --If these properties are enabled, use them.
  2166. Play = function(sound)
  2167. if sound.TimePosition ~= 0 then
  2168. sound.TimePosition = 0
  2169. end
  2170. if not sound.IsPlaying then
  2171. sound.Playing = true
  2172. end
  2173. end;
  2174. Pause = function(sound)
  2175. if sound.IsPlaying then
  2176. sound.Playing = false
  2177. end
  2178. end;
  2179. Resume = function(sound)
  2180. if not sound.IsPlaying then
  2181. sound.Playing = true
  2182. end
  2183. end;
  2184. Stop = function(sound)
  2185. if sound.IsPlaying then
  2186. sound.Playing = false
  2187. end
  2188. if sound.TimePosition ~= 0 then
  2189. sound.TimePosition = 0
  2190. end
  2191. end;
  2192. }
  2193.  
  2194. do
  2195. -- List of all active Looped sounds
  2196. local playingLoopedSounds = {}
  2197.  
  2198. -- Last seen Enum.HumanoidStateType
  2199. local activeState = nil
  2200.  
  2201. -- Verify and set that "sound" is in "playingLoopedSounds".
  2202. function setSoundInPlayingLoopedSounds(sound)
  2203. for i=1, #playingLoopedSounds do
  2204. if playingLoopedSounds[i] == sound then
  2205. return
  2206. end
  2207. end
  2208. table.insert(playingLoopedSounds,sound)
  2209. end
  2210.  
  2211. -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
  2212. function stopPlayingLoopedSoundsExcept(except)
  2213. for i=#playingLoopedSounds,1,-1 do
  2214. if playingLoopedSounds[i] ~= except then
  2215. Util.Pause(playingLoopedSounds[i])
  2216. table.remove(playingLoopedSounds,i)
  2217. end
  2218. end
  2219. end
  2220.  
  2221. -- Table of Enum.HumanoidStateType to handling function
  2222. local stateUpdateHandler = {
  2223. [Enum.HumanoidStateType.Dead] = function()
  2224. stopPlayingLoopedSoundsExcept()
  2225. local sound = Sounds[SFX.Died]
  2226. Util.Play(sound)
  2227. end;
  2228.  
  2229. [Enum.HumanoidStateType.RunningNoPhysics] = function()
  2230. stateUpdated(Enum.HumanoidStateType.Running)
  2231. end;
  2232.  
  2233. [Enum.HumanoidStateType.Running] = function()
  2234. local sound = Sounds[SFX.Running]
  2235. stopPlayingLoopedSoundsExcept(sound)
  2236.  
  2237. if Util.HorizontalSpeed(Head) > 0.5 then
  2238. Util.Resume(sound)
  2239. setSoundInPlayingLoopedSounds(sound)
  2240. else
  2241. stopPlayingLoopedSoundsExcept()
  2242. end
  2243. end;
  2244.  
  2245. [Enum.HumanoidStateType.Swimming] = function()
  2246. if activeState ~= Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head) > 0.1 then
  2247. local splashSound = Sounds[SFX.Splash]
  2248. splashSound.Volume = Util.Clamp(
  2249. Util.YForLineGivenXAndTwoPts(
  2250. Util.VerticalSpeed(Head),
  2251. 100, 0.28,
  2252. 350, 1),
  2253. 0,1)
  2254. Util.Play(splashSound)
  2255. end
  2256.  
  2257. do
  2258. local sound = Sounds[SFX.Swimming]
  2259. stopPlayingLoopedSoundsExcept(sound)
  2260. Util.Resume(sound)
  2261. setSoundInPlayingLoopedSounds(sound)
  2262. end
  2263. end;
  2264.  
  2265. [Enum.HumanoidStateType.Climbing] = function()
  2266. local sound = Sounds[SFX.Climbing]
  2267. if Util.VerticalSpeed(Head) > 0.1 then
  2268. Util.Resume(sound)
  2269. stopPlayingLoopedSoundsExcept(sound)
  2270. else
  2271. stopPlayingLoopedSoundsExcept()
  2272. end
  2273. setSoundInPlayingLoopedSounds(sound)
  2274. end;
  2275.  
  2276. [Enum.HumanoidStateType.Jumping] = function()
  2277. if activeState == Enum.HumanoidStateType.Jumping then
  2278. return
  2279. end
  2280. stopPlayingLoopedSoundsExcept()
  2281. local sound = Sounds[SFX.Jumping]
  2282. Util.Play(sound)
  2283. end;
  2284.  
  2285. [Enum.HumanoidStateType.GettingUp] = function()
  2286. stopPlayingLoopedSoundsExcept()
  2287. local sound = Sounds[SFX.GettingUp]
  2288. Util.Play(sound)
  2289. end;
  2290.  
  2291. [Enum.HumanoidStateType.Freefall] = function()
  2292. if activeState == Enum.HumanoidStateType.Freefall then
  2293. return
  2294. end
  2295. local sound = Sounds[SFX.FreeFalling]
  2296. sound.Volume = 0
  2297. stopPlayingLoopedSoundsExcept()
  2298. end;
  2299.  
  2300. [Enum.HumanoidStateType.FallingDown] = function()
  2301. stopPlayingLoopedSoundsExcept()
  2302. end;
  2303.  
  2304. [Enum.HumanoidStateType.Landed] = function()
  2305. stopPlayingLoopedSoundsExcept()
  2306. if Util.VerticalSpeed(Head) > 75 then
  2307. local landingSound = Sounds[SFX.Landing]
  2308. landingSound.Volume = Util.Clamp(
  2309. Util.YForLineGivenXAndTwoPts(
  2310. Util.VerticalSpeed(Head),
  2311. 50, 0,
  2312. 100, 1),
  2313. 0,1)
  2314. Util.Play(landingSound)
  2315. end
  2316. end
  2317. }
  2318.  
  2319. -- Handle state event fired or OnChange fired
  2320. function stateUpdated(state)
  2321. if stateUpdateHandler[state] ~= nil then
  2322. stateUpdateHandler[state]()
  2323. end
  2324. activeState = state
  2325. end
  2326.  
  2327. Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
  2328. Humanoid.Running:connect( function() stateUpdated(Enum.HumanoidStateType.Running) end)
  2329. Humanoid.Swimming:connect( function() stateUpdated(Enum.HumanoidStateType.Swimming) end)
  2330. Humanoid.Climbing:connect( function() stateUpdated(Enum.HumanoidStateType.Climbing) end)
  2331. Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
  2332. Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
  2333. Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
  2334. Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
  2335.  
  2336. -- required for proper handling of Landed event
  2337. Humanoid.StateChanged:connect(function(old, new)
  2338. stateUpdated(new)
  2339. end)
  2340.  
  2341.  
  2342. function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
  2343. local stepScale = stepDeltaSeconds / tickSpeedSeconds
  2344. do
  2345. local sound = Sounds[SFX.FreeFalling]
  2346. if activeState == Enum.HumanoidStateType.Freefall then
  2347. if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
  2348. Util.Resume(sound)
  2349.  
  2350. --Volume takes 1.1 seconds to go from volume 0 to 1
  2351. local ANIMATION_LENGTH_SECONDS = 1.1
  2352.  
  2353. local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
  2354. sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
  2355. else
  2356. sound.Volume = 0
  2357. end
  2358. else
  2359. Util.Pause(sound)
  2360. end
  2361. end
  2362.  
  2363. do
  2364. local sound = Sounds[SFX.Running]
  2365. if activeState == Enum.HumanoidStateType.Running then
  2366. if Util.HorizontalSpeed(Head) < 0.5 then
  2367. Util.Pause(sound)
  2368. end
  2369. end
  2370. end
  2371. end
  2372.  
  2373. local lastTick = tick()
  2374. local TICK_SPEED_SECONDS = 0.25
  2375. while true do
  2376. onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
  2377. lastTick = tick()
  2378. wait(TICK_SPEED_SECONDS)
  2379. end
  2380. end
  2381.  
  2382. end))
  2383. for i,v in pairs(mas:GetChildren()) do
  2384. v.Parent = workspace
  2385. pcall(function() v:MakeJoints() end)
  2386. end
  2387. mas:Destroy()
  2388. for i,v in pairs(cors) do
  2389. spawn(function()
  2390. pcall(v)
  2391. end)
  2392. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement