Advertisement
EmeraldIT

AYy i am DrooNK oN sOnIc FaNdOm

Jul 3rd, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.22 KB | None | 0 0
  1. --Made by KillerDarkness0105/Codex#6685 will prob be finished in a few days from the 3rd of july.
  2.  
  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. mr=math.rad
  11. Head=Character.Head
  12. Humanoid=Character.Humanoid
  13. --m=Instance.new('Model',Character)
  14. LeftArm=Character["Left Arm"]
  15. LeftLeg=Character["Left Leg"]
  16. RightArm=Character["Right Arm"]
  17. RightLeg=Character["Right Leg"]
  18. LS=Torso["Left Shoulder"]
  19. LH=Torso["Left Hip"]
  20. RS=Torso["Right Shoulder"]
  21. RH=Torso["Right Hip"]
  22. Face = Head.face
  23. Neck=Torso.Neck
  24. it=Instance.new
  25. attacktype=1
  26. vt=Vector3.new
  27. cf=CFrame.new
  28. V3=Vector3
  29. CF=CFrame
  30. char=Character
  31. euler=CFrame.fromEulerAnglesXYZ
  32. angles=CFrame.Angles
  33. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  36. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  37. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  38. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RootPart=Character.HumanoidRootPart
  40. RootJoint=RootPart.RootJoint
  41. RootCF=euler(-1.57,0,3.14)
  42. attack = false
  43. attackdebounce = false
  44. equipped=true
  45. trispeed=.2
  46. attackmode='none'
  47. local idle=0
  48. local Anim="Idle"
  49. local footsteps = false
  50. local boost = false
  51. local targetted = nil
  52. local Super = false
  53.  
  54.  
  55. Humanoid.Animator.Parent = nil
  56. Character.Animate.Parent = nil
  57.  
  58. Character.Humanoid.Health = 10000
  59. Character.Humanoid.MaxHealth = 10000
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. function clerp(a,b,t)
  71. local qa = {QuaternionFromCFrame(a)}
  72. local qb = {QuaternionFromCFrame(b)}
  73. local ax, ay, az = a.x, a.y, a.z
  74. local bx, by, bz = b.x, b.y, b.z
  75. local _t = 1-t
  76. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  77. end
  78.  
  79. function QuaternionFromCFrame(cf)
  80. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  81. local trace = m00 + m11 + m22
  82. if trace > 0 then
  83. local s = math.sqrt(1 + trace)
  84. local recip = 0.5/s
  85. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  86. else
  87. local i = 0
  88. if m11 > m00 then
  89. i = 1
  90. end
  91. if m22 > (i == 0 and m00 or m11) then
  92. i = 2
  93. end
  94. if i == 0 then
  95. local s = math.sqrt(m00-m11-m22+1)
  96. local recip = 0.5/s
  97. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  98. elseif i == 1 then
  99. local s = math.sqrt(m11-m22-m00+1)
  100. local recip = 0.5/s
  101. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  102. elseif i == 2 then
  103. local s = math.sqrt(m22-m00-m11+1)
  104. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  105. end
  106. end
  107. end
  108.  
  109. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  110. local xs, ys, zs = x + x, y + y, z + z
  111. local wx, wy, wz = w*xs, w*ys, w*zs
  112. local xx = x*xs
  113. local xy = x*ys
  114. local xz = x*zs
  115. local yy = y*ys
  116. local yz = y*zs
  117. local zz = z*zs
  118. 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))
  119. end
  120.  
  121. function QuaternionSlerp(a, b, t)
  122. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  123. local startInterp, finishInterp;
  124. if cosTheta >= 0.0001 then
  125. if (1 - cosTheta) > 0.0001 then
  126. local theta = math.acos(cosTheta)
  127. local invSinTheta = 1/math.sin(theta)
  128. startInterp = math.sin((1-t)*theta)*invSinTheta
  129. finishInterp = math.sin(t*theta)*invSinTheta
  130. else
  131. startInterp = 1-t
  132. finishInterp = t
  133. end
  134. else
  135. if (1+cosTheta) > 0.0001 then
  136. local theta = math.acos(-cosTheta)
  137. local invSinTheta = 1/math.sin(theta)
  138. startInterp = math.sin((t-1)*theta)*invSinTheta
  139. finishInterp = math.sin(t*theta)*invSinTheta
  140. else
  141. startInterp = t-1
  142. finishInterp = t
  143. end
  144. end
  145. 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
  146. end
  147.  
  148. --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)
  149.  
  150. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  151. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  152. end
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  160. if hit.Parent==nil then
  161. return
  162. end
  163. h=hit.Parent:FindFirstChild("Humanoid")
  164. for _,v in pairs(hit.Parent:children()) do
  165. if v:IsA("Humanoid") then
  166. h=v
  167. end
  168. end
  169. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  170. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  171. end
  172. if hit.Parent.className=="Hat" then
  173. hit=hit.Parent.Parent:findFirstChild("Head")
  174. end
  175. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  176. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  177. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  178. return
  179. end]]
  180. -- hs(hit,1.2)
  181. c=Instance.new("ObjectValue")
  182. c.Name="creator"
  183. c.Value=game:service("Players").LocalPlayer
  184. c.Parent=h
  185. game:GetService("Debris"):AddItem(c,.5)
  186. Damage=math.random(minim,maxim)
  187. -- h:TakeDamage(Damage)
  188. blocked=false
  189. block=hit.Parent:findFirstChild("Block")
  190. if block~=nil then
  191. print(block.className)
  192. if block.className=="NumberValue" then
  193. if block.Value>0 then
  194. blocked=true
  195. if decreaseblock==nil then
  196. block.Value=block.Value-1
  197. end
  198. end
  199. end
  200. if block.className=="IntValue" then
  201. if block.Value>0 then
  202. blocked=true
  203. if decreaseblock~=nil then
  204. block.Value=block.Value-1
  205. end
  206. end
  207. end
  208. end
  209. if blocked==false then
  210. -- h:TakeDamage(Damage)
  211. h.Health=h.Health-Damage
  212. h.Health=h.Health-Damage
  213. end
  214.  
  215. if Type=="Knockdown" then
  216. hum=hit.Parent.Humanoid
  217. hum.PlatformStand=true
  218. coroutine.resume(coroutine.create(function(HHumanoid)
  219. swait(5)
  220. HHumanoid.PlatformStand=false
  221. end),hum)
  222.  
  223. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  224. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  225. local bodvol=Instance.new("BodyVelocity")
  226. bodvol.velocity=angle*knockback
  227. bodvol.P=5000
  228. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  229. bodvol.Parent=hit
  230. rl=Instance.new("BodyAngularVelocity")
  231. rl.P=30000
  232. rl.maxTorque=Vector3.new(0,10,10)*5000
  233. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
  234. rl.Parent=hit
  235. game:GetService("Debris"):AddItem(bodvol,.5)
  236. game:GetService("Debris"):AddItem(rl,.5)
  237. elseif Type=="Normal" then
  238. vp=Instance.new("BodyVelocity")
  239. vp.P=500
  240. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  241. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  242. if KnockbackType==1 then
  243. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  244. elseif KnockbackType==2 then
  245. vp.velocity=Property.CFrame.lookVector*knockback
  246. end
  247. if knockback>0 then
  248. vp.Parent=hit.Parent.Torso
  249. end
  250. game:GetService("Debris"):AddItem(vp,.5)
  251. elseif Type=="Up" then
  252. local bodyVelocity=Instance.new("BodyVelocity")
  253. bodyVelocity.velocity=vt(0,40,0)
  254. bodyVelocity.P=1000
  255. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  256. bodyVelocity.Parent=hit
  257. game:GetService("Debris"):AddItem(bodyVelocity,1)
  258. rl=Instance.new("BodyAngularVelocity")
  259. rl.P=3000
  260. rl.maxTorque=Vector3.new(5000,5000,5000)*5000
  261. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  262. rl.Parent=hit
  263. game:GetService("Debris"):AddItem(rl,.5)
  264. elseif Type=="Snare" then
  265. bp=Instance.new("BodyPosition")
  266. bp.P=2000
  267. bp.D=100
  268. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  269. bp.position=hit.Parent.Torso.Position
  270. bp.Parent=hit.Parent.Torso
  271. game:GetService("Debris"):AddItem(bp,1)
  272. elseif Type=="Target" then
  273. if Targetting==false then
  274. ZTarget=hit.Parent.Torso
  275. coroutine.resume(coroutine.create(function(Part)
  276. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  277. swait(5)
  278. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  279. end),ZTarget)
  280. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  281. targetgui=Instance.new("BillboardGui")
  282. targetgui.Parent=ZTarget
  283. targetgui.Size=UDim2.new(10,100,10,100)
  284. targ=Instance.new("ImageLabel")
  285. targ.Parent=targetgui
  286. targ.BackgroundTransparency=1
  287. targ.Image="rbxassetid://4834067"
  288. targ.Size=UDim2.new(1,0,1,0)
  289. cam.CameraType="Scriptable"
  290. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  291. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  292. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  293. Targetting=true
  294. RocketTarget=ZTarget
  295. for i=1,Property do
  296. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  297. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  298. swait()
  299. end
  300. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  301. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  302. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  303. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  304. end
  305. Targetting=false
  306. RocketTarget=nil
  307. targetgui.Parent=nil
  308. cam.CameraType="Custom"
  309. end
  310. end
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. debounce=Instance.new("BoolValue")
  320. debounce.Name="DebounceHit"
  321. debounce.Parent=hit.Parent
  322. debounce.Value=true
  323. game:GetService("Debris"):AddItem(debounce,Delay)
  324. c=Instance.new("ObjectValue")
  325. c.Name="creator"
  326. c.Value=Player
  327. c.Parent=h
  328. game:GetService("Debris"):AddItem(c,.5)
  329. CRIT=false
  330. hitDeb=true
  331. AttackPos=6
  332. end
  333. end
  334.  
  335. showDamage=function(Char,Dealt,du,Color)
  336. m=Instance.new("Model")
  337. m.Name=tostring(Dealt)
  338. h=Instance.new("Humanoid")
  339. h.Health=0
  340. h.MaxHealth=0
  341. h.Parent=m
  342. c=Instance.new("Part")
  343. c.Transparency=0
  344. c.BrickColor=Color
  345. c.Name="Head"
  346. c.TopSurface=0
  347. c.BottomSurface=0
  348. c.formFactor="Plate"
  349. c.Size=Vector3.new(1,.4,1)
  350. ms=Instance.new("CylinderMesh")
  351. ms.Scale=Vector3.new(.8,.8,.8)
  352. if CRIT==true then
  353. ms.Scale=Vector3.new(1,1.25,1)
  354. end
  355. ms.Parent=c
  356. c.Reflectance=0
  357. Instance.new("BodyGyro").Parent=c
  358. c.Parent=m
  359. if Char:findFirstChild("Head")~=nil then
  360. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  361. elseif Char.Parent:findFirstChild("Head")~=nil then
  362. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  363. end
  364. f=Instance.new("BodyPosition")
  365. f.P=2000
  366. f.D=100
  367. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  368. f.position=c.Position+Vector3.new(0,3,0)
  369. f.Parent=c
  370. game:GetService("Debris"):AddItem(m,.5+du)
  371. c.CanCollide=false
  372. m.Parent=workspace
  373. c.CanCollide=false
  374. end
  375.  
  376.  
  377.  
  378. --save shoulders
  379. RSH, LSH=nil, nil
  380. --welds
  381. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  382. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  383. LH=Torso["Left Hip"]
  384. RH=Torso["Right Hip"]
  385. TorsoColor=Torso.BrickColor
  386. function NoOutline(Part)
  387. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  388. end
  389. player=Player
  390. ch=Character
  391. RSH=ch.Torso["Right Shoulder"]
  392. LSH=ch.Torso["Left Shoulder"]
  393. --
  394. RSH.Parent=nil
  395. LSH.Parent=nil
  396. --
  397. RW.Name="Right Shoulder"
  398. RW.Part0=ch.Torso
  399. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  400. RW.C1=cf(0, 0.5, 0)
  401. RW.Part1=ch["Right Arm"]
  402. RW.Parent=ch.Torso
  403. --
  404. LW.Name="Left Shoulder"
  405. LW.Part0=ch.Torso
  406. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  407. LW.C1=cf(0, 0.5, 0)
  408. LW.Part1=ch["Left Arm"]
  409. LW.Parent=ch.Torso
  410.  
  411. Player=game:GetService('Players').LocalPlayer
  412. Character=Player.Character
  413. mouse=Player:GetMouse()
  414. m=Instance.new('Model',Character)
  415.  
  416.  
  417. local function weldBetween(a, b)
  418. local weldd = Instance.new("ManualWeld")
  419. weldd.Part0 = a
  420. weldd.Part1 = b
  421. weldd.C0 = CFrame.new()
  422. weldd.C1 = b.CFrame:inverse() * a.CFrame
  423. weldd.Parent = a
  424. return weldd
  425. end
  426.  
  427. ArtificialHB = Instance.new("BindableEvent", script)
  428. ArtificialHB.Name = "Heartbeat"
  429.  
  430. script:WaitForChild("Heartbeat")
  431.  
  432. frame = 1 / 60
  433. tf = 0
  434. allowframeloss = false
  435. tossremainder = false
  436. lastframe = tick()
  437. script.Heartbeat:Fire()
  438.  
  439. game:GetService("RunService").Heartbeat:connect(function(s, p)
  440. tf = tf + s
  441. if tf >= frame then
  442. if allowframeloss then
  443. script.Heartbeat:Fire()
  444. lastframe = tick()
  445. else
  446. for i = 1, math.floor(tf / frame) do
  447. script.Heartbeat:Fire()
  448. end
  449. lastframe = tick()
  450. end
  451. if tossremainder then
  452. tf = 0
  453. else
  454. tf = tf - frame * math.floor(tf / frame)
  455. end
  456. end
  457. end)
  458.  
  459. function swait(num)
  460. if num == 0 or num == nil then
  461. ArtificialHB.Event:wait()
  462. else
  463. for i = 0, num do
  464. ArtificialHB.Event:wait()
  465. end
  466. end
  467. end
  468.  
  469.  
  470.  
  471. function FindNearestTorso(Position, Distance, SinglePlayer)
  472. if SinglePlayer then
  473. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  474. end
  475. local List = {}
  476. for i, v in pairs(workspace:GetChildren()) do
  477. if v:IsA("Model") then
  478. if v:findFirstChild("Torso") then
  479. if v ~= Character then
  480. if (v.Torso.Position - Position).magnitude <= Distance then
  481. table.insert(List, v)
  482. end
  483. end
  484. end
  485. end
  486. end
  487. return List
  488. end
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497. local ChargeKame = false
  498. local KamePower = 10
  499. local KameCool = false
  500. local beamgo = 16
  501.  
  502.  
  503. function FireKame()
  504. Base:Destroy()
  505. for i = 1,50 do
  506. RS.RenderStepped:wait()
  507. PlayAnimationFromTable({
  508. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), mr(0)), -- Torso,
  509. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  510. CFrame.new(1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(-20)), --- RightArm
  511. CFrame.new(-1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
  512. CFrame.new(0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-5), mr(5)), --RightLeg
  513. CFrame.new(-0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(5), mr(-5)), --LeftLeg
  514. }, .3, false)
  515. end
  516.  
  517. local Base1 = Instance.new("Part", char)
  518. Base1.Anchored = true
  519. Base1.Material = "Neon"
  520. Base1.Size = vt(KamePower + 1, KamePower + 1, KamePower + 1)
  521. Base1.Shape = "Block"
  522. Base1.Color = Color3.fromRGB(0,255,255)
  523. Base1.CFrame = char.HumanoidRootPart.CFrame * CF.new(0, 0.5, -1.8)
  524. Base1.CanCollide = false
  525. local Mesh = Instance.new("SpecialMesh", Base1)
  526. Mesh.MeshType = "Sphere"
  527.  
  528. local Beam = Instance.new("Part", char)
  529. Beam.Anchored = true
  530. Beam.Material = "Neon"
  531. Beam.Size = V3.new(0, KamePower- 0.8, KamePower- 0.8)
  532. Beam.Shape = "Block"
  533. Beam.Color = Color3.fromRGB(0,255,255)
  534. Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(180),0)
  535. Beam.CanCollide = false
  536. local Mesh = Instance.new("SpecialMesh", Beam)
  537. Mesh.MeshType = "Cylinder"
  538. coroutine.resume(coroutine.create(function()
  539. for i = 1,100 do
  540. wait()
  541. beamgo = beamgo + 10
  542. Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(90),0) * CFrame.new(beamgo,0,0)
  543. Beam.Size = V3.new(beamgo * 2, KamePower + 0.5, KamePower + 0.5)
  544.  
  545.  
  546. end
  547. end))
  548.  
  549.  
  550. Beam.Touched:Connect(function(hit)
  551. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  552. -- Player
  553. if hit.Parent.Name == p.Name then return end
  554. hit.Parent:BreakJoints()
  555. end
  556. end)
  557.  
  558.  
  559.  
  560. wait(5)
  561.  
  562. for i = 1,200 do
  563. RS.RenderStepped:wait()
  564. beamgo = beamgo - 1
  565. Beam.Size = Beam.Size - V3.new(0,0.01,0.01)
  566. Base1.Size = Base1.Size - V3.new(0.01,0.01,0.01)
  567. Beam.Transparency = Beam.Transparency + 0.01
  568. Base1.Transparency = Base1.Transparency + 0.01
  569. if Base1.Transparency >= 1 then
  570. Base1:Destroy()
  571. Beam:Destroy()
  572. end
  573. end
  574. KamePower = 0
  575. beamgo = 6
  576. Pause = false
  577. end
  578.  
  579.  
  580. function Kamehameha()
  581. if not KameCool then
  582. KameCool = true
  583.  
  584. for i = 1,50 do
  585. RS.RenderStepped:wait()
  586. PlayAnimationFromTable({
  587. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-60), mr(-5)), -- Torso,
  588. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), 0), ----- Head
  589. CFrame.new(1.5,0,-0.3) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(60), mr(15), mr(40)), --- RightArm
  590. CFrame.new(-0.5,0.1,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(140), mr(-35), mr(90)),--LeftArm
  591. CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(-5), mr(5)), --RightLeg
  592. CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), mr(-5)), --LeftLeg
  593. }, .3, false)
  594. end
  595. Base = Instance.new("Part", char)
  596. Base.CanCollide = false
  597. Base.Anchored = true
  598. Base.Material = "Neon"
  599. Base.Size = V3.new(0, 0, 0)
  600. Base.Shape = "Ball"
  601. Base.Color = Color3.fromRGB(0,255,255)
  602. Base.CFrame = char.HumanoidRootPart.CFrame * CF.new(2.3, -0.1, 0)
  603. coroutine.resume(coroutine.create(function()
  604. while wait() and ChargeKame == true do
  605. if KamePower >= 1.180 then
  606. FireKame()
  607. ChargeKame = false
  608. else
  609. KamePower = KamePower + 0.002
  610. Base.Size = V3.new(KamePower, KamePower, KamePower)
  611. end
  612. end
  613. end))
  614. wait(2)
  615. KameCool = false
  616. end
  617. end
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626. local Emerald = Instance.new("Part")
  627. Emerald.Parent = Character
  628. Emerald.Size = Vector3.new(0.2,0.2,0.2)
  629. Emerald.Archivable = true
  630. Emerald.Transparency = 0
  631. Emerald.CanCollide = false
  632. Emerald.BrickColor = BrickColor.new("Toothpaste")
  633. Emerald.Material = "Neon"
  634. local Emeraldmesh = Instance.new("SpecialMesh",Emerald)
  635. Emeraldmesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  636. Emeraldmesh.Scale = Vector3.new(3.5,3.5,3.5)
  637. local Emeraldweld = Instance.new("Weld")
  638. Emeraldweld.Parent = Emerald
  639. Emeraldweld.Part0 = Torso
  640. Emeraldweld.Part1 = Emerald
  641. Emeraldweld.C1 = CFrame.new(3.5, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  642. Emeraldweld.Part0 = Torso
  643.  
  644. --[[
  645.  
  646.  
  647. ]]--
  648.  
  649.  
  650. local x = Instance.new("Sound", Torso)
  651. x.SoundId = "http://www.roblox.com/asset/?id=979251686"
  652. x.Looped = true
  653. x.Volume = 0.01
  654. x.Pitch = 1
  655.  
  656.  
  657.  
  658.  
  659.  
  660. local x2 = Instance.new("Sound", Torso)
  661. x2.SoundId = "http://www.roblox.com/asset/?id=979251686"
  662. x2.Looped = true
  663. x2.Volume = 0.3
  664. x2.Pitch = 1
  665.  
  666.  
  667. local x3 = Instance.new("Sound", Torso)
  668. x3.SoundId = "http://www.roblox.com/asset/?id=588189046"
  669. x3.Looped = true
  670. x3.Volume = 0.3
  671. x3.Pitch = 1
  672. x3:Play()
  673.  
  674.  
  675. local x4 = Instance.new("Sound", Torso)
  676. x4.SoundId = "http://www.roblox.com/asset/?id=273734478"
  677. x4.Looped = false
  678. x4.Volume = 1
  679. x4.Pitch = 1
  680.  
  681.  
  682.  
  683.  
  684. local x5 = Instance.new("Sound", Torso)
  685. x5.SoundId = "http://www.roblox.com/asset/?id=162460823"
  686. x5.Looped = false
  687. x5.Volume = 1
  688. x5.Pitch = 1
  689.  
  690.  
  691.  
  692.  
  693. local x6 = Instance.new("Sound", Torso)
  694. x6.SoundId = "http://www.roblox.com/asset/?id=800121776"
  695. x6.Looped = false
  696. x6.Volume = 1
  697. x6.Pitch = 1
  698.  
  699.  
  700.  
  701.  
  702. local x7 = Instance.new("Sound", Torso)
  703. x7.SoundId = "http://www.roblox.com/asset/?id=804889329"
  704. x7.Looped = false
  705. x7.Volume = 1
  706. x7.Pitch = 1
  707.  
  708.  
  709.  
  710.  
  711. local x8 = Instance.new("Sound", Torso)
  712. x8.SoundId = "http://www.roblox.com/asset/?id=804907617"
  713. x8.Looped = false
  714. x8.Volume = 5
  715. x8.Pitch = 1
  716.  
  717.  
  718.  
  719. local x9 = Instance.new("Sound", Character)
  720. x9.SoundId = "http://www.roblox.com/asset/?id=392140397"
  721. x9.Looped = false
  722. x9.Volume = 1
  723. x9.Pitch = 1
  724.  
  725.  
  726. local x10 = Instance.new("Sound", Character)
  727. x10.SoundId = "http://www.roblox.com/asset/?id=526149541"
  728. x10.Looped = true
  729. x10.Volume = 0.40
  730. x10.Pitch = 1
  731.  
  732.  
  733.  
  734.  
  735. local x11 = Instance.new("Sound", Torso)
  736. x11.SoundId = "http://www.roblox.com/asset/?id=515143864"
  737. x11.Looped = false
  738. x11.Volume = 1.5
  739. x11.Pitch = 1
  740.  
  741. --537371462
  742.  
  743. Character.Humanoid.WalkSpeed = 72
  744.  
  745.  
  746. target = Instance.new("BillboardGui",Character)
  747. target.Size = UDim2.new(10,0,10,0)
  748. target.Enabled = false
  749. imgl = Instance.new("ImageLabel",target)
  750. imgl.Position = UDim2.new(0,0,0,0)
  751. imgl.Size = UDim2.new(1,0,1,0)
  752. imgl.Image = "rbxassetid://711463989"
  753. imgl.BackgroundTransparency = 1
  754. imgl.ImageColor3 = Color3.new(255,255,255)
  755. img2 = Instance.new("ImageLabel",target)
  756. img2.Position = UDim2.new(0,0,0,0)
  757. img2.Size = UDim2.new(1,0,1,0)
  758. img2.Image = "rbxassetid://711463989"
  759. img2.BackgroundTransparency = 1
  760. img2.ImageColor3 = Color3.new(0,0,0)
  761.  
  762.  
  763.  
  764.  
  765. function TargetSelect(person)
  766. local dd=coroutine.wrap(function()
  767. if targetted ~= person then
  768. targetted = person
  769. img2.Size = UDim2.new(1,0,1,0)
  770. img2.ImageTransparency = 0
  771. imgl.Position = UDim2.new(0,0,0,0)
  772. for i = 0, 2, 0.1 do
  773. swait()
  774. img2.Size = UDim2.new(1.01,0,1.01,0)
  775. end
  776. end
  777. end)
  778. dd()
  779. end
  780.  
  781.  
  782. function LockOn()
  783. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  784. TargetSelect(mouse.Target.Parent)
  785. end
  786. end
  787.  
  788.  
  789. function HomingAttack()
  790. attack = true
  791.  
  792. Humanoid.Jump=true
  793. x6:Play()
  794. x11:Play()
  795.  
  796. --local GGyro = Instance.new("BodyPosition")
  797. --for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 100)) do
  798. --if v:FindFirstChild('Head') then
  799. --end
  800. --end
  801.  
  802.  
  803. if targetted == nil then
  804. attack = false
  805. end
  806.  
  807.  
  808. RootPart.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,0)
  809.  
  810.  
  811. x5:Play()
  812.  
  813.  
  814.  
  815.  
  816. local con6=Humanoid.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Up",RootPart,.2,1) end)
  817.  
  818.  
  819. for i = 0,1,0.13 do
  820. change = 1
  821. swait()
  822. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.5)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  823. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  824. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  825. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  826. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  827. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  828. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  829. end
  830.  
  831. for i = 0,4,0.12 do
  832. swait()
  833. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  834. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  835. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  836. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  837. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  838. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  839. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  840. end
  841.  
  842. attack = false
  843.  
  844. for i = 0,6,0.12 do
  845. swait()
  846. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20*i)),.3)
  847. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  848. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  849. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  850. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  851. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  852. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  853. end
  854.  
  855.  
  856. Humanoid.Jump=false
  857.  
  858. wait(2)
  859. con6:disconnect()
  860.  
  861. end
  862.  
  863.  
  864.  
  865.  
  866. -------------
  867. mouse.KeyDown:connect(function(key)
  868. if string.byte(key) == 48 and Super == false then
  869. boost = true
  870. Character.Humanoid.WalkSpeed = 240
  871.  
  872. RootPart.Velocity = RootPart.CFrame.lookVector * 320
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880. local particleemitter2 = Instance.new("ParticleEmitter", Torso)
  881. particleemitter2.VelocitySpread = 180
  882. particleemitter2.Lifetime = NumberRange.new(1)
  883. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  884. particleemitter2.Speed = NumberRange.new(0.5)
  885. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
  886. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  887. particleemitter2.Rate = 999
  888. particleemitter2.Rotation = NumberRange.new(-45, 45)
  889. particleemitter2.Acceleration = Vector3.new(0,1.5,0)
  890. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  891. particleemitter2.LightEmission = 1
  892. particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
  893.  
  894.  
  895. particleemitter2.Enabled = true
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905. local particleemitter3 = Instance.new("ParticleEmitter", Torso)
  906. particleemitter3.VelocitySpread = 180
  907. particleemitter3.Lifetime = NumberRange.new(1)
  908. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  909. particleemitter3.Speed = NumberRange.new(0.5)
  910. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
  911. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  912. particleemitter3.Rate = 128
  913. particleemitter3.Rotation = NumberRange.new(-45, 45)
  914. particleemitter3.Acceleration = Vector3.new(0,0,0)
  915. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  916. particleemitter3.LightEmission = 1
  917. particleemitter3.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
  918.  
  919.  
  920. particleemitter3.Enabled = true
  921.  
  922.  
  923. x4:Play()
  924.  
  925. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  926.  
  927.  
  928. repeat
  929.  
  930. wait()
  931.  
  932. until boost==false
  933.  
  934.  
  935.  
  936. particleemitter2.Enabled = false
  937.  
  938.  
  939. con5:disconnect()
  940.  
  941. particleemitter3.Enabled = false
  942.  
  943.  
  944. end
  945. end)
  946.  
  947.  
  948.  
  949.  
  950.  
  951. mouse.KeyDown:connect(function(key)
  952. if string.byte(key) == 48 and Super == true then
  953. boost = true
  954. Character.Humanoid.WalkSpeed = 420
  955. x4:Play()
  956.  
  957. RootPart.Velocity = RootPart.CFrame.lookVector * 500
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965. local particleemitter2 = Instance.new("ParticleEmitter", Torso)
  966. particleemitter2.VelocitySpread = 180
  967. particleemitter2.Lifetime = NumberRange.new(2)
  968. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  969. particleemitter2.Speed = NumberRange.new(0.5)
  970. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
  971. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  972. particleemitter2.Rate = 999
  973. particleemitter2.Rotation = NumberRange.new(-45, 45)
  974. particleemitter2.Acceleration = Vector3.new(0,1,0)
  975. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  976. particleemitter2.LightEmission = 1
  977. particleemitter2.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
  978.  
  979.  
  980. particleemitter2.Enabled = true
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990. local particleemitter3 = Instance.new("ParticleEmitter", Torso)
  991. particleemitter3.VelocitySpread = 180
  992. particleemitter3.Lifetime = NumberRange.new(2)
  993. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  994. particleemitter3.Speed = NumberRange.new(0.5)
  995. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
  996. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  997. particleemitter3.Rate = 999
  998. particleemitter3.Rotation = NumberRange.new(-45, 45)
  999. particleemitter3.Acceleration = Vector3.new(0,0,0)
  1000. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1001. particleemitter3.LightEmission = 1
  1002. particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,129,0))
  1003.  
  1004.  
  1005. particleemitter3.Enabled = true
  1006.  
  1007.  
  1008.  
  1009. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  1010.  
  1011. repeat
  1012.  
  1013. wait()
  1014.  
  1015. until boost==false
  1016.  
  1017. particleemitter2.Enabled = false
  1018.  
  1019.  
  1020.  
  1021. particleemitter3.Enabled = false
  1022.  
  1023.  
  1024. con5:disconnect()
  1025.  
  1026. end
  1027. end)
  1028.  
  1029.  
  1030. function SUPERSONIC()
  1031. x9:Play()
  1032. x10:Play()
  1033. x3:Stop()
  1034. Super = true
  1035. --550111102
  1036.  
  1037.  
  1038.  
  1039.  
  1040. Character.Humanoid.Health = math.huge
  1041. Character.Humanoid.MaxHealth = math.huge
  1042.  
  1043. end
  1044.  
  1045.  
  1046.  
  1047. function nomoreSUPERSONIC()
  1048. x10:Stop()
  1049. x3:Play()
  1050. Super = false
  1051. Character.Humanoid.Health = 10000
  1052. Character.Humanoid.MaxHealth = 10000
  1053. Character.Humanoid.WalkSpeed = 72
  1054.  
  1055.  
  1056. end
  1057.  
  1058.  
  1059.  
  1060. mouse.KeyUp:connect(function(key)
  1061. if string.byte(key) == 48 and Super == false then
  1062. boost = false
  1063. Character.Humanoid.WalkSpeed = 150
  1064. x4:Stop()
  1065. end
  1066. end)
  1067.  
  1068. mouse.KeyUp:connect(function(key)
  1069. if string.byte(key) == 48 and Super == true then
  1070. boost = false
  1071. Character.Humanoid.WalkSpeed = 200
  1072. x4:Stop()
  1073. end
  1074. end)
  1075.  
  1076. function Chaos_Blast()
  1077. if Super == true then
  1078. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  1079. local char = game.Players.LocalPlayer.Character
  1080. local tors = game.Players.LocalPlayer.Character.Torso
  1081. local vt = Vector3.new
  1082. local bc = BrickColor.new
  1083. attack = true
  1084. local ff = Instance.new("ForceField",char)
  1085. local shur = Instance.new("Part",char)
  1086. local gahd = Instance.new("Sound",char)
  1087. gahd.SoundId = "rbxassetid://136007472"
  1088. gahd.Volume = 1
  1089. gahd.Pitch = 0.7
  1090. gahd:Play()
  1091. shur.Transparency = 0
  1092. shur.Material = "Neon"
  1093. shur.BrickColor = bc("Toothpaste")
  1094. shur.Anchored = true
  1095. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  1096. shur.Size = vt(1,0.2,1)
  1097. shur.CanCollide = false
  1098. local Meshshur = Instance.new("CylinderMesh",shur)
  1099. Meshshur.Scale = vt(0,1,0)
  1100. local value1 = 1*5
  1101. game:service'RunService'.RenderStepped:connect(function()
  1102. shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0)
  1103. end)
  1104. for i = 0, 50 do
  1105. Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1)
  1106. value1 = value1 - 0.015*5
  1107. wait()
  1108. end
  1109. local ex = Instance.new("Sound",char)
  1110. ex.SoundId = "rbxassetid://197161452"
  1111. ex.Volume = 1
  1112. ex.Pitch = 1
  1113. ex:Play()
  1114. local ex2 = Instance.new("Sound",char)
  1115. ex2.SoundId = "rbxassetid://197161452"
  1116. ex2.Volume = 0.75
  1117. ex2.Pitch = 0.85
  1118. ex2:Play()
  1119. local ex3 = Instance.new("Sound",char)
  1120. ex3.SoundId = "rbxassetid://197161452"
  1121. ex3.Volume = 0.5
  1122. ex3.Pitch = 0.65
  1123. ex3:Play()
  1124. local ex4 = Instance.new("Sound",char)
  1125. ex4.SoundId = "rbxassetid://446876721"
  1126. ex4.Volume = 1
  1127. ex4.Pitch = 0.5
  1128. ex4:Play()
  1129. local ex5 = Instance.new("Sound",char)
  1130. ex5.SoundId = "rbxassetid://446876721"
  1131. ex5.Volume = 1.5
  1132. ex5.Pitch = 0.5
  1133. ex5:Play()
  1134. local seen = Instance.new("Sound",char)
  1135. seen.SoundId = "rbxassetid://445796828"
  1136. seen.Pitch = 0.75
  1137. seen.Volume = 1.75
  1138. seen.Looped = true
  1139. seen:Play()
  1140. local las = Instance.new("Part")
  1141. local expld = Instance.new("Explosion", las)
  1142. expld.BlastPressure = 1
  1143. las.Parent = char
  1144. las.Material = "Neon"
  1145. las.BrickColor = BrickColor.new("Toothpaste")
  1146. las.CanCollide = false
  1147. las.Shape = "Ball"
  1148. las.Transparency = 0
  1149. las.Size = vt(60,60,60)
  1150. las.CFrame = shur.CFrame
  1151. las.Anchored = true
  1152. expld.BlastRadius = 9999999999
  1153. expld.Position = las.Position
  1154. local thing = Instance.new("SpecialMesh",las)
  1155. thing.MeshType = "Sphere"
  1156. thing.Scale = vt(1,0.1,1)
  1157. local bo = Instance.new("Part")
  1158. bo.Parent = las
  1159. bo.Material = "Neon"
  1160. bo.BrickColor = BrickColor.new("Toothpaste")
  1161. bo.CanCollide = false
  1162. bo.Shape = "Ball"
  1163. bo.Transparency = 0
  1164. bo.Size = vt(1,1,1)
  1165. bo.CFrame = shur.CFrame
  1166. bo.Anchored = true
  1167. local thingbo = Instance.new("SpecialMesh",bo)
  1168. thingbo.MeshType = "Sphere"
  1169. thingbo.Scale = vt(90,90,90)
  1170. local boim = Instance.new("Part")
  1171. boim.Parent = las
  1172. boim.Material = "Neon"
  1173. boim.BrickColor = BrickColor.new("Toothpaste")
  1174. boim.CanCollide = false
  1175. boim.Shape = "Ball"
  1176. boim.Transparency = 1
  1177. boim.Size = vt(150,150,150)
  1178. boim.CFrame = shur.CFrame
  1179. boim.Anchored = true
  1180. local boim2 = Instance.new("Part")
  1181. boim2.Parent = las
  1182. boim2.Material = "Neon"
  1183. boim2.BrickColor = BrickColor.new("Toothpaste")
  1184. boim2.CanCollide = false
  1185. boim2.Shape = "Ball"
  1186. boim2.Transparency = 0.65
  1187. boim2.Size = vt(1,1,1)
  1188. boim2.CFrame = shur.CFrame
  1189. boim2.Anchored = true
  1190. local boimmsh = Instance.new("SpecialMesh",boim2)
  1191. boimmsh.MeshType = "FileMesh"
  1192. boimmsh.Scale = vt(165,165,165)
  1193. local shock = Instance.new("Part")
  1194. shock.Parent = las
  1195. shock.Material = "Neon"
  1196. shock.BrickColor = BrickColor.new("Toothpaste")
  1197. shock.CanCollide = false
  1198. shock.Shape = "Ball"
  1199. shock.Transparency = 0.25
  1200. shock.CFrame = shur.CFrame
  1201. shock.Anchored = true
  1202. shock.Size = vt(0.2,0.2,0.2)
  1203. local thingshock = Instance.new("SpecialMesh",shock)
  1204. thingshock.MeshType = "FileMesh"
  1205. thingshock.Scale = vt(50,25,50)
  1206. thingshock.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1207. local shock2 = Instance.new("Part")
  1208. shock2.Parent = las
  1209. shock2.Material = "Neon"
  1210. shock2.BrickColor = BrickColor.new("Toothpaste")
  1211. shock2.CanCollide = false
  1212. shock2.Shape = "Ball"
  1213. shock2.Transparency = 0.5
  1214. shock2.CFrame = shur.CFrame
  1215. shock2.Anchored = true
  1216. shock2.Size = vt(0.2,0.2,0.2)
  1217. local thingshock2 = Instance.new("SpecialMesh",shock2)
  1218. thingshock2.MeshType = "FileMesh"
  1219. thingshock2.Scale = vt(85,20,85)
  1220. thingshock2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1221. local shock3 = Instance.new("Part")
  1222. shock3.Parent = las
  1223. shock3.Material = "Neon"
  1224. shock3.BrickColor = BrickColor.new("Toothpaste")
  1225. shock3.CanCollide = false
  1226. shock3.Shape = "Ball"
  1227. shock3.Transparency = 0.75
  1228. shock3.CFrame = shur.CFrame
  1229. shock3.Anchored = true
  1230. shock3.Size = vt(0.2,0.2,0.2)
  1231. local thingshock3 = Instance.new("SpecialMesh",shock3)
  1232. thingshock3.MeshType = "FileMesh"
  1233. thingshock3.Scale = vt(100,15,100)
  1234. thingshock3.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1235. local scaleval = 5
  1236. game:service'RunService'.RenderStepped:connect(function()
  1237. scaleval = scaleval - 0.035
  1238. boim.CFrame = shur.CFrame
  1239. bo.Transparency = bo.Transparency + 0.0055
  1240. boimmsh.Scale = boimmsh.Scale + vt(1,1,1)
  1241. boim2.Transparency = boim2.Transparency + 0.00125
  1242. thingbo.Scale = thingbo.Scale + vt(scaleval,scaleval,scaleval)
  1243. shock.CFrame = shock.CFrame*CFrame.Angles(0,0.1,0)
  1244. shock2.CFrame = shock2.CFrame*CFrame.Angles(0,-0.1,0)
  1245. shock3.CFrame = shock3.CFrame*CFrame.Angles(0,0.1,0)
  1246. las.CFrame = shur.CFrame + vt(math.random(-1,1),0,math.random(-1,1))
  1247. thing.Scale = thing.Scale + vt(0,5,0)
  1248. end)
  1249. for i = 0, 15 do
  1250. local sa = Instance.new("Sound",char)
  1251. sa.SoundId = "rbxassetid://233091205"
  1252. sa.Volume = 0.85
  1253. sa.Pitch = 0.85
  1254. sa:Play()
  1255. local lb = Instance.new("Part")
  1256. lb.Parent = las
  1257. lb.Material = "Neon"
  1258. lb.BrickColor = BrickColor.new("Toothpaste")
  1259. lb.CanCollide = false
  1260. lb.Shape = "Ball"
  1261. lb.CFrame = shur.CFrame
  1262. lb.Anchored = true
  1263. lb.Size = vt(0.2,0.2,0.2)
  1264. local thing = Instance.new("SpecialMesh",lb)
  1265. thing.MeshType = "FileMesh"
  1266. thing.Scale = vt(50,25,50)
  1267. thing.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1268. local lb3 = Instance.new("Part")
  1269. lb3.Parent = las
  1270. lb3.Material = "Neon"
  1271. lb3.BrickColor = BrickColor.new("Toothpaste")
  1272. lb3.CanCollide = false
  1273. lb3.Shape = "Ball"
  1274. lb3.CFrame = shur.CFrame
  1275. lb3.Anchored = true
  1276. lb3.Size = vt(0.2,0.2,0.2)
  1277. local thing3 = Instance.new("SpecialMesh",lb3)
  1278. thing3.MeshType = "FileMesh"
  1279. thing3.Scale = vt(50,30,50)
  1280. thing3.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1281. local lb2 = Instance.new("Part")
  1282. lb2.Parent = las
  1283. lb2.Material = "Neon"
  1284. lb2.BrickColor = BrickColor.new("Toothpaste")
  1285. lb2.CanCollide = false
  1286. lb2.Shape = "Ball"
  1287. lb2.CFrame = shur.CFrame
  1288. lb2.Anchored = true
  1289. lb2.Size = vt(0.2,0.2,0.2)
  1290. local thing2 = Instance.new("SpecialMesh",lb2)
  1291. thing2.MeshType = "FileMesh"
  1292. thing2.Scale = vt(50,40,50)
  1293. thing2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1294. local ring = Instance.new("Part")
  1295. ring.Parent = las
  1296. ring.Material = "Neon"
  1297. ring.BrickColor = BrickColor.new("Toothpaste")
  1298. ring.CanCollide = false
  1299. ring.Shape = "Ball"
  1300. ring.CFrame = shur.CFrame
  1301. ring.CFrame = ring.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1302. ring.Anchored = true
  1303. ring.Size = vt(0.2,0.2,0.2)
  1304. local thingring = Instance.new("SpecialMesh",ring)
  1305. thingring.MeshType = "FileMesh"
  1306. thingring.Scale = vt(150,150,50)
  1307. thingring.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1308. local ring2 = Instance.new("Part")
  1309. ring2.Parent = las
  1310. ring2.Material = "Neon"
  1311. ring2.BrickColor = BrickColor.new("Really red")
  1312. ring2.CanCollide = false
  1313. ring2.Shape = "Ball"
  1314. ring2.CFrame = shur.CFrame
  1315. ring2.CFrame = ring2.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1316. ring2.Anchored = true
  1317. ring2.Size = vt(0.2,0.2,0.2)
  1318. local thingring2 = Instance.new("SpecialMesh",ring2)
  1319. thingring2.MeshType = "FileMesh"
  1320. thingring2.Scale = vt(150,150,50)
  1321. thingring2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1322. local circle = Instance.new("Part")
  1323. circle.Parent = las
  1324. circle.Material = "Neon"
  1325. circle.BrickColor = BrickColor.new("Toothpaste")
  1326. circle.CanCollide = false
  1327. circle.Shape = "Ball"
  1328. circle.Transparency = 0
  1329. circle.Size = vt(125,125,125)
  1330. circle.CFrame = shur.CFrame
  1331. circle.Anchored = true
  1332. local smooth = game:service'RunService'.RenderStepped:connect(function()
  1333. sa.Volume = sa.Volume - 0.025
  1334. thingring.Scale = thingring.Scale + vt(1,1,0)
  1335. ring.Transparency = ring.Transparency + 0.025
  1336. thingring2.Scale = thingring2.Scale + vt(1,1,0)
  1337. ring2.Transparency = ring2.Transparency + 0.025
  1338. circle.Size = circle.Size + vt(1,1,1)
  1339. circle.Transparency = circle.Transparency + 0.025
  1340. circle.CFrame = shur.CFrame
  1341. lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.05,0)
  1342. thing.Scale = thing.Scale + vt(5,0,5)
  1343. lb.Transparency = lb.Transparency + 0.025
  1344. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,0.05,0)
  1345. thing2.Scale = thing2.Scale + vt(3.5,0,3.5)
  1346. lb2.Transparency = lb2.Transparency + 0.025
  1347. lb3.CFrame = lb3.CFrame*CFrame.Angles(0,-0.05,0)
  1348. thing3.Scale = thing3.Scale + vt(2.5,0,2.5)
  1349. lb3.Transparency = lb3.Transparency + 0.025
  1350. end)
  1351. wait(1)
  1352. lb:Destroy()
  1353. lb2:Destroy()
  1354. lb3:Destroy()
  1355. circle:Destroy()
  1356. ring:Destroy()
  1357. ring2:Destroy()
  1358. sa:Destroy()
  1359. smooth:disconnect()
  1360. end
  1361. attack = false
  1362. hum.WalkSpeed = 16
  1363. ex:Destroy()
  1364. ex2:Destroy()
  1365. ex3:Destroy()
  1366. ex4:Destroy()
  1367. ex5:Destroy()
  1368. for i = 0, 100 do
  1369. seen.Volume = seen.Volume - 0.05
  1370. thing.Scale = thing.Scale - vt(0.01,0,0.01)
  1371. thingshock.Scale = thingshock.Scale - vt(1,0,1)
  1372. thingshock2.Scale = thingshock2.Scale - vt(1,0,1)
  1373. thingshock3.Scale = thingshock3.Scale - vt(1,0,1)
  1374. las.Transparency = las.Transparency + 0.025
  1375. shock.Transparency = shock.Transparency + 0.025
  1376. shock2.Transparency = shock2.Transparency + 0.025
  1377. shock3.Transparency = shock3.Transparency + 0.025
  1378. Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1)
  1379. value1 = value1 - 0.015*5
  1380. wait(0)
  1381. end
  1382. shur:Destroy()
  1383. gahd:Destroy()
  1384. ff:Destroy()
  1385. las:Destroy()
  1386. end
  1387. end
  1388.  
  1389.  
  1390. mouse.KeyDown:connect(function(key)
  1391. if key == 'x' and attack == false then
  1392. HomingAttack()
  1393. end
  1394. end)
  1395.  
  1396. mouse.KeyDown:connect(function(key)
  1397. if key == 'l' and attack == false then
  1398. LockOn()
  1399. end
  1400. end)
  1401.  
  1402.  
  1403. mouse.KeyDown:connect(function(key)
  1404. if key == 'e' and attack == false then
  1405. SUPERSONIC()
  1406. end
  1407. end)
  1408.  
  1409.  
  1410. mouse.KeyDown:connect(function(key)
  1411. if key == 'r' and attack == false then
  1412. nomoreSUPERSONIC()
  1413. end
  1414. end)
  1415.  
  1416.  
  1417. mouse.KeyDown:connect(function(key)
  1418. if key == 'b' and attack == false then
  1419. Chaos_Blast()
  1420. end
  1421. end)
  1422.  
  1423.  
  1424. mouse.KeyDown:connect(function(key)
  1425. if key == 'k' and attack == false then
  1426. Kamehameha()
  1427. end
  1428. end)
  1429.  
  1430.  
  1431. Character.Humanoid.JumpPower = 140
  1432.  
  1433. -------------
  1434.  
  1435. local sine = 0
  1436. local change = 1
  1437. local val = 0
  1438. while true do
  1439. swait()
  1440. sine = sine + change
  1441. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1442. local velderp=RootPart.Velocity.y
  1443. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1444. if equipped==true or equipped==false then
  1445. if attack==false then
  1446. idle=idle+1
  1447. else
  1448. idle=0
  1449. end
  1450. if idle>=500 then
  1451. if attack==false then
  1452. --Sheath()
  1453. end
  1454. end
  1455.  
  1456.  
  1457.  
  1458. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1459. Anim="Jump"
  1460. change = 1
  1461. for i = 0,4,0.12 do
  1462. swait()
  1463. if attack==false then
  1464. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  1465. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  1466. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  1467. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  1468. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  1469. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  1470. end
  1471. end
  1472.  
  1473. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1474. Anim="Fall"
  1475. change = 1
  1476. if attack==false and Super == false then
  1477. 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)
  1478. 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)
  1479. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1480. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1481. 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)
  1482. 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)
  1483.  
  1484.  
  1485. else
  1486.  
  1487. if attack==false and Super == true then
  1488. 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)
  1489. 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)
  1490. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1491. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1492. 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)
  1493. 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)
  1494.  
  1495.  
  1496. end
  1497. end
  1498. elseif torvel<1 and hitfloor~=nil then
  1499. Anim="Idle"
  1500. if attack==false and Super == false then
  1501. 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)
  1502. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10-5*math.cos(sine/10)),math.rad(0),math.rad(0)),.2)
  1503. 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)
  1504. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1505. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-22),math.rad(90),math.rad(0)),.2)
  1506. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(8),math.rad(-90),math.rad(0)),.2)
  1507.  
  1508. else
  1509.  
  1510. if attack==false and Super == true then
  1511. 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)
  1512. 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)
  1513. 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)
  1514. 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)
  1515. 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)
  1516. 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)
  1517.  
  1518. end
  1519. end
  1520. elseif torvel>2 and torvel<140 and hitfloor~=nil then
  1521. Anim="Walk"
  1522. if attack==false and Super == false then
  1523. 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)
  1524. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1525. 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)
  1526. 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)
  1527. 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)
  1528. 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)
  1529.  
  1530.  
  1531.  
  1532. else
  1533.  
  1534.  
  1535. if attack==false and Super == true then
  1536. 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)
  1537. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1538. 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)
  1539. 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)
  1540. 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)
  1541. 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)
  1542.  
  1543.  
  1544. end
  1545. end
  1546. elseif torvel>=141 and torvel<700 and hitfloor~=nil then
  1547. Anim="Run"
  1548. if attack==false and Super == false then
  1549. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  1550. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
  1551. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
  1552. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
  1553. 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)
  1554. 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)
  1555.  
  1556. else
  1557.  
  1558.  
  1559. if attack==false and Super == true then
  1560. 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)
  1561. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-60),math.rad(0),math.rad(0)),.2)
  1562. 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)
  1563. 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)
  1564. 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)
  1565. 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)
  1566. end
  1567. end
  1568. elseif torvel>=-141 and torvel<-700 and hitfloor~=nil then
  1569. Anim="Run2"
  1570. if attack==false and Super == false then
  1571. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  1572. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
  1573. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
  1574. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
  1575. 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)
  1576. 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)
  1577. end
  1578. end
  1579. end
  1580.  
  1581. if Anim == "Walk" then
  1582. if footsteps == false then
  1583. x2:Play()
  1584. footsteps = true
  1585. end
  1586. x.Pitch = 1.2
  1587. elseif Anim == "Idle" then
  1588. x:Stop()
  1589. x2:Stop()
  1590. footsteps = false
  1591. elseif Anim == "Fall" then
  1592. x:Stop()
  1593. x2:Stop()
  1594. footsteps = false
  1595. elseif Anim == "Jump" then
  1596. x:Stop()
  1597. x2:Stop()
  1598. footsteps = false
  1599. elseif Anim == "Run" then
  1600. x.Pitch = 1.8
  1601. if footsteps == false then
  1602. x:Play()
  1603. footsteps = true
  1604. end
  1605. end
  1606. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement