Advertisement
Josemmoya

leaked

Dec 30th, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.81 KB | None | 0 0
  1. require(3747589551)()
  2. --[[ Name : Gale Fighter ]]--
  3. -------------------------------------------------------
  4. --A Collaboration Between makhail07 and KillerDarkness0105
  5.  
  6. --Base Animaion by makhail07, attacks by KillerDarkness0105 edited by: the best man on earth
  7. -------------------------------------------------------
  8. wait(1)
  9. local plr = game:service'Players'.LocalPlayer
  10. local char = plr.Character
  11. local hum = char.Humanoid
  12. local hed = char.Head
  13. local root = char.HumanoidRootPart
  14. local rootj = root.RootJoint
  15. local tors = char.Torso
  16. local ra = char["Right Arm"]
  17. local la = char["Left Arm"]
  18. local rl = char["Right Leg"]
  19. local ll = char["Left Leg"]
  20. local neck = tors["Neck"]
  21. local mouse = plr:GetMouse()
  22. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  23. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  24. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  25. local maincolor = BrickColor.new("Institutional white")
  26. local sine
  27. local idle
  28. local Player_Size = 1
  29. local equipped = false
  30. hum.MaxHealth = 200
  31. hum.Health = 200
  32.  
  33. -------------------------------------------------------
  34. --Start Good Stuff--
  35. -------------------------------------------------------
  36. cam = game.Workspace.CurrentCamera
  37. CF = CFrame.new
  38. angles = CFrame.Angles
  39. attack = false
  40. Euler = CFrame.fromEulerAnglesXYZ
  41. Rad = math.rad
  42. IT = Instance.new
  43. BrickC = BrickColor.new
  44. Cos = math.cos
  45. Acos = math.acos
  46. Sin = math.sin
  47. Asin = math.asin
  48. Abs = math.abs
  49. Mrandom = math.random
  50. Floor = math.floor
  51. -------------------------------------------------------
  52. --End Good Stuff--
  53. -------------------------------------------------------
  54. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  55. RSH, LSH = nil, nil
  56. RW = Instance.new("Weld")
  57. LW = Instance.new("Weld")
  58. RH = tors["Right Hip"]
  59. LH = tors["Left Hip"]
  60. RSH = tors["Right Shoulder"]
  61. LSH = tors["Left Shoulder"]
  62. RSH.Parent = nil
  63. LSH.Parent = nil
  64. RW.Name = "RW"
  65. RW.Part0 = tors
  66. RW.C0 = CF(1.5, 0.5, 0)
  67. RW.C1 = CF(0, 0.5, 0)
  68. RW.Part1 = ra
  69. RW.Parent = tors
  70. LW.Name = "LW"
  71. LW.Part0 = tors
  72. LW.C0 = CF(-1.5, 0.5, 0)
  73. LW.C1 = CF(0, 0.5, 0)
  74. LW.Part1 = la
  75. LW.Parent = tors
  76. vt = Vector3.new
  77.  
  78. -------------------------------------------------------
  79. --Start Combo Function--
  80. -------------------------------------------------------
  81. local comboing = false
  82. local combohits = 0
  83. local combotime = 0
  84. local maxtime = 65
  85.  
  86.  
  87.  
  88. function sandbox(var,func)
  89. local env = getfenv(func)
  90. local newenv = setmetatable({},{
  91. __index = function(self,k)
  92. if k=="script" then
  93. return var
  94. else
  95. return env[k]
  96. end
  97. end,
  98. })
  99. setfenv(func,newenv)
  100. return func
  101. end
  102. cors = {}
  103. mas = Instance.new("Model",game:GetService("Lighting"))
  104. comboframe = Instance.new("ScreenGui")
  105. Frame1 = Instance.new("Frame")
  106. Frame2 = Instance.new("Frame")
  107. TextLabel3 = Instance.new("TextLabel")
  108. comboframe.Name = "combinserter"
  109. comboframe.Parent = mas
  110. Frame1.Name = "combtimegui"
  111. Frame1.Parent = comboframe
  112. Frame1.Size = UDim2.new(0, 300, 0, 14)
  113. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  114. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  115. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  116. Frame1.BorderSizePixel = 5
  117. Frame2.Name = "combtimeoverlay"
  118. Frame2.Parent = Frame1
  119. Frame2.Size = UDim2.new(0, 0, 0, 14)
  120. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  121. Frame2.ZIndex = 2
  122. TextLabel3.Parent = Frame2
  123. TextLabel3.Transparency = 0
  124. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  125. TextLabel3.Text ="Hits: "..combohits
  126. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  127. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  128. TextLabel3.BackgroundTransparency = 1
  129. TextLabel3.Font = Enum.Font.Bodoni
  130. TextLabel3.FontSize = Enum.FontSize.Size60
  131. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  132. TextLabel3.TextStrokeTransparency = 0
  133. gui = game:GetService("Players").LocalPlayer.PlayerGui
  134. for i,v in pairs(mas:GetChildren()) do
  135. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  136. pcall(function() v:MakeJoints() end)
  137. end
  138. mas:Destroy()
  139. for i,v in pairs(cors) do
  140. spawn(function()
  141. pcall(v)
  142. end)
  143. end
  144.  
  145.  
  146.  
  147.  
  148.  
  149. coroutine.resume(coroutine.create(function()
  150. while true do
  151. wait()
  152.  
  153.  
  154. if combotime>65 then
  155. combotime = 65
  156. end
  157.  
  158.  
  159.  
  160.  
  161.  
  162. if combotime>.1 and comboing == true then
  163. TextLabel3.Transparency = 0
  164. TextLabel3.TextStrokeTransparency = 0
  165. TextLabel3.BackgroundTransparency = 1
  166. Frame1.Transparency = 0
  167. Frame2.Transparency = 0
  168. TextLabel3.Text ="Hits: "..combohits
  169. combotime = combotime - .34
  170. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  171. end
  172.  
  173.  
  174.  
  175.  
  176. if combotime<.1 then
  177. TextLabel3.BackgroundTransparency = 1
  178. TextLabel3.Transparency = 1
  179. TextLabel3.TextStrokeTransparency = 1
  180.  
  181. Frame2.Size = UDim2.new(0, 0, 0, 14)
  182. combotime = 0
  183. comboing = false
  184. Frame1.Transparency = 1
  185. Frame2.Transparency = 1
  186. combohits = 0
  187.  
  188. end
  189. end
  190. end))
  191.  
  192.  
  193.  
  194. -------------------------------------------------------
  195. --End Combo Function--
  196. -------------------------------------------------------
  197.  
  198. -------------------------------------------------------
  199. --Start Important Functions--
  200. -------------------------------------------------------
  201. function swait(num)
  202. if num == 0 or num == nil then
  203. game:service("RunService").Stepped:wait(0)
  204. else
  205. for i = 0, num do
  206. game:service("RunService").Stepped:wait(0)
  207. end
  208. end
  209. end
  210. function thread(f)
  211. coroutine.resume(coroutine.create(f))
  212. end
  213. function clerp(a, b, t)
  214. local qa = {
  215. QuaternionFromCFrame(a)
  216. }
  217. local qb = {
  218. QuaternionFromCFrame(b)
  219. }
  220. local ax, ay, az = a.x, a.y, a.z
  221. local bx, by, bz = b.x, b.y, b.z
  222. local _t = 1 - t
  223. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  224. end
  225. function QuaternionFromCFrame(cf)
  226. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  227. local trace = m00 + m11 + m22
  228. if trace > 0 then
  229. local s = math.sqrt(1 + trace)
  230. local recip = 0.5 / s
  231. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  232. else
  233. local i = 0
  234. if m00 < m11 then
  235. i = 1
  236. end
  237. if m22 > (i == 0 and m00 or m11) then
  238. i = 2
  239. end
  240. if i == 0 then
  241. local s = math.sqrt(m00 - m11 - m22 + 1)
  242. local recip = 0.5 / s
  243. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  244. elseif i == 1 then
  245. local s = math.sqrt(m11 - m22 - m00 + 1)
  246. local recip = 0.5 / s
  247. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  248. elseif i == 2 then
  249. local s = math.sqrt(m22 - m00 - m11 + 1)
  250. local recip = 0.5 / s
  251. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  252. end
  253. end
  254. end
  255. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  256. local xs, ys, zs = x + x, y + y, z + z
  257. local wx, wy, wz = w * xs, w * ys, w * zs
  258. local xx = x * xs
  259. local xy = x * ys
  260. local xz = x * zs
  261. local yy = y * ys
  262. local yz = y * zs
  263. local zz = z * zs
  264. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  265. end
  266. function QuaternionSlerp(a, b, t)
  267. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  268. local startInterp, finishInterp
  269. if cosTheta >= 1.0E-4 then
  270. if 1 - cosTheta > 1.0E-4 then
  271. local theta = math.acos(cosTheta)
  272. local invSinTheta = 1 / Sin(theta)
  273. startInterp = Sin((1 - t) * theta) * invSinTheta
  274. finishInterp = Sin(t * theta) * invSinTheta
  275. else
  276. startInterp = 1 - t
  277. finishInterp = t
  278. end
  279. elseif 1 + cosTheta > 1.0E-4 then
  280. local theta = math.acos(-cosTheta)
  281. local invSinTheta = 1 / Sin(theta)
  282. startInterp = Sin((t - 1) * theta) * invSinTheta
  283. finishInterp = Sin(t * theta) * invSinTheta
  284. else
  285. startInterp = t - 1
  286. finishInterp = t
  287. end
  288. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  289. end
  290. function rayCast(Position, Direction, Range, Ignore)
  291. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  292. end
  293. local RbxUtility = LoadLibrary("RbxUtility")
  294. local Create = RbxUtility.Create
  295.  
  296. -------------------------------------------------------
  297. --Start Damage Function--
  298. -------------------------------------------------------
  299. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  300. if hit.Parent == nil then
  301. return
  302. end
  303. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  304. for _, v in pairs(hit.Parent:children()) do
  305. if v:IsA("Humanoid") then
  306. h = v
  307. end
  308. end
  309. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  310.  
  311. hit.Parent:FindFirstChild("Head"):BreakJoints()
  312. end
  313.  
  314. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  315. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  316. if hit.Parent.DebounceHit.Value == true then
  317. return
  318. end
  319. end
  320. if insta == true then
  321. hit.Parent:FindFirstChild("Head"):BreakJoints()
  322. end
  323. local c = Create("ObjectValue"){
  324. Name = "creator",
  325. Value = game:service("Players").LocalPlayer,
  326. Parent = h,
  327. }
  328. game:GetService("Debris"):AddItem(c, .5)
  329. if HitSound ~= nil and HitPitch ~= nil then
  330. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  331. end
  332. local Damage = math.random(minim, maxim)
  333. local blocked = false
  334. local block = hit.Parent:findFirstChild("Block")
  335. if block ~= nil then
  336. if block.className == "IntValue" then
  337. if block.Value > 0 then
  338. blocked = true
  339. block.Value = block.Value - 1
  340. end
  341. end
  342. end
  343. if blocked == false then
  344. h.Health = h.Health - Damage
  345. else
  346. h.Health = h.Health - (Damage / 2)
  347. end
  348. if Type == "Knockdown" then
  349. local hum = hit.Parent.Humanoid
  350. hum.PlatformStand = true
  351. coroutine.resume(coroutine.create(function(HHumanoid)
  352. swait(1)
  353. HHumanoid.PlatformStand = false
  354. end), hum)
  355. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  356. local bodvol = Create("BodyVelocity"){
  357. velocity = angle * knockback,
  358. P = 5000,
  359. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  360. Parent = hit,
  361. }
  362. local rl = Create("BodyAngularVelocity"){
  363. P = 3000,
  364. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  365. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  366. Parent = hit,
  367. }
  368. game:GetService("Debris"):AddItem(bodvol, .5)
  369. game:GetService("Debris"):AddItem(rl, .5)
  370. elseif Type == "Normal" then
  371. local vp = Create("BodyVelocity"){
  372. P = 500,
  373. maxForce = Vector3.new(math.huge, 0, math.huge),
  374. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  375. }
  376. if knockback > 0 then
  377. vp.Parent = hit.Parent.Torso
  378. end
  379. game:GetService("Debris"):AddItem(vp, .5)
  380. elseif Type == "Up" then
  381. local bodyVelocity = Create("BodyVelocity"){
  382. velocity = Vector3.new(0, 20, 0),
  383. P = 5000,
  384. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  385. Parent = hit,
  386. }
  387. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  388. elseif Type == "DarkUp" then
  389. coroutine.resume(coroutine.create(function()
  390. for i = 0, 1, 0.1 do
  391. swait()
  392. end
  393. end))
  394. local bodyVelocity = Create("BodyVelocity"){
  395. velocity = Vector3.new(0, 20, 0),
  396. P = 5000,
  397. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  398. Parent = hit,
  399. }
  400. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  401. elseif Type == "Snare" then
  402. local bp = Create("BodyPosition"){
  403. P = 2000,
  404. D = 100,
  405. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  406. position = hit.Parent.Torso.Position,
  407. Parent = hit.Parent.Torso,
  408. }
  409. game:GetService("Debris"):AddItem(bp, 1)
  410. elseif Type == "Freeze" then
  411. local BodPos = Create("BodyPosition"){
  412. P = 50000,
  413. D = 1000,
  414. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  415. position = hit.Parent.Torso.Position,
  416. Parent = hit.Parent.Torso,
  417. }
  418. local BodGy = Create("BodyGyro") {
  419. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  420. P = 20e+003,
  421. Parent = hit.Parent.Torso,
  422. cframe = hit.Parent.Torso.CFrame,
  423. }
  424. hit.Parent.Torso.Anchored = true
  425. coroutine.resume(coroutine.create(function(Part)
  426. swait(1.5)
  427. Part.Anchored = false
  428. end), hit.Parent.Torso)
  429. game:GetService("Debris"):AddItem(BodPos, 3)
  430. game:GetService("Debris"):AddItem(BodGy, 3)
  431. end
  432. local debounce = Create("BoolValue"){
  433. Name = "DebounceHit",
  434. Parent = hit.Parent,
  435. Value = true,
  436. }
  437. game:GetService("Debris"):AddItem(debounce, Delay)
  438. c = Create("ObjectValue"){
  439. Name = "creator",
  440. Value = Player,
  441. Parent = h,
  442. }
  443. game:GetService("Debris"):AddItem(c, .5)
  444. end
  445. end
  446.  
  447.  
  448.  
  449.  
  450. kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  451. if hit.Parent==nil then
  452. return
  453. end
  454. h=hit.Parent:FindFirstChild("Humanoid")
  455. for _,v in pairs(hit.Parent:children()) do
  456. if v:IsA("Humanoid") then
  457. h=v
  458. end
  459. end
  460. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  461. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  462. end
  463. if hit.Parent.className=="Hat" then
  464. hit=hit.Parent.Parent:findFirstChild("Head")
  465. end
  466. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then end
  467. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  468. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  469. return
  470. end]]
  471. -- hs(hit,1.2)
  472. c=Instance.new("ObjectValue")
  473. c.Name="creator"
  474. c.Value=game:service("Players").LocalPlayer
  475. c.Parent=h
  476. game:GetService("Debris"):AddItem(c,.5)
  477. Damage=math.random(minim,maxim)
  478. blocked=false
  479. block=hit.Parent:findFirstChild("Block")
  480. if block~=nil then
  481. if block.className=="NumberValue" then
  482. if block.Value>0 then
  483. blocked=true
  484. if decreaseblock==nil then
  485. block.Value=block.Value-1
  486. end
  487. end
  488. end
  489. if block.className=="IntValue" then
  490. if block.Value>0 then
  491. blocked=true
  492. if decreaseblock~=nil then
  493. block.Value=block.Value-1
  494. end
  495. end
  496. end
  497. end
  498. if blocked==false then
  499. -- h:TakeDamage(Damage)
  500. h.Health=h.Health-Damage
  501. else
  502. h.Health=h.Health-(Damage/2)
  503. end
  504. if Type=="Knockdown" then
  505. hum=hit.Parent.Humanoid
  506. end
  507. hum.PlatformStand=true
  508. coroutine.resume(coroutine.create(function(HHumanoid)
  509. swait(1)
  510. HHumanoid.PlatformStand=false
  511. end),hum)
  512. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  513. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  514. local bodvol=Instance.new("BodyVelocity")
  515. bodvol.velocity=angle*knockback
  516. bodvol.P=5000
  517. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  518. bodvol.Parent=hit
  519. rl=Instance.new("BodyAngularVelocity")
  520. rl.P=3000
  521. rl.maxTorque=Vector3.new(500,500,500)
  522. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  523. rl.Parent=hit
  524. game:GetService("Debris"):AddItem(bodvol,.5)
  525. game:GetService("Debris"):AddItem(rl,.5)
  526. if Type=="Normal" then
  527. vp=Instance.new("BodyVelocity")
  528. vp.P=500
  529. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  530. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  531. if KnockbackType==1 then
  532. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  533. elseif KnockbackType==2 then
  534. vp.velocity=Property.CFrame.lookVector*knockback
  535. end
  536. if knockback>0 then
  537. vp.Parent=hit.Parent.Torso
  538. end
  539. game:GetService("Debris"):AddItem(vp,.5)
  540. elseif Type=="Up" then
  541. hit.Parent.Humanoid.PlatformStand = true
  542. local bodyVelocity=Instance.new("BodyVelocity")
  543. bodyVelocity.velocity=vt(0,15,0)
  544. bodyVelocity.P=5000
  545. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  546. bodyVelocity.Parent=hit
  547. game:GetService("Debris"):AddItem(bodyVelocity,1)
  548. rl=Instance.new("BodyAngularVelocity")
  549. rl.P=3000
  550. rl.AngularVelocity = Vector3.new(2000,2000,2000)
  551. rl.MaxTorque = Vector3.new(40000,40000,40000)
  552. rl.Parent=hit
  553. hit.Parent.Humanoid.PlatformStand = false
  554. game:GetService("Debris"):AddItem(rl,.5)
  555. elseif Type=="Snare" then
  556. bp=Instance.new("BodyPosition")
  557. bp.P=2000
  558. bp.D=100
  559. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  560. bp.position=hit.Parent.Torso.Position
  561. bp.Parent=hit.Parent.Torso
  562. game:GetService("Debris"):AddItem(bp,1)
  563. elseif Type=="Float" then
  564. hit.Parent.Humanoid.PlatformStand = true
  565. bp=Instance.new("BodyPosition")
  566. bp.P=2000
  567. bp.D=400
  568. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  569. bp.position=hit.Parent.Torso.Position+vt(0,35,24)
  570. bp.Parent=hit.Parent.Torso
  571.  
  572. local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
  573. rl.P=377705
  574. rl.maxTorque=Vector3.new(1,1,1)*500
  575. rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3))
  576.  
  577. local BF = Instance.new("BodyForce",hit.Parent.Torso)
  578. BF.force = Vector3.new(0, workspace.Gravity/1.10, 0)
  579. game:GetService("Debris"):AddItem(bp,5)
  580. game:GetService("Debris"):AddItem(BF,5)
  581. game:GetService("Debris"):AddItem(rl,5)
  582. elseif Type=="Target" then
  583. if Targetting==false then
  584. ZTarget=hit.Parent.Torso
  585. coroutine.resume(coroutine.create(function(Part)
  586. Cso("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  587. swait(5)
  588. Cso("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  589. end),ZTarget)
  590. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  591. targetgui=Instance.new("BillboardGui")
  592. targetgui.Parent=ZTarget
  593. targetgui.Size=UDim2.new(10,100,10,100)
  594. targ=Instance.new("ImageLabel")
  595. targ.Parent=targetgui
  596. targ.BackgroundTransparency=1
  597. targ.Image="rbxassetid://4834067"
  598. targ.Size=UDim2.new(1,0,1,0)
  599. cam.CameraType="Scriptable"
  600. cam.CoordinateFrame=CFrame.new(hed.CFrame.p,ZTarget.Position)
  601. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  602. workspace.CurrentCamera.CoordinateFrame=CFrame.new(hed.CFrame.p,ZTarget.Position)
  603. Targetting=true
  604. RocketTarget=ZTarget
  605. for i=1,Property do
  606. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  607. if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  608. swait()
  609. end
  610. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(hed.CFrame.p,hed.CFrame.p+rmdir*100)
  611. cam.CoordinateFrame=CFrame.new(hed.CFrame.p,ZTarget.Position)
  612. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  613. cam.CoordinateFrame=CFrame.new(hed.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  614. end
  615. Targetting=false
  616. RocketTarget=nil
  617. targetgui.Parent=nil
  618. cam.CameraType="Custom"
  619. end
  620. end
  621. debounce=Instance.new("BoolValue")
  622. debounce.Name="DebounceHit"
  623. debounce.Parent=hit.Parent
  624. debounce.Value=true
  625. game:GetService("Debris"):AddItem(debounce,Delay)
  626. c=Instance.new("ObjectValue")
  627. c.Name="creator"
  628. c.Value=Player
  629. c.Parent=h
  630. game:GetService("Debris"):AddItem(c,.5)
  631. CRIT=false
  632. hitDeb=true
  633. AttackPos=6
  634. comboing = true
  635. combohits = combohits+1
  636. combotime = combotime+3.4
  637.  
  638.  
  639.  
  640. if hitfloor == nil then
  641.  
  642. local velo=Instance.new("BodyVelocity")
  643. velo.velocity=vt(0,5.5,0)
  644. velo.P=8000
  645. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  646. velo.Parent=root
  647. game:GetService("Debris"):AddItem(velo,0.06)
  648.  
  649. local hitvelo=Instance.new("BodyVelocity")
  650. hitvelo.velocity=vt(0,5.5,0)
  651. hitvelo.P=8000
  652. hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  653. hitvelo.Parent=hit
  654. game:GetService("Debris"):AddItem(hitvelo,0.06)
  655.  
  656. coroutine.resume(coroutine.create(function()
  657. for i = 0,3.7,0.1 do
  658. swait()
  659. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  660. root.Velocity = root.CFrame.lookVector*0
  661. hit.Velocity = hit.CFrame.lookVector*130
  662. end
  663. end))
  664. end
  665. end
  666.  
  667. -------------------------------------------------------
  668. --End Damage Function--
  669. -------------------------------------------------------
  670.  
  671. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  672. for _, c in pairs(workspace:children()) do
  673. local hum = c:findFirstChild("Humanoid")
  674. if hum ~= nil then
  675. local head = c:findFirstChild("Head")
  676. if head ~= nil then
  677. local targ = head.Position - Part.Position
  678. local mag = targ.magnitude
  679. if magni >= mag and c.Name ~= plr.Name then
  680. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  681. end
  682. end
  683. end
  684. end
  685. end
  686.  
  687.  
  688. CFuncs = {
  689. Part = {
  690. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  691. local Part = Create("Part")({
  692. Parent = Parent,
  693. Reflectance = Reflectance,
  694. Transparency = Transparency,
  695. CanCollide = false,
  696. Locked = true,
  697. BrickColor = BrickColor.new(tostring(BColor)),
  698. Name = Name,
  699. Size = Size,
  700. Material = Material
  701. })
  702. RemoveOutlines(Part)
  703. return Part
  704. end
  705. },
  706. Mesh = {
  707. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  708. local Msh = Create(Mesh)({
  709. Parent = Part,
  710. Offset = OffSet,
  711. Scale = Scale
  712. })
  713. if Mesh == "SpecialMesh" then
  714. Msh.MeshType = MeshType
  715. Msh.MeshId = MeshId
  716. end
  717. return Msh
  718. end
  719. },
  720. Mesh = {
  721. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  722. local Msh = Create(Mesh)({
  723. Parent = Part,
  724. Offset = OffSet,
  725. Scale = Scale
  726. })
  727. if Mesh == "SpecialMesh" then
  728. Msh.MeshType = MeshType
  729. Msh.MeshId = MeshId
  730. end
  731. return Msh
  732. end
  733. },
  734. Weld = {
  735. Create = function(Parent, Part0, Part1, C0, C1)
  736. local Weld = Create("Weld")({
  737. Parent = Parent,
  738. Part0 = Part0,
  739. Part1 = Part1,
  740. C0 = C0,
  741. C1 = C1
  742. })
  743. return Weld
  744. end
  745. },
  746. Sound = {
  747. Create = function(id, par, vol, pit)
  748. coroutine.resume(coroutine.create(function()
  749. local S = Create("Sound")({
  750. Volume = vol,
  751. Pitch = pit or 1,
  752. SoundId = id,
  753. Parent = par or workspace
  754. })
  755. wait()
  756. S:play()
  757. game:GetService("Debris"):AddItem(S, 6)
  758. end))
  759. end
  760. },
  761. ParticleEmitter = {
  762. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  763. local fp = Create("ParticleEmitter")({
  764. Parent = Parent,
  765. Color = ColorSequence.new(Color1, Color2),
  766. LightEmission = LightEmission,
  767. Size = Size,
  768. Texture = Texture,
  769. Transparency = Transparency,
  770. ZOffset = ZOffset,
  771. Acceleration = Accel,
  772. Drag = Drag,
  773. LockedToPart = LockedToPart,
  774. VelocityInheritance = VelocityInheritance,
  775. EmissionDirection = EmissionDirection,
  776. Enabled = Enabled,
  777. Lifetime = LifeTime,
  778. Rate = Rate,
  779. Rotation = Rotation,
  780. RotSpeed = RotSpeed,
  781. Speed = Speed,
  782. VelocitySpread = VelocitySpread
  783. })
  784. return fp
  785. end
  786. }
  787. }
  788. function RemoveOutlines(part)
  789. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  790. end
  791. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  792. local Part = Create("Part")({
  793. formFactor = FormFactor,
  794. Parent = Parent,
  795. Reflectance = Reflectance,
  796. Transparency = Transparency,
  797. CanCollide = false,
  798. Locked = true,
  799. BrickColor = BrickColor.new(tostring(BColor)),
  800. Name = Name,
  801. Size = Size,
  802. Material = Material
  803. })
  804. RemoveOutlines(Part)
  805. return Part
  806. end
  807. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  808. local Msh = Create(Mesh)({
  809. Parent = Part,
  810. Offset = OffSet,
  811. Scale = Scale
  812. })
  813. if Mesh == "SpecialMesh" then
  814. Msh.MeshType = MeshType
  815. Msh.MeshId = MeshId
  816. end
  817. return Msh
  818. end
  819. function CreateWeld(Parent, Part0, Part1, C0, C1)
  820. local Weld = Create("Weld")({
  821. Parent = Parent,
  822. Part0 = Part0,
  823. Part1 = Part1,
  824. C0 = C0,
  825. C1 = C1
  826. })
  827. return Weld
  828. end
  829.  
  830. function CameraEnshaking(Length, Intensity)
  831. coroutine.resume(coroutine.create(function()
  832. local intensity = 1 * Intensity
  833. local rotM = 0.01 * Intensity
  834. for i = 0, Length, 0.1 do
  835. swait()
  836. intensity = intensity - 0.05 * Intensity / Length
  837. rotM = rotM - 5.0E-4 * Intensity / Length
  838. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  839. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  840. end
  841. hum.CameraOffset = Vector3.new(0, 0, 0)
  842. end))
  843. end
  844. -------------------------------------------------------
  845. --End Important Functions--
  846. -------------------------------------------------------
  847.  
  848.  
  849. -------------------------------------------------------
  850. --Start Customization--
  851. -------------------------------------------------------
  852. if Player_Size ~= 1 then
  853. root.Size = root.Size * Player_Size
  854. tors.Size = tors.Size * Player_Size
  855. hed.Size = hed.Size * Player_Size
  856. ra.Size = ra.Size * Player_Size
  857. la.Size = la.Size * Player_Size
  858. rl.Size = rl.Size * Player_Size
  859. ll.Size = ll.Size * Player_Size
  860. ----------------------------------------------------------------------------------
  861. rootj.Parent = root
  862. neck.Parent = tors
  863. RW.Parent = tors
  864. LW.Parent = tors
  865. RH.Parent = tors
  866. LH.Parent = tors
  867. ----------------------------------------------------------------------------------
  868. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  869. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  870. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  871. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  872. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  873. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  874. ----------------------------------------------------------------------------------
  875. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  876. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  877. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  878. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  879. end
  880. ----------------------------------------------------------------------------------
  881. ----------------------------------------------------------------------------------
  882. local equipped = false
  883. local val = 0
  884. local toim = 0
  885. local idleanim = 0.4
  886. local Sit = 1
  887. local attacktype = 1
  888. local attackdebounce = false
  889. local euler = CFrame.fromEulerAnglesXYZ
  890. local cankick = false
  891. ----------------------------------------------------------------------------------
  892. hum.WalkSpeed = 8
  893. hum.JumpPower = 57
  894. local ANIMATOR = hum.Animator
  895. local ANIMATE = char.Animate
  896. ANIMATE.Parent = nil
  897. ANIMATOR.Parent = nil
  898. -------------------------------------------------------
  899. --End Customization--
  900. -------------------------------------------------------
  901.  
  902. game:GetService("UserInputService").InputBegan:connect(function(key)
  903. if key.KeyCode == 16 then
  904. Swing = 2
  905. hum.WalkSpeed = 24.82
  906. end
  907. end)
  908. game:GetService("UserInputService").InputEnded:connect(function(key)
  909. if key.KeyCode == 16 then
  910. Swing = 1
  911. hum.WalkSpeed = 8
  912. end
  913. end)
  914.  
  915. function Cso(ID, PARENT, VOLUME, PITCH)
  916. local NSound = nil
  917. coroutine.resume(coroutine.create(function()
  918. NSound = IT("Sound", PARENT)
  919. NSound.Volume = VOLUME
  920. NSound.Pitch = PITCH
  921. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  922. swait()
  923. NSound:play()
  924. game:GetService("Debris"):AddItem(NSound, 10)
  925. end))
  926. return NSound
  927. end
  928.  
  929. mouse.KeyDown:connect(function(key)
  930. if attack == false then
  931. if key == 'z' then
  932. attack = true
  933. hum.WalkSpeed = 0
  934. Cso("4210523605", hed, 8.45, 0.936)
  935. for i = 0, 8.2, 0.1 do
  936. swait()
  937. hum.WalkSpeed = 0
  938. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
  939. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2)
  940. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  941. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  942. RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1)
  943. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1)
  944. end
  945. attack = false
  946. hum.WalkSpeed = 8
  947. end
  948. end
  949. end)
  950.  
  951. -------------------------------------------------------
  952. --Start Animations--
  953. -------------------------------------------------------
  954. local Char = char
  955. for i,v in pairs(Char:GetChildren()) do
  956. if v:IsA("Shirt") then
  957. v:Destroy()
  958. elseif v:IsA("Pants") then
  959. v:Destroy()
  960. elseif v:IsA("ShirtGraphic") then
  961. v:Destroy()
  962. elseif v:IsA("BasePart") then
  963. v.Color = Color3.fromRGB(247, 200, 70)
  964. elseif v:IsA("CharacterMesh") then
  965. v:Destroy()
  966. elseif v:IsA("Accessory") then
  967. v:Destroy()
  968. end
  969. end
  970. for i,v in pairs(script:GetChildren()) do
  971. v.Parent = Char
  972. end
  973. Char.Handle.Weld.Part0 = Char.Torso
  974. local c = Char.Head:Clone()
  975. local d = Instance.new("Weld",c)
  976. Char.Head.face:Destroy()
  977. Char.Head.Transparency = 1
  978. c.Parent = Char.Head
  979. c.CanCollide = false
  980. c.Anchored = false
  981. c.face.Texture = "rbxassetid://4258339903"
  982. c.face.Color3 = Color3.fromRGB(215, 133, 98)
  983. d.Part0 = Char.Head
  984. d.Part1 = c
  985. local lasttime = 0
  986. local mus = nil
  987. function createMus()
  988. local a = Instance.new("Sound",Char.Torso)
  989. a.Name = "mmmus"
  990. a.SoundId = "rbxassetid://2512693762"
  991. a.Pitch = 1.064
  992. a.TimePosition = lasttime
  993. a.Looped = true
  994. a.Volume = 3
  995. a:Play()
  996. end
  997. createMus()
  998. sine = 0
  999. idle = 0
  1000. while true do
  1001. swait()
  1002. if Char.Torso:FindFirstChild("mmmus") == nil then
  1003. createMus()
  1004. else
  1005. lasttime = Char.Torso:FindFirstChild("mmmus").TimePosition
  1006. Char.Torso:FindFirstChild("mmmus").Volume = 3
  1007. end
  1008. sine = sine + 1
  1009. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1010. local velderp = root.Velocity.y
  1011. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1012.  
  1013. if hitfloor == nil then
  1014. cankick = true
  1015. else
  1016. cankick = false
  1017. end
  1018.  
  1019.  
  1020. if equipped == true or equipped == false then
  1021. if attack == false then
  1022. idle = idle + 1
  1023. else
  1024. idle = 0
  1025. end
  1026. if 1 < root.Velocity.y and hitfloor == nil then
  1027. Anim = "Jump"
  1028. if attack == false then
  1029. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1030. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1031. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  1032. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1033. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1034. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1035. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1036. end
  1037. elseif -1 > root.Velocity.y and hitfloor == nil then
  1038. Anim = "Fall"
  1039. if attack == false then
  1040. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1041. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1042. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  1043. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1044. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1045. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1046. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1047. end
  1048. elseif torvel < 1 and hitfloor ~= nil then
  1049. Anim = "Idle"
  1050. local change = 1
  1051. if attack == false then
  1052. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1053. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.1)
  1054. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1)
  1055. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1)
  1056. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1)
  1057. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  1058. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  1059. end
  1060. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  1061. Anim = "Walk"
  1062. local change = 1
  1063. if attack == false then
  1064. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1065. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1066. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  1067. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1068. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1069. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  1070. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1071. end
  1072. elseif torvel >= 22 and hitfloor ~= nil then
  1073. Anim = "Sprint"
  1074. local change = 1.35
  1075. if attack == false then
  1076. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1077. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1078. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  1079. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1080. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1081. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1082. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1083. end
  1084. end
  1085. end
  1086. end
  1087. -------------------------------------------------------
  1088. --End Animations And Script--
  1089. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement