Advertisement
Animescapetower

old me boss fight okau

Mar 27th, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.26 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. BillboardGui3 = Instance.new("BillboardGui")
  23. TextLabel4 = Instance.new("TextLabel")
  24. Decal5 = Instance.new("Decal")
  25. BillboardGui6 = Instance.new("BillboardGui")
  26. TextLabel7 = Instance.new("TextLabel")
  27. Weld8 = Instance.new("Weld")
  28. Weld9 = Instance.new("Weld")
  29. Weld10 = Instance.new("Weld")
  30. Weld11 = Instance.new("Weld")
  31. Part12 = Instance.new("Part")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Motor6D15 = Instance.new("Motor6D")
  35. Motor6D16 = Instance.new("Motor6D")
  36. Sound17 = Instance.new("Sound")
  37. Sound18 = Instance.new("Sound")
  38. Sound19 = Instance.new("Sound")
  39. Sound20 = Instance.new("Sound")
  40. Sound21 = Instance.new("Sound")
  41. Motor6D22 = Instance.new("Motor6D")
  42. ParticleEmitter23 = Instance.new("ParticleEmitter")
  43. Script24 = Instance.new("Script")
  44. ParticleEmitter25 = Instance.new("ParticleEmitter")
  45. Script26 = Instance.new("Script")
  46. ParticleEmitter27 = Instance.new("ParticleEmitter")
  47. Script28 = Instance.new("Script")
  48. ParticleEmitter29 = Instance.new("ParticleEmitter")
  49. Script30 = Instance.new("Script")
  50. Sound31 = Instance.new("Sound")
  51. Sound32 = Instance.new("Sound")
  52. Sound33 = Instance.new("Sound")
  53. Sound34 = Instance.new("Sound")
  54. Sound35 = Instance.new("Sound")
  55. Sound36 = Instance.new("Sound")
  56. Part37 = Instance.new("Part")
  57. BillboardGui38 = Instance.new("BillboardGui")
  58. ImageLabel39 = Instance.new("ImageLabel")
  59. Script40 = Instance.new("Script")
  60. Part41 = Instance.new("Part")
  61. Part42 = Instance.new("Part")
  62. Part43 = Instance.new("Part")
  63. Part44 = Instance.new("Part")
  64. Humanoid45 = Instance.new("Humanoid")
  65. Part46 = Instance.new("Part")
  66. Motor6D47 = Instance.new("Motor6D")
  67. Script48 = Instance.new("Script")
  68. Script49 = Instance.new("Script")
  69. LocalScript50 = Instance.new("LocalScript")
  70. ObjectValue51 = Instance.new("ObjectValue")
  71. Script52 = Instance.new("Script")
  72. Script53 = Instance.new("Script")
  73. Script54 = Instance.new("Script")
  74. StringValue55 = Instance.new("StringValue")
  75. Animation56 = Instance.new("Animation")
  76. StringValue57 = Instance.new("StringValue")
  77. Animation58 = Instance.new("Animation")
  78. StringValue59 = Instance.new("StringValue")
  79. Animation60 = Instance.new("Animation")
  80. NumberValue61 = Instance.new("NumberValue")
  81. Animation62 = Instance.new("Animation")
  82. NumberValue63 = Instance.new("NumberValue")
  83. StringValue64 = Instance.new("StringValue")
  84. Animation65 = Instance.new("Animation")
  85. StringValue66 = Instance.new("StringValue")
  86. Animation67 = Instance.new("Animation")
  87. StringValue68 = Instance.new("StringValue")
  88. Animation69 = Instance.new("Animation")
  89. StringValue70 = Instance.new("StringValue")
  90. Animation71 = Instance.new("Animation")
  91. StringValue72 = Instance.new("StringValue")
  92. Animation73 = Instance.new("Animation")
  93. Pants74 = Instance.new("Pants")
  94. Shirt75 = Instance.new("Shirt")
  95. Hat76 = Instance.new("Hat")
  96. Part77 = Instance.new("Part")
  97. SpecialMesh78 = Instance.new("SpecialMesh")
  98. Hat79 = Instance.new("Hat")
  99. Part80 = Instance.new("Part")
  100. SpecialMesh81 = Instance.new("SpecialMesh")
  101. Script82 = Instance.new("Script")
  102. Hat83 = Instance.new("Hat")
  103. Part84 = Instance.new("Part")
  104. SpecialMesh85 = Instance.new("SpecialMesh")
  105. Hat86 = Instance.new("Hat")
  106. Part87 = Instance.new("Part")
  107. SpecialMesh88 = Instance.new("SpecialMesh")
  108. Script89 = Instance.new("Script")
  109. Model0.Name = "Animescapetower dARK"
  110. Model0.Parent = mas
  111. Model0.PrimaryPart = Part1
  112. Part1.Name = "Head"
  113. Part1.Parent = Model0
  114. Part1.Material = Enum.Material.SmoothPlastic
  115. Part1.Transparency = 0.30000001192093
  116. Part1.Rotation = Vector3.new(-180, -73.5800018, -180)
  117. Part1.Locked = true
  118. Part1.FormFactor = Enum.FormFactor.Symmetric
  119. Part1.Size = Vector3.new(2, 1, 1)
  120. Part1.CFrame = CFrame.new(-123.421837, 4.70000792, 20.4981041, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  121. Part1.TopSurface = Enum.SurfaceType.Smooth
  122. Part1.Position = Vector3.new(-123.421837, 4.70000792, 20.4981041)
  123. Part1.Orientation = Vector3.new(0, -106.419998, 0)
  124. SpecialMesh2.Parent = Part1
  125. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  126. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  127. BillboardGui3.Name = "NameGUI"
  128. BillboardGui3.Parent = Part1
  129. BillboardGui3.Size = UDim2.new(10, 0, 2, 0)
  130. BillboardGui3.Active = true
  131. BillboardGui3.AlwaysOnTop = true
  132. BillboardGui3.StudsOffset = Vector3.new(0, 1.5, 0)
  133. TextLabel4.Name = "Name"
  134. TextLabel4.Parent = BillboardGui3
  135. TextLabel4.Transparency = 1
  136. TextLabel4.Size = UDim2.new(1, 0, 0.699999988, 0)
  137. TextLabel4.Text = "Animescapetower(Darkness mode)"
  138. TextLabel4.BackgroundColor3 = Color3.new(1, 0, 0)
  139. TextLabel4.BackgroundTransparency = 1
  140. TextLabel4.BorderColor3 = Color3.new(0.0627451, 0.92549, 1)
  141. TextLabel4.Font = Enum.Font.SourceSansBold
  142. TextLabel4.FontSize = Enum.FontSize.Size48
  143. TextLabel4.TextColor3 = Color3.new(0, 0, 0)
  144. TextLabel4.TextScaled = true
  145. TextLabel4.TextStrokeColor3 = Color3.new(1, 0, 0)
  146. TextLabel4.TextStrokeTransparency = 0
  147. TextLabel4.TextWrapped = true
  148. Decal5.Parent = Part1
  149. Decal5.Texture = "http://www.roblox.com/asset/?id=460460302"
  150. BillboardGui6.Name = "LevelGUI"
  151. BillboardGui6.Parent = Part1
  152. BillboardGui6.Size = UDim2.new(10, 0, 2, 0)
  153. BillboardGui6.Active = true
  154. BillboardGui6.AlwaysOnTop = true
  155. BillboardGui6.StudsOffset = Vector3.new(0, 1.5, 0)
  156. TextLabel7.Name = "Level"
  157. TextLabel7.Parent = BillboardGui6
  158. TextLabel7.Transparency = 1
  159. TextLabel7.Size = UDim2.new(1, 0, 0.699999988, 0)
  160. TextLabel7.Text = "Level 450"
  161. TextLabel7.Position = UDim2.new(0, 0, 0, 20)
  162. TextLabel7.BackgroundColor3 = Color3.new(1, 0, 0)
  163. TextLabel7.BackgroundTransparency = 1
  164. TextLabel7.BorderColor3 = Color3.new(0.0627451, 0.92549, 1)
  165. TextLabel7.Font = Enum.Font.SourceSansBold
  166. TextLabel7.FontSize = Enum.FontSize.Size11
  167. TextLabel7.TextColor3 = Color3.new(0.47451, 0.0117647, 1)
  168. TextLabel7.TextScaled = true
  169. TextLabel7.TextStrokeColor3 = Color3.new(1, 0, 0)
  170. TextLabel7.TextStrokeTransparency = 0
  171. TextLabel7.TextWrapped = true
  172. Weld8.Name = "HeadWeld"
  173. Weld8.Parent = Part1
  174. Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  175. Weld8.C1 = CFrame.new(-0.0500000007, 0.550000012, -0.075000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  176. Weld8.Part0 = Part1
  177. Weld8.Part1 = Part77
  178. Weld9.Name = "HeadWeld"
  179. Weld9.Parent = Part1
  180. Weld9.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  181. Weld9.C1 = CFrame.new(0, 1.25, 0.800000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  182. Weld9.Part0 = Part1
  183. Weld9.Part1 = Part80
  184. Weld10.Name = "HeadWeld"
  185. Weld10.Parent = Part1
  186. Weld10.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  187. Weld10.C1 = CFrame.new(-0.0500000007, 0.550000012, -0.075000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  188. Weld10.Part0 = Part1
  189. Weld10.Part1 = Part84
  190. Weld11.Name = "HeadWeld"
  191. Weld11.Parent = Part1
  192. Weld11.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  193. Weld11.C1 = CFrame.new(-0.0500000007, 0.550000012, -0.075000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  194. Weld11.Part0 = Part1
  195. Weld11.Part1 = Part87
  196. Part12.Name = "Torso"
  197. Part12.Parent = Model0
  198. Part12.Material = Enum.Material.SmoothPlastic
  199. Part12.Transparency = 0.30000001192093
  200. Part12.Rotation = Vector3.new(-180, -73.5800018, -180)
  201. Part12.Locked = true
  202. Part12.FormFactor = Enum.FormFactor.Symmetric
  203. Part12.Size = Vector3.new(2, 2, 1)
  204. Part12.CFrame = CFrame.new(-123.421837, 3.20000792, 20.4981041, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  205. Part12.LeftSurface = Enum.SurfaceType.Weld
  206. Part12.RightSurface = Enum.SurfaceType.Weld
  207. Part12.Position = Vector3.new(-123.421837, 3.20000792, 20.4981041)
  208. Part12.Orientation = Vector3.new(0, -106.419998, 0)
  209. Motor6D13.Name = "Right Shoulder"
  210. Motor6D13.Parent = Part12
  211. Motor6D13.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  212. Motor6D13.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  213. Motor6D13.Part0 = Part12
  214. Motor6D13.Part1 = Part42
  215. Motor6D13.DesiredAngle = -0.071470186114311
  216. Motor6D13.MaxVelocity = 0.15000000596046
  217. Motor6D14.Name = "Left Shoulder"
  218. Motor6D14.Parent = Part12
  219. Motor6D14.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  220. Motor6D14.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  221. Motor6D14.Part0 = Part12
  222. Motor6D14.Part1 = Part41
  223. Motor6D14.DesiredAngle = -0.071470186114311
  224. Motor6D14.MaxVelocity = 0.15000000596046
  225. Motor6D15.Name = "Right Hip"
  226. Motor6D15.Parent = Part12
  227. Motor6D15.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  228. Motor6D15.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  229. Motor6D15.Part0 = Part12
  230. Motor6D15.Part1 = Part44
  231. Motor6D15.DesiredAngle = 0.071470186114311
  232. Motor6D15.MaxVelocity = 0.10000000149012
  233. Motor6D16.Name = "Left Hip"
  234. Motor6D16.Parent = Part12
  235. Motor6D16.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  236. Motor6D16.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  237. Motor6D16.Part0 = Part12
  238. Motor6D16.Part1 = Part43
  239. Motor6D16.DesiredAngle = 0.071470186114311
  240. Motor6D16.MaxVelocity = 0.10000000149012
  241. Sound17.Name = "DMG"
  242. Sound17.Parent = Part12
  243. Sound17.Pitch = 1.25
  244. Sound17.SoundId = "rbxassetid://138087186"
  245. Sound17.Volume = 1
  246. Sound18.Name = "DMG2"
  247. Sound18.Parent = Part12
  248. Sound18.SoundId = "rbxassetid://131237241"
  249. Sound18.Volume = 1
  250. Sound19.Name = "FinalFlash"
  251. Sound19.Parent = Part12
  252. Sound19.Pitch = 1.5
  253. Sound19.SoundId = "rbxassetid://161251144"
  254. Sound19.Volume = 1
  255. Sound20.Name = "SaiyanEnergy"
  256. Sound20.Parent = Part12
  257. Sound20.Pitch = 6
  258. Sound20.SoundId = "rbxassetid://98333808"
  259. Sound20.Volume = 1
  260. Sound21.Name = "SaiyanEnergy2"
  261. Sound21.Parent = Part12
  262. Sound21.SoundId = "rbxassetid://491515754"
  263. Sound21.Volume = 1
  264. Sound21.Looped = true
  265. Motor6D22.Name = "Neck"
  266. Motor6D22.Parent = Part12
  267. Motor6D22.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  268. Motor6D22.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  269. Motor6D22.Part0 = Part12
  270. Motor6D22.Part1 = Part1
  271. Motor6D22.MaxVelocity = 0.10000000149012
  272. ParticleEmitter23.Name = "BlackAura"
  273. ParticleEmitter23.Parent = Part12
  274. ParticleEmitter23.Transparency = NumberSequence.new(1,1)
  275. ParticleEmitter23.Size = NumberSequence.new(7,7)
  276. ParticleEmitter23.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  277. ParticleEmitter23.LightEmission = 1
  278. ParticleEmitter23.Texture = "rbxassetid://358965396"
  279. ParticleEmitter23.Lifetime = NumberRange.new(1, 1)
  280. ParticleEmitter23.Speed = NumberRange.new(9, 9)
  281. ParticleEmitter23.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  282. Script24.Parent = ParticleEmitter23
  283. table.insert(cors,sandbox(Script24,function()
  284. while true do --Loop
  285. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965396" --Insert decal's first texture
  286. wait(0.04)
  287. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965513" --second texture
  288. wait(0.04) --wait 1 second, you can change this and make it different for every one
  289. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965632"
  290. wait(0.04)
  291. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965664"
  292. wait(0.04)
  293. end
  294. end))
  295. ParticleEmitter25.Name = "Aura2"
  296. ParticleEmitter25.Parent = Part12
  297. ParticleEmitter25.Transparency = NumberSequence.new(1,1)
  298. ParticleEmitter25.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  299. ParticleEmitter25.Color = ColorSequence.new(Color3.new(0.333333, 0.666667, 1),Color3.new(0.333333, 0.666667, 1))
  300. ParticleEmitter25.LightEmission = 0.55000001192093
  301. ParticleEmitter25.Lifetime = NumberRange.new(1, 1)
  302. ParticleEmitter25.Rate = 50
  303. ParticleEmitter25.Speed = NumberRange.new(2, 2)
  304. ParticleEmitter25.VelocitySpread = 50
  305. ParticleEmitter25.Color = ColorSequence.new(Color3.new(0.333333, 0.666667, 1),Color3.new(0.333333, 0.666667, 1))
  306. Script26.Parent = ParticleEmitter25
  307. table.insert(cors,sandbox(Script26,function()
  308. while true do --Loop
  309. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965396" --Insert decal's first texture
  310. wait(0.04)
  311. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965513" --second texture
  312. wait(0.04) --wait 1 second, you can change this and make it different for every one
  313. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965632"
  314. wait(0.04)
  315. script.Parent.Texture = "http://www.roblox.com/asset/?id=358965664"
  316. wait(0.04)
  317. end
  318. end))
  319. ParticleEmitter27.Name = "Aura1"
  320. ParticleEmitter27.Parent = Part12
  321. ParticleEmitter27.Transparency = NumberSequence.new(1,1)
  322. ParticleEmitter27.Size = NumberSequence.new(15,15)
  323. ParticleEmitter27.Color = ColorSequence.new(Color3.new(0.117647, 0.117647, 0.117647),Color3.new(0.117647, 0.117647, 0.117647))
  324. ParticleEmitter27.LightEmission = 1.1799999475479
  325. ParticleEmitter27.Texture = "rbxassetid://260611998"
  326. ParticleEmitter27.ZOffset = 1
  327. ParticleEmitter27.Lifetime = NumberRange.new(1, 1)
  328. ParticleEmitter27.Rate = 120
  329. ParticleEmitter27.Speed = NumberRange.new(15, 15)
  330. ParticleEmitter27.Color = ColorSequence.new(Color3.new(0.117647, 0.117647, 0.117647),Color3.new(0.117647, 0.117647, 0.117647))
  331. Script28.Parent = ParticleEmitter27
  332. table.insert(cors,sandbox(Script28,function()
  333. while true do --Loop
  334. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998" --Insert decal's first texture
  335. wait(0.04)
  336. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998" --second texture
  337. wait(0.04) --wait 1 second, you can change this and make it different for every one
  338. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998"
  339. wait(0.04)
  340. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998"
  341. wait(0.04)
  342. end
  343. end))
  344. ParticleEmitter29.Name = "BlackAura2"
  345. ParticleEmitter29.Parent = Part12
  346. ParticleEmitter29.Transparency = NumberSequence.new(1,1)
  347. ParticleEmitter29.Size = NumberSequence.new(10,10)
  348. ParticleEmitter29.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.666667, 0, 0))
  349. ParticleEmitter29.LightEmission = 1
  350. ParticleEmitter29.Texture = "rbxassetid://260611998"
  351. ParticleEmitter29.ZOffset = 1
  352. ParticleEmitter29.Lifetime = NumberRange.new(1, 1)
  353. ParticleEmitter29.Speed = NumberRange.new(10, 10)
  354. ParticleEmitter29.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.666667, 0, 0))
  355. Script30.Parent = ParticleEmitter29
  356. table.insert(cors,sandbox(Script30,function()
  357. while true do --Loop
  358. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998" --Insert decal's first texture
  359. wait(0.04)
  360. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998" --second texture
  361. wait(0.04) --wait 1 second, you can change this and make it different for every one
  362. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998"
  363. wait(0.04)
  364. script.Parent.Texture = "http://www.roblox.com/asset/?id=260611998"
  365. wait(0.04)
  366. end
  367. end))
  368. Sound31.Name = "Teleport"
  369. Sound31.Parent = Part12
  370. Sound31.Pitch = 2
  371. Sound31.SoundId = "rbxassetid://216782105"
  372. Sound31.Volume = 1
  373. Sound32.Name = "Miss"
  374. Sound32.Parent = Part12
  375. Sound32.SoundId = "rbxassetid://174413237"
  376. Sound33.Name = "Voice3"
  377. Sound33.Parent = Part12
  378. Sound33.Pitch = 1.2000000476837
  379. Sound33.SoundId = "rbxassetid://190995007"
  380. Sound33.Volume = 1
  381. Sound34.Name = "Voice2"
  382. Sound34.Parent = Part12
  383. Sound34.Pitch = 0.30000001192093
  384. Sound34.SoundId = "rbxassetid://132236830"
  385. Sound34.Volume = 1
  386. Sound35.Name = "Voice1"
  387. Sound35.Parent = Part12
  388. Sound35.Pitch = 1.2000000476837
  389. Sound35.SoundId = "rbxassetid://159490394"
  390. Sound35.Volume = 1
  391. Sound36.Name = "Voice4"
  392. Sound36.Parent = Part12
  393. Sound36.Pitch = 6
  394. Sound36.SoundId = "rbxassetid://216782105"
  395. Sound36.Volume = 1
  396. Part37.Name = "TeleportEffect"
  397. Part37.Parent = Part12
  398. Part37.Material = Enum.Material.SmoothPlastic
  399. Part37.BrickColor = BrickColor.new("Institutional white")
  400. Part37.Transparency = 1
  401. Part37.Rotation = Vector3.new(0, -90, 0)
  402. Part37.Anchored = true
  403. Part37.CanCollide = false
  404. Part37.FormFactor = Enum.FormFactor.Custom
  405. Part37.Size = Vector3.new(2, 2, 1)
  406. Part37.CFrame = CFrame.new(-5.07995605, 6.19000816, -8.41711426, 4.64180347e-22, 7.54698154e-22, -1, -5.23691863e-22, 1, 7.54698154e-22, 1, 5.23691863e-22, 4.64180347e-22)
  407. Part37.BottomSurface = Enum.SurfaceType.Smooth
  408. Part37.TopSurface = Enum.SurfaceType.Smooth
  409. Part37.Color = Color3.new(0.972549, 0.972549, 0.972549)
  410. Part37.Position = Vector3.new(-5.07995605, 6.19000816, -8.41711426)
  411. Part37.Orientation = Vector3.new(0, -90, 0)
  412. Part37.Color = Color3.new(0.972549, 0.972549, 0.972549)
  413. BillboardGui38.Name = "Gui"
  414. BillboardGui38.Parent = Part37
  415. BillboardGui38.Size = UDim2.new(5, 0, 5, 0)
  416. BillboardGui38.Active = true
  417. ImageLabel39.Name = "Image"
  418. ImageLabel39.Parent = BillboardGui38
  419. ImageLabel39.Transparency = 1
  420. ImageLabel39.Size = UDim2.new(2.5, 0, 2.5, 0)
  421. ImageLabel39.Position = UDim2.new(0, -40, 0, -40)
  422. ImageLabel39.Active = true
  423. ImageLabel39.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  424. ImageLabel39.BackgroundTransparency = 1
  425. ImageLabel39.Image = "rbxassetid://507458850"
  426. Script40.Parent = Part37
  427. table.insert(cors,sandbox(Script40,function()
  428. e = game:GetService("ReplicatedStorage")
  429. script.Parent.Parent = e
  430. script:Destroy()
  431. end))
  432. Part41.Name = "Left Arm"
  433. Part41.Parent = Model0
  434. Part41.Material = Enum.Material.SmoothPlastic
  435. Part41.Transparency = 0.30000001192093
  436. Part41.Rotation = Vector3.new(-180, -73.5800018, -180)
  437. Part41.CanCollide = false
  438. Part41.Locked = true
  439. Part41.FormFactor = Enum.FormFactor.Symmetric
  440. Part41.Size = Vector3.new(1, 2, 1)
  441. Part41.CFrame = CFrame.new(-122.99791, 3.20000792, 19.0592556, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  442. Part41.Position = Vector3.new(-122.99791, 3.20000792, 19.0592556)
  443. Part41.Orientation = Vector3.new(0, -106.419998, 0)
  444. Part42.Name = "Right Arm"
  445. Part42.Parent = Model0
  446. Part42.Material = Enum.Material.SmoothPlastic
  447. Part42.Transparency = 0.30000001192093
  448. Part42.Rotation = Vector3.new(-180, -73.5800018, -180)
  449. Part42.CanCollide = false
  450. Part42.Locked = true
  451. Part42.FormFactor = Enum.FormFactor.Symmetric
  452. Part42.Size = Vector3.new(1, 2, 1)
  453. Part42.CFrame = CFrame.new(-123.845764, 3.20000792, 21.9369526, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  454. Part42.Position = Vector3.new(-123.845764, 3.20000792, 21.9369526)
  455. Part42.Orientation = Vector3.new(0, -106.419998, 0)
  456. Part43.Name = "Left Leg"
  457. Part43.Parent = Model0
  458. Part43.Material = Enum.Material.SmoothPlastic
  459. Part43.Transparency = 0.30000001192093
  460. Part43.Rotation = Vector3.new(-180, -73.5800018, -180)
  461. Part43.CanCollide = false
  462. Part43.Locked = true
  463. Part43.FormFactor = Enum.FormFactor.Symmetric
  464. Part43.Size = Vector3.new(1, 2, 1)
  465. Part43.CFrame = CFrame.new(-123.280525, 1.20000792, 20.0184879, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  466. Part43.BottomSurface = Enum.SurfaceType.Smooth
  467. Part43.Position = Vector3.new(-123.280525, 1.20000792, 20.0184879)
  468. Part43.Orientation = Vector3.new(0, -106.419998, 0)
  469. Part44.Name = "Right Leg"
  470. Part44.Parent = Model0
  471. Part44.Material = Enum.Material.SmoothPlastic
  472. Part44.Transparency = 0.30000001192093
  473. Part44.Rotation = Vector3.new(-180, -73.5800018, -180)
  474. Part44.CanCollide = false
  475. Part44.Locked = true
  476. Part44.FormFactor = Enum.FormFactor.Symmetric
  477. Part44.Size = Vector3.new(1, 2, 1)
  478. Part44.CFrame = CFrame.new(-123.563148, 1.20000792, 20.9777203, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  479. Part44.BottomSurface = Enum.SurfaceType.Smooth
  480. Part44.Position = Vector3.new(-123.563148, 1.20000792, 20.9777203)
  481. Part44.Orientation = Vector3.new(0, -106.419998, 0)
  482. Humanoid45.Parent = Model0
  483. Humanoid45.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  484. Humanoid45.HealthDisplayDistance = 200
  485. Humanoid45.NameDisplayDistance = 200
  486. Humanoid45.RightLeg = Part44
  487. Humanoid45.LeftLeg = Part43
  488. Humanoid45.Torso = Part46
  489. Humanoid45.Health = 30000
  490. Humanoid45.MaxHealth = 30000
  491. Humanoid45.WalkSpeed = 17
  492. Part46.Name = "HumanoidRootPart"
  493. Part46.Parent = Model0
  494. Part46.Material = Enum.Material.SmoothPlastic
  495. Part46.Transparency = 0.30000001192093
  496. Part46.Rotation = Vector3.new(-180, -73.5800018, -180)
  497. Part46.CanCollide = false
  498. Part46.Locked = true
  499. Part46.FormFactor = Enum.FormFactor.Symmetric
  500. Part46.Size = Vector3.new(2, 2, 1)
  501. Part46.CFrame = CFrame.new(-123.421837, 3.20000792, 20.4981041, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  502. Part46.BottomSurface = Enum.SurfaceType.Smooth
  503. Part46.TopSurface = Enum.SurfaceType.Smooth
  504. Part46.Position = Vector3.new(-123.421837, 3.20000792, 20.4981041)
  505. Part46.Orientation = Vector3.new(0, -106.419998, 0)
  506. Motor6D47.Name = "RootJoint"
  507. Motor6D47.Parent = Part46
  508. Motor6D47.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  509. Motor6D47.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  510. Motor6D47.Part0 = Part46
  511. Motor6D47.Part1 = Part12
  512. Motor6D47.MaxVelocity = 0.10000000149012
  513. Script48.Name = "zSpecial"
  514. Script48.Parent = Model0
  515. table.insert(cors,sandbox(Script48,function()
  516. s = script.Parent
  517.  
  518. if s.Humanoid.Health > 0 then
  519. bd = s.HumanoidRootPart.RootJoint
  520. a1 = s.Torso:FindFirstChild("Left Shoulder")
  521. a2 = s.Torso:FindFirstChild("Right Shoulder")
  522. l1 = s.Torso:FindFirstChild("Left Hip")
  523. l2 = s.Torso:FindFirstChild("Right Hip")
  524. combo = false
  525. Tele = false
  526. transformed = false
  527. hits = 0
  528. end
  529.  
  530. --[[Basic Stats]]
  531. attack = 50 --[[Combo Damage]]
  532. force = 1000 --[[Energy Damage]]
  533. needed = 100 --[[Hits for Special]]
  534.  
  535. function HalfReset()
  536. if s.Humanoid.Health > 0 then
  537. bd.C0 = bd.C1 * CFrame.new(0,0,0)
  538. a1.C0 = a1.C1 * CFrame.new(0,0,1.5)
  539. a2.C0 = a2.C1 * CFrame.new(0,0,1.5)
  540. l1.C0 = l1.C1 * CFrame.new(0,-2,0.5)
  541. l2.C0 = l2.C1 * CFrame.new(0,-2,0.5)
  542. end
  543. end
  544.  
  545. function FullReset()
  546. if s.Humanoid.Health > 0 then
  547. HalfReset()
  548. combo = false
  549. end
  550. end
  551.  
  552. function Attack()
  553. if combo == false and s.Humanoid.Health > 0 then
  554. combo = true
  555. local audio = math.random(1,2) --[[Random Play]]
  556. if audio == 1 then s.Torso.Voice2:Play() s.Torso.Miss:Play() else s.Torso.Voice3:Play() s.Torso.Miss:Play() end
  557. for i = 1,5 do wait()
  558. a1.C0 = a1.C0 * CFrame.Angles(0,0,-0.32)
  559. a2.C0 = a2.C0 * CFrame.Angles(0,0,0.32)
  560. end
  561. for i = 1,5 do wait()
  562. bd.C0 = bd.C0 * CFrame.Angles(0,0,0.1)
  563. a2.C0 = a2.C0 * CFrame.Angles(0.2,0,0)
  564. end
  565. local audio = math.random(1,2) --[[Random Play]]
  566. if audio == 1 then s.Torso.Voice3:Play() s.Torso.Miss:Play() else s.Torso.Voice2:Play() s.Torso.Miss:Play() end
  567. for i = 1,5 do wait()
  568. bd.C0 = bd.C0 * CFrame.Angles(0,0,-0.2)
  569. a2.C0 = a2.C0 * CFrame.Angles(-0.3,0,0)
  570. end
  571. for i = 1,5 do wait()
  572. bd.C0 = bd.C0 * CFrame.Angles(0,0,0.2)
  573. a1.C0 = a1.C0 * CFrame.Angles(0.2,0,0)
  574. end
  575. for i = 1,5 do wait()
  576. bd.C0 = bd.C0 * CFrame.Angles(0,0,0.1)
  577. a1.C0 = a1.C0 * CFrame.Angles(-0.3,0,0)
  578. end
  579. local audio = math.random(1,2) --[[Random Play]]
  580. if audio == 1 then s.Torso.Miss:Play() else s.Torso.Miss:Play() end
  581. FullReset()
  582. end
  583. end
  584.  
  585. function teleport()
  586. if Tele == false then
  587. Tele = true
  588. wait(0.05)
  589. s.Torso.Teleport:Play()
  590. local effect = game.ReplicatedStorage.TeleportEffect:clone()
  591. effect.Parent = s
  592. effect.CFrame = s.Torso.CFrame * CFrame.Angles(0,5,0)
  593. s.Torso.CFrame = s.Torso.CFrame * CFrame.new(0,0,-10)
  594. wait(0.6)
  595. effect:Destroy()
  596. Tele = false
  597. end
  598. end
  599.  
  600. function Kamehameha()
  601. if s.Humanoid.Health > 0 then
  602. game:GetService("Chat"):Chat(s.Head,"Dark Flash!!",Enum.ChatColor.Red)
  603. s.Torso.Voice4:Play()
  604. local ball = Instance.new("Part")
  605. ball.BrickColor = BrickColor.new("Dark blue")
  606. ball.Material = "Neon"
  607. ball.TopSurface = "Smooth"
  608. ball.BottomSurface = "Smooth"
  609. ball.FormFactor = "Custom"
  610. ball.Size = Vector3.new(10,10,10)
  611. ball.Transparency = 0
  612. ball.Anchored = true
  613. ball.CanCollide = false
  614. ball.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
  615. ball2 = Instance.new("Part")
  616. ball2.BrickColor = BrickColor.new("Toothpaste")
  617. ball2.Material = "Neon"
  618. ball2.TopSurface = "Smooth"
  619. ball2.BottomSurface = "Smooth"
  620. ball2.FormFactor = "Custom"
  621. ball2.Size = Vector3.new(15,15,15)
  622. ball2.Transparency = 0.5
  623. ball2.Anchored = true
  624. ball2.CanCollide = false
  625. ball2.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
  626. local mesh = Instance.new("SpecialMesh")
  627. mesh.MeshType = "Sphere"
  628. mesh.Parent = ball
  629. local mesh2 = Instance.new("SpecialMesh")
  630. mesh2.MeshType = "Sphere"
  631. mesh2.Parent = ball2
  632. ball.Parent = game.Workspace
  633. ball2.Parent = game.Workspace
  634. a1.C0 = a1.C0 * CFrame.Angles(0,0,-1.6)
  635. a2.C0 = a2.C0 * CFrame.Angles(0,0,1.6)
  636. a1.C0 = a1.C0 * CFrame.Angles(1,0,0)
  637. a2.C0 = a2.C0 * CFrame.Angles(1,0,0)
  638. ball.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
  639. ball2.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
  640. s.Torso.FinalFlash:Play()
  641. local beam = Instance.new("Part")
  642. beam.BrickColor = BrickColor.new("Dark blue")
  643. beam.Material = "Neon"
  644. beam.TopSurface = "Smooth"
  645. beam.BottomSurface = "Smooth"
  646. beam.FormFactor = "Custom"
  647. beam.Size = Vector3.new(10,100,10)
  648. beam.Transparency = 0
  649. beam.Anchored = true
  650. beam.CanCollide = false
  651. beam.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
  652. beam.CFrame = beam.CFrame * CFrame.Angles(1.6,0,0)
  653. beam2 = Instance.new("Part")
  654. beam2.BrickColor = BrickColor.new("Lime Green")
  655. beam2.Material = "Neon"
  656. beam2.TopSurface = "Smooth"
  657. beam2.BottomSurface = "Smooth"
  658. beam2.FormFactor = "Custom"
  659. beam2.Size = Vector3.new(15,100,15)
  660. beam2.Transparency = 0.5
  661. beam2.Anchored = true
  662. beam2.CanCollide = false
  663. beam2.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
  664. beam2.CFrame = beam2.CFrame * CFrame.Angles(1.6,0,0)
  665. local mesh = Instance.new("SpecialMesh")
  666. mesh.Scale = Vector3.new(0.75,0.1,0.75)
  667. mesh.Parent = beam
  668. local mesh2 = Instance.new("SpecialMesh")
  669. mesh2.Scale = Vector3.new(0.75,0.1,0.75)
  670. mesh2.Parent = beam2
  671. beam.Parent = game.Workspace
  672. beam2.Parent = game.Workspace
  673. beam2.Touched:connect(function(hit)
  674. local h = hit.Parent:FindFirstChild("Humanoid")
  675. if h ~= nil then
  676. local hax = h.Parent:FindFirstChild("ForceField")
  677. if hax == nil then
  678. h.Health = h.Health - 5
  679. h.Torso.CFrame = h.Torso.CFrame * CFrame.new(0,0,-2)
  680. wait()
  681. end
  682. end
  683. end)
  684. for i = 1,40 do wait()
  685. beam.CFrame = beam.CFrame * CFrame.new(0,-5,0)
  686. beam2.CFrame = beam2.CFrame * CFrame.new(0,-5,0)
  687. mesh.Scale = mesh.Scale + Vector3.new(0,0.1,0)
  688. mesh2.Scale = mesh2.Scale + Vector3.new(0,0.1,0)
  689. ball.Transparency = ball.Transparency + 0.025
  690. ball2.Transparency = ball2.Transparency + 0.0125
  691. beam.Transparency = beam.Transparency + 0.025
  692. beam2.Transparency = beam2.Transparency + 0.0125
  693. end
  694. ball:Destroy()
  695. ball2:Destroy()
  696. beam:Destroy()
  697. beam2:Destroy()
  698. FullReset()
  699. end
  700. end
  701.  
  702. s.Humanoid.HealthChanged:connect(function()
  703. if s.Humanoid.Health == s.Humanoid.Health - 500000 then
  704. attack = attack + 10
  705. force = force + 10
  706. s.Humanoid.Health = s.Humanoid.Health + 100
  707. end
  708. if transformed == false and s.Humanoid.Health <= 40000 then
  709. transformed = true
  710. game:GetService("Chat"):Chat(s.Head,"Im Dark Aura Anime",Enum.ChatColor.Red)
  711. ex2 = Instance.new("Explosion")
  712. ex2.Position = s.Torso.Position
  713. ex2.BlastPressure = 0
  714. ex2.Parent = workspace
  715. s.Torso.Voice2:Play()
  716. s.Humanoid.Health = s.Humanoid.Health + 50000
  717. s.Torso.BlackAura.Transparency = NumberSequence.new(0)
  718. s.Torso.BlackAura2.Transparency = NumberSequence.new(0)
  719. s.Torso.SaiyanEnergy:Play()
  720. FullReset()
  721. attack = attack + 13
  722. force = force + 20
  723. end
  724. if transformed == true and s.Humanoid.Health <= 20000 then
  725. game:GetService("Chat"):Chat(s.Head,"You have no chance againts me No foolin around!!",Enum.ChatColor.Red)
  726. s.Torso.Voice1:Play()
  727. ex2 = Instance.new("Explosion")
  728. ex2.Position = s.Torso.Position
  729. ex2.BlastPressure = 0
  730. ex2.Parent = workspace
  731. s.Humanoid.Health = s.Humanoid.Health + 10000
  732. s.Humanoid.WalkSpeed = s.Humanoid.WalkSpeed * 2
  733. s.Hair:Destroy()
  734. s.Torso.BlackAura:Destroy()
  735. s.Torso.BlackAura2:Destroy()
  736. s.Torso.Aura1.Transparency = NumberSequence.new(0.3)
  737. s.Torso.Aura2.Transparency = NumberSequence.new(0.3)
  738. s.SuperSaiyanHair.Handle.Transparency = 0
  739. s.Head.Decal.Texture = "rbxassetid://601974383"
  740. s.Torso.SaiyanEnergy:Play()
  741. s.Torso.SaiyanEnergy2:Play()
  742. ball2.BrickColor = BrickColor.new("Toothpaste")
  743. beam2.BrickColor = BrickColor.new("Toothpaste")
  744. FullReset()
  745. attack = attack + 10
  746. force = force + 10
  747. end
  748. end)
  749.  
  750. s.Torso.Touched:connect(function(hit)
  751. local h = hit.Parent:FindFirstChild("Humanoid")
  752. if h ~= nil then
  753. if hits < needed and s.Humanoid.Health > 0 then
  754. local audio = math.random(1,2) --[[Random Play]]
  755. if audio == 1 then s.Torso.DMG:Play() else s.Torso.DMG2:Play() end
  756. h.Health = h.Health - attack
  757. hits = hits + 1
  758. Attack()
  759. else
  760. hits = 0
  761. local ay = math.random(1,2)
  762. if ay == 1 then
  763. Kamehameha()
  764. else
  765. teleport()
  766. end
  767. end
  768. end
  769. end)
  770. end))
  771. Script49.Name = "Ragdoller"
  772. Script49.Parent = Model0
  773. table.insert(cors,sandbox(Script49,function()
  774. print("Ragdoll script activated")
  775. Gibs = game.Workspace
  776.  
  777. function getKillerOfHumanoidIfStillInGame(humanoid)
  778. local tag = humanoid:findFirstChild("creator")
  779. if tag ~= nil then
  780. local killer = tag.Value
  781. if killer.Parent ~= nil then
  782. return killer
  783. end
  784. end
  785. return nil
  786. end
  787.  
  788. function OnDeath(Character)
  789. local svch = Character
  790. local hum = Character:findFirstChild("Humanoid")
  791. local getkiller = getKillerOfHumanoidIfStillInGame(hum)
  792. Character.Archivable = true
  793. local chrclone = Character:clone()
  794. Character.Archivable = false
  795.  
  796. local ch = chrclone:GetChildren()
  797. local i
  798. for i = 1,#ch do
  799. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  800. ch[i]:remove()
  801. end
  802. end
  803. local function Scan(ch)
  804. local e
  805. for e = 1,#ch do
  806. Scan(ch[e]:GetChildren())
  807. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  808. ch[e]:remove()
  809. end
  810. end
  811. end
  812. Scan(chrclone:GetChildren())
  813.  
  814. local hum2 = chrclone:findFirstChild("Humanoid")
  815.  
  816.  
  817. if hum2 ~= nil then
  818. hum2.Name = "Humanoid2"
  819. hum2.PlatformStand = true
  820. hum2.Sit = true
  821. hum2.MaxHealth = 0
  822. hum2.Health = 0
  823. end
  824.  
  825. local ch = Character:GetChildren()
  826. local i
  827. for i = 1,#ch do
  828. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  829. ch[i]:remove()
  830. end
  831. end
  832.  
  833. wait(0.2)
  834.  
  835. local ch = Character:GetChildren()
  836. local i
  837. for i = 1,#ch do
  838. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  839. ch[i]:remove()
  840. end
  841. end
  842. Character = chrclone
  843. local Torso = Character.Torso
  844. local movevector = Vector3.new()
  845.  
  846. if Torso then
  847. if getkiller ~= nil then
  848. if getkiller.Character ~= nil then
  849. local killtors = getkiller.Character:findFirstChild("Torso")
  850. if killtors ~= nil then
  851. movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
  852. end
  853. end
  854. end
  855. local Head = Character:FindFirstChild("Head")
  856. if Head then
  857. local Neck = Instance.new("Weld")
  858. Neck.Name = "Neck"
  859. Neck.Part0 = Torso
  860. Neck.Part1 = Head
  861. Neck.C0 = CFrame.new(0, 1.5, 0)
  862. Neck.C1 = CFrame.new()
  863. Neck.Parent = Torso
  864.  
  865. local nsc = script.CamAttach:clone()
  866. nsc.CamPart.Value = hum2.Parent.Head
  867. nsc.Disabled = false
  868. nsc.Parent = svch
  869. end
  870. local Limb = Character:FindFirstChild("Right Arm")
  871. if Limb then
  872.  
  873. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  874. local Joint = Instance.new("Glue")
  875. Joint.Name = "RightShoulder"
  876. Joint.Part0 = Torso
  877. Joint.Part1 = Limb
  878. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  879. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  880. Joint.Parent = Torso
  881.  
  882. local B = Instance.new("Part")
  883. B.TopSurface = 0
  884. B.BottomSurface = 0
  885. B.formFactor = "Symmetric"
  886. B.Size = Vector3.new(1, 1, 1)
  887. B.Transparency = 1
  888. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  889. B.Parent = Character
  890. local W = Instance.new("Weld")
  891. W.Part0 = Limb
  892. W.Part1 = B
  893. W.C0 = CFrame.new(0, -0.5, 0)
  894. W.Parent = Limb
  895.  
  896. end
  897. local Limb = Character:FindFirstChild("Left Arm")
  898. if Limb then
  899.  
  900. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  901. local Joint = Instance.new("Glue")
  902. Joint.Name = "LeftShoulder"
  903. Joint.Part0 = Torso
  904. Joint.Part1 = Limb
  905. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  906. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  907. Joint.Parent = Torso
  908.  
  909. local B = Instance.new("Part")
  910. B.TopSurface = 0
  911. B.BottomSurface = 0
  912. B.formFactor = "Symmetric"
  913. B.Size = Vector3.new(1, 1, 1)
  914. B.Transparency = 1
  915. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  916. B.Parent = Character
  917. local W = Instance.new("Weld")
  918. W.Part0 = Limb
  919. W.Part1 = B
  920. W.C0 = CFrame.new(0, -0.5, 0)
  921. W.Parent = Limb
  922.  
  923. end
  924. local Limb = Character:FindFirstChild("Right Leg")
  925. if Limb then
  926.  
  927. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  928. local Joint = Instance.new("Glue")
  929. Joint.Name = "RightHip"
  930. Joint.Part0 = Torso
  931. Joint.Part1 = Limb
  932. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  933. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  934. Joint.Parent = Torso
  935.  
  936. local B = Instance.new("Part")
  937. B.TopSurface = 0
  938. B.BottomSurface = 0
  939. B.formFactor = "Symmetric"
  940. B.Size = Vector3.new(1, 1, 1)
  941. B.Transparency = 1
  942. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  943. B.Parent = Character
  944. local W = Instance.new("Weld")
  945. W.Part0 = Limb
  946. W.Part1 = B
  947. W.C0 = CFrame.new(0, -0.5, 0)
  948. W.Parent = Limb
  949.  
  950. end
  951. local Limb = Character:FindFirstChild("Left Leg")
  952. if Limb then
  953.  
  954. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  955. local Joint = Instance.new("Glue")
  956. Joint.Name = "LeftHip"
  957. Joint.Part0 = Torso
  958. Joint.Part1 = Limb
  959. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  960. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  961. Joint.Parent = Torso
  962.  
  963. local B = Instance.new("Part")
  964. B.TopSurface = 0
  965. B.BottomSurface = 0
  966. B.formFactor = "Symmetric"
  967. B.Size = Vector3.new(1, 1, 1)
  968. B.Transparency = 1
  969. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  970. B.Parent = Character
  971. local W = Instance.new("Weld")
  972. W.Part0 = Limb
  973. W.Part1 = B
  974. W.C0 = CFrame.new(0, -0.5, 0)
  975. W.Parent = Limb
  976.  
  977. end
  978. --[
  979. local Bar = Instance.new("Part")
  980. Bar.TopSurface = 0
  981. Bar.BottomSurface = 0
  982. Bar.formFactor = "Symmetric"
  983. Bar.Size = Vector3.new(1, 1, 1)
  984. Bar.Transparency = 1
  985. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  986. Bar.Parent = Character
  987. local Weld = Instance.new("Weld")
  988. Weld.Part0 = Torso
  989. Weld.Part1 = Bar
  990. Weld.C0 = CFrame.new(0, 0.5, 0)
  991. Weld.Parent = Torso
  992. --]]
  993. end
  994. Character.Parent = Gibs
  995. game.Debris:AddItem(Character, 12)
  996. if movevector ~= Vector3.new() then
  997. for i = 1,10 do
  998. wait()
  999. Torso.Velocity = movevector * 30
  1000. end
  1001. end
  1002. end
  1003.  
  1004. script.Parent.Humanoid.Died:connect(function()
  1005. OnDeath(script.Parent)
  1006. end)
  1007.  
  1008.  
  1009. end))
  1010. LocalScript50.Name = "CamAttach"
  1011. LocalScript50.Parent = Script49
  1012. LocalScript50.Disabled = true
  1013. table.insert(cors,sandbox(LocalScript50,function()
  1014. wait()
  1015. game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
  1016. end))
  1017. ObjectValue51.Name = "CamPart"
  1018. ObjectValue51.Parent = LocalScript50
  1019. Script52.Name = "zCharacter"
  1020. Script52.Parent = Model0
  1021. table.insert(cors,sandbox(Script52,function()
  1022. char = script.Parent
  1023.  
  1024. boot1 = char.Leg1.Part
  1025. boot1.Parent = char
  1026. boot1.CFrame = char['Left Leg'].CFrame
  1027. WeldL1 = Instance.new("Weld")
  1028. WeldL1.Parent = char['Left Leg']
  1029. WeldL1.Part0 = char['Left Leg']
  1030. WeldL1.Part1 = boot1
  1031. WeldL1.C0 = CFrame.new(0,-0.6,0)
  1032. boot2 = char.Leg2.Part
  1033. boot2.Parent = char
  1034. boot2.CFrame = char['Right Leg'].CFrame
  1035. WeldL2 = Instance.new("Weld")
  1036. WeldL2.Parent = char['Right Leg']
  1037. WeldL2.Part0 = char['Right Leg']
  1038. WeldL2.Part1 = boot2
  1039. WeldL2.C0 = CFrame.new(0,-0.6,0)
  1040.  
  1041. end))
  1042. Script53.Name = "zFollow"
  1043. Script53.Parent = Model0
  1044. table.insert(cors,sandbox(Script53,function()
  1045. s = script.Parent wait(0.5)
  1046. local larm = s:FindFirstChild("Left Arm")
  1047. local rarm = s:FindFirstChild("Right Arm")
  1048.  
  1049. function findNearestTorso(pos)
  1050. local list = game.Workspace:children()
  1051. local torso = nil
  1052. local dist = 50
  1053. local temp = nil
  1054. local human = nil
  1055. local temp2 = nil
  1056. for x = 1, #list do
  1057. temp2 = list[x]
  1058. if (temp2.className == "Model") and (temp2 ~= s) then
  1059. temp = temp2:FindFirstChild("Torso")
  1060. h = temp2:FindFirstChild("Humanoid")
  1061. if (temp ~= nil) and (h ~= nil) and (h.Health > 0) then
  1062. if (temp.Position - pos).magnitude < dist then
  1063. torso = temp
  1064. dist = (temp.Position - pos).magnitude
  1065. end
  1066. end
  1067. end
  1068. end
  1069. return torso
  1070. end
  1071.  
  1072. while true do
  1073. wait(0.1)
  1074. local antibug = s:FindFirstChild("Torso")
  1075. if antibug ~= nil then
  1076. local target = findNearestTorso(antibug.Position)
  1077. if target ~= nil then
  1078. s.Humanoid:MoveTo(target.Position, target)
  1079. end
  1080. end
  1081. end
  1082. end))
  1083. Script54.Name = "Animate"
  1084. Script54.Parent = Model0
  1085. table.insert(cors,sandbox(Script54,function()
  1086. function waitForChild(parent, childName)
  1087. local child = parent:findFirstChild(childName)
  1088. if child then return child end
  1089. while true do
  1090. child = parent.ChildAdded:wait()
  1091. if child.Name==childName then return child end
  1092. end
  1093. end
  1094.  
  1095. local Figure = script.Parent
  1096. local Torso = waitForChild(Figure, "Torso")
  1097. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1098. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1099. local RightHip = waitForChild(Torso, "Right Hip")
  1100. local LeftHip = waitForChild(Torso, "Left Hip")
  1101. local Neck = waitForChild(Torso, "Neck")
  1102. local Humanoid = waitForChild(Figure, "Humanoid")
  1103. local pose = "Standing"
  1104.  
  1105. local currentAnim = ""
  1106. local currentAnimTrack = nil
  1107. local currentAnimKeyframeHandler = nil
  1108. local oldAnimTrack = nil
  1109. local animTable = {}
  1110. local animNames = {
  1111. idle = {
  1112. { id = "http://www.roblox.com/asset/?id=529667700", weight = 9 },
  1113. { id = "http://www.roblox.com/asset/?id=529667700", weight = 1 }
  1114. },
  1115. walk = {
  1116. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  1117. },
  1118. run = {
  1119. { id = "run.xml", weight = 10 }
  1120. },
  1121. jump = {
  1122. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1123. },
  1124. fall = {
  1125. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  1126. },
  1127. climb = {
  1128. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  1129. },
  1130. sit = {
  1131. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  1132. },
  1133. toolnone = {
  1134. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  1135. },
  1136. toolslash = {
  1137. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1138. -- { id = "slash.xml", weight = 10 }
  1139. },
  1140. toollunge = {
  1141. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1142. },
  1143. wave = {
  1144. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1145. },
  1146. point = {
  1147. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1148. },
  1149. dance = {
  1150. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  1151. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  1152. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  1153. },
  1154. dance2 = {
  1155. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  1156. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  1157. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  1158. },
  1159. dance3 = {
  1160. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  1161. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  1162. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  1163. },
  1164. laugh = {
  1165. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1166. },
  1167. cheer = {
  1168. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1169. },
  1170. }
  1171.  
  1172. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1173. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1174.  
  1175. math.randomseed(tick())
  1176.  
  1177. function configureAnimationSet(name, fileList)
  1178. if (animTable[name] ~= nil) then
  1179. for _, connection in pairs(animTable[name].connections) do
  1180. connection:disconnect()
  1181. end
  1182. end
  1183. animTable[name] = {}
  1184. animTable[name].count = 0
  1185. animTable[name].totalWeight = 0
  1186. animTable[name].connections = {}
  1187.  
  1188. -- check for config values
  1189. local config = script:FindFirstChild(name)
  1190. if (config ~= nil) then
  1191. -- print("Loading anims " .. name)
  1192. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1193. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1194. local idx = 1
  1195. for _, childPart in pairs(config:GetChildren()) do
  1196. if (childPart:IsA("Animation")) then
  1197. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1198. animTable[name][idx] = {}
  1199. animTable[name][idx].anim = childPart
  1200. local weightObject = childPart:FindFirstChild("Weight")
  1201. if (weightObject == nil) then
  1202. animTable[name][idx].weight = 1
  1203. else
  1204. animTable[name][idx].weight = weightObject.Value
  1205. end
  1206. animTable[name].count = animTable[name].count + 1
  1207. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1208. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1209. idx = idx + 1
  1210. end
  1211. end
  1212. end
  1213.  
  1214. -- fallback to defaults
  1215. if (animTable[name].count <= 0) then
  1216. for idx, anim in pairs(fileList) do
  1217. animTable[name][idx] = {}
  1218. animTable[name][idx].anim = Instance.new("Animation")
  1219. animTable[name][idx].anim.Name = name
  1220. animTable[name][idx].anim.AnimationId = anim.id
  1221. animTable[name][idx].weight = anim.weight
  1222. animTable[name].count = animTable[name].count + 1
  1223. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1224. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1225. end
  1226. end
  1227. end
  1228.  
  1229. -- Setup animation objects
  1230. function scriptChildModified(child)
  1231. local fileList = animNames[child.Name]
  1232. if (fileList ~= nil) then
  1233. configureAnimationSet(child.Name, fileList)
  1234. end
  1235. end
  1236.  
  1237. script.ChildAdded:connect(scriptChildModified)
  1238. script.ChildRemoved:connect(scriptChildModified)
  1239.  
  1240.  
  1241. for name, fileList in pairs(animNames) do
  1242. configureAnimationSet(name, fileList)
  1243. end
  1244.  
  1245. -- ANIMATION
  1246.  
  1247. -- declarations
  1248. local toolAnim = "None"
  1249. local toolAnimTime = 0
  1250.  
  1251. local jumpAnimTime = 0
  1252. local jumpAnimDuration = 0.3
  1253.  
  1254. local toolTransitionTime = 0.1
  1255. local fallTransitionTime = 0.3
  1256. local jumpMaxLimbVelocity = 0.75
  1257.  
  1258. -- functions
  1259.  
  1260. function stopAllAnimations()
  1261. local oldAnim = currentAnim
  1262.  
  1263. -- return to idle if finishing an emote
  1264. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1265. oldAnim = "idle"
  1266. end
  1267.  
  1268. currentAnim = ""
  1269. currentAnimInstance = nil
  1270. if (currentAnimKeyframeHandler ~= nil) then
  1271. currentAnimKeyframeHandler:disconnect()
  1272. end
  1273.  
  1274. if (currentAnimTrack ~= nil) then
  1275. currentAnimTrack:Stop()
  1276. currentAnimTrack:Destroy()
  1277. currentAnimTrack = nil
  1278. end
  1279. return oldAnim
  1280. end
  1281.  
  1282. function setAnimationSpeed(speed)
  1283. if speed ~= currentAnimSpeed then
  1284. currentAnimSpeed = speed
  1285. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1286. end
  1287. end
  1288.  
  1289. function keyFrameReachedFunc(frameName)
  1290. if (frameName == "End") then
  1291.  
  1292. local repeatAnim = currentAnim
  1293. -- return to idle if finishing an emote
  1294. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1295. repeatAnim = "idle"
  1296. end
  1297.  
  1298. local animSpeed = currentAnimSpeed
  1299. playAnimation(repeatAnim, 0.0, Humanoid)
  1300. setAnimationSpeed(animSpeed)
  1301. end
  1302. end
  1303.  
  1304. -- Preload animations
  1305. function playAnimation(animName, transitionTime, humanoid)
  1306.  
  1307. local roll = math.random(1, animTable[animName].totalWeight)
  1308. local origRoll = roll
  1309. local idx = 1
  1310. while (roll > animTable[animName][idx].weight) do
  1311. roll = roll - animTable[animName][idx].weight
  1312. idx = idx + 1
  1313. end
  1314. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1315. local anim = animTable[animName][idx].anim
  1316.  
  1317. -- switch animation
  1318. if (anim ~= currentAnimInstance) then
  1319.  
  1320. if (currentAnimTrack ~= nil) then
  1321. currentAnimTrack:Stop(transitionTime)
  1322. currentAnimTrack:Destroy()
  1323. end
  1324.  
  1325. currentAnimSpeed = 1.0
  1326.  
  1327. -- load it to the humanoid; get AnimationTrack
  1328. currentAnimTrack = humanoid:LoadAnimation(anim)
  1329.  
  1330. -- play the animation
  1331. currentAnimTrack:Play(transitionTime)
  1332. currentAnim = animName
  1333. currentAnimInstance = anim
  1334.  
  1335. -- set up keyframe name triggers
  1336. if (currentAnimKeyframeHandler ~= nil) then
  1337. currentAnimKeyframeHandler:disconnect()
  1338. end
  1339. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1340.  
  1341. end
  1342.  
  1343. end
  1344.  
  1345. -------------------------------------------------------------------------------------------
  1346. -------------------------------------------------------------------------------------------
  1347.  
  1348. local toolAnimName = ""
  1349. local toolAnimTrack = nil
  1350. local toolAnimInstance = nil
  1351. local currentToolAnimKeyframeHandler = nil
  1352.  
  1353. function toolKeyFrameReachedFunc(frameName)
  1354. if (frameName == "End") then
  1355. -- print("Keyframe : ".. frameName)
  1356. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1357. end
  1358. end
  1359.  
  1360.  
  1361. function playToolAnimation(animName, transitionTime, humanoid)
  1362.  
  1363. local roll = math.random(1, animTable[animName].totalWeight)
  1364. local origRoll = roll
  1365. local idx = 1
  1366. while (roll > animTable[animName][idx].weight) do
  1367. roll = roll - animTable[animName][idx].weight
  1368. idx = idx + 1
  1369. end
  1370. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1371. local anim = animTable[animName][idx].anim
  1372.  
  1373. if (toolAnimInstance ~= anim) then
  1374.  
  1375. if (toolAnimTrack ~= nil) then
  1376. toolAnimTrack:Stop()
  1377. toolAnimTrack:Destroy()
  1378. transitionTime = 0
  1379. end
  1380.  
  1381. -- load it to the humanoid; get AnimationTrack
  1382. toolAnimTrack = humanoid:LoadAnimation(anim)
  1383.  
  1384. -- play the animation
  1385. toolAnimTrack:Play(transitionTime)
  1386. toolAnimName = animName
  1387. toolAnimInstance = anim
  1388.  
  1389. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1390. end
  1391. end
  1392.  
  1393. function stopToolAnimations()
  1394. local oldAnim = toolAnimName
  1395.  
  1396. if (currentToolAnimKeyframeHandler ~= nil) then
  1397. currentToolAnimKeyframeHandler:disconnect()
  1398. end
  1399.  
  1400. toolAnimName = ""
  1401. toolAnimInstance = nil
  1402. if (toolAnimTrack ~= nil) then
  1403. toolAnimTrack:Stop()
  1404. toolAnimTrack:Destroy()
  1405. toolAnimTrack = nil
  1406. end
  1407.  
  1408.  
  1409. return oldAnim
  1410. end
  1411.  
  1412. -------------------------------------------------------------------------------------------
  1413. -------------------------------------------------------------------------------------------
  1414.  
  1415.  
  1416. function onRunning(speed)
  1417. if speed>0.01 then
  1418. playAnimation("walk", 0.1, Humanoid)
  1419. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1420. setAnimationSpeed(speed / 14.5)
  1421. end
  1422. pose = "Running"
  1423. else
  1424. playAnimation("idle", 0.1, Humanoid)
  1425. pose = "Standing"
  1426. end
  1427. end
  1428.  
  1429. function onDied()
  1430. pose = "Dead"
  1431. end
  1432.  
  1433. function onJumping()
  1434. playAnimation("jump", 0.1, Humanoid)
  1435. jumpAnimTime = jumpAnimDuration
  1436. pose = "Jumping"
  1437. end
  1438.  
  1439. function onClimbing(speed)
  1440. playAnimation("climb", 0.1, Humanoid)
  1441. setAnimationSpeed(speed / 12.0)
  1442. pose = "Climbing"
  1443. end
  1444.  
  1445. function onGettingUp()
  1446. pose = "GettingUp"
  1447. end
  1448.  
  1449. function onFreeFall()
  1450. if (jumpAnimTime <= 0) then
  1451. playAnimation("fall", fallTransitionTime, Humanoid)
  1452. end
  1453. pose = "FreeFall"
  1454. end
  1455.  
  1456. function onFallingDown()
  1457. pose = "FallingDown"
  1458. end
  1459.  
  1460. function onSeated()
  1461. pose = "Seated"
  1462. end
  1463.  
  1464. function onPlatformStanding()
  1465. pose = "PlatformStanding"
  1466. end
  1467.  
  1468. function onSwimming(speed)
  1469. if speed>0 then
  1470. pose = "Running"
  1471. else
  1472. pose = "Standing"
  1473. end
  1474. end
  1475.  
  1476. function getTool()
  1477. for _, kid in ipairs(Figure:GetChildren()) do
  1478. if kid.className == "Tool" then return kid end
  1479. end
  1480. return nil
  1481. end
  1482.  
  1483. function getToolAnim(tool)
  1484. for _, c in ipairs(tool:GetChildren()) do
  1485. if c.Name == "toolanim" and c.className == "StringValue" then
  1486. return c
  1487. end
  1488. end
  1489. return nil
  1490. end
  1491.  
  1492. function animateTool()
  1493.  
  1494. if (toolAnim == "None") then
  1495. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1496. return
  1497. end
  1498.  
  1499. if (toolAnim == "Slash") then
  1500. playToolAnimation("toolslash", 0, Humanoid)
  1501. return
  1502. end
  1503.  
  1504. if (toolAnim == "Lunge") then
  1505. playToolAnimation("toollunge", 0, Humanoid)
  1506. return
  1507. end
  1508. end
  1509.  
  1510. function moveSit()
  1511. RightShoulder.MaxVelocity = 0.15
  1512. LeftShoulder.MaxVelocity = 0.15
  1513. RightShoulder:SetDesiredAngle(3.14 /2)
  1514. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1515. RightHip:SetDesiredAngle(3.14 /2)
  1516. LeftHip:SetDesiredAngle(-3.14 /2)
  1517. end
  1518.  
  1519. local lastTick = 0
  1520.  
  1521. function move(time)
  1522. local amplitude = 1
  1523. local frequency = 1
  1524. local deltaTime = time - lastTick
  1525. lastTick = time
  1526.  
  1527. local climbFudge = 0
  1528. local setAngles = false
  1529.  
  1530. if (jumpAnimTime > 0) then
  1531. jumpAnimTime = jumpAnimTime - deltaTime
  1532. end
  1533.  
  1534. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1535. playAnimation("fall", fallTransitionTime, Humanoid)
  1536. elseif (pose == "Seated") then
  1537. playAnimation("sit", 0.5, Humanoid)
  1538. return
  1539. elseif (pose == "Running") then
  1540. playAnimation("walk", 0.1, Humanoid)
  1541. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1542. -- print("Wha " .. pose)
  1543. stopAllAnimations()
  1544. amplitude = 0.1
  1545. frequency = 1
  1546. setAngles = true
  1547. end
  1548.  
  1549. if (setAngles) then
  1550. desiredAngle = amplitude * math.sin(time * frequency)
  1551.  
  1552. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1553. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1554. RightHip:SetDesiredAngle(-desiredAngle)
  1555. LeftHip:SetDesiredAngle(-desiredAngle)
  1556. end
  1557.  
  1558. -- Tool Animation handling
  1559. local tool = getTool()
  1560. if tool and tool:FindFirstChild("Handle") then
  1561.  
  1562. animStringValueObject = getToolAnim(tool)
  1563.  
  1564. if animStringValueObject then
  1565. toolAnim = animStringValueObject.Value
  1566. -- message recieved, delete StringValue
  1567. animStringValueObject.Parent = nil
  1568. toolAnimTime = time + .3
  1569. end
  1570.  
  1571. if time > toolAnimTime then
  1572. toolAnimTime = 0
  1573. toolAnim = "None"
  1574. end
  1575.  
  1576. animateTool()
  1577. else
  1578. stopToolAnimations()
  1579. toolAnim = "None"
  1580. toolAnimInstance = nil
  1581. toolAnimTime = 0
  1582. end
  1583. end
  1584.  
  1585. -- connect events
  1586. Humanoid.Died:connect(onDied)
  1587. Humanoid.Running:connect(onRunning)
  1588. Humanoid.Jumping:connect(onJumping)
  1589. Humanoid.Climbing:connect(onClimbing)
  1590. Humanoid.GettingUp:connect(onGettingUp)
  1591. Humanoid.FreeFalling:connect(onFreeFall)
  1592. Humanoid.FallingDown:connect(onFallingDown)
  1593. Humanoid.Seated:connect(onSeated)
  1594. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1595. Humanoid.Swimming:connect(onSwimming)
  1596.  
  1597. -- setup emote chat hook
  1598. game.Players.LocalPlayer.Chatted:connect(function(msg)
  1599. local emote = ""
  1600. if (string.sub(msg, 1, 3) == "/e ") then
  1601. emote = string.sub(msg, 4)
  1602. elseif (string.sub(msg, 1, 7) == "/emote ") then
  1603. emote = string.sub(msg, 8)
  1604. end
  1605.  
  1606. if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1607. playAnimation(emote, 0.1, Humanoid)
  1608. end
  1609.  
  1610. end)
  1611.  
  1612.  
  1613. -- main program
  1614.  
  1615. local runService = game:service("RunService");
  1616.  
  1617. -- initialize to idle
  1618. playAnimation("idle", 0.1, Humanoid)
  1619. pose = "Standing"
  1620.  
  1621. while Figure.Parent~=nil do
  1622. local _, time = wait(0.1)
  1623. move(time)
  1624. end
  1625.  
  1626.  
  1627.  
  1628. end))
  1629. StringValue55.Name = "climb"
  1630. StringValue55.Parent = Script54
  1631. Animation56.Name = "ClimbAnim"
  1632. Animation56.Parent = StringValue55
  1633. Animation56.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1634. StringValue57.Name = "fall"
  1635. StringValue57.Parent = Script54
  1636. Animation58.Name = "FallAnim"
  1637. Animation58.Parent = StringValue57
  1638. Animation58.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1639. StringValue59.Name = "idle"
  1640. StringValue59.Parent = Script54
  1641. Animation60.Name = "Animation1"
  1642. Animation60.Parent = StringValue59
  1643. Animation60.AnimationId = "rbxassetid://529667700"
  1644. NumberValue61.Name = "Weight"
  1645. NumberValue61.Parent = Animation60
  1646. NumberValue61.Value = 9
  1647. Animation62.Name = "Animation2"
  1648. Animation62.Parent = StringValue59
  1649. Animation62.AnimationId = "rbxassetid://529667700"
  1650. NumberValue63.Name = "Weight"
  1651. NumberValue63.Parent = Animation62
  1652. NumberValue63.Value = 1
  1653. StringValue64.Name = "jump"
  1654. StringValue64.Parent = Script54
  1655. Animation65.Name = "JumpAnim"
  1656. Animation65.Parent = StringValue64
  1657. Animation65.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1658. StringValue66.Name = "run"
  1659. StringValue66.Parent = Script54
  1660. Animation67.Name = "RunAnim"
  1661. Animation67.Parent = StringValue66
  1662. Animation67.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1663. StringValue68.Name = "sit"
  1664. StringValue68.Parent = Script54
  1665. Animation69.Name = "SitAnim"
  1666. Animation69.Parent = StringValue68
  1667. Animation69.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1668. StringValue70.Name = "toolnone"
  1669. StringValue70.Parent = Script54
  1670. Animation71.Name = "ToolNoneAnim"
  1671. Animation71.Parent = StringValue70
  1672. Animation71.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1673. StringValue72.Name = "walk"
  1674. StringValue72.Parent = Script54
  1675. Animation73.Name = "WalkAnim"
  1676. Animation73.Parent = StringValue72
  1677. Animation73.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1678. Pants74.Name = "Pants"
  1679. Pants74.Parent = Model0
  1680. Pants74.PantsTemplate = "http://www.roblox.com/asset/?id=278125378"
  1681. Shirt75.Name = "Shirt"
  1682. Shirt75.Parent = Model0
  1683. Shirt75.ShirtTemplate = "http://www.roblox.com/asset/?id=380392822"
  1684. Hat76.Name = "Animazing Hair"
  1685. Hat76.Parent = Model0
  1686. Hat76.AttachmentPos = Vector3.new(-0.0500000007, 0.550000012, -0.075000003)
  1687. Part77.Name = "Handle"
  1688. Part77.Parent = Hat76
  1689. Part77.Rotation = Vector3.new(-180, -73.5800018, -180)
  1690. Part77.CanCollide = false
  1691. Part77.Locked = true
  1692. Part77.FormFactor = Enum.FormFactor.Custom
  1693. Part77.Size = Vector3.new(1.41002822, 1.81999815, 1.38000309)
  1694. Part77.CFrame = CFrame.new(-123.507912, 4.65000772, 20.5248699, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  1695. Part77.BottomSurface = Enum.SurfaceType.Smooth
  1696. Part77.TopSurface = Enum.SurfaceType.Smooth
  1697. Part77.Position = Vector3.new(-123.507912, 4.65000772, 20.5248699)
  1698. Part77.Orientation = Vector3.new(0, -106.419998, 0)
  1699. SpecialMesh78.Parent = Part77
  1700. SpecialMesh78.MeshId = "http://www.roblox.com/asset/?id=167554431 "
  1701. SpecialMesh78.TextureId = "http://www.roblox.com/asset/?id=167554469 "
  1702. SpecialMesh78.MeshType = Enum.MeshType.FileMesh
  1703. Hat79.Name = "RedWings"
  1704. Hat79.Parent = Model0
  1705. Hat79.AttachmentPos = Vector3.new(0, 1.25, 0.800000012)
  1706. Part80.Name = "Handle"
  1707. Part80.Parent = Hat79
  1708. Part80.Rotation = Vector3.new(-180, -73.5800018, -180)
  1709. Part80.CanCollide = false
  1710. Part80.Locked = true
  1711. Part80.FormFactor = Enum.FormFactor.Custom
  1712. Part80.Size = Vector3.new(2.80000019, 2.88000011, 2.22999978)
  1713. Part80.CFrame = CFrame.new(-122.654449, 3.95000792, 20.7241993, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  1714. Part80.BottomSurface = Enum.SurfaceType.Smooth
  1715. Part80.TopSurface = Enum.SurfaceType.Smooth
  1716. Part80.Position = Vector3.new(-122.654449, 3.95000792, 20.7241993)
  1717. Part80.Orientation = Vector3.new(0, -106.419998, 0)
  1718. SpecialMesh81.Parent = Part80
  1719. SpecialMesh81.MeshId = "http://www.roblox.com/asset/?id=215682815 "
  1720. SpecialMesh81.TextureId = "http://www.roblox.com/asset/?id=409607839"
  1721. SpecialMesh81.MeshType = Enum.MeshType.FileMesh
  1722. Script82.Name = "Respawn"
  1723. Script82.Parent = Model0
  1724. table.insert(cors,sandbox(Script82,function()
  1725. name="Humanoid"
  1726.  
  1727. robo=script.Parent:clone()
  1728.  
  1729. while true do
  1730. wait(1)
  1731. if script.Parent.Humanoid.Health<1 then
  1732. robot=robo:clone()
  1733. robot.Parent=script.Parent.Parent
  1734. robot:makeJoints()
  1735. script.Parent:remove()
  1736. end
  1737. end
  1738.  
  1739.  
  1740.  
  1741.  
  1742. end))
  1743. Hat83.Name = "Hair"
  1744. Hat83.Parent = Model0
  1745. Hat83.AttachmentPos = Vector3.new(-0.0500000007, 0.550000012, -0.075000003)
  1746. Part84.Name = "Handle"
  1747. Part84.Parent = Hat83
  1748. Part84.BrickColor = BrickColor.new("Electric blue")
  1749. Part84.Transparency = 1
  1750. Part84.Rotation = Vector3.new(-180, -73.5800018, -180)
  1751. Part84.CanCollide = false
  1752. Part84.Locked = true
  1753. Part84.FormFactor = Enum.FormFactor.Custom
  1754. Part84.Size = Vector3.new(1.41002822, 1.81999815, 1.38000309)
  1755. Part84.CFrame = CFrame.new(-123.507912, 4.65000772, 20.5248699, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  1756. Part84.BottomSurface = Enum.SurfaceType.Smooth
  1757. Part84.TopSurface = Enum.SurfaceType.Smooth
  1758. Part84.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  1759. Part84.Position = Vector3.new(-123.507912, 4.65000772, 20.5248699)
  1760. Part84.Orientation = Vector3.new(0, -106.419998, 0)
  1761. Part84.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  1762. SpecialMesh85.Parent = Part84
  1763. SpecialMesh85.MeshId = "http://www.roblox.com/asset/?id=167554431 "
  1764. SpecialMesh85.MeshType = Enum.MeshType.FileMesh
  1765. Hat86.Name = "SuperSaiyanHair"
  1766. Hat86.Parent = Model0
  1767. Hat86.AttachmentPos = Vector3.new(-0.0500000007, 0.550000012, -0.075000003)
  1768. Part87.Name = "Handle"
  1769. Part87.Parent = Hat86
  1770. Part87.Transparency = 1
  1771. Part87.Rotation = Vector3.new(-180, -73.5800018, -180)
  1772. Part87.CanCollide = false
  1773. Part87.Locked = true
  1774. Part87.FormFactor = Enum.FormFactor.Custom
  1775. Part87.Size = Vector3.new(1.41002822, 1.81999815, 1.38000309)
  1776. Part87.CFrame = CFrame.new(-123.507912, 4.65000772, 20.5248699, -0.282620013, 0, -0.959231973, 0, 1, 0, 0.959231973, 0, -0.282620013)
  1777. Part87.BottomSurface = Enum.SurfaceType.Smooth
  1778. Part87.TopSurface = Enum.SurfaceType.Smooth
  1779. Part87.Position = Vector3.new(-123.507912, 4.65000772, 20.5248699)
  1780. Part87.Orientation = Vector3.new(0, -106.419998, 0)
  1781. SpecialMesh88.Parent = Part87
  1782. SpecialMesh88.MeshId = "http://www.roblox.com/asset/?id=167554431 "
  1783. SpecialMesh88.MeshType = Enum.MeshType.FileMesh
  1784. Script89.Parent = Part87
  1785. table.insert(cors,sandbox(Script89,function()
  1786. while true do
  1787. script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
  1788. wait(0.5)
  1789. end
  1790. end))
  1791. for i,v in pairs(mas:GetChildren()) do
  1792. v.Parent = workspace
  1793. pcall(function() v:MakeJoints() end)
  1794. end
  1795. mas:Destroy()
  1796. for i,v in pairs(cors) do
  1797. spawn(function()
  1798. pcall(v)
  1799. end)
  1800. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement