Advertisement
4rblxscripts

Vanguard Fixed

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