Advertisement
SonicSydneyTheEditer

(-a Edit i started makeing today-)

Jun 24th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.25 KB | None | 0 0
  1. --Made by KillerDarkness0105/Codex#6685 will prob never be finshed due to my motivation xd
  2. --Edited by SonicSydney
  3.  
  4.  
  5. Player=game:GetService("Players").LocalPlayer
  6. Character=Player.Character
  7. PlayerGui=Player.PlayerGui
  8. Backpack=Player.Backpack
  9. Torso=Character.Torso
  10. Head=Character.Head
  11. Humanoid=Character.Humanoid
  12. --m=Instance.new('Model',Character)
  13. LeftArm=Character["Left Arm"]
  14. LeftLeg=Character["Left Leg"]
  15. RightArm=Character["Right Arm"]
  16. RightLeg=Character["Right Leg"]
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. Face = Head.face
  22. Neck=Torso.Neck
  23. it=Instance.new
  24. attacktype=1
  25. vt=Vector3.new
  26. cf=CFrame.new
  27. euler=CFrame.fromEulerAnglesXYZ
  28. angles=CFrame.Angles
  29. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  32. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  33. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RootPart=Character.HumanoidRootPart
  36. RootJoint=RootPart.RootJoint
  37. RootCF=euler(-1.57,0,3.14)
  38. attack = false
  39. attackdebounce = false
  40. equipped=true
  41. trispeed=.2
  42. attackmode='none'
  43. local idle=0
  44. local Anim="Idle"
  45. local footsteps = false
  46. local boost = false
  47. local targetted = nil
  48. local Super = false
  49.  
  50.  
  51. Humanoid.Animator.Parent = nil
  52. Character.Animate.Parent = nil
  53.  
  54. Character.Humanoid.Health = 10000
  55. Character.Humanoid.MaxHealth = 10000
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. function clerp(a,b,t)
  67. local qa = {QuaternionFromCFrame(a)}
  68. local qb = {QuaternionFromCFrame(b)}
  69. local ax, ay, az = a.x, a.y, a.z
  70. local bx, by, bz = b.x, b.y, b.z
  71. local _t = 1-t
  72. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  73. end
  74.  
  75. function QuaternionFromCFrame(cf)
  76. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  77. local trace = m00 + m11 + m22
  78. if trace > 0 then
  79. local s = math.sqrt(1 + trace)
  80. local recip = 0.5/s
  81. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  82. else
  83. local i = 0
  84. if m11 > m00 then
  85. i = 1
  86. end
  87. if m22 > (i == 0 and m00 or m11) then
  88. i = 2
  89. end
  90. if i == 0 then
  91. local s = math.sqrt(m00-m11-m22+1)
  92. local recip = 0.5/s
  93. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  94. elseif i == 1 then
  95. local s = math.sqrt(m11-m22-m00+1)
  96. local recip = 0.5/s
  97. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  98. elseif i == 2 then
  99. local s = math.sqrt(m22-m00-m11+1)
  100. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  101. end
  102. end
  103. end
  104.  
  105. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  106. local xs, ys, zs = x + x, y + y, z + z
  107. local wx, wy, wz = w*xs, w*ys, w*zs
  108. local xx = x*xs
  109. local xy = x*ys
  110. local xz = x*zs
  111. local yy = y*ys
  112. local yz = y*zs
  113. local zz = z*zs
  114. 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))
  115. end
  116.  
  117. function QuaternionSlerp(a, b, t)
  118. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  119. local startInterp, finishInterp;
  120. if cosTheta >= 0.0001 then
  121. if (1 - cosTheta) > 0.0001 then
  122. local theta = math.acos(cosTheta)
  123. local invSinTheta = 1/math.sin(theta)
  124. startInterp = math.sin((1-t)*theta)*invSinTheta
  125. finishInterp = math.sin(t*theta)*invSinTheta
  126. else
  127. startInterp = 1-t
  128. finishInterp = t
  129. end
  130. else
  131. if (1+cosTheta) > 0.0001 then
  132. local theta = math.acos(-cosTheta)
  133. local invSinTheta = 1/math.sin(theta)
  134. startInterp = math.sin((t-1)*theta)*invSinTheta
  135. finishInterp = math.sin(t*theta)*invSinTheta
  136. else
  137. startInterp = t-1
  138. finishInterp = t
  139. end
  140. end
  141. 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
  142. end
  143.  
  144. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  145.  
  146. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  147. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  148. end
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  156. if hit.Parent==nil then
  157. return
  158. end
  159. h=hit.Parent:FindFirstChild("Humanoid")
  160. for _,v in pairs(hit.Parent:children()) do
  161. if v:IsA("Humanoid") then
  162. h=v
  163. end
  164. end
  165. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  166. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  167. end
  168. if hit.Parent.className=="Hat" then
  169. hit=hit.Parent.Parent:findFirstChild("Head")
  170. end
  171. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  172. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  173. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  174. return
  175. end]]
  176. -- hs(hit,1.2)
  177. c=Instance.new("ObjectValue")
  178. c.Name="creator"
  179. c.Value=game:service("Players").LocalPlayer
  180. c.Parent=h
  181. game:GetService("Debris"):AddItem(c,.5)
  182. Damage=math.random(minim,maxim)
  183. -- h:TakeDamage(Damage)
  184. blocked=false
  185. block=hit.Parent:findFirstChild("Block")
  186. if block~=nil then
  187. print(block.className)
  188. if block.className=="NumberValue" then
  189. if block.Value>0 then
  190. blocked=true
  191. if decreaseblock==nil then
  192. block.Value=block.Value-1
  193. end
  194. end
  195. end
  196. if block.className=="IntValue" then
  197. if block.Value>0 then
  198. blocked=true
  199. if decreaseblock~=nil then
  200. block.Value=block.Value-1
  201. end
  202. end
  203. end
  204. end
  205. if blocked==false then
  206. -- h:TakeDamage(Damage)
  207. h.Health=h.Health-Damage
  208. h.Health=h.Health-Damage
  209. end
  210.  
  211. if Type=="Knockdown" then
  212. hum=hit.Parent.Humanoid
  213. hum.PlatformStand=true
  214. coroutine.resume(coroutine.create(function(HHumanoid)
  215. swait(5)
  216. HHumanoid.PlatformStand=false
  217. end),hum)
  218.  
  219. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  220. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  221. local bodvol=Instance.new("BodyVelocity")
  222. bodvol.velocity=angle*knockback
  223. bodvol.P=5000
  224. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  225. bodvol.Parent=hit
  226. rl=Instance.new("BodyAngularVelocity")
  227. rl.P=30000
  228. rl.maxTorque=Vector3.new(0,10,10)*5000
  229. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
  230. rl.Parent=hit
  231. game:GetService("Debris"):AddItem(bodvol,.5)
  232. game:GetService("Debris"):AddItem(rl,.5)
  233. elseif Type=="Normal" then
  234. vp=Instance.new("BodyVelocity")
  235. vp.P=500
  236. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  237. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  238. if KnockbackType==1 then
  239. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  240. elseif KnockbackType==2 then
  241. vp.velocity=Property.CFrame.lookVector*knockback
  242. end
  243. if knockback>0 then
  244. vp.Parent=hit.Parent.Torso
  245. end
  246. game:GetService("Debris"):AddItem(vp,.5)
  247. elseif Type=="Up" then
  248. local bodyVelocity=Instance.new("BodyVelocity")
  249. bodyVelocity.velocity=vt(0,40,0)
  250. bodyVelocity.P=1000
  251. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  252. bodyVelocity.Parent=hit
  253. game:GetService("Debris"):AddItem(bodyVelocity,1)
  254. rl=Instance.new("BodyAngularVelocity")
  255. rl.P=3000
  256. rl.maxTorque=Vector3.new(5000,5000,5000)*5000
  257. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  258. rl.Parent=hit
  259. game:GetService("Debris"):AddItem(rl,.5)
  260. elseif Type=="Snare" then
  261. bp=Instance.new("BodyPosition")
  262. bp.P=2000
  263. bp.D=100
  264. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  265. bp.position=hit.Parent.Torso.Position
  266. bp.Parent=hit.Parent.Torso
  267. game:GetService("Debris"):AddItem(bp,1)
  268. elseif Type=="Target" then
  269. if Targetting==false then
  270. ZTarget=hit.Parent.Torso
  271. coroutine.resume(coroutine.create(function(Part)
  272. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  273. swait(5)
  274. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  275. end),ZTarget)
  276. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  277. targetgui=Instance.new("BillboardGui")
  278. targetgui.Parent=ZTarget
  279. targetgui.Size=UDim2.new(10,100,10,100)
  280. targ=Instance.new("ImageLabel")
  281. targ.Parent=targetgui
  282. targ.BackgroundTransparency=1
  283. targ.Image="rbxassetid://4834067"
  284. targ.Size=UDim2.new(1,0,1,0)
  285. cam.CameraType="Scriptable"
  286. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  287. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  288. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  289. Targetting=true
  290. RocketTarget=ZTarget
  291. for i=1,Property do
  292. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  293. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  294. swait()
  295. end
  296. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  297. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  298. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  299. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  300. end
  301. Targetting=false
  302. RocketTarget=nil
  303. targetgui.Parent=nil
  304. cam.CameraType="Custom"
  305. end
  306. end
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315. debounce=Instance.new("BoolValue")
  316. debounce.Name="DebounceHit"
  317. debounce.Parent=hit.Parent
  318. debounce.Value=true
  319. game:GetService("Debris"):AddItem(debounce,Delay)
  320. c=Instance.new("ObjectValue")
  321. c.Name="creator"
  322. c.Value=Player
  323. c.Parent=h
  324. game:GetService("Debris"):AddItem(c,.5)
  325. CRIT=false
  326. hitDeb=true
  327. AttackPos=6
  328. end
  329. end
  330.  
  331. showDamage=function(Char,Dealt,du,Color)
  332. m=Instance.new("Model")
  333. m.Name=tostring(Dealt)
  334. h=Instance.new("Humanoid")
  335. h.Health=0
  336. h.MaxHealth=0
  337. h.Parent=m
  338. c=Instance.new("Part")
  339. c.Transparency=0
  340. c.BrickColor=Color
  341. c.Name="Head"
  342. c.TopSurface=0
  343. c.BottomSurface=0
  344. c.formFactor="Plate"
  345. c.Size=Vector3.new(1,.4,1)
  346. ms=Instance.new("CylinderMesh")
  347. ms.Scale=Vector3.new(.8,.8,.8)
  348. if CRIT==true then
  349. ms.Scale=Vector3.new(1,1.25,1)
  350. end
  351. ms.Parent=c
  352. c.Reflectance=0
  353. Instance.new("BodyGyro").Parent=c
  354. c.Parent=m
  355. if Char:findFirstChild("Head")~=nil then
  356. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  357. elseif Char.Parent:findFirstChild("Head")~=nil then
  358. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  359. end
  360. f=Instance.new("BodyPosition")
  361. f.P=2000
  362. f.D=100
  363. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  364. f.position=c.Position+Vector3.new(0,3,0)
  365. f.Parent=c
  366. game:GetService("Debris"):AddItem(m,.5+du)
  367. c.CanCollide=false
  368. m.Parent=workspace
  369. c.CanCollide=false
  370. end
  371.  
  372.  
  373.  
  374. --save shoulders
  375. RSH, LSH=nil, nil
  376. --welds
  377. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  378. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  379. LH=Torso["Left Hip"]
  380. RH=Torso["Right Hip"]
  381. TorsoColor=Torso.BrickColor
  382. function NoOutline(Part)
  383. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  384. end
  385. player=Player
  386. ch=Character
  387. RSH=ch.Torso["Right Shoulder"]
  388. LSH=ch.Torso["Left Shoulder"]
  389. --
  390. RSH.Parent=nil
  391. LSH.Parent=nil
  392. --
  393. RW.Name="Right Shoulder"
  394. RW.Part0=ch.Torso
  395. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  396. RW.C1=cf(0, 0.5, 0)
  397. RW.Part1=ch["Right Arm"]
  398. RW.Parent=ch.Torso
  399. --
  400. LW.Name="Left Shoulder"
  401. LW.Part0=ch.Torso
  402. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  403. LW.C1=cf(0, 0.5, 0)
  404. LW.Part1=ch["Left Arm"]
  405. LW.Parent=ch.Torso
  406.  
  407. Player=game:GetService('Players').LocalPlayer
  408. Character=Player.Character
  409. mouse=Player:GetMouse()
  410. m=Instance.new('Model',Character)
  411.  
  412.  
  413. local function weldBetween(a, b)
  414. local weldd = Instance.new("ManualWeld")
  415. weldd.Part0 = a
  416. weldd.Part1 = b
  417. weldd.C0 = CFrame.new()
  418. weldd.C1 = b.CFrame:inverse() * a.CFrame
  419. weldd.Parent = a
  420. return weldd
  421. end
  422.  
  423. ArtificialHB = Instance.new("BindableEvent", script)
  424. ArtificialHB.Name = "Heartbeat"
  425.  
  426. script:WaitForChild("Heartbeat")
  427.  
  428. frame = 1 / 60
  429. tf = 0
  430. allowframeloss = false
  431. tossremainder = false
  432. lastframe = tick()
  433. script.Heartbeat:Fire()
  434.  
  435. game:GetService("RunService").Heartbeat:connect(function(s, p)
  436. tf = tf + s
  437. if tf >= frame then
  438. if allowframeloss then
  439. script.Heartbeat:Fire()
  440. lastframe = tick()
  441. else
  442. for i = 1, math.floor(tf / frame) do
  443. script.Heartbeat:Fire()
  444. end
  445. lastframe = tick()
  446. end
  447. if tossremainder then
  448. tf = 0
  449. else
  450. tf = tf - frame * math.floor(tf / frame)
  451. end
  452. end
  453. end)
  454.  
  455. function swait(num)
  456. if num == 0 or num == nil then
  457. ArtificialHB.Event:wait()
  458. else
  459. for i = 0, num do
  460. ArtificialHB.Event:wait()
  461. end
  462. end
  463. end
  464.  
  465.  
  466.  
  467. function FindNearestTorso(Position, Distance, SinglePlayer)
  468. if SinglePlayer then
  469. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  470. end
  471. local List = {}
  472. for i, v in pairs(workspace:GetChildren()) do
  473. if v:IsA("Model") then
  474. if v:findFirstChild("Torso") then
  475. if v ~= Character then
  476. if (v.Torso.Position - Position).magnitude <= Distance then
  477. table.insert(List, v)
  478. end
  479. end
  480. end
  481. end
  482. end
  483. return List
  484. end
  485.  
  486.  
  487.  
  488.  
  489.  
  490. local Boost = Instance.new("Part")
  491. Boost.Parent = Character
  492. Boost.Size = Vector3.new(1,1,1)
  493. Boost.Archivable = true
  494. Boost.Transparency = 1
  495. Boost.CanCollide = false
  496. Boost.BrickColor = BrickColor.new("Bright green")
  497. Boost.Material = "Neon"
  498. local Boostmesh = Instance.new("CylinderMesh",Boost)
  499. Boostmesh.Scale = Vector3.new(15,15,15)
  500. local Boostweld = Instance.new("Weld")
  501. Boostweld.Parent = Boost
  502. Boostweld.Part0 = Torso
  503. Boostweld.Part1 = Boost
  504. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))
  505. Boostweld.Part0 = Torso
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. local Emerald = Instance.new("Part")
  518. Emerald.Parent = Character
  519. Emerald.Size = Vector3.new(0.2,0.2,0.2)
  520. Emerald.Archivable = true
  521. Emerald.Transparency = 1
  522. Emerald.CanCollide = false
  523. Emerald.BrickColor = BrickColor.new("Bright green")
  524. Emerald.Material = "Neon"
  525. local Emeraldmesh = Instance.new("SpecialMesh",Emerald)
  526. Emeraldmesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  527. Emeraldmesh.Scale = Vector3.new(3.5,3.5,3.5)
  528. local Emeraldweld = Instance.new("Weld")
  529. Emeraldweld.Parent = Emerald
  530. Emeraldweld.Part0 = Torso
  531. Emeraldweld.Part1 = Emerald
  532. Emeraldweld.C1 = CFrame.new(3.5, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  533. Emeraldweld.Part0 = Torso
  534.  
  535. --[[
  536.  
  537. local Boost2 = Instance.new("Part")
  538. Boost2.Parent = Character
  539. Boost2.Size = Vector3.new(1,1,1)
  540. Boost2.Archivable = true
  541. Boost2.Transparency = 0.80
  542. Boost2.CanCollide = false
  543. Boost2.BrickColor = BrickColor.new("Bright green")
  544. Boost2.Material = "Neon"
  545. local Boost2mesh = Instance.new("CylinderMesh",Boost2)
  546. Boost2mesh.Scale = Vector3.new(15,15,15)
  547. local Boost2weld = Instance.new("Weld")
  548. Boost2weld.Parent = Boost2
  549. Boost2weld.Part0 = Torso
  550. Boost2weld.Part1 = Boost2
  551. Boost2weld.C1 = CFrame.new(1, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  552. Boost2weld.Part0 = Torso
  553. ]]--
  554.  
  555.  
  556. local x = Instance.new("Sound", Torso)
  557. x.SoundId = "http://www.roblox.com/asset/?id=979251686"
  558. x.Looped = true
  559. x.Volume = 0.01
  560. x.Pitch = 1
  561.  
  562.  
  563.  
  564.  
  565.  
  566. local x2 = Instance.new("Sound", Torso)
  567. x2.SoundId = "http://www.roblox.com/asset/?id=979251686"
  568. x2.Looped = true
  569. x2.Volume = 0.3
  570. x2.Pitch = 1
  571.  
  572.  
  573. local x3 = Instance.new("Sound", Torso)
  574. x3.SoundId = "http://www.roblox.com/asset/?id=588189046"
  575. x3.Looped = true
  576. x3.Volume = 0.3
  577. x3.Pitch = 1
  578. x3:Play()
  579.  
  580.  
  581. local x4 = Instance.new("Sound", Torso)
  582. x4.SoundId = "http://www.roblox.com/asset/?id=273734478"
  583. x4.Looped = false
  584. x4.Volume = 1
  585. x4.Pitch = 1
  586.  
  587.  
  588.  
  589.  
  590. local x5 = Instance.new("Sound", Torso)
  591. x5.SoundId = "http://www.roblox.com/asset/?id=162460823"
  592. x5.Looped = false
  593. x5.Volume = 1
  594. x5.Pitch = 1
  595.  
  596.  
  597.  
  598.  
  599. local x6 = Instance.new("Sound", Torso)
  600. x6.SoundId = "http://www.roblox.com/asset/?id=800121776"
  601. x6.Looped = false
  602. x6.Volume = 1
  603. x6.Pitch = 1
  604.  
  605.  
  606.  
  607.  
  608. local x7 = Instance.new("Sound", Torso)
  609. x7.SoundId = "http://www.roblox.com/asset/?id=804889329"
  610. x7.Looped = false
  611. x7.Volume = 1
  612. x7.Pitch = 1
  613.  
  614.  
  615.  
  616.  
  617. local x8 = Instance.new("Sound", Torso)
  618. x8.SoundId = "http://www.roblox.com/asset/?id=804907617"
  619. x8.Looped = false
  620. x8.Volume = 5
  621. x8.Pitch = 1
  622.  
  623.  
  624.  
  625. local x9 = Instance.new("Sound", Character)
  626. x9.SoundId = "http://www.roblox.com/asset/?id=392140397"
  627. x9.Looped = false
  628. x9.Volume = 1
  629. x9.Pitch = 1
  630.  
  631.  
  632. local x10 = Instance.new("Sound", Character)
  633. x10.SoundId = "http://www.roblox.com/asset/?id=526149541"
  634. x10.Looped = true
  635. x10.Volume = 0.40
  636. x10.Pitch = 1
  637.  
  638.  
  639.  
  640.  
  641. local x11 = Instance.new("Sound", Torso)
  642. x11.SoundId = "http://www.roblox.com/asset/?id=515143864"
  643. x11.Looped = false
  644. x11.Volume = 1.5
  645. x11.Pitch = 1
  646.  
  647. --537371462
  648.  
  649. Character.Humanoid.WalkSpeed = 72
  650.  
  651.  
  652. target = Instance.new("BillboardGui",Character)
  653. target.Size = UDim2.new(10,0,10,0)
  654. target.Enabled = false
  655. imgl = Instance.new("ImageLabel",target)
  656. imgl.Position = UDim2.new(0,0,0,0)
  657. imgl.Size = UDim2.new(1,0,1,0)
  658. imgl.Image = "rbxassetid://711463989"
  659. imgl.BackgroundTransparency = 1
  660. imgl.ImageColor3 = Color3.new(255,0,0)
  661. img2 = Instance.new("ImageLabel",target)
  662. img2.Position = UDim2.new(0,0,0,0)
  663. img2.Size = UDim2.new(1,0,1,0)
  664. img2.Image = "rbxassetid://711463989"
  665. img2.BackgroundTransparency = 1
  666. img2.ImageColor3 = Color3.new(0,0,0)
  667.  
  668.  
  669.  
  670.  
  671. function TargetSelect(person)
  672. local dd=coroutine.wrap(function()
  673. if targetted ~= person then
  674. targetted = person
  675. img2.Size = UDim2.new(1,0,1,0)
  676. img2.ImageTransparency = 0
  677. imgl.Position = UDim2.new(0,0,0,0)
  678. for i = 0, 2, 0.1 do
  679. swait()
  680. img2.Size = UDim2.new(1.01,0,1.01,0)
  681. end
  682. end
  683. end)
  684. dd()
  685. end
  686.  
  687.  
  688. function LockOn()
  689. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  690. TargetSelect(mouse.Target.Parent)
  691. end
  692. end
  693.  
  694.  
  695. function HomingAttack()
  696. attack = true
  697.  
  698. Humanoid.Jump=true
  699. x6:Play()
  700. x11:Play()
  701.  
  702. --local GGyro = Instance.new("BodyPosition")
  703. --for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 100)) do
  704. --if v:FindFirstChild('Head') then
  705. --end
  706. --end
  707.  
  708.  
  709. if targetted == nil then
  710. attack = false
  711. end
  712.  
  713.  
  714. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,0,0)
  715.  
  716.  
  717. x5:Play()
  718.  
  719.  
  720.  
  721.  
  722. local con6=Humanoid.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Up",RootPart,.2,1) end)
  723.  
  724.  
  725. for i = 0,1,0.13 do
  726. change = 1
  727. swait()
  728. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.5)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  729. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  730. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  731. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  732. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  733. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  734. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  735. end
  736.  
  737. for i = 0,4,0.12 do
  738. swait()
  739. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  740. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  741. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  742. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  743. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  744. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  745. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  746. end
  747.  
  748. attack = false
  749.  
  750. for i = 0,6,0.12 do
  751. swait()
  752. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20*i)),.3)
  753. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  754. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  755. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  756. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  757. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  758. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  759. end
  760.  
  761.  
  762. Humanoid.Jump=false
  763.  
  764. wait(2)
  765. con6:disconnect()
  766.  
  767. end
  768.  
  769.  
  770.  
  771.  
  772. -------------
  773. mouse.KeyDown:connect(function(key)
  774. if string.byte(key) == 48 and Super == false then
  775. boost = true
  776. Character.Humanoid.WalkSpeed = 240
  777.  
  778. RootPart.Velocity = RootPart.CFrame.lookVector * 320
  779.  
  780.  
  781.  
  782. local handee = Instance.new("Part")
  783. handee.Parent = Character
  784. handee.Size = Vector3.new(0.2,0.2,0.2)
  785. handee.Archivable = true
  786. handee.Transparency = 1
  787. handee.CanCollide = false
  788. handee.BrickColor = BrickColor.new("Pastel brown")
  789. handee.Material = "Neon"
  790. local handeemesh = Instance.new("BlockMesh",handee)
  791. handeemesh.Scale = Vector3.new(1,1,1)
  792. local handeeweld = Instance.new("Weld")
  793. handeeweld.Parent = handee
  794. handeeweld.Part0 = LeftLeg
  795. handeeweld.Part1 = handee
  796. handeeweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  797. handeeweld.Part0 = LeftLeg
  798.  
  799.  
  800.  
  801.  
  802. local handee2 = Instance.new("Part")
  803. handee2.Parent = Character
  804. handee2.Size = Vector3.new(0.2,0.2,0.2)
  805. handee2.Archivable = true
  806. handee2.Transparency = 1
  807. handee2.CanCollide = false
  808. handee2.BrickColor = BrickColor.new("Pastel brown")
  809. handee2.Material = "Neon"
  810. local handee2mesh = Instance.new("BlockMesh",handee2)
  811. handee2mesh.Scale = Vector3.new(1,1,1)
  812. local handee2weld = Instance.new("Weld")
  813. handee2weld.Parent = handee2
  814. handee2weld.Part0 = RightLeg
  815. handee2weld.Part1 = handee2
  816. handee2weld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  817. handee2weld.Part0 = RightLeg
  818.  
  819.  
  820.  
  821.  
  822. local particleemitter2 = Instance.new("ParticleEmitter", handee)
  823. particleemitter2.VelocitySpread = 180
  824. particleemitter2.Lifetime = NumberRange.new(2)
  825. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  826. particleemitter2.Speed = NumberRange.new(0.5)
  827. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  828. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  829. particleemitter2.Rate = 128
  830. particleemitter2.Rotation = NumberRange.new(-45, 45)
  831. particleemitter2.Acceleration = Vector3.new(0,1.5,0)
  832. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  833. particleemitter2.LightEmission = 0.8
  834. particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 0), Color3.new(0,255,0))
  835.  
  836.  
  837. particleemitter2.Enabled = true
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847. local particleemitter3 = Instance.new("ParticleEmitter", handee2)
  848. particleemitter3.VelocitySpread = 180
  849. particleemitter3.Lifetime = NumberRange.new(2)
  850. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  851. particleemitter3.Speed = NumberRange.new(0.5)
  852. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  853. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  854. particleemitter3.Rate = 128
  855. particleemitter3.Rotation = NumberRange.new(-45, 45)
  856. particleemitter3.Acceleration = Vector3.new(0,0,0)
  857. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  858. particleemitter3.LightEmission = 0.8
  859. particleemitter3.Color = ColorSequence.new(Color3.new(0, 255, 0), Color3.new(0,255,0))
  860.  
  861.  
  862. particleemitter3.Enabled = true
  863.  
  864.  
  865. x4:Play()
  866.  
  867. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  868.  
  869. Boost.Transparency = 0.75
  870.  
  871. repeat
  872.  
  873. wait()
  874.  
  875. until boost==false
  876.  
  877.  
  878.  
  879. particleemitter2.Enabled = false
  880.  
  881.  
  882. con5:disconnect()
  883.  
  884. particleemitter3.Enabled = false
  885.  
  886.  
  887. end
  888. end)
  889.  
  890.  
  891.  
  892.  
  893.  
  894. mouse.KeyDown:connect(function(key)
  895. if string.byte(key) == 48 and Super == true then
  896. boost = true
  897. Character.Humanoid.WalkSpeed = 420
  898. x4:Play()
  899.  
  900. RootPart.Velocity = RootPart.CFrame.lookVector * 500
  901. Boost.Transparency = 0.75
  902.  
  903.  
  904.  
  905. local handee = Instance.new("Part")
  906. handee.Parent = Character
  907. handee.Size = Vector3.new(0.2,0.2,0.2)
  908. handee.Archivable = true
  909. handee.Transparency = 1
  910. handee.CanCollide = false
  911. handee.BrickColor = BrickColor.new("Pastel brown")
  912. handee.Material = "Neon"
  913. local handeemesh = Instance.new("BlockMesh",handee)
  914. handeemesh.Scale = Vector3.new(1,1,1)
  915. local handeeweld = Instance.new("Weld")
  916. handeeweld.Parent = handee
  917. handeeweld.Part0 = LeftLeg
  918. handeeweld.Part1 = handee
  919. handeeweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  920. handeeweld.Part0 = LeftLeg
  921.  
  922.  
  923.  
  924.  
  925. local handee2 = Instance.new("Part")
  926. handee2.Parent = Character
  927. handee2.Size = Vector3.new(0.2,0.2,0.2)
  928. handee2.Archivable = true
  929. handee2.Transparency = 1
  930. handee2.CanCollide = false
  931. handee2.BrickColor = BrickColor.new("Pastel brown")
  932. handee2.Material = "Neon"
  933. local handee2mesh = Instance.new("BlockMesh",handee2)
  934. handee2mesh.Scale = Vector3.new(1,1,1)
  935. local handee2weld = Instance.new("Weld")
  936. handee2weld.Parent = handee2
  937. handee2weld.Part0 = RightLeg
  938. handee2weld.Part1 = handee2
  939. handee2weld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  940. handee2weld.Part0 = RightLeg
  941.  
  942.  
  943.  
  944.  
  945. local particleemitter2 = Instance.new("ParticleEmitter", handee)
  946. particleemitter2.VelocitySpread = 180
  947. particleemitter2.Lifetime = NumberRange.new(2)
  948. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  949. particleemitter2.Speed = NumberRange.new(0.5)
  950. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  951. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  952. particleemitter2.Rate = 128
  953. particleemitter2.Rotation = NumberRange.new(-45, 45)
  954. particleemitter2.Acceleration = Vector3.new(0,1,0)
  955. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  956. particleemitter2.LightEmission = 0.8
  957. particleemitter2.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
  958.  
  959.  
  960. particleemitter2.Enabled = true
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970. local particleemitter3 = Instance.new("ParticleEmitter", handee2)
  971. particleemitter3.VelocitySpread = 180
  972. particleemitter3.Lifetime = NumberRange.new(2)
  973. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  974. particleemitter3.Speed = NumberRange.new(0.5)
  975. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  976. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  977. particleemitter3.Rate = 128
  978. particleemitter3.Rotation = NumberRange.new(-45, 45)
  979. particleemitter3.Acceleration = Vector3.new(0,0,0)
  980. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  981. particleemitter3.LightEmission = 0.8
  982. particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
  983.  
  984.  
  985. particleemitter3.Enabled = true
  986.  
  987.  
  988.  
  989. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  990.  
  991. repeat
  992.  
  993. wait()
  994.  
  995. until boost==false
  996.  
  997. particleemitter2.Enabled = false
  998.  
  999.  
  1000.  
  1001. particleemitter3.Enabled = false
  1002.  
  1003.  
  1004. con5:disconnect()
  1005.  
  1006. end
  1007. end)
  1008.  
  1009.  
  1010. function SUPERSONIC()
  1011. x9:Play()
  1012. x10:Play()
  1013. x3:Stop()
  1014. Super = true
  1015. --550111102
  1016.  
  1017.  
  1018.  
  1019.  
  1020. Character.Humanoid.Health = math.huge
  1021. Character.Humanoid.MaxHealth = math.huge
  1022. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(0))
  1023. Boost.BrickColor = BrickColor.new("Bright red")
  1024.  
  1025. end
  1026.  
  1027.  
  1028.  
  1029. function nomoreSUPERSONIC()
  1030. x10:Stop()
  1031. x3:Play()
  1032. Super = false
  1033. Character.Humanoid.Health = 10000
  1034. Character.Humanoid.MaxHealth = 10000
  1035. Character.Humanoid.WalkSpeed = 72
  1036. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))
  1037. Boost.BrickColor = BrickColor.new("Bright green")
  1038.  
  1039. end
  1040.  
  1041.  
  1042.  
  1043. mouse.KeyUp:connect(function(key)
  1044. if string.byte(key) == 48 and Super == false then
  1045. boost = false
  1046. Character.Humanoid.WalkSpeed = 72
  1047. x4:Stop()
  1048. Boost.Transparency = 0.85
  1049. wait()
  1050. Boost.Transparency = 0.95
  1051. wait()
  1052. Boost.Transparency = 1
  1053.  
  1054. end
  1055. end)
  1056.  
  1057. mouse.KeyUp:connect(function(key)
  1058. if string.byte(key) == 48 and Super == true then
  1059. boost = false
  1060. Character.Humanoid.WalkSpeed = 150
  1061. x4:Stop()
  1062. Boost.Transparency = 0.85
  1063. wait()
  1064. Boost.Transparency = 0.95
  1065. wait()
  1066. Boost.Transparency = 1
  1067.  
  1068.  
  1069. end
  1070. end)
  1071.  
  1072.  
  1073.  
  1074. mouse.KeyDown:connect(function(key)
  1075. if key == 'x' and attack == false then
  1076. HomingAttack()
  1077. end
  1078. end)
  1079.  
  1080. mouse.KeyDown:connect(function(key)
  1081. if key == 'q' and attack == false then
  1082. LockOn()
  1083. end
  1084. end)
  1085.  
  1086.  
  1087. mouse.KeyDown:connect(function(key)
  1088. if key == 'e' and attack == false then
  1089. SUPERSONIC()
  1090. end
  1091. end)
  1092.  
  1093.  
  1094. mouse.KeyDown:connect(function(key)
  1095. if key == 'r' and attack == false then
  1096. nomoreSUPERSONIC()
  1097. end
  1098. end)
  1099.  
  1100.  
  1101. Character.Humanoid.JumpPower = 140
  1102.  
  1103. -------------
  1104.  
  1105. local sine = 0
  1106. local change = 1
  1107. local val = 0
  1108. while true do
  1109. swait()
  1110. sine = sine + change
  1111. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1112. local velderp=RootPart.Velocity.y
  1113. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1114. if equipped==true or equipped==false then
  1115. if attack==false then
  1116. idle=idle+1
  1117. else
  1118. idle=0
  1119. end
  1120. if idle>=500 then
  1121. if attack==false then
  1122. --Sheath()
  1123. end
  1124. end
  1125.  
  1126.  
  1127.  
  1128. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1129. Anim="Jump"
  1130. change = 1
  1131. for i = 0,4,0.12 do
  1132. swait()
  1133. if attack==false then
  1134. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  1135. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  1136. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  1137. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  1138. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  1139. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  1140. end
  1141. end
  1142.  
  1143. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1144. Anim="Fall"
  1145. change = 1
  1146. if attack==false and Super == false then
  1147. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1148. LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1149. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1150. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1151. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
  1152. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
  1153.  
  1154.  
  1155. else
  1156.  
  1157. if attack==false and Super == true then
  1158. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1159. LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1160. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1161. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1162. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
  1163. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
  1164.  
  1165.  
  1166. end
  1167. end
  1168. elseif torvel<1 and hitfloor~=nil then
  1169. Anim="Idle"
  1170. if attack==false and Super == false then
  1171. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.20+0.02*math.cos(sine/10))* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1172. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10-5*math.cos(sine/10)),math.rad(0),math.rad(0)),.2)
  1173. RW.C0 = clerp(RW.C0, CFrame.new(0.9, 0.5, -0.7) * angles(math.rad(-0), math.rad(0), math.rad(-90+5*math.cos(sine/10))),.2)
  1174. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1175. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-22),math.rad(90),math.rad(0)),.2)
  1176. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(8),math.rad(-90),math.rad(0)),.2)
  1177.  
  1178. else
  1179.  
  1180. if attack==false and Super == true then
  1181. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.7+0.52*math.cos(sine/64))* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1182. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20.20-6.52*math.cos(sine/64)),math.rad(0),math.rad(0)),.2)
  1183. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15-6.52*math.cos(sine/64)), math.rad(0), math.rad(45+6.52*math.cos(sine/64))),.2)
  1184. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10+6.52*math.cos(sine/64)), math.rad(0), math.rad(-45-6.52*math.cos(sine/64))),.2)
  1185. RH.C0=clerp(RH.C0,cf(1,-1+0.12*math.cos(sine/54),-0.2)*angles(math.rad(-12-6.52*math.cos(sine/64)),math.rad(90),math.rad(12-16.52*math.cos(sine/64))),.2)
  1186. LH.C0=clerp(LH.C0,cf(-1,-0.8+0.22*math.cos(sine/44),-0.4)*angles(math.rad(14+6.52*math.cos(sine/64)),math.rad(-90),math.rad(20-6.52*math.cos(sine/64))),.2)
  1187.  
  1188. end
  1189. end
  1190. elseif torvel>2 and torvel<140 and hitfloor~=nil then
  1191. Anim="Walk"
  1192. if attack==false and Super == false then
  1193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(5*math.cos(sine/5))),.2)
  1194. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1195. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
  1196. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
  1197. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(-40 - 70 *math.cos (sine / -5))),.2)
  1198. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(40 - 70 *math.cos (sine / 5))),.2)
  1199.  
  1200.  
  1201.  
  1202. else
  1203.  
  1204.  
  1205. if attack==false and Super == true then
  1206. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2+0.4*math.cos(sine/20.2))* angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  1207. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1208. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
  1209. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
  1210. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0+4*math.cos(sine/3)),math.rad(90),math.rad(0+4*math.cos(sine/3))),.2)
  1211. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0-4*math.cos(sine/3)),math.rad(-90),math.rad(0+4*math.cos(sine/3))),.2)
  1212.  
  1213.  
  1214. end
  1215. end
  1216. elseif torvel>=141 and torvel<700 and hitfloor~=nil then
  1217. Anim="Run"
  1218. if attack==false and Super == false then
  1219. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  1220. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
  1221. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
  1222. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
  1223. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(-40 - 100 *math.cos (sine / -2.2))),.2)
  1224. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(40 - 100 *math.cos (sine / 2.2))),.2)
  1225.  
  1226. else
  1227.  
  1228.  
  1229. if attack==false and Super == true then
  1230. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.2+0.2*math.cos(sine/1.2))* angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1231. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-60),math.rad(0),math.rad(0)),.2)
  1232. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
  1233. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
  1234. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-1-4*math.cos(sine/3)),math.rad(90),math.rad(0)),.2)
  1235. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(1+4*math.cos(sine/3)),math.rad(-90),math.rad(0)),.2)
  1236. end
  1237. end
  1238. elseif torvel>=-141 and torvel<-700 and hitfloor~=nil then
  1239. Anim="Run2"
  1240. if attack==false and Super == false then
  1241. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  1242. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
  1243. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
  1244. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
  1245. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(40 - 100 *math.cos (sine / -2.2))),.2)
  1246. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(-40 - 100 *math.cos (sine / 2.2))),.2)
  1247. end
  1248. end
  1249. end
  1250.  
  1251. if Anim == "Walk" then
  1252. if footsteps == false then
  1253. x2:Play()
  1254. footsteps = true
  1255. end
  1256. x.Pitch = 1.2
  1257. elseif Anim == "Idle" then
  1258. x:Stop()
  1259. x2:Stop()
  1260. footsteps = false
  1261. elseif Anim == "Fall" then
  1262. x:Stop()
  1263. x2:Stop()
  1264. footsteps = false
  1265. elseif Anim == "Jump" then
  1266. x:Stop()
  1267. x2:Stop()
  1268. footsteps = false
  1269. elseif Anim == "Run" then
  1270. x.Pitch = 1.8
  1271. if footsteps == false then
  1272. x:Play()
  1273. footsteps = true
  1274. end
  1275. end
  1276. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement