Advertisement
MysteriousL

BTest

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