Advertisement
memberhero

yoyo version 2 leaked

Aug 23rd, 2016
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.43 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it=Instance.new
  18. vt=Vector3.new
  19. cf=CFrame.new
  20. euler=CFrame.fromEulerAnglesXYZ
  21. angles=CFrame.Angles
  22. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. attack = false
  25. grav = false
  26. attacktype = 1
  27. damage = 5
  28. mana = 1
  29. oridamage = 50
  30. attackdebounce = false
  31. ssdebounce=false
  32. MMouse=nil
  33. combo=0
  34. GyroNumb=0
  35. cond=nil
  36. glowcolor = BrickColor.new("Light blue")
  37. --player
  38. player = nil
  39. --save shoulders
  40. RSH, LSH = nil, nil
  41. --welds
  42. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  43. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  44. if Character:findFirstChild("Yoyo",true) ~= nil then
  45. Character:findFirstChild("Yoyo",true).Parent = nil
  46. end
  47. if Character:findFirstChild("Block",true) ~= nil then
  48. Character:findFirstChild("Block",true).Parent = nil
  49. end
  50. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  51. local fp = it("Part")
  52. fp.Material = "SmoothPlastic"
  53. fp.formFactor = formfactor
  54. fp.Parent = parent
  55. fp.Reflectance = reflectance
  56. fp.Transparency = transparency
  57. fp.CanCollide = false
  58. fp.Locked=true
  59. fp.BrickColor = brickcolor
  60. fp.Name = name
  61. fp.Size = size
  62. fp.Position = Torso.Position
  63. fp.BottomSurface="Smooth"
  64. fp.TopSurface="Smooth"
  65. fp:BreakJoints()
  66. return fp
  67. end
  68. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  69. local mesh = it(Mesh)
  70. mesh.Parent = part
  71. if Mesh=="SpecialMesh" then
  72. mesh.MeshType = meshtype
  73. mesh.MeshId = meshid
  74. end
  75. mesh.Offset=offset
  76. mesh.Scale=scale
  77. return mesh
  78. end
  79. function weld(parent,part0,part1,c0)
  80. local weld = it("Weld")
  81. weld.Parent = parent
  82. weld.Part0 = part0
  83. weld.Part1 = part1
  84. weld.C0 = c0
  85. return weld
  86. end
  87. local modelzorz = Instance.new("Model")
  88. modelzorz.Parent = Character
  89. modelzorz.Name = "Yoyo"
  90. local prt1=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part1",vt(1,1,1))
  91. prt1.CanCollide=true
  92. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
  93. local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6))
  94. numb=-0.15
  95. for i=1,2 do
  96. local prt2=part(3,modelzorz,0,0,BrickColor.new("White"),"Part2",vt(1,1,1))
  97. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  98. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
  99. numb2=0
  100. for i=1,16 do
  101. local prt3=part(3,modelzorz,0.5,0,BrickColor.new("White"),"Part3",vt(1,1,1))
  102. local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
  103. local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
  104. wld3.C1=euler(0,numb2,0)
  105. --numb2=numb2+0.785
  106. numb2=numb2+0.3925
  107. end
  108. numb=numb+0.3
  109. end
  110. local string1=part(3,modelzorz,0,0,BrickColor.new("White"),"String1",vt(1,1,1))
  111. local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
  112. local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0))
  113. local strmdl = "Arrow"
  114. coroutine.resume(coroutine.create(function()
  115. repeat
  116. wait(-10)
  117. local top = RightArm.CFrame*cf(0,-1,0)
  118. local bottom = prt1.CFrame
  119. local oristrpos
  120. if strmdl == "Bow" then
  121. oristrpos = CFrame.new((top.p+bottom.p)/2)
  122. elseif strmdl == "Arrow" then
  123. oristrpos = prt1.CFrame
  124. end
  125. local mg1 = (top.p - oristrpos.p).magnitude
  126. local mg2 = (bottom.p - oristrpos.p).magnitude
  127. string1.Size = Vector3.new(0.2,mg1,0.2)
  128. string1.Anchored=true
  129. string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
  130. --[[
  131. --stringmsh1.Scale=vt(0.1,1,0.1)
  132. stringmsh1.Scale=vt(0.1,mg1,0.1)
  133. --cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  134. cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  135. hit2=string1
  136. hit=prt1
  137. stringwld1.Parent=string1
  138. stringwld1.Part0=hit2
  139. stringwld1.Part1=hit
  140. HitPos=cff.p
  141. local CJ = CFrame.new(HitPos)
  142. local C0=cff:inverse() *CJ
  143. local C1=hit.CFrame:inverse() * CJ
  144. stringwld1.C0=C0
  145. stringwld1.C1=C1
  146. ]]
  147. until false
  148. end))
  149. if (script.Parent.className ~= "HopperBin") then
  150. Tool = Instance.new("HopperBin")
  151. Tool.Parent = Backpack
  152. Tool.Name = "SYoyo"
  153. script.Parent = Tool
  154. end
  155. Bin = script.Parent
  156. local bg = it("BodyGyro")
  157. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  158. bg.P = 20e+003
  159. bg.Parent = nil
  160. so = function(id,par,vol,pit)
  161. coroutine.resume(coroutine.create(function()
  162. local sou = Instance.new("Sound",par or workspace)
  163. sou.Volume=vol
  164. sou.Pitch=pit or 1
  165. sou.SoundId=id
  166. wait()
  167. sou:play()
  168. wait(6)
  169. sou:Remove()
  170. end))
  171. end
  172. function unequipweld()
  173. wld1.Part1=Torso
  174. wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
  175. end
  176. function equipweld()
  177. wld1.Part1=RightArm
  178. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  179. end
  180. function hideanim()
  181. equipped=false
  182. wait(0.1)
  183. bg.Parent=nil
  184. unequipweld()
  185. end
  186. function equipanim()
  187. equipped=true
  188. wait(0.1)
  189. equipweld()
  190. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  191. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  192. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  193. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  194. end
  195. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  196. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  197. prt.Anchored=true
  198. prt.CFrame=cframe
  199. glow = Instance.new("PointLight")
  200. glow.Parent = prt
  201. glow.Range = 1
  202. glow.Brightness = 1
  203. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  204. coroutine.resume(coroutine.create(function()
  205. for i=0,1,0.05 do
  206. wait()
  207. prt.CFrame=prt.CFrame
  208. prt.Transparency=i
  209. msh.Scale=msh.Scale+vt(x3,y3,z3)
  210. glow.Range = glow.Range +2
  211. glow.Brightness = glow.Brightness +1
  212. end
  213. prt.Parent=nil
  214. end))
  215. end
  216.  
  217. DarkRiftF=function(par,dmg,radius)
  218. while grav == true and mana >= 0 do
  219. PWN={}
  220. for _,v in pairs(workspace:children()) do
  221. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  222. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  223. if v~=Character and (v.Torso.Position-par.Position).magnitude<=radius then
  224. table.insert(PWN,v.Torso)
  225. end
  226. end
  227. end
  228. end
  229. for _,t in pairs(PWN) do
  230. Mag=(par.Position-t.Position).magnitude/2
  231. t.Parent.Humanoid:TakeDamage(dmg)
  232. showDamage(t.Parent,dmg,.5)
  233. rl=Instance.new("BodyAngularVelocity")
  234. rl.P=3000
  235. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  236. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  237. rl.Parent=t
  238. game:GetService("Debris"):AddItem(rl,.1)
  239. pos = Instance.new("BodyPosition")
  240. pos.Parent = t
  241. pos.position = par.Position
  242. pos.maxForce = Vector3.new(2000000,2000000,2000000)
  243. pos.D = 60000
  244. game:GetService("Debris"):AddItem(pos,.5)
  245. if Mag<=2 then
  246. if mana <= 0 then
  247. mana = mana + math.random(0,0)
  248. end
  249. t.Parent.Humanoid:TakeDamage(0)
  250. else
  251. if mana <= 0 then
  252. mana = mana + 0
  253. end
  254. vl=Instance.new("BodyVelocity")
  255. vl.P=3000
  256. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  257. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  258. vl.Parent=t
  259. game:GetService("Debris"):AddItem(vl,.1)
  260. end
  261. end
  262. wait(.08)
  263. end
  264. end
  265.  
  266. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  268. prt.Anchored=true
  269. prt.CFrame=cframe
  270. glow = Instance.new("PointLight")
  271. glow.Parent = prt
  272. glow.Range = 5
  273. glow.Brightness = 5
  274. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  275. coroutine.resume(coroutine.create(function()
  276. for i=0,1,0.05 do
  277. wait()
  278. prt.Transparency=i
  279. msh.Scale=msh.Scale+vt(x2,y2,z2)
  280. glow.Range = glow.Range + 1
  281. glow.Brightness = glow.Brightness + 0.5
  282. end
  283. prt.Parent=nil
  284. end))
  285. end
  286. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  287. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  288. prt.Anchored=true
  289. prt.CFrame=cframe
  290. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  291. coroutine.resume(coroutine.create(function()
  292. for i=0,1,0.03 do
  293. wait()
  294. prt.CFrame=prt.CFrame
  295. prt.Transparency=i
  296. msh.Scale=msh.Scale+vt(x3,y3,z3)
  297. end
  298. prt.Parent=nil
  299. end))
  300. end
  301. function SpecialEffect()
  302. local prt=part(3,workspace,1,0,BrickColor.new("White"),"Part",vt(1,1,1))
  303. prt.Anchored=true
  304. prt.CFrame=Torso.CFrame
  305. glow = Instance.new("PointLight")
  306. glow.Parent = prt
  307. glow.Range = 8
  308. glow.Brightness = 10
  309. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  310. coroutine.resume(coroutine.create(function(Part,Mesh)
  311. for i=0,1,0.2 do
  312. wait(0)
  313. Part.Transparency=i
  314. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  315. end
  316. prt.Parent=nil
  317. end),prt,msh)
  318. end
  319. Damagefunc1=function(hit,Damage,Knockback)
  320. if hit.Parent==nil then
  321. return
  322. end
  323. CPlayer=Bin
  324. h=hit.Parent:FindFirstChild("Humanoid")
  325. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  326. if attackdebounce == false then
  327. attackdebounce = true
  328. coroutine.resume(coroutine.create(function()
  329. wait(0.2)
  330. attackdebounce = false
  331. end))
  332. Damage=Damage
  333. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  334. return
  335. end]]
  336. -- hs(hit,1.2)
  337. c=Instance.new("ObjectValue")
  338. c.Name="creator"
  339. c.Value=game.Players.LocalPlayer
  340. c.Parent=h
  341. game:GetService("Debris"):AddItem(c,.5)
  342. Damage=Damage+math.random(0,10)
  343. -- h:TakeDamage(Damage)
  344. h.Health=h.Health-Damage
  345. showDamage(hit.Parent,Damage,.5)
  346. vp=Instance.new("BodyVelocity")
  347. vp.P=500
  348. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  349. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  350. vp.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
  351. if Knockback>0 then
  352. vp.Parent=hit.Parent.Torso
  353. end
  354. rl=Instance.new("BodyAngularVelocity")
  355. rl.P=3000
  356. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  357. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  358. -- rl.Parent=hit
  359. coroutine.resume(coroutine.create(function(vel)
  360. wait(1)
  361. vel:Remove()
  362. end),rl)
  363. game:GetService("Debris"):AddItem(vp,.25)
  364. game:GetService("Debris"):AddItem(r,.5)
  365. c=Instance.new("ObjectValue")
  366. c.Name="creator"
  367. c.Value=Player
  368. c.Parent=h
  369. game:GetService("Debris"):AddItem(c,.5)
  370. CRIT=false
  371. hitDeb=true
  372. AttackPos=6
  373. end
  374. end
  375. end
  376. Damagefunc2=function(hit,Damage,Knockback)
  377. if hit.Parent==nil then
  378. return
  379. end
  380. CPlayer=Bin
  381. blocked=false
  382. h=hit.Parent:FindFirstChild("Humanoid")
  383. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  384. Damage=Damage
  385. c=it("ObjectValue")
  386. c.Name="creator"
  387. c.Value=game.Players.LocalPlayer
  388. c.Parent=h
  389. game:GetService("Debris"):AddItem(c,.5)
  390. -- print(c.Value)
  391. --[[ if math.random(0,99)+math.random()<=7.8 then
  392. CRIT=true
  393. Damage=Damage*2
  394. s=it("Sound")
  395. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  396. s.Volume=1
  397. s.Pitch=2
  398. s.Parent=hit
  399. s.PlayOnRemove=true
  400. s.Parent=nil
  401.  
  402. end]]
  403. Damage=Damage+math.random(0,10)
  404. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  405. block=hit.Parent:findFirstChild("Block")
  406. if block~=nil then
  407. print("herp")
  408. if block.Value>0 then
  409. blocked=true
  410. block.Value=block.Value-3
  411. print(block.Value)
  412. end
  413. end
  414. if blocked==false then
  415. -- h:TakeDamage(Damage)
  416. h.Health=h.Health-Damage
  417. showDamage(hit.Parent,Damage,.5)
  418. else
  419. h:TakeDamage(1)
  420. showDamage(hit.Parent,1,.5)
  421. end
  422. --if blocked==false then
  423. --end
  424. local angle = (hit.Position-(prt1.Position+Vector3.new(0,0,0))).unit
  425. rl=Instance.new("BodyAngularVelocity")
  426. rl.P=3000
  427. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  428. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  429. rl.Parent=hit
  430. game:GetService("Debris"):AddItem(rl,.5)
  431. local bodyVelocity=Instance.new("BodyVelocity")
  432. bodyVelocity.velocity=angle*80+Vector3.new(0,0,0)
  433. bodyVelocity.P=5000
  434. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  435. bodyVelocity.Parent=hit
  436. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  437. c=it("ObjectValue")
  438. c.Name="creator"
  439. c.Value=Player
  440. c.Parent=h
  441. game:GetService("Debris"):AddItem(c,.5)
  442. CRIT=false
  443. hitDeb=true
  444. AttackPos=6
  445. end
  446. end
  447. showDamage=function(Char,Dealt,du)
  448. m=Instance.new("Model")
  449. m.Name=tostring(Dealt)
  450. h=Instance.new("Humanoid")
  451. h.Health=0
  452. h.MaxHealth=0
  453. h.Parent=m
  454. c=Instance.new("Part")
  455. c.Transparency=0
  456. c.BrickColor=BrickColor:Red()
  457. if CRIT==true then
  458. c.BrickColor=BrickColor.new("Really red")
  459. end
  460. c.Name="Head"
  461. c.TopSurface=0
  462. c.BottomSurface=0
  463. c.formFactor="Plate"
  464. c.Size=Vector3.new(1,.4,1)
  465. ms=Instance.new("CylinderMesh")
  466. ms.Scale=Vector3.new(.8,.8,.8)
  467. if CRIT==true then
  468. ms.Scale=Vector3.new(1,1.25,1)
  469. end
  470. ms.Parent=c
  471. c.Reflectance=0
  472. Instance.new("BodyGyro").Parent=c
  473. c.Parent=m
  474. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  475. f=Instance.new("BodyPosition")
  476. f.P=2000
  477. f.D=100
  478. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  479. f.position=c.Position+Vector3.new(0,3,0)
  480. f.Parent=c
  481. game:GetService("Debris"):AddItem(m,.5+du)
  482. c.CanCollide=false
  483. m.Parent=workspace
  484. c.CanCollide=false
  485. end
  486. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  487. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  488. end
  489. function oneslash()
  490. attack=true
  491. for i=0,1,0.1 do
  492. wait()
  493. Neck.C0=necko*euler(0,0,0.785*i)
  494. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  495. end
  496. for i=0,1,0.2 do
  497. wait()
  498. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  499. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  500. offset=offset/mag
  501. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  502. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  503. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
  504. end
  505. wait(0.2)
  506. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  507. prt1.Velocity=vt(0,0,0)
  508. wld1.Parent=nil
  509. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  510. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  511. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  512. print(pos)
  513. print(hit)
  514. baseprt.CFrame=CFrame.new(pos)]]
  515. baseprt.CFrame=RightArm.CFrame*cf(0,-70,0)
  516. fd=Instance.new("BodyPosition")
  517. fd.P=200
  518. fd.D=60
  519. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  520. fd.position=baseprt.Position
  521. fd.Parent=prt1
  522. coroutine.resume(coroutine.create(function(BodyPos)
  523. while fd.Parent~=nil do
  524. wait()
  525. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  526. end
  527. end),fd)
  528. con1=prt1.Touched:connect(function(hit)
  529. if hit==baseprt then
  530. coroutine.resume(coroutine.create(function(BodyPos)
  531. for i=1,20 do
  532. wait(0)
  533. BodyPos.position=RightArm.Position
  534. end
  535. end),fd)
  536. con1:disconnect()
  537. con2=prt1.Touched:connect(function(hit)
  538. if hit==RightArm then
  539. fd.Parent=nil
  540. wld1.Parent=RightArm
  541. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  542. con2:disconnect()
  543. end
  544. end)
  545. end
  546. end)
  547. cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,20) end)
  548. wait(0.5)
  549. coroutine.resume(coroutine.create(function(BodyPos)
  550. for i=1,20 do
  551. wait(0)
  552. BodyPos.position=RightArm.Position
  553. end
  554. end),fd)
  555. wait(1)
  556. cond:disconnect()
  557. fd.Parent=nil
  558. wld1.Parent=RightArm
  559. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  560. baseprt.Parent=nil
  561. attack=false
  562. end
  563. function YoyoMove()
  564. attack=true
  565. for i=0,1,0.1 do
  566. wait()
  567. Neck.C0=necko*euler(0,0,0.785*i)
  568. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  569. end
  570. for i=0,1,0.2 do
  571. wait()
  572. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  573. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  574. offset=offset/mag
  575. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  576. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  577. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
  578. end
  579. wait(0.2)
  580. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  581. prt1.Velocity=vt(0,0,0)
  582. wld1.Parent=nil
  583. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  584. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  585. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  586. print(pos)
  587. print(hit)
  588. baseprt.CFrame=CFrame.new(pos)]]
  589. baseprt.CFrame=RightArm.CFrame*cf(0,-200,0)
  590. fd=Instance.new("BodyPosition")
  591. fd.P=200
  592. fd.D=60
  593. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  594. fd.position=baseprt.Position
  595. fd.Parent=prt1
  596. coroutine.resume(coroutine.create(function(BodyPos)
  597. while fd.Parent~=nil do
  598. wait()
  599. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  600. end
  601. end),fd)
  602. coroutine.resume(coroutine.create(function()
  603. wait(0.1)
  604. con1=prt1.Touched:connect(function(hit)
  605. if hit.Name~="String1" then
  606. fd.Parent=nil
  607. prt1.Anchored=true
  608. fddd=Instance.new("BodyPosition")
  609. fddd.P=2000
  610. fddd.D=600
  611. fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  612. fddd.position=prt1.Position
  613. fddd.Parent=RightArm
  614. coroutine.resume(coroutine.create(function(BodyPos)
  615. wait(1)
  616. prt1.Anchored=false
  617. wld1.Parent=RightArm
  618. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  619. BodyPos.Parent=nil
  620. end),fddd)
  621. end
  622. end)
  623. end))
  624. cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,20) end)
  625. wait(2)
  626. con1:disconnect()
  627. coroutine.resume(coroutine.create(function(BodyPos)
  628. for i=1,20 do
  629. wait(0)
  630. BodyPos.position=RightArm.Position
  631. end
  632. end),fd)
  633. wait(1)
  634. cond:disconnect()
  635. fd.Parent=nil
  636. wld1.Parent=RightArm
  637. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  638. baseprt.Parent=nil
  639. attack=false
  640. end
  641. function YoyoGrab()
  642. attack=true
  643. for i=0,1,0.1 do
  644. wait()
  645. Neck.C0=necko*euler(0,0,0.785*i)
  646. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  647. end
  648. for i=0,1,0.2 do
  649. wait()
  650. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  651. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  652. offset=offset/mag
  653. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  654. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  655. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
  656. end
  657. wait(0.2)
  658. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  659. prt1.Velocity=vt(0,0,0)
  660. wld1.Parent=nil
  661. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  662. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  663. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  664. print(pos)
  665. print(hit)
  666. baseprt.CFrame=CFrame.new(pos)]]
  667. baseprt.CFrame=RightArm.CFrame*cf(0,-100,0)
  668. fd=Instance.new("BodyPosition")
  669. fd.P=200
  670. fd.D=60
  671. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  672. fd.position=baseprt.Position
  673. fd.Parent=prt1
  674. coroutine.resume(coroutine.create(function(BodyPos)
  675. while fd.Parent~=nil do
  676. wait()
  677. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  678. end
  679. end),fd)
  680. coroutine.resume(coroutine.create(function()
  681. con1=prt1.Touched:connect(function(hit)
  682. if hit.Name~="String1" and hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent.Name~=Player.Name then
  683. while attack==true do
  684. wait()
  685. hit.CFrame=prt1.CFrame
  686. end
  687. end
  688. end)
  689. end))
  690. cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,1,20) end)
  691. wait(1)
  692. for i=0,1,0.2 do
  693. wait()
  694. Neck.C0=necko*euler(0,0,-2.355+3.925*i)
  695. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+1*i,0,-offset+offset*i)
  696. RW.C1=cf(0, 0.5, 0) * euler(0,0,-2.07+3.07*i)
  697. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4-1.17*i)
  698. end
  699. coroutine.resume(coroutine.create(function(BodyPos)
  700. for i=1,20 do
  701. wait(0)
  702. BodyPos.position=RightArm.Position
  703. end
  704. end),fd)
  705. wait(1)
  706. con1:disconnect()
  707. cond:disconnect()
  708. fd.Parent=nil
  709. wld1.Parent=RightArm
  710. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  711. baseprt.Parent=nil
  712. attack=false
  713. end
  714. function SonicExplosion()
  715. attack=true
  716. prt1.CanCollide=false
  717. for i=0,1,0.1 do
  718. wait()
  719. Neck.C0=necko*euler(0,0,0.785*i)
  720. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  721. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2-0.4*i)
  722. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-0.2*i)
  723. end
  724. for i=0,1,0.2 do
  725. wait()
  726. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  727. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  728. offset=offset/mag
  729. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  730. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  731. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.6-0.97*i)
  732. end
  733. wait(0.2)
  734. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  735. prt1.Velocity=vt(0,0,0)
  736. wld1.Parent=nil
  737. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  738. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  739. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  740. print(pos)
  741. print(hit)
  742. baseprt.CFrame=CFrame.new(pos)]]
  743. baseprt.CFrame=RightArm.CFrame*cf(0,-40,0)
  744. fd=Instance.new("BodyPosition")
  745. fd.P=200
  746. fd.D=60
  747. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  748. fd.position=baseprt.Position
  749. fd.Parent=prt1
  750. coroutine.resume(coroutine.create(function(BodyPos)
  751. while fd.Parent~=nil do
  752. wait()
  753. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  754. end
  755. end),fd)
  756. coroutine.resume(coroutine.create(function()
  757. wait(0.1)
  758. end))
  759. for i=0,1,0.2 do
  760. wait()
  761. Neck.C0=necko*euler(0,0,-1.57-0.785*i)
  762. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,-offset)
  763. RW.C1=cf(0, 0.5, 0) * euler(0,0,-1.57-0.5*i)
  764. end
  765. wait(0.5)
  766. so("http://www.roblox.com/asset/?id=2101148",prt1,1,2)
  767. MagicCircle(BrickColor.new("White"),prt1.CFrame,1,1,1,5,5,5)
  768. BlastEffect(BrickColor.new("White"),prt1.CFrame,1,1,1,2,2,2)
  769. local c = game.Workspace:GetChildren();
  770. for i = 1, #c do
  771. local hum = c[i]:findFirstChild("Humanoid")
  772. if hum ~= nil and hum.Health ~= 0 then
  773. local head = c[i]:findFirstChild("Head");
  774. if head ~= nil then
  775. local targ = head.Position - prt1.Position;
  776. local mag = targ.magnitude;
  777. if mag <= 20 and c[i].Name ~= Player.Name then
  778. attackdebounce=false
  779. Damagefunc1(head,15,80)
  780. end
  781. end
  782. end
  783. end
  784. coroutine.resume(coroutine.create(function(BodyPos)
  785. for i=1,20 do
  786. wait(0)
  787. BodyPos.position=RightArm.Position
  788. end
  789. end),fd)
  790. for i=0,1,0.2 do
  791. wait()
  792. Neck.C0=necko*euler(0,0,-2.355+3.925*i)
  793. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+1*i,0,-offset+offset*i)
  794. RW.C1=cf(0, 0.5, 0) * euler(0,0,-2.07+3.07*i)
  795. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4-1.17*i)
  796. end
  797. wait(1)
  798. fd.Parent=nil
  799. wld1.Parent=RightArm
  800. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  801. baseprt.Parent=nil
  802. prt1.CanCollide=true
  803. attack=false
  804. end
  805. function BombGrab()
  806. attack=true
  807. grabbing=true
  808. prt1.CanCollide=false
  809. for i=0,1,0.1 do
  810. wait()
  811. Neck.C0=necko*euler(0,0,0.785*i)
  812. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  813. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2-0.4*i)
  814. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-0.2*i)
  815. end
  816. for i=0,1,0.2 do
  817. wait()
  818. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  819. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  820. offset=offset/mag
  821. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  822. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  823. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.6-0.97*i)
  824. end
  825. wait(0.2)
  826. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  827. prt1.Velocity=vt(0,0,0)
  828. wld1.Parent=nil
  829. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  830. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  831. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  832. print(pos)
  833. print(hit)
  834. baseprt.CFrame=CFrame.new(pos)]]
  835. baseprt.CFrame=RightArm.CFrame*cf(0,-70,0)
  836. fd=Instance.new("BodyPosition")
  837. fd.P=200
  838. fd.D=60
  839. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  840. fd.position=baseprt.Position
  841. fd.Parent=prt1
  842. coroutine.resume(coroutine.create(function(BodyPos)
  843. while fd.Parent~=nil do
  844. wait()
  845. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  846. end
  847. end),fd)
  848. cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,1,20) end)
  849. coroutine.resume(coroutine.create(function()
  850. con1=prt1.Touched:connect(function(hit)
  851. if hit.Name~="String1" and hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent.Name~=Player.Name then
  852. while grabbing==true do
  853. wait()
  854. hit.CFrame=prt1.CFrame
  855. end
  856. end
  857. end)
  858. end))
  859. coroutine.resume(coroutine.create(function()
  860. while grabbing==true do
  861. wait()
  862. MagicRing(BrickColor.new("White"),prt1.CFrame*euler(0,1.57,0),0.3,0.3,0.3,0.5,0.5,0.5)
  863. end
  864. end))
  865. for i=0,1,0.2 do
  866. wait()
  867. Neck.C0=necko*euler(0,0,-1.57-0.785*i)
  868. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,-offset)
  869. RW.C1=cf(0, 0.5, 0) * euler(0,0,-1.57-0.5*i)
  870. end
  871. wait(0.5)
  872. grabbing=false
  873. con1:disconnect()
  874. cond:disconnect()
  875. so("http://www.roblox.com/asset/?id=2101148",prt1,1,1)
  876. MagicCircle(BrickColor.new("White"),prt1.CFrame,1,1,1,7,7,7)
  877. BlastEffect(BrickColor.new("White"),prt1.CFrame,1,1,1,3,3,3)
  878. local c = game.Workspace:GetChildren();
  879. for i = 1, #c do
  880. local hum = c[i]:findFirstChild("Humanoid")
  881. if hum ~= nil and hum.Health ~= 0 then
  882. local head = c[i]:findFirstChild("Head");
  883. if head ~= nil then
  884. local targ = head.Position - prt1.Position;
  885. local mag = targ.magnitude;
  886. if mag <= 25 and c[i].Name ~= Player.Name then
  887. attackdebounce=false
  888. Damagefunc2(head,30,40)
  889. end
  890. end
  891. end
  892. end
  893. coroutine.resume(coroutine.create(function(BodyPos)
  894. for i=1,20 do
  895. wait(0)
  896. BodyPos.position=RightArm.Position
  897. end
  898. end),fd)
  899. for i=0,1,0.2 do
  900. wait()
  901. Neck.C0=necko*euler(0,0,-2.355+3.925*i)
  902. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+1*i,0,-offset+offset*i)
  903. RW.C1=cf(0, 0.5, 0) * euler(0,0,-2.07+3.07*i)
  904. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4-1.17*i)
  905. end
  906. wait(1)
  907. fd.Parent=nil
  908. wld1.Parent=RightArm
  909. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  910. baseprt.Parent=nil
  911. prt1.CanCollide=true
  912. attack=false
  913. end
  914.  
  915. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  916. local msh1 = Instance.new("BlockMesh")
  917. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  918. S=Instance.new("Part")
  919. S.Name="Effect"
  920. S.formFactor=0
  921. S.Size=Vector3.new(x1,y1,z1)
  922. S.BrickColor=color
  923. S.Reflectance = 0
  924. S.TopSurface=0
  925. S.BottomSurface=0
  926. S.Transparency=0
  927. S.Anchored=true
  928. S.CanCollide=false
  929. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  930. S.Parent=Character
  931. msh1.Parent = S
  932. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  933. end
  934.  
  935. function InfiniteWheel()
  936. attack=true
  937. grav = true
  938. pull = true
  939. grabbing=true
  940. prt1.CanCollide=false
  941. game:GetService("Chat"):Chat(Character,"INFINITE WHEEL!",2)
  942. for i=0,1,0.1 do
  943. wait()
  944. Neck.C0=necko*euler(0,0,0.785*i)
  945. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  946. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2-0.4*i)
  947. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-0.2*i)
  948. end
  949. for i=0,1,0.2 do
  950. wait()
  951. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  952. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  953. offset=offset/mag
  954. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  955. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  956. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.6-0.97*i)
  957. end
  958. wait(0.2)
  959. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  960. prt1.Velocity=vt(0,0,0)
  961. wld1.Parent=nil
  962. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  963. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  964. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  965. print(pos)
  966. print(hit)
  967. baseprt.CFrame=CFrame.new(pos)]]
  968. baseprt.CFrame=RightArm.CFrame*cf(0,-70,0)
  969. fd=Instance.new("BodyPosition")
  970. fd.P=200
  971. fd.D=60
  972. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  973. fd.position=baseprt.Position
  974. fd.Parent=prt1
  975. coroutine.resume(coroutine.create(function(BodyPos)
  976. while fd.Parent~=nil do
  977. wait()
  978. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  979. end
  980. end),fd)
  981. cond=prt1.Touched:connect(function(hit) Damagefunc1(hit,10,30) end)
  982. coroutine.resume(coroutine.create(function()
  983. con1=prt1.Touched:connect(function(hit)
  984. if hit.Name~="String1" and hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent.Name~=Player.Name then
  985. while grabbing==true do
  986. wait()
  987. hit.CFrame=prt1.CFrame
  988. end
  989. end
  990. end)
  991. end))
  992. coroutine.resume(coroutine.create(function()
  993. while grabbing==true do
  994. wait(0.25)
  995. MMMAGIC(prt1,2,2,2,math.random(-20,20),math.random(-20,20),math.random(-20,20),BrickColor.new("White"))
  996. MagicRing(BrickColor.new("White"),prt1.CFrame*euler(0,1.57,0),0.3,0.3,0.3,0.5,0.5,0.5)
  997. BlastEffect(BrickColor.new("Really black"),prt1.CFrame,1,1,1,2,2,2)
  998. end
  999. end))
  1000. coroutine.resume(coroutine.create(function()
  1001. while pull == true do
  1002. DarkRiftF(prt1,1,75)
  1003. end
  1004. end))
  1005. coroutine.resume(coroutine.create(function()
  1006. game:GetService("Chat"):Chat(Character,"Perish...",2)
  1007. wait(0.35)
  1008. game:GetService("Chat"):Chat(Character,"...INFINITE EXPLOSION!",2)
  1009. end))
  1010. wait(5)
  1011. grabbing=false
  1012. pull = false
  1013. grav = false
  1014. con1:disconnect()
  1015. cond:disconnect()
  1016. so("http://www.roblox.com/asset/?id=2101148",prt1,1,1)
  1017. MagicCircle(BrickColor.new("Really black"),prt1.CFrame,1,1,1,7,7,7)
  1018. BlastEffect(BrickColor.new("White"),prt1.CFrame,1,1,1,3,3,3)
  1019. local c = game.Workspace:GetChildren();
  1020. for i = 1, #c do
  1021. local hum = c[i]:findFirstChild("Humanoid")
  1022. if hum ~= nil and hum.Health ~= 0 then
  1023. local head = c[i]:findFirstChild("Head");
  1024. if head ~= nil then
  1025. local targ = head.Position - prt1.Position;
  1026. local mag = targ.magnitude;
  1027. if mag <= 25 and c[i].Name ~= Player.Name then
  1028. attackdebounce=false
  1029. Damagefunc2(head,65,85)
  1030. end
  1031. end
  1032. end
  1033. end
  1034. coroutine.resume(coroutine.create(function(BodyPos)
  1035. for i=1,20 do
  1036. wait(0)
  1037. BodyPos.position=RightArm.Position
  1038. end
  1039. end),fd)
  1040. for i=0,1,0.2 do
  1041. wait()
  1042. Neck.C0=necko*euler(0,0,-2.355+3.925*i)
  1043. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+1*i,0,-offset+offset*i)
  1044. RW.C1=cf(0, 0.5, 0) * euler(0,0,-2.07+3.07*i)
  1045. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4-1.17*i)
  1046. end
  1047. wait(1)
  1048. fd.Parent=nil
  1049. wld1.Parent=RightArm
  1050. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1051. baseprt.Parent=nil
  1052. prt1.CanCollide=true
  1053. attack=false
  1054. end
  1055.  
  1056. function HeavensWheel()
  1057. attack=true
  1058. Light = 0
  1059. for i=0,1,0.1 do
  1060. wait()
  1061. Neck.C0=necko*euler(0,0,0.785*i)
  1062. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0)
  1063. end
  1064. coroutine.resume(coroutine.create(function()
  1065. while buttonhold==true do
  1066. wait(0.25)
  1067. if Light > 100 then
  1068. MagicRing(BrickColor.new("White"),prt1.CFrame*euler(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),0.1,0.1,0.1,0.1,0.1,0.1)
  1069. end
  1070. end
  1071. end))
  1072. while buttonhold == true do
  1073. wait()
  1074. Light = Light + 1
  1075. if Light <= 50 then
  1076. MMMAGIC(prt1,1,1,1,0,0,0,BrickColor.new("Bright yellow"))
  1077. elseif Light >= 50 and Light < 100 then
  1078. MMMAGIC(prt1,1.5,1.5,1.5,0,0,0,BrickColor.new("Transparent"))
  1079. elseif Light > 100 then
  1080. MMMAGIC(prt1,2,2,2,0,0,0,BrickColor.new("Gold"))
  1081. end
  1082. end
  1083.  
  1084. if Light <= 50 then
  1085. game:GetService("Chat"):Chat(Character,"Can't touch this!",2)
  1086. end
  1087. for i=0,1,0.2 do
  1088. wait()
  1089. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1090. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1091. offset=offset/mag
  1092. Neck.C0=necko*euler(0,0,0.785-2.355*i)
  1093. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-offset)
  1094. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
  1095. end
  1096. if Light <= 50 then
  1097. game:GetService("Chat"):Chat(Character,"Light's Path!",2)
  1098. end
  1099. wait(0.2)
  1100. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  1101. prt1.Velocity=vt(0,0,0)
  1102. wld1.Parent=nil
  1103. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
  1104. --[[local hit,pos = rayCast(prt1.Position,MMouse.Hit.p,100,game)
  1105. local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, MMouse.Hit.p.unit * (100)), workspace)
  1106. print(pos)
  1107. print(hit)
  1108. baseprt.CFrame=CFrame.new(pos)]]
  1109. baseprt.CFrame=RightArm.CFrame*cf(0,-70,0)
  1110. fd=Instance.new("BodyPosition")
  1111. fd.P=20000
  1112. fd.D=60
  1113. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1114. fd.position=baseprt.Position
  1115. fd.Parent=prt1
  1116. coroutine.resume(coroutine.create(function(BodyPos)
  1117. while fd.Parent~=nil do
  1118. wait()
  1119. so("http://roblox.com/asset/?id=10209640",prt1,0.4,3)
  1120. MagicCircle(BrickColor.new("White"),prt1.CFrame,1,1,1,5,5,5)
  1121. BlastEffect(BrickColor.new("White"),prt1.CFrame,1,1,1,2,2,2)
  1122. end
  1123. end),fd)
  1124. local c = game.Workspace:GetChildren();
  1125. for i = 1, #c do
  1126. local hum = c[i]:findFirstChild("Humanoid")
  1127. if hum ~= nil and hum.Health ~= 0 then
  1128. local head = c[i]:findFirstChild("Head");
  1129. if head ~= nil then
  1130. local targ = head.Position - prt1.Position;
  1131. local mag = targ.magnitude;
  1132. if mag <= 20 and c[i].Name ~= Player.Name then
  1133. attackdebounce=false
  1134. Damagefunc1(head,15,80)
  1135. end
  1136. end
  1137. end
  1138. end
  1139. coroutine.resume(coroutine.create(function(BodyPos)
  1140. for i=1,20 do
  1141. wait(0)
  1142. BodyPos.position=RightArm.Position
  1143. end
  1144. end),fd)
  1145. for i=0,1,0.2 do
  1146. wait()
  1147. Neck.C0=necko*euler(0,0,-2.355+3.925*i)
  1148. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+1*i,0,-offset+offset*i)
  1149. RW.C1=cf(0, 0.5, 0) * euler(0,0,-2.07+3.07*i)
  1150. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4-1.17*i)
  1151. end
  1152. wait(1)
  1153. fd.Parent=nil
  1154. wld1.Parent=RightArm
  1155. wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
  1156. baseprt.Parent=nil
  1157. prt1.CanCollide=true
  1158. attack=false
  1159. end
  1160.  
  1161. function ob1d(mouse)
  1162. if attack == true then return end
  1163. attack=true
  1164. coroutine.resume(coroutine.create(function()
  1165. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1166. bg.P = 9000
  1167. bg.Parent = Torso
  1168. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1169. while attack==true do
  1170. wait()
  1171. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1172. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1173. bg.Parent = Head
  1174. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1175. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1176. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1177. offset=offset/mag
  1178. --[[Neck.C0=necko*euler(0,0,0)
  1179. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  1180. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  1181. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1182. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
  1183. end
  1184. for i=0,1,0.1 do
  1185. wait()
  1186. Neck.C0=necko*euler(0,0,0)
  1187. Neck.C1=necko2*euler(0,0,0)
  1188. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  1189. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  1190. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1191. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1192. bg.Parent=nil
  1193. end
  1194. end))
  1195. hold=true
  1196. oneslash()
  1197. --twoslash()
  1198. end
  1199. function ob1u(mouse)
  1200. hold = false
  1201. end
  1202. buttonhold = false
  1203. eul=0
  1204. function key(key)
  1205. if attack == true then return end
  1206. if key=="z" or key=="x" or key=="c" or key=="b" or key=="v" or key =="f" then
  1207. coroutine.resume(coroutine.create(function()
  1208. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1209. bg.P = 9000
  1210. bg.Parent = Torso
  1211. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1212. attack=true
  1213. while attack==true do
  1214. wait()
  1215. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1216. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1217. bg.Parent = Head
  1218. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1219. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1220. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1221. offset=offset/mag
  1222. --[[Neck.C0=necko*euler(0,0,0)
  1223. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  1224. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  1225. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1226. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
  1227. end
  1228. for i=0,1,0.1 do
  1229. wait()
  1230. Neck.C0=necko*euler(0,0,0)
  1231. Neck.C1=necko2*euler(0,0,0)
  1232. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
  1233. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  1234. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1235. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1236. bg.Parent=nil
  1237. end
  1238. end))
  1239. end
  1240. if key=="z" then
  1241. YoyoMove()
  1242. end
  1243. if key=="x" then
  1244. YoyoGrab()
  1245. end
  1246. if key=="b" then
  1247. InfiniteWheel()
  1248. end
  1249. if key=="c" then
  1250. SonicExplosion()
  1251. end
  1252. if key=="v" then
  1253. BombGrab()
  1254. end
  1255. if key=="f" then
  1256. buttonhold = true
  1257. HeavensWheel()
  1258. end
  1259. end
  1260. function key2(key)
  1261. if key=="f" then
  1262. buttonhold = false
  1263. end
  1264. end
  1265. function s(mouse)
  1266. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1267. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1268. mouse.KeyDown:connect(key)
  1269. mouse.KeyUp:connect(key2)
  1270. unsheathed = true
  1271. player = Player
  1272. ch = Character
  1273. MMouse = mouse
  1274. RSH = ch.Torso["Right Shoulder"]
  1275. LSH = ch.Torso["Left Shoulder"]
  1276. --
  1277. RSH.Parent = nil
  1278. LSH.Parent = nil
  1279. --
  1280. RW.Part0 = ch.Torso
  1281. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1282. RW.C1 = CFrame.new(0, 0.5, 0)
  1283. RW.Part1 = ch["Right Arm"]
  1284. RW.Parent = ch.Torso
  1285. --_G.R = RW
  1286. --
  1287. LW.Part0 = ch.Torso
  1288. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1289. LW.C1 = CFrame.new(0, 0.5, 0)
  1290. LW.Part1 = ch["Left Arm"]
  1291. LW.Parent = ch.Torso
  1292. --_G.L = LW
  1293. --
  1294. equipanim()
  1295. end
  1296. function ds(mouse)
  1297. hideanim()
  1298. wait(0)
  1299. RW.Parent = nil
  1300. LW.Parent = nil
  1301. RSH.Parent = player.Character.Torso
  1302. LSH.Parent = player.Character.Torso
  1303. end
  1304. Bin.Selected:connect(s)
  1305. Bin.Deselected:connect(ds)
  1306. print("Yoyo loaded.")
  1307. -- mediafire
  1308. --[[
  1309. Copyrighted (C) Fenrier 2013
  1310. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement