Advertisement
UltimateGate

Acrobat from Black Magic [YOYO]

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