Advertisement
JRKPastesBins

Untitled

Sep 27th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.99 KB | None | 0 0
  1. ---
  2. game.Workspace.Likebossfromdk.Humanoid.MaxHealth = math.huge
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local mouse = p:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local ASD = BrickColor.new("Cocoa")
  13. local hum = char.Humanoid
  14. local cam = game.Workspace.CurrentCamera
  15. local root = char.HumanoidRootPart
  16. local DD = false
  17. local FA = false
  18. local deb = false
  19. local shot = 0
  20. local l = game:GetService("Lighting")
  21. local rs = game:GetService("RunService").RenderStepped
  22. local stanceToggle = "Normal"
  23. math.randomseed(os.time())
  24. hum.WalkSpeed = 7
  25. char.Health:Destroy()
  26. hum.MaxHealth = 5000000
  27. wait(0.1)
  28. hum.Health = 5000000
  29. z = Instance.new("Sound", char.Torso)
  30. z.SoundId = "rbxassetid://854228700"
  31. z.Looped = true
  32. z.Pitch = 1
  33. z.Volume = 10
  34. ----------------------------------------------------
  35. local SM = Instance.new("Smoke",torso)
  36. SM.Size = 15
  37. local S = Instance.new("Part",char)
  38. S.Size = Vector3.new(5,5,5)
  39. S.Material = "Neon"
  40. S.BrickColor = BrickColor.new("Deep orange")
  41. S.Transparency = 0
  42. S.Anchored = true
  43. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  44. local Ring = Instance.new("Part",S)
  45. Ring.Size = Vector3.new(15,15,15)
  46. Ring.BrickColor = BrickColor.new("Deep orange")
  47. Ring.Anchored = true
  48. Ring.CanCollide = false
  49. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  50. local Ring2 = Instance.new("SpecialMesh",Ring)
  51. Ring2.MeshId = "rbxassetid://3270017"
  52. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  53. local S2 = Instance.new("SpecialMesh",S)
  54. S2.MeshType = "Sphere"
  55. S2.Scale = Vector3.new(1,1,1)
  56. v = Instance.new("Sound")
  57. v.SoundId = "rbxassetid://821439273"
  58. v.Parent = char.Torso
  59. v.Looped = false
  60. v.Pitch = 1
  61. v.Volume = math.huge
  62. wait(.01)
  63. v:Play()
  64. local partasdeff = Instance.new("ParticleEmitter",S)
  65. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  66. partasdeff.LightEmission = .1
  67. partasdeff.Size = NumberSequence.new(0.2)
  68. partasdeff.Texture = "rbxassetid://300899454"
  69. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  70. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  71. partasdeff.Transparency = bbb
  72. partasdeff.Size = aaa
  73. partasdeff.ZOffset = .9
  74. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  75. partasdeff.LockedToPart = false
  76. partasdeff.EmissionDirection = "Top"
  77. partasdeff.Lifetime = NumberRange.new(1, 2)
  78. partasdeff.Rate = 1000
  79. partasdeff.Rotation = NumberRange.new(-100, 100)
  80. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  81. partasdeff.Speed = NumberRange.new(10)
  82. partasdeff.VelocitySpread = 300
  83. partasdeff.Enabled = true
  84. for i = 1,100 do
  85. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  86. Ring.Transparency = Ring.Transparency + 0.01
  87. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  88. S.Transparency = S.Transparency + 0.01
  89. game:GetService("RunService").RenderStepped:wait()
  90. end
  91. S:remove()
  92. wait(1)
  93. SM:remove()
  94. hed.face:remove()
  95. char.Shirt:remove()
  96. char.Pants:remove()
  97. v = Instance.new("Sound")
  98. v.SoundId = "rbxassetid://168586586"
  99. v.Parent = torso
  100. v.Looped = false
  101. v.Pitch = 0.8
  102. v.Volume = math.huge
  103. wait(.01)
  104. v:Play()
  105. z:Play()
  106. ----------------------------------------------------
  107. local Glowz1 = Instance.new("Smoke",torso)
  108. Glowz1.Size = 20
  109. Glowz1.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  110.  
  111. local Glowz2 = Instance.new("Smoke",rarm)
  112. Glowz2.Size = 15
  113. Glowz2.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  114.  
  115. local Glowz3 = Instance.new("Smoke",larm)
  116. Glowz3.Size = 15
  117. Glowz3.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  118.  
  119. local Glowz4 = Instance.new("Smoke",rleg)
  120. Glowz4.Size = 15
  121. Glowz4.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  122.  
  123. local Glowz5 = Instance.new("Smoke",lleg)
  124. Glowz5.Size = 15
  125. Glowz5.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  126.  
  127. local Glowz6 = Instance.new("Smoke",hed)
  128. Glowz6.Size = 10
  129. Glowz6.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  130. ----------------------------------------------------
  131. local fx1 = Instance.new("ParticleEmitter",torso,larm,rarm,hed,lleg,rleg)
  132. fx1.Texture = "rbxassetid://160041569"
  133. fx1.Rotation = NumberRange.new(4, 9)
  134. fx1.RotSpeed = NumberRange.new(5, 9)
  135. fx1.Speed = NumberRange.new(5, 7)
  136. fx1.Lifetime = NumberRange.new(0.25, .28)
  137. fx1.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  138. fx1.Rate = 200,300
  139. fx1.Acceleration = Vector3.new( 8, 6, 6 )
  140. fx1.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  141. fx1.LightEmission = 1
  142. fx1.Size = NumberSequence.new(0,01)
  143. fx1.LightInfluence = 0
  144. fx1.SpreadAngle = Vector2.new(30, 30)
  145.  
  146. fx1.Enabled = true
  147.  
  148. local fx2 = Instance.new("ParticleEmitter",larm,rarm,hed,lleg,rleg)
  149. fx2.Texture = "rbxassetid://160041569"
  150. fx2.Rotation = NumberRange.new(4, 9)
  151. fx2.RotSpeed = NumberRange.new(5, 9)
  152. fx2.Speed = NumberRange.new(5, 7)
  153. fx2.Lifetime = NumberRange.new(0.25, .28)
  154. fx2.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  155. fx2.Rate = 200,300
  156. fx2.Acceleration = Vector3.new( 8, 6, 6 )
  157. fx2.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  158. fx2.LightEmission = 1
  159. fx2.Size = NumberSequence.new(0,01)
  160. fx2.LightInfluence = 0
  161. fx2.SpreadAngle = Vector2.new(30, 30)
  162.  
  163. fx2.Enabled = true
  164.  
  165. local fx3 = Instance.new("ParticleEmitter",rarm,hed,lleg,rleg)
  166. fx3.Texture = "rbxassetid://160041569"
  167. fx3.Rotation = NumberRange.new(4, 9)
  168. fx3.RotSpeed = NumberRange.new(5, 9)
  169. fx3.Speed = NumberRange.new(5, 7)
  170. fx3.Lifetime = NumberRange.new(0.25, .28)
  171. fx3.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  172. fx3.Rate = 200,300
  173. fx3.Acceleration = Vector3.new( 8, 6, 6 )
  174. fx3.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  175. fx3.LightEmission = 1
  176. fx3.Size = NumberSequence.new(0,01)
  177. fx3.LightInfluence = 0
  178. fx3.SpreadAngle = Vector2.new(30, 30)
  179.  
  180. fx3.Enabled = true
  181.  
  182. local fx4 = Instance.new("ParticleEmitter",hed,lleg,rleg)
  183. fx4.Texture = "rbxassetid://160041569"
  184. fx4.Rotation = NumberRange.new(4, 9)
  185. fx4.RotSpeed = NumberRange.new(5, 9)
  186. fx4.Speed = NumberRange.new(5, 7)
  187. fx4.Lifetime = NumberRange.new(0.25, .28)
  188. fx4.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  189. fx4.Rate = 200,300
  190. fx4.Acceleration = Vector3.new( 8, 6, 6 )
  191. fx4.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  192. fx4.LightEmission = 1
  193. fx4.Size = NumberSequence.new(0,01)
  194. fx4.LightInfluence = 0
  195. fx4.SpreadAngle = Vector2.new(30, 30)
  196.  
  197. fx4.Enabled = true
  198.  
  199. local fx5 = Instance.new("ParticleEmitter",lleg,rleg)
  200. fx5.Texture = "rbxassetid://160041569"
  201. fx5.Rotation = NumberRange.new(4, 9)
  202. fx5.RotSpeed = NumberRange.new(5, 9)
  203. fx5.Speed = NumberRange.new(5, 7)
  204. fx5.Lifetime = NumberRange.new(0.25, .28)
  205. fx5.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  206. fx5.Rate = 200,300
  207. fx5.Acceleration = Vector3.new( 8, 6, 6 )
  208. fx5.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  209. fx5.LightEmission = 1
  210. fx5.Size = NumberSequence.new(0,01)
  211. fx5.LightInfluence = 0
  212. fx5.SpreadAngle = Vector2.new(30, 30)
  213.  
  214. fx5.Enabled = true
  215.  
  216. local fx6 = Instance.new("ParticleEmitter",rleg)
  217. fx6.Texture = "rbxassetid://160041569"
  218. fx6.Rotation = NumberRange.new(4, 9)
  219. fx6.RotSpeed = NumberRange.new(5, 9)
  220. fx6.Speed = NumberRange.new(5, 7)
  221. fx6.Lifetime = NumberRange.new(0.25, .28)
  222. fx6.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  223. fx6.Rate = 200,300
  224. fx6.Acceleration = Vector3.new( 8, 6, 6 )
  225. fx6.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  226. fx6.LightEmission = 1
  227. fx6.Size = NumberSequence.new(0,01)
  228. fx6.LightInfluence = 0
  229. fx6.SpreadAngle = Vector2.new(30, 30)
  230.  
  231. fx6.Enabled = true
  232. ----------------------------------------------------
  233. Debounces = {
  234. on = false;
  235. ks = false;
  236. CanAttack = true;
  237. CanJoke = true;
  238. NoIdl = false;
  239. Slashing = false;
  240. Slashed = false;
  241. Grabbing = false;
  242. Grabbed = false;
  243. }
  244. local Touche = {char.Name, }
  245. ----------------------------------------------------
  246. function lerp(a, b, t) -- Linear interpolation
  247. return a + (b - a)*t
  248. end
  249.  
  250. function slerp(a, b, t) --Spherical interpolation
  251. dot = a:Dot(b)
  252. if dot > 0.99999 or dot < -0.99999 then
  253. return t <= 0.5 and a or b
  254. else
  255. r = math.acos(dot)
  256. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  257. end
  258. end
  259.  
  260. function matrixInterpolate(a, b, t)
  261. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  262. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  263. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  264. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  265. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  266. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  267. local t = v1:Dot(v2)
  268. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  269. return CFrame.new()
  270. end
  271. return CFrame.new(
  272. v0.x, v0.y, v0.z,
  273. v1.x, v1.y, v1.z,
  274. v2.x, v2.y, v2.z,
  275. v3.x, v3.y, v3.z)
  276. end
  277. ----------------------------------------------------
  278. function genWeld(a,b)
  279. local w = Instance.new("Weld",a)
  280. w.Part0 = a
  281. w.Part1 = b
  282. return w
  283. end
  284. function weld(a, b)
  285. local weld = Instance.new("Weld")
  286. weld.Name = "W"
  287. weld.Part0 = a
  288. weld.Part1 = b
  289. weld.C0 = a.CFrame:inverse() * b.CFrame
  290. weld.Parent = a
  291. return weld;
  292. end
  293. ----------------------------------------------------
  294. function Lerp(c1,c2,al)
  295. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  296. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  297. for i,v in pairs(com1) do
  298. com1[i] = v+(com2[i]-v)*al
  299. end
  300. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  301. end
  302. ----------------------------------------------------
  303. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  304. local wld = Instance.new("Weld", wp1)
  305. wld.Part0 = wp0
  306. wld.Part1 = wp1
  307. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  308. end
  309. ----------------------------------------------------
  310. for i,v in pairs(char:children()) do
  311. if v:IsA("Hat") then
  312. v:Destroy()
  313. end
  314. end
  315. for i,v in pairs(hed:children()) do
  316. if v:IsA("Sound") then
  317. v:Destroy()
  318. end
  319. end
  320. ----------------------------------------------------
  321. function HasntTouched(plrname)
  322. local ret = true
  323. for _, v in pairs(Touche) do
  324. if v == plrname then
  325. ret = false
  326. end
  327. end
  328. return ret
  329. end
  330. ----------------------------------------------------
  331. larm.Size = larm.Size * 5
  332. rarm.Size = rarm.Size * 5
  333. lleg.Size = lleg.Size * 5
  334. rleg.Size = rleg.Size * 5
  335. torso.Size = torso.Size * 5
  336. hed.Size = hed.Size * 5
  337. root.Size = root.Size * 5
  338. ----------------------------------------------------
  339. newWeld(torso, larm, -1.5, 0.5, 0)
  340. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  341. newWeld(torso, rarm, 1.5, 0.5, 0)
  342. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  343. newWeld(torso, hed, 0, 1.5, 0)
  344. newWeld(torso, lleg, -0.5, -1, 0)
  345. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  346. newWeld(torso, rleg, 0.5, -1, 0)
  347. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  348. newWeld(root, torso, 0, -1, 0)
  349. torso.Weld.C1 = CFrame.new(0, -1, 0)
  350. ----------------------------------------------------
  351. local Part = Instance.new("Part",hed)
  352. Part.BrickColor = BrickColor.new("Really black")
  353. Part.Size = Vector3.new(1,1,1)
  354. Part.CanCollide = false
  355. Part.Material = "Neon"
  356. local M = Instance.new("SpecialMesh",Part)
  357. M.MeshId = "rbxassetid://62246019"
  358. M.Scale = Vector3.new(5,5,5)
  359. local Part2 = Instance.new("Weld",Part)
  360. Part2.Part0 = hed
  361. Part2.Part1 = Part
  362. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  363. ----------------------------------------------------
  364. -----Armored titan parts nibs
  365. local Arm = Instance.new("Part",char)
  366. Arm.Size = Vector3.new(1,1,1)
  367. Arm.BrickColor = BrickColor.new("Dark red")
  368. Arm.TopSurface = 0
  369. Arm.BottomSurface = 0
  370. Arm.CanCollide = false
  371. local Arm2 = Instance.new("SpecialMesh",Arm)
  372. Arm2.MeshType = "Brick"
  373. Arm2.Scale = Vector3.new(5,8.5,0.3)
  374. local Arm3 = Instance.new("Weld",Arm)
  375. Arm3.Part0 = rarm
  376. Arm3.Part1 = Arm
  377. Arm3.C0 = CFrame.new(0,0,2.5)
  378. local ArmR = Instance.new("Part",char)
  379. ArmR.Size = Vector3.new(1,1,1)
  380. ArmR.BrickColor = BrickColor.new("Dark red")
  381. ArmR.TopSurface = 0
  382. ArmR.BottomSurface = 0
  383. ArmR.CanCollide = false
  384. local Arm2R = Instance.new("SpecialMesh",ArmR)
  385. Arm2R.MeshType = "Brick"
  386. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  387. local Arm3R = Instance.new("Weld",ArmR)
  388. Arm3R.Part0 = rarm
  389. Arm3R.Part1 = ArmR
  390. Arm3R.C0 = CFrame.new(0,0,-2.5)
  391. local ArmRS = Instance.new("Part",char)
  392. ArmRS.Size = Vector3.new(1,1,1)
  393. ArmRS.BrickColor = BrickColor.new("Dark red")
  394. ArmRS.TopSurface = 0
  395. ArmRS.BottomSurface = 0
  396. ArmRS.CanCollide = false
  397. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  398. Arm2RS.MeshType = "Brick"
  399. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  400. local Arm3RS = Instance.new("Weld",ArmRS)
  401. Arm3RS.Part0 = rarm
  402. Arm3RS.Part1 = ArmRS
  403. Arm3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  404. local TopRS = Instance.new("Part",char)
  405. TopRS.Size = Vector3.new(1,1,1)
  406. TopRS.BrickColor = BrickColor.new("Dark red")
  407. TopRS.TopSurface = 0
  408. TopRS.BottomSurface = 0
  409. TopRS.CanCollide = false
  410. local Top2RS = Instance.new("SpecialMesh",TopRS)
  411. Top2RS.MeshType = "Brick"
  412. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  413. local Top3RS = Instance.new("Weld",TopRS)
  414. Top3RS.Part0 = rarm
  415. Top3RS.Part1 = TopRS
  416. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  417. local BotRS = Instance.new("Part",char)
  418. BotRS.Size = Vector3.new(1,1,1)
  419. BotRS.BrickColor = BrickColor.new("Dark red")
  420. BotRS.BottomSurface = 0
  421. BotRS.TopSurface = 0
  422. BotRS.CanCollide = false
  423. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  424. Bot2RS.MeshType = "Brick"
  425. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  426. local Bot3RS = Instance.new("Weld",BotRS)
  427. Bot3RS.Part0 = rarm
  428. Bot3RS.Part1 = BotRS
  429. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  430. ----------------------------------------------------
  431.  
  432. local Arm = Instance.new("Part",char)
  433. Arm.Size = Vector3.new(1,1,1)
  434. Arm.BrickColor = BrickColor.new("Dark red")
  435. Arm.TopSurface = 0
  436. Arm.BottomSurface = 0
  437. Arm.CanCollide = false
  438. local Arm2 = Instance.new("SpecialMesh",Arm)
  439. Arm2.MeshType = "Brick"
  440. Arm2.Scale = Vector3.new(5,8.5,0.3)
  441. local Arm3 = Instance.new("Weld",Arm)
  442. Arm3.Part0 = larm
  443. Arm3.Part1 = Arm
  444. Arm3.C0 = CFrame.new(0,0,2.5)
  445. local ArmR = Instance.new("Part",char)
  446. ArmR.Size = Vector3.new(1,1,1)
  447. ArmR.BrickColor = BrickColor.new("Dark red")
  448. ArmR.TopSurface = 0
  449. ArmR.BottomSurface = 0
  450. ArmR.CanCollide = false
  451. local Arm2R = Instance.new("SpecialMesh",ArmR)
  452. Arm2R.MeshType = "Brick"
  453. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  454. local Arm3R = Instance.new("Weld",ArmR)
  455. Arm3R.Part0 = larm
  456. Arm3R.Part1 = ArmR
  457. Arm3R.C0 = CFrame.new(0,0,-2.5)
  458. local ArmRS = Instance.new("Part",char)
  459. ArmRS.Size = Vector3.new(1,1,1)
  460. ArmRS.BrickColor = BrickColor.new("Dark red")
  461. ArmRS.TopSurface = 0
  462. ArmRS.BottomSurface = 0
  463. ArmRS.CanCollide = false
  464. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  465. Arm2RS.MeshType = "Brick"
  466. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  467. local Arm3RS = Instance.new("Weld",ArmRS)
  468. Arm3RS.Part0 = larm
  469. Arm3RS.Part1 = ArmRS
  470. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  471. local TopRS = Instance.new("Part",char)
  472. TopRS.Size = Vector3.new(1,1,1)
  473. TopRS.BrickColor = BrickColor.new("Dark red")
  474. TopRS.TopSurface = 0
  475. TopRS.BottomSurface = 0
  476. TopRS.CanCollide = false
  477. local Top2RS = Instance.new("SpecialMesh",TopRS)
  478. Top2RS.MeshType = "Brick"
  479. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  480. local Top3RS = Instance.new("Weld",TopRS)
  481. Top3RS.Part0 = larm
  482. Top3RS.Part1 = TopRS
  483. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  484. local BotRS = Instance.new("Part",char)
  485. BotRS.Size = Vector3.new(1,1,1)
  486. BotRS.BrickColor = BrickColor.new("Dark red")
  487. BotRS.BottomSurface = 0
  488. BotRS.TopSurface = 0
  489. BotRS.CanCollide = false
  490. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  491. Bot2RS.MeshType = "Brick"
  492. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  493. local Bot3RS = Instance.new("Weld",BotRS)
  494. Bot3RS.Part0 = larm
  495. Bot3RS.Part1 = BotRS
  496. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  497. ----------------------------------------------------
  498. local Long = Instance.new("Part",char)
  499. Long.Size = Vector3.new(1,1,1)
  500. Long.CanCollide = false
  501. Long.BrickColor = BrickColor.new("Dark red")
  502. Long.TopSurface = 0
  503. Long.BottomSurface = 0
  504. local Long2 = Instance.new("SpecialMesh",Long)
  505. Long2.MeshType = "Brick"
  506. Long2.Scale = Vector3.new(9.5,0.3,4.5)
  507. local Long3 = Instance.new("Weld",Long)
  508. Long3.Part0 = torso
  509. Long3.Part1 = Long
  510. Long3.C0 = CFrame.new(0,4.95,0)
  511. ----------------------------------------------------
  512. local Back = Instance.new("Part",char)
  513. Back.Size = Vector3.new(1,1,1)
  514. Back.CanCollide = false
  515. Back.BrickColor = BrickColor.new("Dark red")
  516. Back.TopSurface = 0
  517. Back.BottomSurface = 0
  518. local Back2 = Instance.new("SpecialMesh",Back)
  519. Back2.MeshType = "Brick"
  520. Back2.Scale = Vector3.new(9.5,9.3,0.3)
  521. local Back3 = Instance.new("Weld",Back)
  522. Back3.Part0 = torso
  523. Back3.Part1 = Back
  524. Back3.C0 = CFrame.new(0,0,2.5)
  525. ----------------------------------------------------
  526. local Leg = Instance.new("Part",char)
  527. Leg.Size = Vector3.new(1,1,1)
  528. Leg.BrickColor = BrickColor.new("Dark red")
  529. Leg.TopSurface = 0
  530. Leg.BottomSurface = 0
  531. Leg.CanCollide = false
  532. local Leg2 = Instance.new("SpecialMesh",Leg)
  533. Leg2.MeshType = "Brick"
  534. Leg2.Scale = Vector3.new(5,8.5,0.3)
  535. local Leg3 = Instance.new("Weld",Leg)
  536. Leg3.Part0 = rleg
  537. Leg3.Part1 = Leg
  538. Leg3.C0 = CFrame.new(0,0,2.5)
  539. local LegR = Instance.new("Part",char)
  540. LegR.Size = Vector3.new(1,1,1)
  541. LegR.BrickColor = BrickColor.new("Dark red")
  542. LegR.TopSurface = 0
  543. LegR.BottomSurface = 0
  544. LegR.CanCollide = false
  545. local Leg2R = Instance.new("SpecialMesh",LegR)
  546. Leg2R.MeshType = "Brick"
  547. Leg2R.Scale = Vector3.new(5,8.5,0.3)
  548. local Leg3R = Instance.new("Weld",LegR)
  549. Leg3R.Part0 = rleg
  550. Leg3R.Part1 = LegR
  551. Leg3R.C0 = CFrame.new(0,0,-2.5)
  552. local LegRS = Instance.new("Part",char)
  553. LegRS.Size = Vector3.new(1,1,1)
  554. LegRS.BrickColor = BrickColor.new("Dark red")
  555. LegRS.TopSurface = 0
  556. LegRS.BottomSurface = 0
  557. LegRS.CanCollide = false
  558. local Leg2RS = Instance.new("SpecialMesh",LegRS)
  559. Leg2RS.MeshType = "Brick"
  560. Leg2RS.Scale = Vector3.new(0.3,8.5,4.5)
  561. local Leg3RS = Instance.new("Weld",LegRS)
  562. Leg3RS.Part0 = rleg
  563. Leg3RS.Part1 = LegRS
  564. Leg3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  565. local TopRS = Instance.new("Part",char)
  566. TopRS.Size = Vector3.new(1,1,1)
  567. TopRS.BrickColor = BrickColor.new("Dark red")
  568. TopRS.TopSurface = 0
  569. TopRS.BottomSurface = 0
  570. TopRS.CanCollide = false
  571. local BotRS = Instance.new("Part",char)
  572. BotRS.Size = Vector3.new(1,1,1)
  573. BotRS.BrickColor = BrickColor.new("Dark red")
  574. BotRS.BottomSurface = 0
  575. BotRS.TopSurface = 0
  576. BotRS.CanCollide = false
  577. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  578. Bot2RS.MeshType = "Brick"
  579. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  580. local Bot3RS = Instance.new("Weld",BotRS)
  581. Bot3RS.Part0 = rleg
  582. Bot3RS.Part1 = BotRS
  583. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  584. -----------------------------------------------------------
  585. local Arm = Instance.new("Part",char)
  586. Arm.Size = Vector3.new(1,1,1)
  587. Arm.BrickColor = BrickColor.new("Dark red")
  588. Arm.TopSurface = 0
  589. Arm.BottomSurface = 0
  590. Arm.CanCollide = false
  591. local Arm2 = Instance.new("SpecialMesh",Arm)
  592. Arm2.MeshType = "Brick"
  593. Arm2.Scale = Vector3.new(5,8.5,0.3)
  594. local Arm3 = Instance.new("Weld",Arm)
  595. Arm3.Part0 = lleg
  596. Arm3.Part1 = Arm
  597. Arm3.C0 = CFrame.new(0,0,2.5)
  598. local ArmR = Instance.new("Part",char)
  599. ArmR.Size = Vector3.new(1,1,1)
  600. ArmR.BrickColor = BrickColor.new("Dark red")
  601. ArmR.TopSurface = 0
  602. ArmR.BottomSurface = 0
  603. ArmR.CanCollide = false
  604. local Arm2R = Instance.new("SpecialMesh",ArmR)
  605. Arm2R.MeshType = "Brick"
  606. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  607. local Arm3R = Instance.new("Weld",ArmR)
  608. Arm3R.Part0 = lleg
  609. Arm3R.Part1 = ArmR
  610. Arm3R.C0 = CFrame.new(0,0,-2.5)
  611. local ArmRS = Instance.new("Part",char)
  612. ArmRS.Size = Vector3.new(1,1,1)
  613. ArmRS.BrickColor = BrickColor.new("Dark red")
  614. ArmRS.TopSurface = 0
  615. ArmRS.BottomSurface = 0
  616. ArmRS.CanCollide = false
  617. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  618. Arm2RS.MeshType = "Brick"
  619. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  620. local Arm3RS = Instance.new("Weld",ArmRS)
  621. Arm3RS.Part0 = lleg
  622. Arm3RS.Part1 = ArmRS
  623. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  624. local BotRS = Instance.new("Part",char)
  625. BotRS.Size = Vector3.new(1,1,1)
  626. BotRS.BrickColor = BrickColor.new("Dark red")
  627. BotRS.BottomSurface = 0
  628. BotRS.TopSurface = 0
  629. BotRS.CanCollide = false
  630. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  631. Bot2RS.MeshType = "Brick"
  632. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  633. local Bot3RS = Instance.new("Weld",BotRS)
  634. Bot3RS.Part0 = lleg
  635. Bot3RS.Part1 = BotRS
  636. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  637. ----------------------------------------------------
  638. local Pec = Instance.new("Part",char)
  639. Pec.Size = Vector3.new(1,1,1)
  640. Pec.BrickColor = BrickColor.new("Dark red")
  641. Pec.CanCollide = false
  642. Pec.TopSurface = 0
  643. Pec.BottomSurface = 0
  644. local Pec2 = Instance.new("SpecialMesh",Pec)
  645. Pec2.MeshType = "Brick"
  646. Pec2.Scale = Vector3.new(5,3,0.3)
  647. local Pec3 = Instance.new("Weld",Pec)
  648. Pec3.Part0 = torso
  649. Pec3.Part1 = Pec
  650. Pec3.C0 = CFrame.new(2,2.8,-2.8)*CFrame.Angles(0,0,0.1)
  651. local PecA = Instance.new("Part",char)
  652. PecA.Size = Vector3.new(1,1,1)
  653. PecA.BrickColor = BrickColor.new("Dark red")
  654. PecA.CanCollide = false
  655. PecA.TopSurface = 0
  656. PecA.BottomSurface = 0
  657. local Pec2A = Instance.new("SpecialMesh",PecA)
  658. Pec2A.MeshType = "Brick"
  659. Pec2A.Scale = Vector3.new(5,3,0.3)
  660. local Pec3A = Instance.new("Weld",PecA)
  661. Pec3A.Part0 = torso
  662. Pec3A.Part1 = PecA
  663. Pec3A.C0 = CFrame.new(-2,2.8,-2.8)*CFrame.Angles(0,0,-0.1)
  664. ---------------------------------------------------
  665. local Abs = Instance.new("Part",char)
  666. Abs.Size = Vector3.new(1,1,1)
  667. Abs.BrickColor = BrickColor.new("Dark red")
  668. Abs.CanCollide = false
  669. Abs.TopSurface = 0
  670. Abs.BottomSurface = 0
  671. local Abs2 = Instance.new("SpecialMesh",Abs)
  672. Abs2.MeshType = "Brick"
  673. Abs2.Scale = Vector3.new(2,2,0.3)
  674. local Abs3 = Instance.new("Weld",Abs)
  675. Abs3.Part0 = torso
  676. Abs3.Part1 = Abs
  677. Abs3.C0 = CFrame.new(1.4,0,-2.8)*CFrame.Angles(0,0,0.1)
  678. local Abs = Instance.new("Part",char)
  679. Abs.Size = Vector3.new(1,1,1)
  680. Abs.BrickColor = BrickColor.new("Dark red")
  681. Abs.CanCollide = false
  682. Abs.TopSurface = 0
  683. Abs.BottomSurface = 0
  684. local Abs2 = Instance.new("SpecialMesh",Abs)
  685. Abs2.MeshType = "Brick"
  686. Abs2.Scale = Vector3.new(2,2,0.3)
  687. local Abs3 = Instance.new("Weld",Abs)
  688. Abs3.Part0 = torso
  689. Abs3.Part1 = Abs
  690. Abs3.C0 = CFrame.new(-1.4,0,-2.8)*CFrame.Angles(0,0,-0.1)
  691.  
  692. local Abs = Instance.new("Part",char)
  693. Abs.Size = Vector3.new(1,1,1)
  694. Abs.BrickColor = BrickColor.new("Dark red")
  695. Abs.CanCollide = false
  696. Abs.TopSurface = 0
  697. Abs.BottomSurface = 0
  698. local Abs2 = Instance.new("SpecialMesh",Abs)
  699. Abs2.MeshType = "Brick"
  700. Abs2.Scale = Vector3.new(2,2,0.3)
  701. local Abs3 = Instance.new("Weld",Abs)
  702. Abs3.Part0 = torso
  703. Abs3.Part1 = Abs
  704. Abs3.C0 = CFrame.new(1.4,-2.1,-2.8)*CFrame.Angles(0,0,0.1)
  705. local Abs = Instance.new("Part",char)
  706. Abs.Size = Vector3.new(1,1,1)
  707. Abs.BrickColor = BrickColor.new("Dark red")
  708. Abs.CanCollide = false
  709. Abs.TopSurface = 0
  710. Abs.BottomSurface = 0
  711. local Abs2 = Instance.new("SpecialMesh",Abs)
  712. Abs2.MeshType = "Brick"
  713. Abs2.Scale = Vector3.new(2,2,0.3)
  714. local Abs3 = Instance.new("Weld",Abs)
  715. Abs3.Part0 = torso
  716. Abs3.Part1 = Abs
  717. Abs3.C0 = CFrame.new(-1.4,-2.1,-2.8)*CFrame.Angles(0,0,-0.1)
  718.  
  719. local Abs = Instance.new("Part",char)
  720. Abs.Size = Vector3.new(1,1,1)
  721. Abs.BrickColor = BrickColor.new("Dark red")
  722. Abs.CanCollide = false
  723. Abs.TopSurface = 0
  724. Abs.BottomSurface = 0
  725. local Abs2 = Instance.new("SpecialMesh",Abs)
  726. Abs2.MeshType = "Brick"
  727. Abs2.Scale = Vector3.new(2,2,0.3)
  728. local Abs3 = Instance.new("Weld",Abs)
  729. Abs3.Part0 = torso
  730. Abs3.Part1 = Abs
  731. Abs3.C0 = CFrame.new(1.4,-4.1,-2.8)*CFrame.Angles(0,0,0.1)
  732. local Abs = Instance.new("Part",char)
  733. Abs.Size = Vector3.new(1,1,1)
  734. Abs.BrickColor = BrickColor.new("Dark red")
  735. Abs.CanCollide = false
  736. Abs.TopSurface = 0
  737. Abs.BottomSurface = 0
  738. local Abs2 = Instance.new("SpecialMesh",Abs)
  739. Abs2.MeshType = "Brick"
  740. Abs2.Scale = Vector3.new(2,2,0.3)
  741. local Abs3 = Instance.new("Weld",Abs)
  742. Abs3.Part0 = torso
  743. Abs3.Part1 = Abs
  744. Abs3.C0 = CFrame.new(-1.4,-4.1,-2.8)*CFrame.Angles(0,0,-0.1)
  745. -----------------------------------------------------
  746. local Head = Instance.new("Part",char)
  747. Head.Size = Vector3.new(1,1,1)
  748. Head.BrickColor = BrickColor.new("Cocoa")
  749. Head.CanCollide = false
  750. Head.TopSurface = 0
  751. Head.BottomSurface = 0
  752. local Head2 = Instance.new("SpecialMesh",Head)
  753. Head2.MeshType = "Head"
  754. Head2.Scale = Vector3.new(11.5,6.5,6.5)
  755. local Head3 = Instance.new("Weld",Head)
  756. Head3.Part0 = hed
  757. Head3.Part1 = Head
  758. Head3.C0 = CFrame.new(0,0,0)
  759. -----------------------------------------------------
  760. local Eye2 = Instance.new("Part",char)
  761. Eye2.Size = Vector3.new(1,1,1)
  762. Eye2.BrickColor = BrickColor.new("Really red")
  763. Eye2.CanCollide = false
  764. Eye2.TopSurface = 0
  765. Eye2.Material = "Neon"
  766. Eye2.BottomSurface = 0
  767. local Eye22 = Instance.new("SpecialMesh",Eye2)
  768. Eye22.MeshType = "Sphere"
  769. Eye22.Scale = Vector3.new(1.2,0.6,0.1)
  770. local Eye32 = Instance.new("Weld",Eye2)
  771. Eye32.Part0 = hed
  772. Eye32.Part1 = Eye2
  773. Eye32.C0 = CFrame.new(1.3,0.5,-3)*CFrame.Angles(0,0,0.3)
  774. local Eye = Instance.new("Part",char)
  775. Eye.Size = Vector3.new(1,1,1)
  776. Eye.BrickColor = BrickColor.new("Really red")
  777. Eye.CanCollide = false
  778. Eye.TopSurface = 0
  779. Eye.Material = "Neon"
  780. Eye.BottomSurface = 0
  781. local Eye212 = Instance.new("SpecialMesh",Eye)
  782. Eye212.MeshType = "Sphere"
  783. Eye212.Scale = Vector3.new(1.2,0.6,0.1)
  784. local Eye3 = Instance.new("Weld",Eye)
  785. Eye3.Part0 = hed
  786. Eye3.Part1 = Eye
  787. Eye3.C0 = CFrame.new(-1.3,0.5,-3)*CFrame.Angles(0,0,-0.3)
  788.  
  789. -----------------------------------------------------
  790.  
  791. function weld5(part0, part1, c0, c1)
  792. weeld=Instance.new("Weld", part0)
  793. weeld.Part0=part0
  794. weeld.Part1=part1
  795. weeld.C0=c0
  796. weeld.C1=c1
  797. return weeld
  798. end
  799. ----------------------------------------------------
  800. function newRay(start,face,range,wat)
  801. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  802. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  803. return rey,hit,pos
  804. end
  805. ----------------------------------------------------
  806. mod5 = Instance.new("Model",char)
  807.  
  808. function FindNearestTorso(Position,Distance,SinglePlayer)
  809. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  810. local List = {}
  811. for i,v in pairs(workspace:GetChildren())do
  812. if v:IsA("Model")then
  813. if v:findFirstChild("Torso")then
  814. if v ~= char then
  815. if(v.Torso.Position -Position).magnitude <= Distance then
  816. table.insert(List,v)
  817. end
  818. end
  819. end
  820. end
  821. end
  822. return List
  823. end
  824.  
  825. function Landing()
  826. part=Instance.new('Part',mod5)
  827. part.Anchored=true
  828. part.CanCollide=false
  829. part.FormFactor='Custom'
  830. part.Size=Vector3.new(.2,.2,.2)
  831. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  832. part.Transparency=.7
  833. part.BrickColor=BrickColor.new('Really black')
  834. mesh=Instance.new('SpecialMesh',part)
  835. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  836. mesh.Scale=Vector3.new(10,5,10)
  837.  
  838. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  839. if v:FindFirstChild('Humanoid') then
  840. v.Humanoid:TakeDamage(math.random(20,30))
  841. v.Humanoid.PlatformStand = true
  842. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  843. end
  844. end
  845.  
  846. coroutine.resume(coroutine.create(function()
  847. for i=0,3.8,0.05 do
  848. wait()
  849. part.CFrame=part.CFrame
  850. part.Transparency=i
  851. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  852. end
  853. part.Parent = nil
  854. end))
  855. end
  856. ----------------------------------------------------
  857. mod4 = Instance.new("Model",char)
  858.  
  859. ptez = {0.7, 0.8, 0.9, 1}
  860.  
  861. function FindNearestTorso(Position,Distance,SinglePlayer)
  862. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  863. local List = {}
  864. for i,v in pairs(workspace:GetChildren())do
  865. if v:IsA("Model")then
  866. if v:findFirstChild("Torso")then
  867. if v ~= char then
  868. if(v.Torso.Position -Position).magnitude <= Distance then
  869. table.insert(List,v)
  870. end
  871. end
  872. end
  873. end
  874. end
  875. return List
  876. end
  877.  
  878. ----------------------------------------------------
  879.  
  880. local acos = math.acos
  881. local sqrt = math.sqrt
  882. local Vec3 = Vector3.new
  883. local fromAxisAngle = CFrame.fromAxisAngle
  884.  
  885. local function toAxisAngle(CFr)
  886. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  887. local Angle = math.acos((R00+R11+R22-1)/2)
  888. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  889. A = A == 0 and 0.00001 or A
  890. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  891. B = B == 0 and 0.00001 or B
  892. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  893. C = C == 0 and 0.00001 or C
  894. local x = (R21-R12)/sqrt(A)
  895. local y = (R02-R20)/sqrt(B)
  896. local z = (R10-R01)/sqrt(C)
  897. return Vec3(x,y,z),Angle
  898. end
  899.  
  900. function ApplyTrig(Num,Func)
  901. local Min,Max = Func(0),Func(1)
  902. local i = Func(Num)
  903. return (i-Min)/(Max-Min)
  904. --[[if Func == "sin" then
  905. return (math.sin((1-Num)*math.pi)+1)/2
  906. elseif Func == "cos" then
  907. return (math.cos((1-Num)*math.pi)+1)/2
  908. end]]
  909. end
  910.  
  911. function LerpCFrame(CFrame1,CFrame2,Num)
  912. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  913. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  914. end
  915. mouse.KeyDown:connect(function(key)
  916. if key == "b" then
  917. if Debounces.CanAttack == true then
  918. Debounces.CanAttack = false
  919. Debounces.on = true
  920. Debounces.NoIdl = true
  921. for i = 1,20 do
  922. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,4,1) * CFrame.Angles(0.3,-0.5,1.55),.3)
  923. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-9,4,1) * CFrame.Angles(0.3,0.5,-1.55),.3)
  924. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0.4,0,0),.3)
  925. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.3,0,0),.3)
  926. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,1) *CFrame.Angles(-0.3,0,-0.1),.3)
  927. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,1) * CFrame.Angles(-0.3,0,0.1),.3)
  928. if Debounces.on == false then break end
  929. wait()
  930. end
  931. v = Instance.new("Sound")
  932. v.SoundId = "rbxassetid://785301837"
  933. v.Parent = torso
  934. v.Looped = false
  935. v.Pitch = 0.8
  936. v.Volume = math.huge
  937. wait(.01)
  938. v:Play()
  939. coroutine.resume(coroutine.create(function()
  940. for i = 1,80 do
  941. local H = Instance.new("Part",torso)
  942. H.Size = Vector3.new(1,1,1)
  943. H.BrickColor = BrickColor.new("White")
  944. H.CanCollide = false
  945. H.Anchored = true
  946. H.CFrame = torso.CFrame*CFrame.new(0,-13,0)*CFrame.Angles(1.3,0,0)
  947. local H2 = Instance.new("SpecialMesh",H)
  948. H2.MeshId = "rbxassetid://3270017"
  949. coroutine.resume(coroutine.create(function()
  950. for i = 1,200 do
  951. H2.Scale = H2.Scale + Vector3.new(5,5,5)
  952. H.Transparency = H.Transparency + 0.05
  953. wait(0.05)
  954. end
  955. H:remove()
  956. end))
  957. wait(0.005)
  958. end
  959. if Debounces.CanAttack == false then
  960. Debounces.CanAttack = true
  961. Debounces.on = false
  962. Debounces.NoIdl = false
  963. end
  964. end))
  965. end
  966. end
  967. end)
  968. mouse.KeyDown:connect(function(key)
  969. if key == "z" then
  970. if Debounces.CanAttack == true then
  971. Debounces.CanAttack = false
  972. Debounces.on = true
  973. Debounces.NoIdl = true
  974. for i = 1,20 do
  975. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  976. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  977. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  978. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -6, 0) * CFrame.Angles(-1.5,0,0),.3)
  979. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -7.6,-2) *CFrame.Angles(1.55,0,0),.3)
  980. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,-2) * CFrame.Angles(1.55,0,0),.3)
  981. if Debounces.on == false then break end
  982. wait()
  983. end
  984. local Rock = Instance.new("Part",char)
  985. Rock.Size = Vector3.new(1,1,1)
  986. local Rock22 = Instance.new("SpecialMesh",Rock)
  987. Rock22.MeshId = "rbxassetid://433651599"
  988. Rock22.Scale = Vector3.new(0.5,0.5,0.5)
  989. local Rock2 = Instance.new("Weld",Rock)
  990. Rock2.Part0 = hed
  991. Rock2.Part1 = Rock
  992. Rock2.C0 = CFrame.new(0,40,0)*CFrame.Angles(0,-1.55,0)
  993. local PPA = Instance.new("Part",Rock)
  994. PPA.Size = Vector3.new(30,30,30)
  995. PPA.CanCollide = false
  996. local PPA2 = Instance.new("Weld",PPA)
  997. PPA2.Part0 = Rock
  998. PPA2.Part1 = PPA
  999. PPA2.C0 = CFrame.new(0,0,0)
  1000. PPA.Touched:connect(function(hit)
  1001. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1002. if not FA then FA = true
  1003. hit.Parent.Humanoid.PlatformStand = true
  1004. hit.Parent.Humanoid:TakeDamage(30)
  1005. local Fly = Instance.new("BodyVelocity",hit.Parent.Torso)
  1006. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1007. Fly.velocity = mouse.hit.lookVector*560
  1008. wait(0.1)
  1009. Fly:remove()
  1010. wait(3)
  1011. FA = false
  1012. end
  1013. end
  1014. end)
  1015. wait(0.5)
  1016. for i = 1,20 do
  1017. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  1018. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  1019. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1020. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0,0,0),.3)
  1021. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  1022. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,0) * CFrame.Angles(0,0,0),.3)
  1023. if Debounces.on == false then break end
  1024. wait()
  1025. end
  1026. Rock2:remove()
  1027. local Fly = Instance.new("BodyVelocity",Rock)
  1028. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1029. Fly.velocity = mouse.hit.lookVector*200
  1030. for i = 1,20 do
  1031. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  1032. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  1033. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.3,0,0),.3)
  1034. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.3,0,0),.3)
  1035. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  1036. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,-2) * CFrame.Angles(0.5,0,0),.3)
  1037. if Debounces.on == false then break end
  1038. wait()
  1039. end
  1040. if Debounces.CanAttack == false then
  1041. Debounces.CanAttack = true
  1042. Debounces.on = false
  1043. Debounces.NoIdl = false
  1044. end
  1045. wait(2)
  1046. Fly:remove()
  1047. local SFXZ = Instance.new("Sound",Rock)
  1048. SFXZ.SoundId = "rbxassetid://134854740"
  1049. SFXZ.Volume = math.huge
  1050. SFXZ.Pitch = 1
  1051. SFXZ.Looped = false
  1052. wait(0.01)
  1053. SFXZ:Play()
  1054. wait(3)
  1055. Rock:remove()
  1056. end
  1057. end
  1058. end)
  1059. mouse.KeyDown:connect(function(key)
  1060. if key == "e" then
  1061. if Debounces.CanAttack == true then
  1062. Debounces.CanAttack = false
  1063. Debounces.on = true
  1064. Debounces.NoIdl = true
  1065. for i = 1,20 do
  1066. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  1067. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1068. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1069. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1070. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1071. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1072. if Debounces.on == false then break end
  1073. wait()
  1074. end
  1075. local HitBox = Instance.new("Part",char)
  1076. HitBox.Size = Vector3.new(5,5,5)
  1077. HitBox.CanCollide = false
  1078. HitBox.Transparency = math.huge
  1079. local HitBox2 = Instance.new("Weld",HitBox)
  1080. HitBox2.Part0 = rarm
  1081. HitBox2.Part1 = HitBox
  1082. HitBox2.C0 = CFrame.new(0,-4.5,0)
  1083. HitBox.Touched:connect(function(hit)
  1084. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1085. if not DD then DD = true
  1086. HitBox:remove()
  1087. hit.Parent.Humanoid.PlatformStand = true
  1088. local We = Instance.new("Weld",hit.Parent.Torso)
  1089. We.Part0 = rarm
  1090. We.Part1 = hit.Parent.Torso
  1091. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  1092. wait(1)
  1093. for i = 1,20 do
  1094. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  1095. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  1096. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  1097. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1098. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1099. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1100. if Debounces.on == false then break end
  1101. wait()
  1102. end
  1103. hit.Parent.Humanoid:TakeDamage(20)
  1104. for i = 1,20 do
  1105. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  1106. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  1107. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1108. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1109. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1110. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1111. if Debounces.on == false then break end
  1112. wait()
  1113. end
  1114. for i = 1,20 do
  1115. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  1116. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  1117. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1118. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1119. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1120. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1121. if Debounces.on == false then break end
  1122. wait()
  1123. end
  1124. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  1125. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  1126. partasdeff.LightEmission = .1
  1127. partasdeff.Size = NumberSequence.new(0.2)
  1128. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  1129. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1130. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1131. partasdeff.Transparency = bbb
  1132. partasdeff.Size = aaa
  1133. partasdeff.ZOffset = .9
  1134. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  1135. partasdeff.LockedToPart = false
  1136. partasdeff.EmissionDirection = "Top"
  1137. partasdeff.Lifetime = NumberRange.new(1, 2)
  1138. partasdeff.Rate = 1000
  1139. partasdeff.Rotation = NumberRange.new(-100, 100)
  1140. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  1141. partasdeff.Speed = NumberRange.new(10)
  1142. partasdeff.VelocitySpread = 300
  1143. partasdeff.Enabled = true
  1144. wait(1.5)
  1145. hit.Parent:BreakJoints()
  1146. We:remove()
  1147. partasdeff.Enabled = false
  1148. if Debounces.CanAttack == false then
  1149. Debounces.CanAttack = true
  1150. Debounces.on = false
  1151. Debounces.NoIdl = false
  1152. end
  1153. wait(3)
  1154. DD = false
  1155. end
  1156. end
  1157. end)
  1158. wait(5)
  1159. if Debounces.CanAttack == false then
  1160. Debounces.CanAttack = true
  1161. Debounces.on = false
  1162. Debounces.NoIdl = false
  1163. end
  1164. end
  1165. end
  1166. end)
  1167. mouse.KeyDown:connect(function(key)
  1168. if key == "r" then
  1169. if Debounces.CanAttack == true then
  1170. Debounces.CanAttack = false
  1171. Debounces.on = true
  1172. Debounces.NoIdl = true
  1173. for i = 1,20 do
  1174. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1175. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1176. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1177. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  1178. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  1179. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  1180. if Debounces.on == false then break end
  1181. wait()
  1182. end
  1183. local HitBox = Instance.new("Part",char)
  1184. HitBox.Size = Vector3.new(5,5,5)
  1185. HitBox.CanCollide = false
  1186. HitBox.Transparency = math.huge
  1187. local HitBox2 = Instance.new("Weld",HitBox)
  1188. HitBox2.Part0 = rleg
  1189. HitBox2.Part1 = HitBox
  1190. HitBox2.C0 = CFrame.new(0,-1.1,0)
  1191. local SFXZ = Instance.new("Sound",torso)
  1192. SFXZ.SoundId = "rbxassetid://134012322"
  1193. SFXZ.Volume = math.huge
  1194. SFXZ.Pitch = 0.5
  1195. SFXZ.Looped = false
  1196. wait(0.01)
  1197. SFXZ:Play()
  1198. HitBox.Touched:connect(function(hit)
  1199. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1200. local SFXZ = Instance.new("Sound",torso)
  1201. SFXZ.SoundId = "rbxassetid://220025719"
  1202. SFXZ.Volume = 1
  1203. SFXZ.Pitch = 0.5
  1204. SFXZ.Looped = false
  1205. SFXZ:Play()
  1206. HitBox:remove()
  1207. hit.Parent.Humanoid:TakeDamage(44)
  1208. hit.Parent.Humanoid.PlatformStand = true
  1209. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  1210. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1211. Fl.velocity = rleg.CFrame.lookVector*350
  1212. wait(0.1)
  1213. Fl:remove()
  1214. end
  1215. end)
  1216. for i = 1,20 do
  1217. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1218. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1219. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1220. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  1221. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  1222. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  1223. if Debounces.on == false then break end
  1224. wait()
  1225. end
  1226. if Debounces.CanAttack == false then
  1227. Debounces.CanAttack = true
  1228. Debounces.on = false
  1229. Debounces.NoIdl = false
  1230. HitBox:remove()
  1231. end
  1232. end
  1233. end
  1234. end)
  1235. ----------------------------------------------------
  1236. mouse.KeyDown:connect(function(key)
  1237. if string.byte(key) == 48 then
  1238. char.Humanoid.WalkSpeed = 90
  1239. end
  1240. end)
  1241. mouse.KeyUp:connect(function(key)
  1242. if string.byte(key) == 48 then
  1243. char.Humanoid.WalkSpeed = 10
  1244. end
  1245. end)
  1246. ----------------------------------------------------
  1247. local animpose = "Idle"
  1248. local lastanimpose = "Idle"
  1249. local sine = 0
  1250. local change = 1
  1251. local val = 0
  1252. local ffing = false
  1253. ----------------------------------------------------
  1254. local x = Instance.new("Sound", char.Torso)
  1255. x.SoundId = "http://www.roblox.com/asset/?id=198360408"
  1256. x.Looped = true
  1257. x.Volume = math.huge
  1258. x.Pitch = 1
  1259. local footsteps = false
  1260. -------------------------------
  1261. game:GetService("RunService").RenderStepped:connect(function()
  1262. rarm.BrickColor = ASD
  1263. larm.BrickColor = ASD
  1264. rleg.BrickColor = ASD
  1265. lleg.BrickColor = ASD
  1266. hed.BrickColor = ASD
  1267. torso.BrickColor = ASD
  1268. --[[if char.Humanoid.Jump == true then
  1269. jump = true
  1270. else
  1271. jump = false
  1272. end]]
  1273. char.Humanoid.FreeFalling:connect(function(f)
  1274. if f then
  1275. ffing = true
  1276. else
  1277. ffing = false
  1278. end
  1279. end)
  1280. sine = sine + change
  1281. if jumpn == true then
  1282. animpose = "Jumping"
  1283. elseif ffing == true then
  1284. animpose = "Freefalling"
  1285. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1286. animpose = "Idle"
  1287. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1288. animpose = "Walking"
  1289. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1290. animpose = "Running"
  1291. end
  1292. if animpose ~= lastanimpose then
  1293. sine = 0
  1294. if Debounces.NoIdl == false then
  1295. if animpose == "Idle" then
  1296. for i = 1, 2 do
  1297. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  1298. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  1299. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1300. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1301. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1302. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1303. end
  1304. elseif animpose == "Walking" then
  1305. for i = 1, 2 do
  1306. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  1307. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  1308. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  1309. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  1310. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1311. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1312. end
  1313. elseif animpose == "Running" then
  1314. for i = 1, 2 do
  1315. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  1316. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  1317. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1318. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1319. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  1320. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  1321. end
  1322. wait()
  1323. end
  1324. else
  1325. end
  1326. end
  1327. lastanimpose = animpose
  1328. if Debounces.NoIdl == false then
  1329. if animpose == "Idle" then
  1330. if stanceToggle == "Normal" then
  1331. change = 0.5
  1332. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,0.3),.2)
  1333. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,-0.3),.2)
  1334. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(0-.1*math.sin(tick()*1),0,0)*CFrame.Angles(-0.3,0,0), 0.2)
  1335. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1336. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1337. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1338. elseif stanceToggle == "Sitting" then
  1339. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  1340. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  1341. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  1342. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  1343. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  1344. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  1345. end
  1346. elseif animpose == "Walking" then
  1347. if stanceToggle == "Normal" then
  1348. change = 1
  1349. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,0.8,0)*CFrame.Angles(0-.2*math.sin(tick()*2.5),0,0.2),.3)
  1350. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,0.8,0)*CFrame.Angles(0+.2*math.sin(tick()*2.5),0,-0.2),.3)
  1351. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  1352. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-1.8,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  1353. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1354. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1355. end
  1356. elseif animpose == "Running" then
  1357. change = 1
  1358. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.7,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  1359. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.7,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  1360. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1361. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1362. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.80*math.cos(sine/6)/2.4, -.15 + math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + -math.sin(sine/6)/1.7, 0, 0), .4)
  1363. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.80*math.cos(sine/6)/2.4, -.15 + -math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + math.sin(sine/6)/1.7, 0, 0), .4)
  1364. end
  1365. end
  1366. if animpose == "Walking" then
  1367. if footsteps == false then
  1368. x:Play()
  1369. footsteps = true
  1370. end
  1371. x.Pitch = 1.1
  1372. elseif animpose == "Idle" then
  1373. x:Stop()
  1374. footsteps = false
  1375. elseif animpose == "Running" then
  1376. x.Pitch = 1.2
  1377. if footsteps == false then
  1378. x:Play()
  1379. footsteps = true
  1380. end
  1381. end
  1382. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement