Advertisement
samuelrichter66

Sonikku yoyo

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