Advertisement
Dark_EccentricYT

Untitled

Oct 26th, 2017
1,940
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.82 KB | None | 0 0
  1. wait(0.1)
  2.  
  3. local p = game.Players.LocalPlayer
  4. local ma = p.Character
  5. local p = game.Players.LocalPlayer
  6. local char = p.Character
  7. local mouse = p:GetMouse()
  8. local larm = char["Left Arm"]
  9. local rarm = char["Right Arm"]
  10. local lleg = char["Left Leg"]
  11. idk = false
  12. local CFAngles = CFrame.Angles
  13. rock = false
  14. local RbxUtility = LoadLibrary("RbxUtility")
  15. local vt = Vector3.new
  16. euler = CFrame.fromEulerAnglesXYZ
  17. local Create = RbxUtility.Create
  18. local Character = char
  19. sizem = 1.5
  20.  
  21. local yellow = false
  22. local red = false
  23. NoAnims = false
  24. local green = false
  25.  
  26. local distance = 0
  27. local rleg = char["Right Leg"]
  28. local hed = char.Head
  29. local torso = char.Torso
  30. local hum = char.Humanoid
  31. local cam = game.Workspace.CurrentCamera
  32. local root = char.HumanoidRootPart
  33. local deb = false
  34. local shot = 0
  35. local debris=game:service"Debris"
  36. local l = game:GetService("Lighting")
  37. local rs = game:GetService("RunService").RenderStepped
  38. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  39. math.randomseed(os.time())
  40. for i,v in pairs (hed:GetChildren()) do
  41. if v:IsA("Sound") then
  42. v:Destroy()
  43. end
  44. end
  45.  
  46.  
  47. local acos = math.acos
  48. local sqrt = math.sqrt
  49. local Vec3 = Vector3.new
  50. local fromAxisAngle = CFrame.fromAxisAngle
  51.  
  52. local function toAxisAngle(CFr)
  53. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  54. local Angle = math.acos((R00+R11+R22-1)/2)
  55. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  56. A = A == 0 and 0.00001 or A
  57. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  58. B = B == 0 and 0.00001 or B
  59. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  60. C = C == 0 and 0.00001 or C
  61. local x = (R21-R12)/sqrt(A)
  62. local y = (R02-R20)/sqrt(B)
  63. local z = (R10-R01)/sqrt(C)
  64. return Vec3(x,y,z),Angle
  65. end
  66.  
  67.  
  68. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  69. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  70. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  71. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  72. char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  73. char["Body Colors"].RightLegColor = BrickColor.new("Really black")
  74.  
  75. function Lerp(c1,c2,al)
  76. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  77. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  78. for i,v in pairs(com1) do
  79. com1[i] = v+(com2[i]-v)*al
  80. end
  81. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  82. end
  83.  
  84. rayModel = Instance.new("Model",char)
  85.  
  86. ids = {463804032,282572614}
  87.  
  88. pcall(function()
  89. torso.Sound:Destroy()
  90. end)
  91.  
  92. local s = Instance.new("Sound",torso)
  93. s.SoundId = "rbxassetid://282572614"
  94. s.Volume = .8
  95. s.Pitch = 1
  96. s.Looped = true
  97. s:Play()
  98.  
  99. hum.MaxHealth = 650
  100. hum.Health = hum.MaxHealth
  101. hum.Health = math.huge
  102.  
  103. Debounces = {
  104. CanAttack = true;
  105. NoIdl = false;
  106. Slashing = false;
  107. Slashed = false;
  108. RPunch = false;
  109. RPunched = false;
  110. LPunch = false;
  111. LPunched = false;
  112. attackNumber = 0;
  113. NoAnims = false;
  114. MaxEnergy = 285;
  115. FPS=0;
  116. Energy = 285;
  117. }
  118.  
  119. function FindNearestTorso(Position,Distance,SinglePlayer)
  120. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  121. local List = {}
  122. for i,v in pairs(workspace:GetChildren())do
  123. if v:IsA("Model")then
  124. if v:findFirstChild("Torso")then
  125. if v ~= char then
  126. if(v.Torso.Position -Position).magnitude <= Distance then
  127. table.insert(List,v)
  128. end
  129. end
  130. end
  131. end
  132. end
  133. return List
  134. end
  135.  
  136. it=Instance.new
  137.  
  138. function weldkek(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  139. coroutine.resume(coroutine.create(function()
  140. for i=1, math.huge, 4 do
  141. rs:wait()
  142. if angles1 or angles2 or angles3 == nil then angles1 = 0,0,0 end
  143. if cframe1 or cframe2 or cframe3 == nil then cframe1 = 0,0,0 end
  144. if prt == nil then print("Error:Code 1;Not found first part") end
  145. if obj == nil then print("Error:Code 2;Not found second part") end
  146. prt.CFrame = obj.CFrame*CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  147. end
  148. end))
  149. end
  150.  
  151. function weld2(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  152. local w = Instance.new("Weld",obj)
  153. w.Part0 = prt
  154. w.Part1 = obj
  155. w.Parent = obj
  156. w.C0 = CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  157. end
  158.  
  159. local AddNew = Instance.new
  160.  
  161. function rainbowgui2(kek)
  162. coroutine.wrap(function()
  163. while true do
  164. for i = 0,2,0.01 do
  165. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/26, 255/255, 225/255), i / 100)
  166. wait()
  167. end
  168. for i = 0,2,0.01 do
  169. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  170. wait()
  171. end
  172. for i = 1,2,0.01 do
  173. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  174. wait()
  175. end
  176. for i = 1,2,0.01 do
  177. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  178. wait()
  179. end
  180. for i = 1,2,0.01 do
  181. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  182. wait()
  183. end
  184. for i = 1,2,0.01 do
  185. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  186. wait()
  187. end
  188. wait()
  189. end
  190. end)()
  191. end
  192.  
  193.  
  194.  
  195. function rainbowgui(kek)
  196. coroutine.wrap(function()
  197. while true do
  198. for i = 0,2,0.01 do
  199. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 26/255, 225/255), i / 100)
  200. wait()
  201. end
  202. for i = 0,2,0.01 do
  203. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  204. wait()
  205. end
  206. for i = 1,2,0.01 do
  207. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  208. wait()
  209. end
  210. for i = 1,2,0.01 do
  211. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  212. wait()
  213. end
  214. for i = 1,2,0.01 do
  215. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  216. wait()
  217. end
  218. for i = 1,2,0.01 do
  219. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  220. wait()
  221. end
  222. wait()
  223. end
  224. end)()
  225. end
  226.  
  227.  
  228.  
  229. function LerpCFrame(CFrame1,CFrame2,Num)
  230. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  231. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  232. end
  233.  
  234. function genWeld(a,b)
  235. local w = Instance.new("Weld",a)
  236. w.Part0 = a
  237. w.Part1 = b
  238. return w
  239. end
  240. function weld(a, b)
  241. local weld = Instance.new("Weld")
  242. weld.Name = "W"
  243. weld.Part0 = a
  244. weld.Part1 = b
  245. weld.C0 = a.CFrame:inverse() * b.CFrame
  246. weld.Parent = a
  247. return weld;
  248. end
  249. ----------------------------------------------------
  250. ypcall(function()
  251. hed.face.Texture = "rbxassetid://49585816"
  252. char.Shirt:Destroy()
  253. char.Pants:Destroy()
  254. shirt = Instance.new("Shirt", char)
  255. shirt.Name = "Shirt"
  256. pants = Instance.new("Pants", char)
  257. pants.Name = "Pants"
  258. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507"
  259. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  260. end)
  261.  
  262. ----------------------------------------------------
  263. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  264. local wld = Instance.new("Weld", wp1)
  265. wld.Part0 = wp0
  266. wld.Part1 = wp1
  267. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  268. end
  269. ----------------------------------------------------
  270. function weld5(part0, part1, c0, c1)
  271. weeld=Instance.new("Weld", part0)
  272. weeld.Part0=part0
  273. weeld.Part1=part1
  274. weeld.C0=c0
  275. weeld.C1=c1
  276. return weeld
  277. end
  278. ----------------------------------------------------
  279. larm.Size = larm.Size * sizem
  280. rarm.Size = rarm.Size * sizem
  281. lleg.Size = lleg.Size * sizem
  282. rleg.Size = rleg.Size * sizem
  283. torso.Size = torso.Size * sizem
  284. hed.Size = hed.Size * sizem
  285. root.Size = root.Size *sizem
  286.  
  287. hum.JumpPower = hum.JumpPower * sizem
  288. hum.WalkSpeed = hum.WalkSpeed * sizem
  289. hum.HipHeight = hum.HipHeight * sizem
  290.  
  291.  
  292.  
  293. function NoOutline(Part)
  294. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  295. end
  296. function swait(num)
  297. if num == 0 or num == nil then
  298. game:service'RunService'.Heartbeat:wait(0)
  299. else
  300. for i = 0, num do
  301. game:service'RunService'.Heartbeat:wait(0)
  302. end
  303. end
  304. end
  305.  
  306. function nooutline(part)
  307. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  308. end
  309.  
  310. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  311. local fp = Create("Part"){
  312. formFactor = formfactor,
  313. Parent = parent,
  314. Reflectance = reflectance,
  315. Transparency = transparency,
  316. CanCollide = false,
  317. Locked = true,
  318. BrickColor = BrickColor.new(tostring(brickcolor)),
  319. Name = name,
  320. Size = size,
  321. Position = Character.Torso.Position,
  322. Material = material,
  323. }
  324. nooutline(fp)
  325. return fp
  326. end
  327.  
  328. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  329. local Msh = Create(Mesh){
  330. Parent = part,
  331. Offset = offset,
  332. Scale = scale,
  333. }
  334. if Mesh == "SpecialMesh" then
  335. Msh.MeshType = meshtype
  336. Msh.MeshId = meshid
  337. end
  338. return Msh
  339. end
  340.  
  341.  
  342. function so(id, par, vol, pit)
  343. coroutine.resume(coroutine.create(function()
  344. local sou = Instance.new("Sound", par or workspace)
  345. sou.Volume = vol
  346. sou.Pitch = pit or 1
  347. sou.SoundId = Sounds[id].Id or id
  348. swait()
  349. sou:play()
  350. swait(6)
  351. sou:Remove()
  352. end))
  353. end
  354.  
  355. function weld(parent, part0, part1, c0, c1)
  356. local Weld = Create("Weld"){
  357. Parent = parent,
  358. Part0 = part0,
  359. Part1 = part1,
  360. C0 = c0,
  361. C1 = c1,
  362. }
  363. return Weld
  364. end
  365.  
  366. ----------------------------------------------------
  367. ----------------------------------------------------
  368.  
  369. local m = Instance.new("Model")
  370. m.Name = "Hat"
  371. p1 = Instance.new("Part", m)
  372. p1.BrickColor = BrickColor.new("Really black")
  373. p1.FormFactor = Enum.FormFactor.Symmetric
  374. p1.Size = Vector3.new(1*sizem, 1*sizem, 1*sizem)
  375. p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006)
  376. p1.CanCollide = false
  377. p1.Locked = true
  378. p1.Name = "Head"
  379. p1.BottomSurface = Enum.SurfaceType.Smooth
  380. p1.TopSurface = Enum.SurfaceType.Smooth
  381. b1 = Instance.new("SpecialMesh", p1)
  382. b1.MeshId = "http://www.roblox.com/asset/?id=83499032"
  383. b1.TextureId = ""
  384. b1.MeshType = Enum.MeshType.FileMesh
  385. b1.Name = "Mesh"
  386. b1.VertexColor = Vector3.new(0, 0, 0)
  387. b1.Scale = Vector3.new(1*sizem, 1*sizem, 1*sizem)
  388. m.Parent = char
  389. m:BreakJoints()
  390. m:MakeJoints()
  391. local cor = Instance.new("Part", char.Hat)
  392. cor.Name = "Link"
  393. cor.Locked = true
  394. cor.BottomSurface = 0
  395. cor.CanCollide = false
  396. cor.Size = Vector3.new(1, 9, 1)
  397. cor.Transparency = 1
  398. cor.TopSurface = 0
  399. corw = Instance.new("Weld", cor)
  400. corw.Part0 = hed
  401. corw.Part1 = cor
  402. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  403. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  404. weld1 = Instance.new("Weld", char.Hat)
  405. weld1.Part0 = cor
  406. weld1.Part1 = char.Hat.Head
  407. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  408.  
  409.  
  410. ----------------------------------------------------
  411. newWeld(torso, larm, -1.5, 0.5, 0)
  412. larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  413. newWeld(torso, rarm, 1.5, 0.5, 0)
  414. rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  415. newWeld(torso, hed, 0, 1.5, 0)
  416. newWeld(torso, lleg, -0.5, -1, 0)
  417. lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  418. newWeld(torso, rleg, 0.5, -1, 0)
  419. rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  420. newWeld(root, torso, 0, -1, 0)
  421. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
  422. local Touche = {char.Name, }
  423. ----------------------------------------------------
  424. attack = false
  425. attackhit = false
  426.  
  427. attacknumber = 0
  428.  
  429. coroutine.wrap(function()
  430. while true do
  431. rs:wait()
  432. if attacknumber >= 2 then
  433. attacknumber = 0
  434. end
  435. end
  436. end)()
  437.  
  438.  
  439. throw = false
  440.  
  441.  
  442. mouse.KeyDown:connect(function(k)
  443. if k == "q" then
  444. if attack == false then attack = true
  445. attackhit = true
  446. attacknumber = attacknumber + 1
  447. NoAnims = true
  448. local sine = 1
  449.  
  450. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  451. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  452.  
  453. lleg.Touched:connect(function(ht)
  454. hit = ht.Parent
  455. if attackhit == true then
  456. if ht and hit:IsA("Model") then
  457. if hit:FindFirstChild("Humanoid") then
  458. if hit.Name ~= p.Name then
  459. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45,70))
  460. z = Instance.new("Sound",hed)
  461. z.SoundId = "rbxassetid://294188918"
  462. z.Volume = 1
  463. z:Play()
  464. attackhit = false
  465. end
  466. end
  467. elseif ht and hit:IsA("Hat") then
  468. if hit.Parent.Name ~= p.Name then
  469. if hit.Parent:FindFirstChild("Humanoid") then
  470. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70,177))
  471. hit.Parent.Humanoid.PlatformStand = true
  472. z = Instance.new("Sound",hed)
  473. z.SoundId = "rbxassetid://294188918"
  474. z.Volume = 1
  475. z:Play()
  476. attackhit = false
  477. end
  478. end
  479. end
  480. end
  481. end)
  482.  
  483. for i = 1, 10 do
  484. rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(0,0,0),0.2)
  485. lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5* sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
  486. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0 * sizem)*CFrame.Angles(10.3,0,0),0.3)
  487. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(10.3,0,0),0.3)
  488. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-3.5 * sizem,0)*CFrame.Angles(math.rad(70),0,0),0.2)
  489. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  490.  
  491. rs:wait()
  492. end
  493. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  494. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  495. wait(.5)
  496. attackhit = false
  497. attack = false
  498. NoAnims = false
  499. end
  500. end
  501. end)
  502.  
  503. mouse.KeyDown:connect(function(k)
  504. if k == "f" then
  505. if attack == false then
  506. attack = true
  507. attacknumber = attacknumber + 1
  508. attackhit = true
  509. NoAnims = true
  510. local sine = 1
  511.  
  512. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  513. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  514.  
  515. for i = 1, 10 do
  516.  
  517. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
  518.  
  519. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 *sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
  520.  
  521. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  522.  
  523. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, .5 * sizem, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  524.  
  525. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
  526.  
  527. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -.5 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
  528.  
  529. rs:wait()
  530. end
  531.  
  532. wait(.5)
  533.  
  534. for i = 1, 10 do
  535.  
  536. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
  537.  
  538. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
  539.  
  540. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  541.  
  542. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0),0, math.rad(0)), 0.2)
  543.  
  544. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
  545.  
  546. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
  547.  
  548. rs:wait()
  549. end
  550.  
  551. local s1 = AddNew("Sound",hed)
  552. s1.SoundId = "rbxassetid://231917744"
  553. s1.Name = "sm000sh"
  554. s1.Volume = 0.5
  555. s1.Pitch = 1
  556. s1:Play()
  557.  
  558. for i,v in pairs(FindNearestTorso(rleg.CFrame.p,15 * sizem))do
  559. if v:FindFirstChild('Humanoid') then
  560. v.Humanoid:TakeDamage(math.random(26 * 5 * sizem,59 * 5 * sizem))
  561. v.Humanoid.PlatformStand = true
  562. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 60 * sizem
  563. end
  564. end
  565.  
  566. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  567. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  568.  
  569. NoAnims = false
  570. attackhit = false
  571. attack = false
  572.  
  573. end
  574. end
  575. end)
  576.  
  577. mouse.KeyDown:connect(function(k)
  578. if k == "r" then
  579. if attack == false then
  580. attack = true
  581. attacknumber = attacknumber + 1
  582. attackhit = true
  583. NoAnims = true
  584. local sine = 1
  585.  
  586. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  587. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  588.  
  589. for i = 1, 3 do
  590.  
  591.  
  592. larm.Touched:connect(function(ht)
  593. hit = ht.Parent
  594. if attackhit == true then
  595. if ht and hit:IsA("Model") then
  596. if hit:FindFirstChild("Humanoid") then
  597. if hit.Name ~= p.Name then
  598. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,27 * sizem))
  599. z = Instance.new("Sound",hed)
  600. z.SoundId = "rbxassetid://294188918"
  601. z.Volume = 1
  602. z:Play()
  603. end
  604. end
  605. elseif ht and hit:IsA("Hat") then
  606. if hit.Parent.Name ~= p.Name then
  607. if hit.Parent:FindFirstChild("Humanoid") then
  608. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,45 * sizem))
  609. z = Instance.new("Sound",hed)
  610. z.SoundId = "rbxassetid://294188918"
  611. z.Volume = 1
  612. z:Play()
  613. end
  614. end
  615. end
  616. end
  617. end)
  618.  
  619. rarm.Touched:connect(function(ht)
  620. hit = ht.Parent
  621. if attackhit == true then
  622. if ht and hit:IsA("Model") then
  623. if hit:FindFirstChild("Humanoid") then
  624. if hit.Name ~= p.Name then
  625. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
  626. z = Instance.new("Sound",hed)
  627. z.SoundId = "rbxassetid://294188918"
  628. z.Volume = 1
  629. z:Play()
  630. end
  631. end
  632. elseif ht and hit:IsA("Hat") then
  633. if hit.Parent.Name ~= p.Name then
  634. if hit.Parent:FindFirstChild("Humanoid") then
  635. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
  636. z = Instance.new("Sound",hed)
  637. z.SoundId = "rbxassetid://294188918"
  638. z.Volume = 1
  639. z:Play()
  640. end
  641. end
  642. end
  643. end
  644. end)
  645.  
  646. for i = 1, 5 do
  647.  
  648. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  649.  
  650. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  651.  
  652. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
  653. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  654. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  655. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  656. rs:wait()
  657. end
  658.  
  659.  
  660. for i = 1, 5 do
  661. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  662.  
  663. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  664.  
  665. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
  666. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  667. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  668. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  669. rs:wait()
  670. end
  671.  
  672. for i = 1, 5 do
  673.  
  674. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  675.  
  676. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  677.  
  678. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(80,-0,-0),0.4) -- punching arm
  679. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  680. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  681. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  682. rs:wait()
  683. end
  684.  
  685.  
  686.  
  687. for i = 1, 5 do
  688. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  689.  
  690. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  691.  
  692. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(160,0,20),0.4) -- punching arm
  693. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  694. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  695. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  696. rs:wait()
  697. end
  698. rs:wait()
  699. end
  700. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  701. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  702. NoAnims = false
  703. attackhit = false
  704. attack = false
  705. end
  706. end
  707. end)
  708.  
  709. mouse.KeyDown:connect(function(k)
  710. if k == "t" then
  711. if attack == false then
  712. attack = true
  713. attacknumber = attacknumber + 1
  714. attackhit = true
  715. NoAnims = true
  716. local sine = 1
  717.  
  718. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  719. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  720.  
  721. for i = 1, 20 do
  722. rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  723. lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5 * sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
  724. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
  725. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
  726. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-1 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  727. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  728. rs:wait()
  729. end
  730.  
  731. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  732. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  733.  
  734. lleg.Touched:connect(function(ht)
  735. hit = ht.Parent
  736. if attackhit == true then
  737. if ht and hit:IsA("Model") then
  738. if hit:FindFirstChild("Humanoid") then
  739. if hit.Name ~= p.Name then
  740. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45* sizem,70* sizem))
  741. z = Instance.new("Sound",hed)
  742. z.SoundId = "rbxassetid://294188918"
  743. z.Volume = 1
  744. z:Play()
  745. attackhit = false
  746. end
  747. end
  748. elseif ht and hit:IsA("Hat") then
  749. if hit.Parent.Name ~= p.Name then
  750. if hit.Parent:FindFirstChild("Humanoid") then
  751. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70* sizem,177* sizem))
  752. hit.Parent.Humanoid.PlatformStand = true
  753. z = Instance.new("Sound",hed)
  754. z.SoundId = "rbxassetid://294188918"
  755. z.Volume = 1
  756. z:Play()
  757. attackhit = false
  758. end
  759. end
  760. end
  761. end
  762. end)
  763.  
  764. wait()
  765.  
  766. attack = false
  767. atackhit = false
  768. NoAnims = false
  769. end
  770. end
  771. end)
  772.  
  773. mouse.KeyDown:connect(function(k)
  774. if k == "e" then
  775. if attack == false then
  776. attack = true
  777. attackhit = true
  778. NoAnims = true
  779. local sine = 1
  780.  
  781. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  782. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  783.  
  784. attacknumber = attacknumber + 1
  785.  
  786. if attacknumber == 1 then
  787.  
  788. rarm.Touched:connect(function(ht)
  789. hit = ht.Parent
  790. if attackhit == true then
  791. if ht and hit:IsA("Model") then
  792. if hit:FindFirstChild("Humanoid") then
  793. if hit.Name ~= p.Name then
  794. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
  795. z = Instance.new("Sound",hed)
  796. z.SoundId = "rbxassetid://294188918"
  797. z.Volume = 1
  798. z:Play()
  799. attackhit = false
  800. end
  801. end
  802. elseif ht and hit:IsA("Hat") then
  803. if hit.Parent.Name ~= p.Name then
  804. if hit.Parent:FindFirstChild("Humanoid") then
  805. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
  806. z = Instance.new("Sound",hed)
  807. z.SoundId = "rbxassetid://294188918"
  808. z.Volume = 1
  809. z:Play()
  810. attackhit = false
  811. end
  812. end
  813. end
  814. end
  815. end)
  816.  
  817. for i = 1, 10 do
  818.  
  819. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  820.  
  821. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  822.  
  823. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  824.  
  825. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  826.  
  827. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5,0.5,-0.5)*CFrame.Angles(math.rad(0),-0.5,-33.5), 0.2)
  828. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),0,-15+ -math.sin(sine/7)/9), 0.2)
  829.  
  830. rs:wait()
  831. end
  832. attackhit = false
  833. end
  834.  
  835. if attacknumber == 2 then
  836. rarm.Touched:connect(function(ht)
  837. hit = ht.Parent
  838. if attackhit == true then
  839. if ht and hit:IsA("Model") then
  840. if hit:FindFirstChild("Humanoid") then
  841. if hit.Name ~= p.Name then
  842. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
  843. z = Instance.new("Sound",hed)
  844. z.SoundId = "rbxassetid://294188918"
  845. z.Volume = 1
  846. z:Play()
  847. attackhit = false
  848. end
  849. end
  850. elseif ht and hit:IsA("Hat") then
  851. if hit.Parent.Name ~= p.Name then
  852. if hit.Parent:FindFirstChild("Humanoid") then
  853. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
  854. z = Instance.new("Sound",hed)
  855. z.SoundId = "rbxassetid://294188918"
  856. z.Volume = 1
  857. z:Play()
  858. attackhit = false
  859. end
  860. end
  861. end
  862. end
  863. end)
  864. for i = 1, 5 do
  865.  
  866. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  867.  
  868. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  869.  
  870. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
  871. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  872. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  873. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  874. rs:wait()
  875. end
  876.  
  877.  
  878.  
  879. for i = 1, 5 do
  880. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  881.  
  882. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  883.  
  884. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
  885. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  886. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  887. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  888. rs:wait()
  889. end
  890. attackhit = false
  891. end
  892. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  893. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  894. wait(.3)
  895. attackhit = false
  896.  
  897. attack = false
  898. NoAnims = false
  899. end
  900. end
  901. end)
  902.  
  903. ----------------------------------------------------
  904. mouse.KeyDown:connect(function(key)
  905. if string.byte(key) == 52 then
  906. char.Humanoid.WalkSpeed = 60 * sizem
  907. end
  908. end)
  909. mouse.KeyUp:connect(function(key)
  910. if string.byte(key) == 52 then
  911. char.Humanoid.WalkSpeed = 8
  912. end
  913. end)
  914. -------------------------------
  915. local animpose = "Idle"
  916. local lastanimpose = "Idle"
  917. local sine = 0
  918. local change = 1
  919. local val = 0
  920. local ffing = false
  921. local jump = false
  922. -------------------------------
  923. game:GetService("RunService").RenderStepped:connect(function()
  924. --[[if char.Humanoid.Jump == true then
  925. jump = true
  926. else
  927. jump = false
  928. end]]
  929. char.Humanoid.FreeFalling:connect(function(f)
  930. if f then
  931. ffing = true
  932. else
  933. ffing = false
  934. end
  935. end)
  936. sine = sine + change
  937. if jump == true then
  938. animpose = "Jumping"
  939. elseif ffing == true then
  940. animpose = "Freefalling"
  941. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  942. animpose = "Idle"
  943. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  944. animpose = "Walking"
  945. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 * sizem then
  946. animpose = "Running"
  947. end
  948. if animpose ~= lastanimpose then
  949. sine = 0
  950. if Debounces.NoIdl == false then
  951. if animpose == "Idle" then
  952. for i = 1, 0.5 do
  953.  
  954. if NoAnims == false then
  955.  
  956. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  957.  
  958. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  959.  
  960. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  961.  
  962. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  963.  
  964. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  965.  
  966. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  967.  
  968.  
  969. wait()
  970. end
  971. end
  972. elseif animpose == "Jumping" then
  973. for i = 1, 0.5 do
  974.  
  975. if NoAnims == false then
  976.  
  977. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  978.  
  979. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  980.  
  981. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  982.  
  983. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
  984.  
  985. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
  986.  
  987. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  988.  
  989. rs:wait()
  990. end
  991. end
  992. elseif animpose == "Walking" then
  993. for i = 1, 1.5 do
  994. if NoAnims == false then
  995.  
  996. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  997.  
  998. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  999.  
  1000. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1001.  
  1002. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1003.  
  1004. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem-0.3*math.cos(sine/7)/2, -1 * sizem-0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
  1005.  
  1006. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem+0.3*math.cos(sine/7)/2, -1 * sizem+0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
  1007.  
  1008. wait()
  1009. end
  1010. end
  1011. elseif animpose == "Running" then
  1012. for i = 1, 1 do
  1013. if NoAnims == false then
  1014.  
  1015. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  1016.  
  1017. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1018.  
  1019. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1020.  
  1021. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1022.  
  1023. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1024.  
  1025. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1026.  
  1027. rs:wait()
  1028. end
  1029. end
  1030. end
  1031. else
  1032. end
  1033. end
  1034. lastanimpose = animpose
  1035. if Debounces.NoIdl == false then
  1036. if animpose == "Idle" then
  1037. change = 0.5
  1038. if NoAnims == false then
  1039.  
  1040. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  1041.  
  1042. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  1043.  
  1044. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1045.  
  1046. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1047.  
  1048. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  1049.  
  1050. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  1051.  
  1052.  
  1053.  
  1054. end
  1055.  
  1056.  
  1057. elseif animpose == "Jumping" then
  1058. change = 1
  1059. if NoAnims == false then
  1060.  
  1061. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1062.  
  1063. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1064.  
  1065. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1066.  
  1067. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
  1068.  
  1069. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
  1070.  
  1071. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1072.  
  1073. rs:wait()
  1074. end
  1075.  
  1076. elseif animpose == "Walking" then
  1077. change = 1
  1078.  
  1079. if NoAnims == false then
  1080.  
  1081. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  1082.  
  1083. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  1084.  
  1085. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1086.  
  1087. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1088.  
  1089. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem - 0.3*math.cos(sine/7)/2, -1 * sizem - 0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
  1090.  
  1091. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem + 0.3*math.cos(sine/7)/2, -1 * sizem+ 0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
  1092.  
  1093. end
  1094.  
  1095. elseif animpose == "Running" then
  1096. change = 1
  1097. if NoAnims == false then
  1098.  
  1099. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  1100.  
  1101. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1102.  
  1103. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1104.  
  1105. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1106.  
  1107. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1108.  
  1109. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1110.  
  1111.  
  1112.  
  1113. end
  1114. end
  1115. end
  1116. end)
  1117.  
  1118. --------calcs------
  1119. -- +2*math.cos(sine/14)
  1120. -----------------------------
  1121.  
  1122. wait(1)
  1123. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement