Dark_EccentricYT

Untitled

Feb 26th, 2018
4,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.24 KB | None | 0 0
  1. --[[KillerDarkness0105's/Codex#6685 Sonic Yo-yo script i hope you enjoy :D]]--
  2.  
  3. -- Yes if you want this to be Yoyo's yoyo or some people just call it hyuns yoyo then feel free to call it that.
  4.  
  5. -- also added a function just go to this (local Yoyo = false) and put true (local Yoyo = true) and then change this to your name
  6.  
  7. local Yourname = "0"
  8.  
  9. -- Thanks to the Character Yoyo made by Hyun for giving me this idea :)
  10.  
  11. --Yoyo Model by Fenrier and also thanks for the welds.
  12.  
  13. --[[side note. This yoyo isn't animated by the string. Its fully animated on its own. To see it just go to the idle animation and look for this
  14.  
  15.  
  16. --wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
  17. wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
  18. this is unanimated.
  19.  
  20.  
  21.  
  22. wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
  23. --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
  24. this is animated.
  25.  
  26. ]]--
  27.  
  28. --[[ The Yo-yo's Bio.
  29.  
  30.  
  31. The Air grab.
  32. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  33. This yo-yo isn't just an ordinary yo-yo. This yo-yo is a very special and deadly yo-yo. It can grapple the air using the wind to keep it in the air long enough to evade.
  34.  
  35. It pulls you toward it getting you away from danger and most times might even save your life.
  36. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  37.  
  38. Why the yo-yo glows.
  39. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  40. The yo-yo also uses a "Micro Energy Generator" which allows the yo-yo to spin so fast it does MAJOR damage to your opponent.
  41.  
  42. Thats why also the reason the yo-yo and string have blue tints and glow blue.
  43. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  44.  
  45. The yoyo's name.
  46. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  47. The Sonic Yo-Yo.
  48. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  49.  
  50.  
  51.  
  52. Attacks and combos
  53. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  54. The yo-yo is a very light very deadly weapon meaning you can combo and damage your opponents from far away and still do lots of damage.
  55.  
  56. But you must remember. Speed is key here. You must rely on your speed to evade and dodge attacks.
  57.  
  58. You are very skilled in hand to hand combat but it doesn't do as much damage as the yo-yo will.
  59.  
  60. The yo-yo's speed can reach up to 7000mph and can cut through very tough objects. Sometimes even killing or slicing an opponent in one hit.
  61.  
  62. The yo-yo also has very lethal attacks. It can explode using the "Exploder Chip" inside the yo-yo. Dealing almost Tons to One shot attacks. Though this takes time for you to do so you may want to look for an opening first. This attack also leaves you vulnerable while in the air.
  63.  
  64. Since your so strong and skilled at fighting you also get a 600 hp boost so 100+600 = 700hp.
  65. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  66.  
  67.  
  68. Yo-yo stick figure.
  69. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  70.  
  71. http://stickpage.wikia.com/wiki/Yoyo
  72.  
  73. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  74.  
  75.  
  76.  
  77. Hyun's youtube
  78. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  79.  
  80. https://www.youtube.com/channel/UCpuj2Op5x9NuKbw3HaOEfjA
  81.  
  82. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  83.  
  84.  
  85.  
  86.  
  87. Attack keys.
  88. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  89.  
  90. C = Air Grapple
  91. E = Throw
  92. R = YoyoEvade -2 sec cooldown
  93. T = Explosion attack -7 sec cooldown
  94. F = Dash -3 sec cooldown
  95. Shift = Run
  96.  
  97. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  98.  
  99.  
  100.  
  101. ]]--
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111. function FindNearestTorso(Position, Distance, SinglePlayer)
  112. if SinglePlayer then
  113. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  114. end
  115. local List = {}
  116. for i, v in pairs(workspace:GetChildren()) do
  117. if v:IsA("Model") then
  118. if v:findFirstChild("Torso") then
  119. if v ~= Character then
  120. if (v.Torso.Position - Position).magnitude <= Distance then
  121. table.insert(List, v)
  122. end
  123. end
  124. end
  125. end
  126. end
  127. return List
  128. end
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. Player=game:GetService("Players").LocalPlayer
  141. Character=Player.Character
  142. PlayerGui=Player.PlayerGui
  143. Backpack=Player.Backpack
  144. Torso=Character.Torso
  145. Head=Character.Head
  146. Humanoid=Character.Humanoid
  147. m=Instance.new('Model',Character)
  148. LeftArm=Character["Left Arm"]
  149. LeftLeg=Character["Left Leg"]
  150. RightArm=Character["Right Arm"]
  151. RightLeg=Character["Right Leg"]
  152. LS=Torso["Left Shoulder"]
  153. LH=Torso["Left Hip"]
  154. RS=Torso["Right Shoulder"]
  155. RH=Torso["Right Hip"]
  156. Face = Head.face
  157. Neck=Torso.Neck
  158. it=Instance.new
  159. attacktype=1
  160. vt=Vector3.new
  161. cf=CFrame.new
  162. bc = BrickColor.new
  163. br = BrickColor.random
  164. it = Instance.new
  165. euler=CFrame.fromEulerAnglesXYZ
  166. angles=CFrame.Angles
  167. cloaked=false
  168. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  169. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  170. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  171. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  172. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  173. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  174. RootPart=Character.HumanoidRootPart
  175. RootJoint=RootPart.RootJoint
  176. RootCF=euler(-1.57,0,3.14)
  177. attack = false
  178. attackdebounce = false
  179. equipped=false
  180. trispeed=.2
  181. attackmode='none'
  182. local idle=0
  183. local Anim="Idle"
  184. local Effects={}
  185. local origcolor = BrickColor.new("Toothpaste",White)
  186. local evade = false
  187. local attackcooldown = false
  188. local evadecooldown = false
  189. local Yoyo = false
  190. local Grabbed = false
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music
  201. music.Volume = .55
  202. music.SoundId = "rbxassetid://611389938"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938
  203. music.Looped = true
  204. music:Play()
  205.  
  206.  
  207.  
  208. Humanoid.Animator.Parent = nil
  209. Character.Animate.Parent = nil
  210.  
  211.  
  212. if Character:findFirstChild("Yoyo",true) ~= nil then
  213. Character:findFirstChild("Yoyo",true).Parent = nil
  214. end
  215.  
  216. function RemoveOutlines(part)
  217. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  218. end
  219.  
  220.  
  221.  
  222.  
  223.  
  224. function lerp(a, b, t) -- Linear interpolation
  225. return a + (b - a)*t
  226. end
  227.  
  228. function slerp(a, b, t) --Spherical interpolation
  229. dot = a:Dot(b)
  230. if dot > 0.99999 or dot < -0.99999 then
  231. return t <= 0.5 and a or b
  232. else
  233. r = math.acos(dot)
  234. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  235. end
  236. end
  237.  
  238. function matrixInterpolate(a, b, t)
  239. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  240. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  241. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  242. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  243. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  244. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  245. local t = v1:Dot(v2)
  246. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  247. return CFrame.new()
  248. end
  249. return CFrame.new(
  250. v0.x, v0.y, v0.z,
  251. v1.x, v1.y, v1.z,
  252. v2.x, v2.y, v2.z,
  253. v3.x, v3.y, v3.z)
  254. end
  255.  
  256. function genWeld(a,b)
  257. local w = Instance.new("Weld",a)
  258. w.Part0 = a
  259. w.Part1 = b
  260. return w
  261. end
  262. function weld(a, b)
  263. local weld = Instance.new("Weld")
  264. weld.Name = "W"
  265. weld.Part0 = a
  266. weld.Part1 = b
  267. weld.C0 = a.CFrame:inverse() * b.CFrame
  268. weld.Parent = a
  269. return weld;
  270. end
  271.  
  272. function Lerp(c1,c2,al)
  273. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  274. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  275. for i,v in pairs(com1) do
  276. com1[i] = v+(com2[i]-v)*al
  277. end
  278. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  279. end
  280.  
  281.  
  282. function clerp(a,b,t)
  283. local qa = {QuaternionFromCFrame(a)}
  284. local qb = {QuaternionFromCFrame(b)}
  285. local ax, ay, az = a.x, a.y, a.z
  286. local bx, by, bz = b.x, b.y, b.z
  287. local _t = 1-t
  288. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  289. end
  290.  
  291. function QuaternionFromCFrame(cf)
  292. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  293. local trace = m00 + m11 + m22
  294. if trace > 0 then
  295. local s = math.sqrt(1 + trace)
  296. local recip = 0.5/s
  297. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  298. else
  299. local i = 0
  300. if m11 > m00 then
  301. i = 1
  302. end
  303. if m22 > (i == 0 and m00 or m11) then
  304. i = 2
  305. end
  306. if i == 0 then
  307. local s = math.sqrt(m00-m11-m22+1)
  308. local recip = 0.5/s
  309. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  310. elseif i == 1 then
  311. local s = math.sqrt(m11-m22-m00+1)
  312. local recip = 0.5/s
  313. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  314. elseif i == 2 then
  315. local s = math.sqrt(m22-m00-m11+1)
  316. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  317. end
  318. end
  319. end
  320.  
  321. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  322. local xs, ys, zs = x + x, y + y, z + z
  323. local wx, wy, wz = w*xs, w*ys, w*zs
  324. local xx = x*xs
  325. local xy = x*ys
  326. local xz = x*zs
  327. local yy = y*ys
  328. local yz = y*zs
  329. local zz = z*zs
  330. 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))
  331. end
  332.  
  333. function QuaternionSlerp(a, b, t)
  334. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  335. local startInterp, finishInterp;
  336. if cosTheta >= 0.0001 then
  337. if (1 - cosTheta) > 0.0001 then
  338. local theta = math.acos(cosTheta)
  339. local invSinTheta = 1/math.sin(theta)
  340. startInterp = math.sin((1-t)*theta)*invSinTheta
  341. finishInterp = math.sin(t*theta)*invSinTheta
  342. else
  343. startInterp = 1-t
  344. finishInterp = t
  345. end
  346. else
  347. if (1+cosTheta) > 0.0001 then
  348. local theta = math.acos(-cosTheta)
  349. local invSinTheta = 1/math.sin(theta)
  350. startInterp = math.sin((t-1)*theta)*invSinTheta
  351. finishInterp = math.sin(t*theta)*invSinTheta
  352. else
  353. startInterp = t-1
  354. finishInterp = t
  355. end
  356. end
  357. 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
  358. end
  359.  
  360. --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)
  361.  
  362. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  363. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  364. end
  365.  
  366.  
  367. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  368. local fp = it("Part")
  369. fp.formFactor = formfactor
  370. fp.Parent = parent
  371. fp.Reflectance = reflectance
  372. fp.Transparency = transparency
  373. fp.CanCollide = false
  374. fp.Locked=true
  375. fp.BrickColor = brickcolor
  376. fp.Name = name
  377. fp.Size = size
  378. fp.Position = Torso.Position
  379. fp.BottomSurface="Smooth"
  380. fp.TopSurface="Smooth"
  381. fp:BreakJoints()
  382. return fp
  383. end
  384.  
  385. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  386. local mesh = it(Mesh)
  387. mesh.Parent = part
  388. if Mesh=="SpecialMesh" then
  389. mesh.MeshType = meshtype
  390. mesh.MeshId = meshid
  391. end
  392. mesh.Offset=offset
  393. mesh.Scale=scale
  394. return mesh
  395. end
  396.  
  397. function weld(parent,part0,part1,c0)
  398. local weld = it("Weld")
  399. weld.Parent = parent
  400. weld.Part0 = part0
  401. weld.Part1 = part1
  402. weld.C0 = c0
  403. return weld
  404. end
  405.  
  406.  
  407.  
  408. --save shoulders
  409. RSH, LSH=nil, nil
  410. --welds
  411. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  412. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  413. LH=Torso["Left Hip"]
  414. RH=Torso["Right Hip"]
  415. TorsoColor=Torso.BrickColor
  416. function NoOutline(Part)
  417. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  418. end
  419. player=Player
  420. ch=Character
  421. RSH=ch.Torso["Right Shoulder"]
  422. LSH=ch.Torso["Left Shoulder"]
  423. --
  424. RSH.Parent=nil
  425. LSH.Parent=nil
  426. --
  427. RW.Name="Right Shoulder"
  428. RW.Part0=ch.Torso
  429. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  430. RW.C1=cf(0, 0.5, 0)
  431. RW.Part1=ch["Right Arm"]
  432. RW.Parent=ch.Torso
  433. --
  434. LW.Name="Left Shoulder"
  435. LW.Part0=ch.Torso
  436. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  437. LW.C1=cf(0, 0.5, 0)
  438. LW.Part1=ch["Left Arm"]
  439. LW.Parent=ch.Torso
  440.  
  441.  
  442. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  443. local wld = Instance.new("Weld", wp1)
  444. wld.Part0 = wp0
  445. wld.Part1 = wp1
  446. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  447. end
  448.  
  449.  
  450. newWeld(RootPart, Torso, 0, -1, 0)
  451. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  452. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  453. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  454. newWeld(Torso, RightLeg, 0.5, -1, 0)
  455. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  456.  
  457. Player=game:GetService('Players').LocalPlayer
  458. Character=Player.Character
  459. mouse=Player:GetMouse()
  460. m=Instance.new('Model',Character)
  461.  
  462.  
  463. local function weldBetween(a, b)
  464. local weldd = Instance.new("ManualWeld")
  465. weldd.Part0 = a
  466. weldd.Part1 = b
  467. weldd.C0 = CFrame.new()
  468. weldd.C1 = b.CFrame:inverse() * a.CFrame
  469. weldd.Parent = a
  470. return weldd
  471. end
  472.  
  473. ArtificialHB = Instance.new("BindableEvent", script)
  474. ArtificialHB.Name = "Heartbeat"
  475.  
  476. script:WaitForChild("Heartbeat")
  477.  
  478. frame = 1 / 60
  479. tf = 0
  480. allowframeloss = false
  481. tossremainder = false
  482. lastframe = tick()
  483. script.Heartbeat:Fire()
  484.  
  485. game:GetService("RunService").Heartbeat:connect(function(s, p)
  486. tf = tf + s
  487. if tf >= frame then
  488. if allowframeloss then
  489. script.Heartbeat:Fire()
  490. lastframe = tick()
  491. else
  492. for i = 1, math.floor(tf / frame) do
  493. script.Heartbeat:Fire()
  494. end
  495. lastframe = tick()
  496. end
  497. if tossremainder then
  498. tf = 0
  499. else
  500. tf = tf - frame * math.floor(tf / frame)
  501. end
  502. end
  503. end)
  504.  
  505. function swait(num)
  506. if num == 0 or num == nil then
  507. ArtificialHB.Event:wait()
  508. else
  509. for i = 0, num do
  510. ArtificialHB.Event:wait()
  511. end
  512. end
  513. end
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. local bg = it("BodyGyro")
  524. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  525. bg.P = 20e+003
  526. bg.Parent = nil
  527.  
  528.  
  529.  
  530.  
  531. local modelzorz = Instance.new("Model")
  532. modelzorz.Parent = Character
  533. modelzorz.Name = "Yoyo"
  534.  
  535. local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
  536. prt1.CanCollide=true
  537. prt1.Material = "Neon"
  538. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
  539.  
  540.  
  541.  
  542.  
  543.  
  544. local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6))
  545. numb=-0.15
  546. for i=1,2 do
  547. local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  548. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  549. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
  550. numb2=0
  551. for i=1,16 do
  552. local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
  553. local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
  554. local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
  555. prt3.Material = "Neon"
  556. wld3.C1=euler(0,numb2,0)
  557. --numb2=numb2+0.785
  558. numb2=numb2+0.3925
  559. end
  560. numb=numb+0.3
  561. end
  562.  
  563. local string1=part(3,modelzorz,0,0,BrickColor.new("Toothpaste"),"String1",vt(1,1,1))
  564. local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
  565. local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0))
  566. local string2=part(3,modelzorz,0,0,BrickColor.new("White"),"String2",vt(1,1,1))
  567. local stringmsh2=mesh("CylinderMesh",string2,"","",vt(0,0,0),vt(0.1,1,0.1))
  568. local stringwld2=weld(string2,string2,prt13,euler(0,0,0)*cf(0,0,0))
  569. string1.Material = "Neon"
  570. string2.Material = "Neon"
  571. local strmdl = "Arrow"
  572. coroutine.resume(coroutine.create(function()
  573. repeat
  574. wait(-10)
  575. local top = RightArm.CFrame*cf(0,-1,0)
  576. local bottom = prt1.CFrame
  577. local oristrpos
  578. if strmdl == "Bow" then
  579. oristrpos = CFrame.new((top.p+bottom.p)/2)
  580. elseif strmdl == "Arrow" then
  581. oristrpos = prt1.CFrame
  582. end
  583. local mg1 = (top.p - oristrpos.p).magnitude
  584. local mg2 = (bottom.p - oristrpos.p).magnitude
  585.  
  586. string1.Size = Vector3.new(.7,mg1,.7)
  587. string1.Anchored=true
  588. string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
  589. string1.Transparency = 0.65
  590. string2.Size = Vector3.new(.5,mg1,.5)
  591. string2.Anchored=true
  592. string2.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
  593. --[[
  594. --stringmsh1.Scale=vt(0.1,1,0.1)
  595. stringmsh1.Scale=vt(0.1,mg1,0.1)
  596. --cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  597. cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  598. hit2=string1
  599. hit=prt1
  600. stringwld1.Parent=string1
  601. stringwld1.Part0=hit2
  602. stringwld1.Part1=hit
  603. HitPos=cff.p
  604. local CJ = CFrame.new(HitPos)
  605. local C0=cff:inverse() *CJ
  606. local C1=hit.CFrame:inverse() * CJ
  607. stringwld1.C0=C0
  608. stringwld1.C1=C1
  609. ]]
  610. until false
  611. end))
  612.  
  613.  
  614. if (script.Parent.className ~= "HopperBin") then
  615. Tool = Instance.new("HopperBin")
  616. Tool.Parent = Backpack
  617. Tool.Name = "The Sonic Yo-yo."
  618. script.Parent = Tool
  619. end
  620. Bin = script.Parent
  621.  
  622.  
  623.  
  624.  
  625. so = function(id,par,vol,pit)
  626. coroutine.resume(coroutine.create(function()
  627. local sou = Instance.new("Sound",par or workspace)
  628. sou.Volume=vol
  629. sou.Pitch=pit or 1
  630. sou.SoundId=id
  631. wait()
  632. sou:play()
  633. wait(6)
  634. sou:Remove()
  635. end))
  636. end
  637.  
  638. function unequipweld()
  639. wld1.Part1=Torso
  640. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  641.  
  642.  
  643. end
  644.  
  645. function equipweld()
  646. wld1.Part1=RightArm
  647. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  648. end
  649.  
  650. function hideanim()
  651. equipped=false
  652. attacktype=1
  653. swait()
  654. bg.Parent=nil
  655.  
  656.  
  657. so("http://www.roblox.com/asset/?id=270239880", prt1, 1, 1)
  658. unequipweld()
  659. end
  660.  
  661. function equipanim()
  662. equipped=true
  663. swait()
  664. equipweld()
  665. attacktype=1
  666. --[[
  667. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  668. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  669. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  670. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  671. ]]--
  672. end
  673.  
  674. function s(mouse)
  675. unsheathed = true
  676. player = Player
  677. ch = Character
  678. RSH = ch.Torso["Right Shoulder"]
  679. LSH = ch.Torso["Left Shoulder"]
  680. --
  681. RSH.Parent = nil
  682. LSH.Parent = nil
  683. --
  684. RW.Part0 = ch.Torso
  685. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.1)
  686. RW.C1 = CFrame.new(0, 0.5, 0)
  687. RW.Part1 = ch["Right Arm"]
  688. RW.Parent = ch.Torso
  689. --_G.R = RW
  690. --
  691. LW.Part0 = ch.Torso
  692. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.1)
  693. LW.C1 = CFrame.new(0, 0.5, 0)
  694. LW.Part1 = ch["Left Arm"]
  695. LW.Parent = ch.Torso
  696. --_G.L = LW
  697. --
  698. equipanim()
  699. swait()
  700.  
  701. so("http://www.roblox.com/asset/?id=573105336", prt1, 1, 1)
  702.  
  703. end
  704.  
  705.  
  706.  
  707.  
  708. function ds(mouse)
  709. hideanim()
  710. swait()
  711. RW.Parent = nil
  712. LW.Parent = nil
  713. RSH.Parent = player.Character.Torso
  714. LSH.Parent = player.Character.Torso
  715. end
  716.  
  717.  
  718.  
  719. Bin.Selected:connect(s)
  720. Bin.Deselected:connect(ds)
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728. local particleemitter2 = Instance.new("ParticleEmitter", prt1)
  729. particleemitter2.VelocitySpread = 180
  730. particleemitter2.Lifetime = NumberRange.new(1)
  731. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  732. particleemitter2.Speed = NumberRange.new(1.5)
  733. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(1, 1)})
  734. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  735. particleemitter2.Rate = 0 -- change this is your pc is too trash xd
  736. particleemitter2.Rotation = NumberRange.new(-45, 45)
  737. --particleemitter2.Acceleration = Vector3.new(0,3,0)
  738. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  739. particleemitter2.LightEmission = 0.8
  740. particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
  741.  
  742. local light = Instance.new("PointLight",prt1)
  743.  
  744. particleemitter2.Enabled = true
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751. if Yoyo == true then
  752.  
  753. m = game.Players.LocalPlayer
  754. char = m.Character
  755. local txt = Instance.new("BillboardGui", char)
  756. txt.Adornee = char .Head
  757. txt.Name = "_status"
  758. txt.Size = UDim2.new(2, 0, 1.2, 0)
  759. txt.StudsOffset = Vector3.new(-9, 8, 0)
  760. local text = Instance.new("TextLabel", txt)
  761. text.Size = UDim2.new(10, 0, 7, 0)
  762. text.FontSize = "Size24"
  763. text.TextScaled = true
  764. text.TextTransparency = 0
  765. text.BackgroundTransparency = 1
  766. text.TextTransparency = 0
  767. text.TextStrokeTransparency = 0
  768. text.Font = "Bodoni"
  769. text.TextStrokeColor3 = Color3.new(0,0,0)
  770.  
  771. v=Instance.new("Part")
  772. v.Name = "ColorBrick"
  773. v.Parent=m.Character
  774. v.FormFactor="Symmetric"
  775. v.Anchored=true
  776. v.CanCollide=false
  777. v.BottomSurface="Smooth"
  778. v.TopSurface="Smooth"
  779. v.Size=Vector3.new(10,5,3)
  780. v.Transparency=1
  781. v.CFrame=char.Torso.CFrame
  782. v.BrickColor=BrickColor.new("Really black")
  783. v.Transparency=1
  784. text.TextColor3 = Color3.new(0,0,255)
  785. v.Shape="Block"
  786. text.Text = "Yoyo"
  787.  
  788.  
  789.  
  790. for _,v in pairs(m:children()) do
  791. if v:IsA("Part") then
  792. v.CanCollide = false
  793. end
  794. end
  795. end
  796. if Character.Name == Yourname then
  797. for _,v in pairs(Character:children()) do
  798. if v:IsA("Accessory") then
  799. v:Remove()
  800. end
  801. end
  802.  
  803.  
  804.  
  805. Head.face.Texture = "rbxassetid://0"
  806. Character["Body Colors"].HeadColor = BrickColor.new("Navy blue")
  807. Character["Body Colors"].TorsoColor = BrickColor.new("Navy blue")
  808. Character["Body Colors"].LeftArmColor = BrickColor.new("Navy blue")
  809. Character["Body Colors"].RightArmColor = BrickColor.new("Navy blue")
  810. Character["Body Colors"].LeftLegColor = BrickColor.new("Navy blue")
  811. Character["Body Colors"].RightLegColor = BrickColor.new("Navy blue")
  812. ----------------------------------------------------
  813. ypcall(function()
  814. shirt = Instance.new("Shirt", char)
  815. shirt.Name = "Shirt"
  816. pants = Instance.new("Pants", char)
  817. pants.Name = "Pants"
  818. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
  819. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
  820. end)
  821.  
  822. end
  823.  
  824.  
  825.  
  826.  
  827.  
  828. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  829. if hit.Parent==nil then
  830. return
  831. end
  832. h=hit.Parent:FindFirstChild("Humanoid")
  833. for _,v in pairs(hit.Parent:children()) do
  834. if v:IsA("Humanoid") then
  835. h=v
  836. end
  837. end
  838. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  839. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  840. end
  841. if hit.Parent.className=="Hat" then
  842. hit=hit.Parent.Parent:findFirstChild("Head")
  843. end
  844. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  845. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  846. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  847. return
  848. end]]
  849. -- hs(hit,1.2)
  850. c=Instance.new("ObjectValue")
  851. c.Name="creator"
  852. c.Value=game:service("Players").LocalPlayer
  853. c.Parent=h
  854. game:GetService("Debris"):AddItem(c,.5)
  855. Damage=math.random(minim,maxim)
  856. -- h:TakeDamage(Damage)
  857. blocked=false
  858. block=hit.Parent:findFirstChild("Block")
  859. if block~=nil then
  860. print(block.className)
  861. if block.className=="NumberValue" then
  862. if block.Value>0 then
  863. blocked=true
  864. if decreaseblock==nil then
  865. block.Value=block.Value-1
  866. end
  867. end
  868. end
  869. if block.className=="IntValue" then
  870. if block.Value>0 then
  871. blocked=true
  872. if decreaseblock~=nil then
  873. block.Value=block.Value-1
  874. end
  875. end
  876. end
  877. end
  878. if blocked==false then
  879. -- h:TakeDamage(Damage)
  880. h.Health=h.Health-Damage
  881. else
  882. h.Health=h.Health-(Damage/2)
  883. end
  884. h.Health=h.Health-Damage
  885.  
  886.  
  887.  
  888. if Type=="Knockdown" then
  889. hum=hit.Parent.Humanoid
  890. hum.PlatformStand=true
  891. coroutine.resume(coroutine.create(function(HHumanoid)
  892. swait(5)
  893. HHumanoid.PlatformStand=false
  894. end),hum)
  895.  
  896. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  897. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  898. local bodvol=Instance.new("BodyVelocity")
  899. bodvol.velocity=angle*knockback
  900. bodvol.P=5000
  901. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  902. bodvol.Parent=hit
  903. rl=Instance.new("BodyAngularVelocity")
  904. rl.P=30000
  905. rl.maxTorque=Vector3.new(0,10,10)*5000
  906. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
  907. rl.Parent=hit
  908. game:GetService("Debris"):AddItem(bodvol,.5)
  909. game:GetService("Debris"):AddItem(rl,.5)
  910. elseif Type=="Normal" then
  911. vp=Instance.new("BodyVelocity")
  912. vp.P=500
  913. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  914. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  915. if KnockbackType==1 then
  916. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  917. elseif KnockbackType==2 then
  918. vp.velocity=Property.CFrame.lookVector*knockback
  919. end
  920. if knockback>0 then
  921. vp.Parent=hit.Parent.Torso
  922. end
  923. game:GetService("Debris"):AddItem(vp,.5)
  924. elseif Type=="Up" then
  925. local bodyVelocity=Instance.new("BodyVelocity")
  926. bodyVelocity.velocity=vt(0,40,0)
  927. bodyVelocity.P=1000
  928. bodyVelocity.maxForce=Vector3.new(0, 1e+009, 0)--1e+009
  929. bodyVelocity.Parent=hit
  930. game:GetService("Debris"):AddItem(bodyVelocity,1)
  931. rl=Instance.new("BodyAngularVelocity")
  932. rl.P=3000
  933. rl.maxTorque=Vector3.new(5000,5000,5000)*50000
  934. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  935. rl.Parent=hit
  936. game:GetService("Debris"):AddItem(rl,.5)
  937. elseif Type=="Slam" then
  938. local bodyVelocity2=Instance.new("BodyVelocity")
  939. bodyVelocity2.velocity=vt(0,-4,0)
  940. bodyVelocity2.P=1000
  941. bodyVelocity2.maxForce=Vector3.new(0,-1e+009,0)
  942. bodyVelocity2.Parent=hit
  943. game:GetService("Debris"):AddItem(bodyVelocity2,1)
  944. rl2=Instance.new("BodyAngularVelocity")
  945. rl2.P=3000
  946. rl2.maxTorque=Vector3.new(5000,5000,5000)*50000
  947. rl2.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  948. rl2.Parent=hit
  949. game:GetService("Debris"):AddItem(rl2,.5)
  950. elseif Type=="Snare" then
  951. bp=Instance.new("BodyPosition")
  952. bp.P=2000
  953. bp.D=100
  954. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  955. bp.position=hit.Parent.Torso.Position
  956. bp.Parent=hit.Parent.Torso
  957. game:GetService("Debris"):AddItem(bp,1)
  958. elseif Type=="Target" then
  959. if Targetting==false then
  960. ZTarget=hit.Parent.Torso
  961. coroutine.resume(coroutine.create(function(Part)
  962. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  963. swait(5)
  964. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  965. end),ZTarget)
  966. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  967. targetgui=Instance.new("BillboardGui")
  968. targetgui.Parent=ZTarget
  969. targetgui.Size=UDim2.new(10,100,10,100)
  970. targ=Instance.new("ImageLabel")
  971. targ.Parent=targetgui
  972. targ.BackgroundTransparency=1
  973. targ.Image="rbxassetid://4834067"
  974. targ.Size=UDim2.new(1,0,1,0)
  975. cam.CameraType="Scriptable"
  976. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  977. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  978. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  979. Targetting=true
  980. RocketTarget=ZTarget
  981. for i=1,Property do
  982. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  983. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  984. swait()
  985. end
  986. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  987. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  988. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  989. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  990. end
  991. Targetting=false
  992. RocketTarget=nil
  993. targetgui.Parent=nil
  994. cam.CameraType="Custom"
  995. end
  996. end
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005. debounce=Instance.new("BoolValue")
  1006. debounce.Name="DebounceHit"
  1007. debounce.Parent=hit.Parent
  1008. debounce.Value=true
  1009. game:GetService("Debris"):AddItem(debounce,Delay)
  1010. c=Instance.new("ObjectValue")
  1011. c.Name="creator"
  1012. c.Value=Player
  1013. c.Parent=h
  1014. game:GetService("Debris"):AddItem(c,.5)
  1015. CRIT=false
  1016. hitDeb=true
  1017. AttackPos=6
  1018. end
  1019. end
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033. function Dash()
  1034. evadecooldown = true
  1035. attack = true
  1036. so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
  1037. for i = 0,1,0.06 do
  1038. swait()
  1039. RootPart.Velocity = RootPart.CFrame.lookVector * 240
  1040. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
  1041. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1042. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(80), math.rad(0), math.rad(-50)),.2)
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1044. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
  1045. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
  1046. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1047. end
  1048. attack = false
  1049. wait(3)
  1050. evadecooldown = false
  1051. end
  1052.  
  1053.  
  1054.  
  1055. function Dash2()
  1056. attack = true
  1057. evadecooldown = true
  1058. so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
  1059. for i = 0,1,0.06 do
  1060. swait()
  1061. RootPart.Velocity = RootPart.CFrame.lookVector * 240
  1062. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
  1063. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1064. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.2)
  1065. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1066. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
  1067. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
  1068. end
  1069. attack = false
  1070. wait(3)
  1071. evadecooldown = false
  1072. end
  1073.  
  1074.  
  1075. function attackone()
  1076.  
  1077. attack = true
  1078.  
  1079. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
  1080. so("http://www.roblox.com/asset/?id=821400988", LeftArm, 1, 1)
  1081. for i = 0,1,0.10 do
  1082. swait()
  1083. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1084. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1085. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1086. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
  1087. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1088. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1089.  
  1090. end
  1091. con5:disconnect()
  1092. attack = false
  1093. end
  1094.  
  1095.  
  1096. function throw()
  1097.  
  1098. attack = true
  1099. local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,23,37,math.random(5,15),"Normal",RootPart,.2,1) end)
  1100. so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
  1101. for i = 0,1,0.12 do
  1102. swait()
  1103. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1104. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1105. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1106. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1107. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1108. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1109. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1110. --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
  1111. end
  1112.  
  1113. so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
  1114. for i = 0,4,0.06 do
  1115. swait()
  1116. so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
  1117. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1118. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1119. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1120. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1121. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1122. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1123. wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
  1124. end
  1125. for i = 0,1,0.12 do
  1126. swait()
  1127. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1128. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1129. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1130. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1131. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1132. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1133. wld1.C0=euler(0,0,1.57)*cf(0,15.1-14*i,0)
  1134. end
  1135. con5:disconnect()
  1136. attack = false
  1137.  
  1138. end
  1139.  
  1140.  
  1141. function attackoney()
  1142. local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,17,24,math.random(1,1),"Normal",RootPart,.2,1) end)
  1143. so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
  1144. for i = 0,1,0.12 do
  1145. swait()
  1146. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1147. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1148. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1149. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1150. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1151. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1152. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1153. --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
  1154. end
  1155.  
  1156. so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
  1157. for i = 0,1.5,0.36 do
  1158. swait()
  1159. so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
  1160. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1161. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1162. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1163. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1164. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1165. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1166. wld1.C0=euler(0,0,1.57)*cf(0,1.1+1*i,0)
  1167. end
  1168. for i = 0,1,0.16 do
  1169. swait()
  1170. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1171. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1172. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1173. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1174. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1175. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1176. wld1.C0=euler(0,0,1.57)*cf(0,2.1-1*i,0)
  1177. end
  1178. attack = false
  1179.  
  1180. con5:disconnect()
  1181. end
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187. function attacktwoy()
  1188. attack = true
  1189. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,10,14,math.random(1,1),"Normal",RootPart,.2,1) end)
  1190. for i = 0,1,0.10 do
  1191. swait()
  1192. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.4)
  1193. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.2)
  1194. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1195. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.7) * angles(math.rad(0), math.rad(-40), math.rad(-90)),.2)
  1196. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1197. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1198. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1199. end
  1200.  
  1201.  
  1202. for i = 0,1,0.10 do
  1203. swait()
  1204. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1206. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1207. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
  1208. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1209. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1210. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1211. end
  1212. con5:disconnect()
  1213. attack = false
  1214.  
  1215. end
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224. function attackthreey()
  1225. attack = true
  1226. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  1227. so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 1, 1.3)
  1228. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,17,22,math.random(1,5),"Normal",RootPart,.2,1) end)
  1229. for i = 0,4.6,0.16 do
  1230. swait()
  1231. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
  1232. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
  1233. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1234. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1235. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
  1236. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
  1237. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1238. end
  1239. con5:disconnect()
  1240.  
  1241. attack = false
  1242.  
  1243. end
  1244.  
  1245.  
  1246.  
  1247. function YoyoEvade()
  1248. evade = true
  1249. Character.Humanoid.Jump = true
  1250. wait(0.6)
  1251. attack = true
  1252. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,57,82,math.random(1,5),"Knockdown",RootPart,.2,1) end)
  1253. for i = 0,3.5,0.06 do
  1254. --RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1255. swait()
  1256. so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
  1257. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0)), 0.4)
  1258. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1260. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1261. RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,0.20,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
  1262. LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-0.70,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
  1263. wld1.C0=euler(0,0,1.57)*cf(0,1.1+10*i,0)
  1264. end
  1265. wait(3)
  1266. for i = 0,4.6,0.16 do
  1267. swait()
  1268. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 0.5, 1.3)
  1269. so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 0.5, 1.3)
  1270. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
  1271. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
  1272. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1273. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1274. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
  1275. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
  1276. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1277. end
  1278. attack = false
  1279. Character.Humanoid.Jump = false
  1280. con5:disconnect()
  1281. wait(2)
  1282. evade = false
  1283.  
  1284. end
  1285.  
  1286.  
  1287. function fy()
  1288. attack = true
  1289. local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,34,42,math.random(1,5),"Up",RootPart,.2,1) end)
  1290. for i = 0,1.5,0.07 do
  1291. swait()
  1292. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
  1293. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  1294. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.7) * angles(math.rad(50), math.rad(-80), math.rad(-10)),.2)
  1295. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.3, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1296. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.2, -0.5) * CFrame.Angles(math.rad(20), math.rad(-3), math.rad(0)), 0.8)
  1297. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0.3) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(4)), 0.8)
  1298. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1299. end
  1300.  
  1301.  
  1302. for i = 0,1.7,0.13 do
  1303. so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
  1304. swait()
  1305. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
  1306. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40*i),math.rad(0),math.rad(0)),.2)
  1307. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90*i), math.rad(-80*i), math.rad(-40*i)),.2)
  1308. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1309. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
  1310. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
  1311. wld1.C0=euler(0,0,1.57)*cf(0,4.1*i,0)
  1312. end
  1313.  
  1314.  
  1315.  
  1316. for i = 0,1.7,0.13 do
  1317. swait()
  1318. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
  1319. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
  1320. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90), math.rad(-80), math.rad(-40)),.2)
  1321. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1322. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
  1323. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
  1324. wld1.C0=euler(0,0,1.57)*cf(0,4.1-3*i,0)
  1325. end
  1326.  
  1327.  
  1328. attack = false
  1329. con5:disconnect()
  1330. end
  1331.  
  1332.  
  1333.  
  1334.  
  1335. function grabattack()
  1336.  
  1337. attack = true
  1338.  
  1339. --local GGyro = Instance.new("BodyPosition")
  1340. local grab = nil
  1341. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 200)) do
  1342. if v:FindFirstChild('Torso') then
  1343. Grabbed = true
  1344. grab = v
  1345. end
  1346. end
  1347. so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
  1348. for i = 0,4,0.06 do
  1349. swait()
  1350. so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
  1351. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1352. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1353. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1354. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1355. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1356. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1357. wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
  1358. end
  1359. for i = 0, 1, 0.13 do
  1360. swait()
  1361. if Grabbed == true then
  1362. wld1.C0=euler(0,0,1.57)*cf(0,26.1-25*i,0)
  1363. grab.Humanoid.PlatformStand = true
  1364. --GGyro.position = Partss.Position
  1365. --GGyro.Parent = grab.Head
  1366. grab.Torso.CFrame = prt1.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1367. end
  1368.  
  1369. end
  1370.  
  1371. Grabbed = true
  1372. attack = false
  1373. end
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379. function attacktwo()
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385. attack = true
  1386.  
  1387. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
  1388. so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
  1389.  
  1390. for i = 0,1,0.10 do
  1391. swait()
  1392. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1393. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.2)
  1394. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1395. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1396. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1397. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.8)
  1398.  
  1399. end
  1400. con5:disconnect()
  1401. attack = false
  1402.  
  1403.  
  1404.  
  1405. end
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415. function attackthree()
  1416. attack = true
  1417. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Knockdown",RootPart,.2,1) end)
  1418. so("http://www.roblox.com/asset/?id=821400988", LeftLeg, 1, 1)
  1419.  
  1420. for i = 0,1,0.10 do
  1421. swait()
  1422. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-90), math.rad(0)), 0.4)
  1423. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(60)),.2)
  1424. RW.C0 = clerp(RW.C0, CFrame.new(.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(-90)),.2)
  1425. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1426. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(40), math.rad(-90)), 0.8)
  1427. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(30)), 0.8)
  1428.  
  1429. end
  1430. attack = false
  1431.  
  1432. con5:disconnect()
  1433.  
  1434.  
  1435.  
  1436. end
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444. function attackfour()
  1445.  
  1446. attack = true
  1447. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
  1448. so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
  1449.  
  1450. for i = 0,1,0.10 do
  1451. swait()
  1452. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
  1453. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
  1454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1455. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -1.5) * angles(math.rad(90), math.rad(-80), math.rad(-60)),.2)
  1456. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
  1457. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(-0), math.rad(0)), 0.8)
  1458. end
  1459. con5:disconnect()
  1460.  
  1461. attack = false
  1462.  
  1463. end
  1464.  
  1465. function attackfive()
  1466.  
  1467. attack = true
  1468. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
  1469. so("http://www.roblox.com/asset/?id=821400988", RightLeg, 1, 1)
  1470. for i = 0,1,0.10 do
  1471. swait()
  1472. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(0)), 0.4)
  1473. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
  1474. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1475. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  1476. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
  1477. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
  1478.  
  1479. end
  1480. con5:disconnect()
  1481. attack = false
  1482. end
  1483.  
  1484.  
  1485.  
  1486. function YoyoExplode()
  1487. attackcooldown = true
  1488. Character.Humanoid.Jump = true
  1489. wait(0.6)
  1490. attack = true
  1491. so("http://www.roblox.com/asset/?id=449247880", prt1, 1, 1)
  1492. for i = 0,4,0.12 do
  1493. swait()
  1494. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1495. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1496. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), 0, 0), 0.8)
  1497. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  1498. RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1499. LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1500. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
  1501. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1502. wld1.C0=clerp(wld1.C0,cf(0,-1.5,-2)*angles(math.rad(5+90*i),1.1,math.rad(0)),.2)
  1503. end
  1504.  
  1505. so("http://www.roblox.com/asset/?id=465940184", prt1, 1, 1)
  1506. for i = 0,4,0.12 do
  1507. swait()
  1508. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1509. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1510. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
  1511. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1512. RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1513. LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1515. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
  1516. wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
  1517. end
  1518. for i = 0,1.5,0.12 do
  1519. swait()
  1520. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1521. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1522. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
  1523. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1524. RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1525. LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1526. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1527. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
  1528. wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
  1529. end
  1530.  
  1531. for i = 1, 1 do
  1532.  
  1533. swait()
  1534. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1535. RootPart.Velocity = RootPart.CFrame.lookVector * 0
  1536. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
  1537. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1538. RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1539. LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1540. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1541. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
  1542. wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
  1543.  
  1544.  
  1545. so("http://www.roblox.com/asset/?id=895716446", prt1, 1, 1)
  1546.  
  1547. local S = Instance.new("Explosion",workspace)
  1548. S.Position = prt1.Position
  1549. S.BlastPressure = 5
  1550. S.BlastRadius = 15
  1551. S.ExplosionType = 2
  1552. end
  1553.  
  1554.  
  1555.  
  1556. numb=-0.15
  1557. for i=1,2 do
  1558. local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
  1559. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1560. prt1.CanCollide=true
  1561. prt1.Material = "Neon"
  1562. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
  1563. local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  1564. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  1565. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
  1566. numb2=0
  1567. for i=1,16 do
  1568. local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
  1569. local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
  1570. local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
  1571. prt3.Material = "Neon"
  1572. wld3.C1=euler(0,numb2,0)
  1573. --numb2=numb2+0.785
  1574. numb2=numb2+0.3925
  1575. end
  1576. numb=numb+0.3
  1577. end
  1578.  
  1579.  
  1580. for i = 0,4,0.12 do
  1581.  
  1582.  
  1583.  
  1584. swait()
  1585. RootPart.Velocity = RootPart.CFrame.lookVector * -140
  1586. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1587. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
  1588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1589. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(50)), 0.3)
  1590. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(-50)), 0.3)
  1591. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12), math.rad(0), math.rad(0)), 0.8)
  1592. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-3), math.rad(0)), 0.8)
  1593. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1594. end
  1595.  
  1596. attack = false
  1597. wait(7)
  1598. attackcooldown = false
  1599. end
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607. mouse.Button1Down:connect(function()
  1608. if attack==false and equipped == false then
  1609. if attacktype==1 then
  1610. attack=true
  1611. attacktype=2
  1612. attackone()
  1613. elseif attacktype==2 then
  1614. attack=true
  1615. attacktype=3
  1616. attacktwo()
  1617. elseif attacktype==3 then
  1618. attack=true
  1619. attacktype=4
  1620. attackthree()
  1621. elseif attacktype==4 then
  1622. attack=true
  1623. attacktype=5
  1624. attackfour()
  1625. elseif attacktype==5 then
  1626. attack=true
  1627. attacktype=1
  1628. attackfive()
  1629. end
  1630. end
  1631. end)
  1632.  
  1633.  
  1634.  
  1635.  
  1636. mouse.Button1Down:connect(function()
  1637. if attack==false and equipped == true then
  1638. if attacktype==1 then
  1639. attack=true
  1640. attacktype=2
  1641. attackoney()
  1642. elseif attacktype==2 then
  1643. attack=true
  1644. attacktype=3
  1645. attacktwoy()
  1646. elseif attacktype==3 then
  1647. attack=true
  1648. attacktype=4
  1649. attackthreey()
  1650. elseif attacktype==4 then
  1651. attack=true
  1652. attacktype=1
  1653. fy()
  1654. elseif attacktype==5 then
  1655. attack=true
  1656. attacktype=1
  1657. attackfivey()
  1658.  
  1659. end
  1660. end
  1661. end)
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667. function Grapple()
  1668.  
  1669. attack=true
  1670. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1671. for i = 0,1,0.03 do
  1672. swait()
  1673. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1674. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1675. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(90), math.rad(130), math.rad(90)),.2)
  1676. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.3, -.5) * angles(math.rad(60), math.rad(11), math.rad(70)),.2)
  1677. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
  1678. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1679. end
  1680. for i=0,1,0.1 do
  1681. swait()
  1682. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
  1683. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.2)
  1684. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1685. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1686.  
  1687. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  1688. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  1689. offset=offset/mag
  1690. end
  1691. wait(0.2)
  1692. so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.78)
  1693. prt1.Velocity=vt(0,0,0)
  1694. wld1.Parent=nil
  1695. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  1696. --[[local hit,pos = rayCast(prt1.Position,mouse.Hit.p,100,game)
  1697. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, mouse.Hit.p.unit * (100)), workspace)
  1698. print(pos)
  1699. print(hit)
  1700. baseprt.CFrame=CFrame.new(pos)]]
  1701. baseprt.CFrame=RightArm.CFrame*cf(0,-200,0)
  1702. fd=Instance.new("BodyPosition")
  1703. fd.P=200
  1704. fd.D=60
  1705. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1706. fd.position=baseprt.Position
  1707. fd.Parent=prt1
  1708. coroutine.resume(coroutine.create(function(BodyPos)
  1709. while fd.Parent~=nil do
  1710. wait()
  1711. end
  1712. end),fd)
  1713. coroutine.resume(coroutine.create(function()
  1714. wait(0.1)
  1715. con1=prt1.Touched:connect(function(hit)
  1716. so("http://roblox.com/asset/?id=214876666",prt1,1.4,1)
  1717. if hit.Name~="String1" then
  1718. fd.Parent=nil
  1719. prt1.Anchored=true
  1720. fddd=Instance.new("BodyPosition")
  1721. fddd.P=2000
  1722. fddd.D=600
  1723. fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1724. fddd.position=prt1.Position
  1725. fddd.Parent=RightArm
  1726. coroutine.resume(coroutine.create(function(BodyPos)
  1727. wait(1)
  1728. prt1.Anchored=false
  1729. wld1.Parent=RightArm
  1730. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1731. BodyPos.Parent=nil
  1732. end),fddd)
  1733. end
  1734. end)
  1735. end))
  1736. cond=prt1.Touched:connect(function(hit) Damagefunc(hit,10,20) end)
  1737. wait(2)
  1738. con1:disconnect()
  1739. coroutine.resume(coroutine.create(function(BodyPos)
  1740. for i=1,20 do
  1741. wait(0)
  1742. BodyPos.position=RightArm.Position
  1743. end
  1744. end),fd)
  1745. wait(1)
  1746. cond:disconnect()
  1747. fd.Parent=nil
  1748. wld1.Parent=RightArm
  1749. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1750. baseprt.Parent=nil
  1751. attack=false
  1752. end
  1753.  
  1754.  
  1755.  
  1756.  
  1757. mouse.KeyDown:connect(function(key)
  1758. if key == 'c' and attack == false and equipped == true then
  1759. Grapple()
  1760. end
  1761. end)
  1762. mouse.KeyDown:connect(function(key)
  1763. if key == 'e' and attack == false and equipped == true then
  1764. throw()
  1765. end
  1766. end)
  1767. mouse.KeyDown:connect(function(key)
  1768. if key == 'r' and attack == false and equipped == true and evade == false then
  1769. YoyoEvade()
  1770. end
  1771. end)
  1772.  
  1773.  
  1774. mouse.KeyDown:connect(function(key)
  1775. if key == 't' and attackcooldown == false and equipped == true and attack == false then
  1776. YoyoExplode()
  1777. end
  1778. end)
  1779.  
  1780.  
  1781.  
  1782. mouse.KeyDown:connect(function(key)
  1783. if key == 'f' and attack == false and equipped == true and evadecooldown == false then
  1784. Dash()
  1785. end
  1786. end)
  1787.  
  1788.  
  1789. mouse.KeyDown:connect(function(key)
  1790. if key == 'f' and attack == false and equipped == false and evadecooldown == false then
  1791. Dash2()
  1792. end
  1793. end)
  1794.  
  1795. mouse.KeyDown:connect(function(key)
  1796. if key == 'g' and attack == false and equipped == true then
  1797. grabattack()
  1798. end
  1799. end)
  1800.  
  1801.  
  1802. Character.Humanoid.MaxHealth = 700
  1803. Character.Humanoid.Health = 700
  1804. Character.Humanoid.WalkSpeed = 8
  1805. Character.Humanoid.JumpPower = 100
  1806. ------------------------------------
  1807. mouse.KeyDown:connect(function(key)
  1808. if string.byte(key) == 48 then
  1809. Swing = 2
  1810. Character.Humanoid.WalkSpeed = 90
  1811. end
  1812. end)
  1813.  
  1814. mouse.KeyUp:connect(function(key)
  1815. if string.byte(key) == 48 then
  1816. Swing = 1
  1817. Character.Humanoid.WalkSpeed = 8
  1818.  
  1819. end
  1820. end)
  1821. ------------------------------------
  1822.  
  1823. print("The Sonic Yo-yo")
  1824. print("Made by KillerDarkness0105")
  1825. print("Hope you enjoy :D")
  1826. print("Controls")
  1827. print("C = Air Grapple")
  1828. print("E = Throw")
  1829. print("R = YoyoEvade -2 sec cooldown")
  1830. print("T = Explosion attack -7 sec cooldown")
  1831. print("F = Dash -3 sec cooldown")
  1832. print("Shift = Run")
  1833.  
  1834.  
  1835.  
  1836. local sine = 0
  1837. local change = 1
  1838. local val = 0
  1839. while true do
  1840. swait()
  1841. sine = sine + change
  1842. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1843. local velderp=RootPart.Velocity.y
  1844. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1845. if equipped==true or equipped==false then
  1846. if attack==false then
  1847. idle=idle+1
  1848. else
  1849. idle=0
  1850. end
  1851. if idle>=500 then
  1852. if attack==false then
  1853. end
  1854. end
  1855.  
  1856.  
  1857.  
  1858. --The animations are made here, feel free to edit these to how you ya like :). I hope you know how to edit animations tho ;).
  1859.  
  1860. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1861. Anim="Jump"
  1862. if attack==false and equipped == false then
  1863. change = 1
  1864. for i = 0,4,0.12 do
  1865. swait()
  1866. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1867. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
  1868. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
  1869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
  1870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
  1871. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1872. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1873. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  1874. end
  1875. else
  1876. if attack==false and equipped == true then
  1877. for i = 0,4,0.12 do
  1878. swait()
  1879. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1880. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
  1881. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
  1882. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
  1883. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
  1884. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1885. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1886. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1887. end
  1888. end
  1889. end
  1890. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1891. Anim="Fall"
  1892. change = 1
  1893. if attack==false and equipped == false then
  1894. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1895. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1896. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
  1897. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
  1898. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1899. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1900. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1901. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
  1902. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  1903. else
  1904. if attack==false and equipped == true then
  1905. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1906. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
  1908. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
  1909. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1910. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1911. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1912. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
  1913. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1914. end
  1915. end
  1916. elseif torvel<1 and hitfloor~=nil then
  1917. Anim="Idle"
  1918. if attack==false and equipped == false then
  1919. particleemitter2.Rate = 0
  1920. light.Color = Color3.new(0, 0, 0)
  1921. light.Brightness = 0
  1922. light.Range = 0
  1923. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1924. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1925. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(0)),.2)
  1926. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(10)),.2)
  1927. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0-15*math.cos(sine/60)), math.rad(-10)),.2)
  1928. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
  1929. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
  1930. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  1931. else
  1932. for i = 0,1,0.13 do
  1933. if attack==false and equipped == true then
  1934. particleemitter2.Rate = 120
  1935. light.Color = Color3.new(0, 255, 255)
  1936. light.Brightness = 4.50
  1937. light.Range = 14
  1938. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1939. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(-15)),.2)
  1941. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(90+10*math.cos(sine/60)), math.rad(0-25*math.cos(sine/60)), math.rad(0)),.2)
  1942. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(-10)),.2)
  1943. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
  1944. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
  1945. wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
  1946. --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
  1947. end
  1948. end
  1949. end
  1950. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1951. Anim="Walk"
  1952. if attack==false and equipped == false then
  1953. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1954. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1955. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
  1956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
  1957. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
  1958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
  1959. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
  1960. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
  1961. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  1962. else
  1963. if attack==false and equipped == true then
  1964. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1965. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1966. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
  1967. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
  1968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
  1969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
  1970. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
  1971. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
  1972. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1973. end
  1974. end
  1975. elseif torvel>=22 and hitfloor~=nil then
  1976. Anim="Run"
  1977. if attack==false and equipped == false then
  1978. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1979. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1980. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
  1981. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
  1982. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
  1983. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
  1984. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
  1985. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
  1986. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  1987. else
  1988. if attack==false and equipped == true then
  1989. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1990. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1991. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
  1992. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
  1993. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
  1994. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
  1995. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
  1996. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
  1997. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1998. end
  1999. end
  2000. end
  2001. end
  2002. end
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029. --Thanks for using this :) -KillerDarkness0105
Add Comment
Please, Sign In to add comment