Advertisement
303robloxhax

BS

Dec 24th, 2015
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. Vanguard script made by Sora295.
  3. Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
  4. And hello hacker :D
  5. Have fun with my scripts by the way c:
  6. ]]
  7. Player = game:GetService("Players").OniTaiji
  8. Character = Player.Character
  9. PlayerGui = Player.PlayerGui
  10. Backpack = Player.Backpack
  11. Torso = Character.Torso
  12. Head = Character.Head
  13. Humanoid = Character.Humanoid
  14. LeftArm = Character["Left Arm"]
  15. LeftLeg = Character["Left Leg"]
  16. RightArm = Character["Right Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LS = Torso["Left Shoulder"]
  19. LH = Torso["Left Hip"]
  20. RS = Torso["Right Shoulder"]
  21. RH = Torso["Right Hip"]
  22. Neck = Torso.Neck
  23. it=Instance.new
  24. vt=Vector3.new
  25. cf=CFrame.new
  26. euler=CFrame.fromEulerAnglesXYZ
  27. angles=CFrame.Angles
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. attack = false
  31. attacktype = 1
  32. damage = 99999999
  33. oridamage = 99999999
  34. BladeNumb=0.8
  35. GyroNumb=0
  36. attackdebounce = false
  37. ssdebounce=false
  38. MMouse=nil
  39. Mode="Sword"
  40. cannonmode=false
  41. combo=0
  42. spinning=false
  43. shootmode=true
  44. --player
  45. player = nil
  46. --save shoulders
  47. RSH, LSH = nil, nil
  48. --welds
  49. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  50. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  51.  
  52.  
  53. if Character:findFirstChild("Blast Blade",true) ~= nil then
  54. Character:findFirstChild("Blast Blade",true).Parent = nil
  55. end
  56. if Character:findFirstChild("Block",true) ~= nil then
  57. Character:findFirstChild("Block",true).Parent = nil
  58. end
  59.  
  60.  
  61. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  62. local fp = it("Part")
  63. fp.formFactor = formfactor
  64. fp.Parent = parent
  65. fp.Reflectance = reflectance
  66. fp.Transparency = transparency
  67. fp.CanCollide = false
  68. fp.Locked=true
  69. fp.BrickColor = brickcolor
  70. fp.Name = name
  71. fp.Size = size
  72. fp.Position = Torso.Position
  73. fp.BottomSurface="Smooth"
  74. fp.TopSurface="Smooth"
  75. fp:BreakJoints()
  76. return fp
  77. end
  78.  
  79. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  80. local mesh = it(Mesh)
  81. mesh.Parent = part
  82. if Mesh=="SpecialMesh" then
  83. mesh.MeshType = meshtype
  84. mesh.MeshId = meshid
  85. end
  86. mesh.Offset=offset
  87. mesh.Scale=scale
  88. return mesh
  89. end
  90.  
  91. function weld(parent,part0,part1,c0)
  92. local weld = it("Weld")
  93. weld.Parent = parent
  94. weld.Part0 = part0
  95. weld.Part1 = part1
  96. weld.C0 = c0
  97. return weld
  98. end
  99.  
  100. local modelzorz = Instance.new("Model")
  101. modelzorz.Parent = Character
  102. modelzorz.Name = "Blast Blade"
  103.  
  104. local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
  105. local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  106. local prt3=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part3",vt(0.8,0.5,0.8))
  107. local prt5=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part5",vt(1,1,1))
  108. local prt6=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part6",vt(1,1,1))
  109. local prt7=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part7",vt(1,1,1))
  110. local prt8=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part8",vt(1,1,1))
  111. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,5,3))
  112.  
  113. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.45,1,0.45))
  114. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.4,2,0.4))
  115. local msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(1,1,1))
  116. local msh5=mesh("SpecialMesh",prt5,"Head","",vt(0,0,0),vt(0.8,0.5,0.8))
  117. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.5,0.5,1.3))
  118. local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(1.4,1.4,1.4))
  119. local msh8=mesh("SpecialMesh",prt8,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(1.5,1.5,1.5))
  120.  
  121. local wld1=weld(prt1,prt1,Torso,euler(-2.5,1.57,0)*cf(-2,-3,-0.6))
  122. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  123. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1.2,0))
  124. local wld5=weld(prt5,prt5,prt2,euler(0,0,0)*cf(0,-1,0))
  125. local wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-0.2,0))
  126. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,-1,0))
  127. local wld8=weld(prt8,prt8,prt7,euler(0,1.57,0)*cf(0,0,0))
  128. local hitboxwld=weld(hitbox,hitbox,prt7,euler(0,0,0)*cf(0,-1.5,0))
  129.  
  130. numb=0
  131. for i=1,8 do
  132. local prt4=part(3,modelzorz,0.2,0,BrickColor.new("Medium stone grey"),"Part4",vt(1,1,1))
  133. local msh4=mesh("SpecialMesh",prt4,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.3,0.2,0.3))
  134. local wld4=weld(prt4,prt4,prt3,cf(0,-0.4,0)*euler(1.57,numb,0))
  135. numb=numb+0.785
  136. end
  137. numb=0
  138. for i=1,4 do
  139. local prt9=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part9",vt(1,1,1))
  140. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.2,2,0.2))
  141. local wld9=weld(prt9,prt9,prt8,cf(0,0,0)*euler(0,0,numb))
  142. numb=numb+0.785
  143. end
  144. numb=0
  145. numb2=0
  146. numb3=0
  147. for i=1,8 do
  148. local prt10=part(3,modelzorz,0.4,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  149. local msh10=mesh("SpecialMesh",prt10,"Wedge","",vt(0,0,0),vt(0.3-numb2,1.5+numb3,1.5-numb3))
  150. local wld10=weld(prt10,prt10,prt6,euler(0,3.14,0)*cf(0,-0.6-numb,-0.8))
  151. coroutine.resume(coroutine.create(function(Weld,Number,Number3)
  152. while true do
  153. wait(0)
  154. wld10.C0=euler(0,3.14,0)*cf(0,-0.6-Number,-BladeNumb+(Number3/2))
  155. end
  156. end),wld10,numb,numb3)
  157. local prt11=part(3,modelzorz,0.4,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
  158. local msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(0.3-numb2,1.5+numb3,1.5-numb3))
  159. local wld11=weld(prt11,prt11,prt6,cf(0,-0.6-numb,0.8))
  160. coroutine.resume(coroutine.create(function(Weld,Number,Number3)
  161. while true do
  162. wait(0)
  163. wld11.C0=cf(0,-0.6-Number,BladeNumb-(Number3/2))
  164. end
  165. end),wld11,numb,numb3)
  166. numb=numb+0.6
  167. numb2=numb2+0.01
  168. numb3=numb3-0.1
  169. end
  170. if (script.Parent.className ~= "HopperBin") then
  171. Tool = Instance.new("HopperBin")
  172. Tool.Parent = Backpack
  173. Tool.Name = "Blast Blade"
  174. script.Parent = Tool
  175. end
  176. Bin = script.Parent
  177.  
  178. local bg = it("BodyGyro")
  179. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  180. bg.P = 20e+003
  181. bg.Parent = nil
  182.  
  183. so = function(id,par,vol,pit)
  184. coroutine.resume(coroutine.create(function()
  185. local sou = Instance.new("Sound",par or workspace)
  186. sou.Volume=vol
  187. sou.Pitch=pit or 1
  188. sou.SoundId=id
  189. wait()
  190. sou:play()
  191. wait(6)
  192. sou:Remove()
  193. end))
  194. end
  195.  
  196. function unequipweld()
  197. wld1.Part1=Torso
  198. wld1.C0=euler(-2.5,1.57,0)*cf(-2,-3,-0.6)
  199. wld1.C1=cf(0,0,0)
  200. end
  201.  
  202. function equipweld()
  203. wld1.Part1=RightArm
  204. wld1.C0=euler(1.57+0.4,0,0)*cf(0,1,0)
  205. end
  206.  
  207. function hideanim()
  208. equipped=false
  209. wait(0.1)
  210. bg.Parent=nil
  211. Neck.C0=necko
  212. unequipweld()
  213. end
  214.  
  215. function equipanim()
  216. equipped=true
  217. wait(0.1)
  218. equipweld()
  219. if Mode=="Sword" then
  220. Neck.C0=necko
  221. RW.C0=cf(0.5, 0.5, -0.5) * euler(1,0,0)
  222. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.4)
  223. LW.C0=cf(-1, 0.5, -0.5) * euler(1,0,0)
  224. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  225. elseif Mode=="Cannon" then
  226. coroutine.resume(coroutine.create(function()
  227. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  228. bg.P = 9000
  229. bg.Parent = Torso
  230. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  231. while cannonmode==true do
  232. wait()
  233. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  234. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  235. bg.Parent = Head
  236. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  237. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  238. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  239. offset=offset/mag
  240. end
  241. for i=0,1,0.1 do
  242. wait()
  243. bg.Parent=nil
  244. end
  245. end))
  246. Neck.C0=necko*euler(0,0,1)
  247. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  248. RW.C0=cf(1.5, 0.5, 0) * euler(0,1,0)
  249. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  250. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1,1,0)
  251. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  252. end
  253. end
  254.  
  255. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  256. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  257. end
  258.  
  259. spread=0
  260. range=100
  261. rangepower=25
  262. function shoottrail(mouse,baseprt)
  263. coroutine.resume(coroutine.create(function(v)
  264. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  265. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  266. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  267. local rangepos = range
  268. local function drawtrail(From,To)
  269. local effectsmsh = Instance.new("CylinderMesh")
  270. effectsmsh.Scale = Vector3.new(1,1,1)
  271. effectsmsh.Name = "Mesh"
  272. local effectsg = Instance.new("Part")
  273. effectsg.formFactor = 3
  274. effectsg.CanCollide = false
  275. effectsg.Name = "Eff"
  276. effectsg.Locked = true
  277. effectsg.Anchored = true
  278. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  279. effectsg.Parent = workspace
  280. effectsmsh.Parent = effectsg
  281. effectsg.BrickColor = BrickColor.new("Really red")
  282. effectsg.Reflectance = 0.25
  283. local LP = From
  284. local point1 = To
  285. local mg = (LP - point1).magnitude
  286. effectsmsh.Scale = Vector3.new(5,mg*5,5)
  287. if shootmode==true then
  288. Lightning(LP,point1,5,1,"Really red",0.3,0.1)
  289. end
  290. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  291. coroutine.resume(coroutine.create(function()
  292. for i = 0 , 1 , 0.2 do
  293. wait()
  294. effectsg.Transparency = 1*i
  295. effectsmsh.Scale = Vector3.new(3-3*i,mg*5,3-3*i)
  296. end
  297. effectsg.Parent = nil
  298. end))
  299. end
  300. local newpos = baseprt.Position
  301. local inc = rangepower
  302. repeat
  303. wait()
  304. rangepos = rangepos - 10
  305. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  306. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  307. drawtrail(newpos,pos)
  308. newpos = newpos + (dir.lookVector * inc)
  309. if hit ~= nil then
  310. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  311. hum = hit.Parent.Humanoid
  312. tTorso=hit.Parent.Torso
  313. Damagefunc1(hit,9999999,9999999)
  314. attackdebounce=false
  315. --ADmg(hum,hit)
  316. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  317. hum = hit.Parent.Parent.Humanoid
  318. tTorso=hit.Parent.Parent.Torso
  319. Damagefunc1(hit.Parent.Parent.Torso,99999999,9999999)
  320. attackdebounce=false
  321. --ADmg(hum,hit)
  322. end
  323. MagicCircle(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,3,3,3)
  324. MagicBlock(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,2,2,2)
  325. end
  326. until rangepos <= 0
  327. end))
  328. end
  329.  
  330. function shoottrail2(mouse,baseprt)
  331. coroutine.resume(coroutine.create(function(v)
  332. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  333. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  334. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  335. local rangepos = range*5
  336. local function drawtrail(From,To)
  337. local effectsmsh = Instance.new("SpecialMesh")
  338. effectsmsh.Scale = Vector3.new(1,1,1)
  339. effectsmsh.Name = "Mesh"
  340. effectsmsh.MeshType = "Sphere"
  341. local effectsg = Instance.new("Part")
  342. effectsg.formFactor = 3
  343. effectsg.CanCollide = false
  344. effectsg.Name = "Eff"
  345. effectsg.Locked = true
  346. effectsg.Anchored = true
  347. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  348. effectsg.Parent = workspace
  349. effectsmsh.Parent = effectsg
  350. effectsg.BrickColor = BrickColor.new("Really red")
  351. effectsg.Reflectance = 0.25
  352. local LP = From
  353. local point1 = To
  354. local mg = (LP - point1).magnitude
  355. effectsmsh.Scale = Vector3.new(7,7,7)
  356. --for i=1,3 do
  357. Lightning(LP,point1,5,1,"Really red",0.3,0.1)
  358. --end
  359. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  360. coroutine.resume(coroutine.create(function()
  361. for i = 0 , 1 , 0.1 do
  362. wait()
  363. effectsg.Transparency = 1*i
  364. effectsmsh.Scale = Vector3.new(10-10*i,mg*5,10-10*i)
  365. end
  366. effectsg.Parent = nil
  367. end))
  368. end
  369. local newpos = baseprt.Position
  370. local inc = rangepower/5
  371. repeat
  372. --wait()
  373. rangepos = rangepos - 10
  374. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  375. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  376. drawtrail(newpos,pos)
  377. newpos = newpos + (dir.lookVector * inc)
  378. if hit ~= nil then
  379. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  380. hum = hit.Parent.Humanoid
  381. tTorso=hit.Parent.Torso
  382. Damagefunc1(hit,9999999,999999)
  383. attackdebounce=false
  384. --ADmg(hum,hit)
  385. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  386. hum = hit.Parent.Parent.Humanoid
  387. tTorso=hit.Parent.Parent.Torso
  388. Damagefunc1(hit.Parent.Parent.Torso,99999999,99999999)
  389. attackdebounce=false
  390. --ADmg(hum,hit)
  391. end
  392. MagicCircle(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,3,3,3)
  393. MagicBlock(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,2,2,2)
  394. end
  395. until rangepos <= 0
  396. end))
  397. end
  398.  
  399. function shoottrail3(mouse,baseprt)
  400. coroutine.resume(coroutine.create(function(v)
  401. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  402. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  403. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  404. local rangepos = range*50
  405. local function drawtrail(From,To)
  406. local effectsmsh = Instance.new("SpecialMesh")
  407. effectsmsh.Scale = Vector3.new(1,1,1)
  408. effectsmsh.Name = "Mesh"
  409. effectsmsh.MeshType = "FileMesh"
  410. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  411. local effectsg = Instance.new("Part")
  412. effectsg.formFactor = 3
  413. effectsg.CanCollide = false
  414. effectsg.Name = "Eff"
  415. effectsg.Locked = true
  416. effectsg.Anchored = true
  417. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  418. effectsg.Parent = workspace
  419. effectsmsh.Parent = effectsg
  420. effectsg.BrickColor = BrickColor.new("Really red")
  421. effectsg.Reflectance = 0.25
  422. local LP = From
  423. local point1 = To
  424. local mg = (LP - point1).magnitude
  425. effectsmsh.Scale = Vector3.new(2,2,4)
  426. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  427. coroutine.resume(coroutine.create(function()
  428. wait()
  429. effectsg.Parent = nil
  430. end))
  431. end
  432. local newpos = baseprt.Position
  433. local inc = rangepower/10
  434. repeat
  435. wait()
  436. rangepos = rangepos - 10
  437. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  438. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  439. drawtrail(newpos,pos)
  440. local list = game.Workspace:children()
  441. local torso = nil
  442. local dist = 100
  443. local temp = nil
  444. local human = nil
  445. local temp2 = nil
  446. for x = 1, #list do
  447. temp2 = list[x]
  448. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  449. temp = temp2:findFirstChild("Torso")
  450. human = temp2:findFirstChild("Humanoid")
  451. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  452. if (temp.Position - pos).magnitude < dist then
  453. torso = temp
  454. dist = (temp.Position - pos).magnitude
  455. end
  456. end
  457. end
  458. end
  459. if torso~=nil then
  460. dir=CFrame.new(pos,torso.Position)
  461. end
  462. newpos = newpos + (dir.lookVector * inc)
  463. if hit ~= nil then
  464. rangepos = 0
  465. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  466. hum = hit.Parent.Humanoid
  467. tTorso=hit.Parent.Torso
  468. Damagefunc1(hit,9999999,999999)
  469. attackdebounce=false
  470. --ADmg(hum,hit)
  471. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  472. hum = hit.Parent.Parent.Humanoid
  473. tTorso=hit.Parent.Parent.Torso
  474. Damagefunc1(hit.Parent.Parent.Torso,99999999,99999999)
  475. attackdebounce=false
  476. --ADmg(hum,hit)
  477. end
  478. for i=1,math.random(3,6) do
  479. BreakEffect(BrickColor.new("Really red"),CFrame.new(newpos),0.5,math.random(5,20),0.5)
  480. end
  481. so("http://roblox.com/asset/?id=3264793",hit,1,math.random()+math.random()+1)
  482. MagicCircle(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,3,3,3)
  483. MagicBlock(BrickColor.new("Really red"),CFrame.new(newpos),2,2,2,2,2,2)
  484. end
  485. until rangepos <= 0
  486. end))
  487. end
  488.  
  489. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  490. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  491. prt.Anchored=true
  492. prt.CFrame=cframe
  493. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  494. coroutine.resume(coroutine.create(function()
  495. for i=0,1,0.1 do
  496. wait()
  497. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  498. prt.Transparency=i
  499. msh.Scale=msh.Scale+vt(x3,y3,z3)
  500. end
  501. prt.Parent=nil
  502. end))
  503. end
  504.  
  505. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  506. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  507. prt.Anchored=true
  508. prt.CFrame=cframe
  509. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  510. coroutine.resume(coroutine.create(function()
  511. for i=0,1,0.1 do
  512. wait()
  513. prt.CFrame=prt.CFrame
  514. prt.Transparency=i
  515. msh.Scale=msh.Scale+vt(x3,y3,z3)
  516. end
  517. prt.Parent=nil
  518. end))
  519. end
  520.  
  521. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  522. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  523. prt.Anchored=true
  524. prt.CFrame=cframe
  525. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  526. coroutine.resume(coroutine.create(function()
  527. for i=0,1,0.05 do
  528. wait()
  529. prt.Transparency=i
  530. msh.Scale=msh.Scale+vt(x2,y2,z2)
  531. end
  532. prt.Parent=nil
  533. end))
  534. end
  535.  
  536. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  537. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  538. prt.Anchored=true
  539. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  540. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  541. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  542. CF=Part.CFrame
  543. Numbb=0
  544. randnumb=math.random()-math.random()
  545. for i=0,1,0.05 do
  546. wait()
  547. CF=CF*cf(0,1,0)
  548. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  549. Part.CFrame=CF*euler(Numbb,0,0)
  550. Part.Transparency=i
  551. Numbb=Numbb+randnumb
  552. end
  553. Part.Parent=nil
  554. end),prt,CF,Numbb,randnumb)
  555. end
  556.  
  557. function SpecialEffect()
  558. local prt=part(3,workspace,1,0,BrickColor.new("Really black"),"Part",vt(1,1,1))
  559. prt.Anchored=true
  560. prt.CFrame=Torso.CFrame
  561. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  562. coroutine.resume(coroutine.create(function(Part,Mesh)
  563. for i=0,1,0.2 do
  564. wait(0)
  565. Part.Transparency=i
  566. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  567. end
  568. prt.Parent=nil
  569. end),prt,msh)
  570. end
  571.  
  572. function Lightning(p0,p1,tym,ofs,col,th,tra)
  573. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  574. for i=1,tym do
  575. 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)
  576. 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)])
  577. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  578. if tym == i then
  579. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  580. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  581. else
  582. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  583. end
  584. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,.5)
  585. end
  586. end
  587.  
  588. function effect(Color,Ref,LP,P1,returnn)
  589. local effectsmsh = Instance.new("BlockMesh")
  590. effectsmsh.Scale = Vector3.new(0.4,1,0.4)
  591. effectsmsh.Name = "Mesh"
  592. local effectsg = Instance.new("Part")
  593. effectsg.formFactor = 3
  594. effectsg.CanCollide = false
  595. effectsg.Name = "Eff"
  596. effectsg.Locked = true
  597. effectsg.Anchored = true
  598. effectsg.Size = Vector3.new(0.2,1,0.2)
  599. effectsg.Parent = workspace
  600. effectsmsh.Parent = effectsg
  601. effectsg.BrickColor = BrickColor.new(Color)
  602. effectsg.Reflectance = Ref
  603. local point1 = P1
  604. local mg = (LP.p - point1.p).magnitude
  605. effectsg.Size = Vector3.new(0.4,mg,0.4)
  606. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  607. if returnn then return effectsg end
  608. coroutine.resume(coroutine.create(function()
  609. if not returnn then
  610. for i = 0 , 1 , 0.2 do
  611. wait()
  612. effectsg.Transparency = 1*i
  613. effectsmsh.Scale = Vector3.new(0.4-0.4*i,1,0.4-0.4*i)
  614. end
  615. wait()
  616. effectsg.Parent = nil
  617. end
  618. end))
  619. end
  620.  
  621. Damagefunc1=function(hit,Damage,Knockback)
  622. if hit.Parent==nil then
  623. return
  624. end
  625. CPlayer=Bin
  626. h=hit.Parent:FindFirstChild("Humanoid")
  627. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  628. if attackdebounce == false then
  629. attackdebounce = true
  630. coroutine.resume(coroutine.create(function()
  631. wait(0.2)
  632. attackdebounce = false
  633. end))
  634. Damage=Damage
  635. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  636. return
  637. end]]
  638. -- hs(hit,1.2)
  639. c=Instance.new("ObjectValue")
  640. c.Name="creator"
  641. c.Value=game.Players.LocalPlayer
  642. c.Parent=h
  643. game:GetService("Debris"):AddItem(c,.5)
  644. Damage=Damage+math.random(99999999,99999999)
  645. -- h:TakeDamage(Damage)
  646. blocked=false
  647. block=hit.Parent:findFirstChild("Block")
  648. if block~=nil then
  649. print("herp")
  650. if block.Value>0 then
  651. blocked=true
  652. block.Value=block.Value-1
  653. print(block.Value)
  654. end
  655. end
  656. if blocked==false then
  657. -- h:TakeDamage(Damage)
  658. h.Health=h.Health-Damage
  659. showDamage(hit.Parent,Damage,.99999999)
  660. else
  661. h:TakeDamage(1)
  662. showDamage(hit.Parent,1,.5)
  663. end
  664. vp=Instance.new("BodyVelocity")
  665. vp.P=500
  666. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  667. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  668. vp.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
  669. if Knockback>0 then
  670. vp.Parent=hit.Parent.Torso
  671. end
  672. game:GetService("Debris"):AddItem(vp,.25)
  673. game:GetService("Debris"):AddItem(r,.5)
  674. c=Instance.new("ObjectValue")
  675. c.Name="creator"
  676. c.Value=Player
  677. c.Parent=h
  678. game:GetService("Debris"):AddItem(c,.5)
  679. CRIT=false
  680. hitDeb=true
  681. AttackPos=6
  682. end
  683. end
  684. end
  685. Damagefuncbr=function(hit,Damage,Knockback)
  686. if hit.Parent==nil then
  687. return
  688. end
  689. CPlayer=Bin
  690. h=hit.Parent:FindFirstChild("Humanoid")
  691. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  692. if attackdebounce == false then
  693. attackdebounce = true
  694. coroutine.resume(coroutine.create(function()
  695. wait(0.2)
  696. attackdebounce = false
  697. end))
  698. Damage=Damage
  699. for i=1,math.random(3,6) do
  700. BreakEffect(BrickColor.new("Really red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  701. end
  702. coroutine.resume(coroutine.create(function(Part)
  703. for i=1,5 do
  704. wait()
  705. Part.CFrame=Head.CFrame*cf(0,0,-3)
  706. MagicBlock(BrickColor.new("Really red"),Part.CFrame*cf(0,0,0),1,1,1,1,1,1)
  707. end
  708. end),hit.Parent.Torso)
  709. so("http://roblox.com/asset/?id=3264793",hit.Parent.Torso,1,math.random()+math.random()+1)
  710. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  711. return
  712. end]]
  713. -- hs(hit,1.2)
  714. c=Instance.new("ObjectValue")
  715. c.Name="creator"
  716. c.Value=game.Players.LocalPlayer
  717. c.Parent=h
  718. game:GetService("Debris"):AddItem(c,.5)
  719. Damage=Damage+math.random(99999999,99999999)
  720. -- h:TakeDamage(Damage)
  721. blocked=false
  722. block=hit.Parent:findFirstChild("Block")
  723. if block~=nil then
  724. print("herp")
  725. if block.Value>0 then
  726. blocked=true
  727. block.Value=block.Value-1
  728. print(block.Value)
  729. end
  730. end
  731. if blocked==false then
  732. -- h:TakeDamage(Damage)
  733. h.Health=h.Health-Damage
  734. showDamage(hit.Parent,Damage,.5)
  735. else
  736. h:TakeDamage(1)
  737. showDamage(hit.Parent,1,.5)
  738. end
  739. vp=Instance.new("BodyVelocity")
  740. vp.P=500
  741. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  742. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  743. vp.velocity=Head.CFrame.lookVector*Knockback
  744. vp.Parent=hit.Parent.Torso
  745. game:GetService("Debris"):AddItem(vp,1)
  746. c=Instance.new("ObjectValue")
  747. c.Name="creator"
  748. c.Value=Player
  749. c.Parent=h
  750. game:GetService("Debris"):AddItem(c,.5)
  751. CRIT=false
  752. hitDeb=true
  753. AttackPos=6
  754. end
  755. end
  756. end
  757. Damagefunc2=function(hit,Damage,Knockback)
  758. if attackdebounce == false then
  759. -- attackdebounce = true
  760. coroutine.resume(coroutine.create(function()
  761. wait(0.1)
  762. attackdebounce = false
  763. end))
  764. if hit.Parent==nil then
  765. return
  766. end
  767. CPlayer=Bin
  768. blocked=false
  769. h=hit.Parent:FindFirstChild("Humanoid")
  770. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  771. Damage=Damage
  772. c=it("ObjectValue")
  773. c.Name="creator"
  774. c.Value=game.Players.LocalPlayer
  775. c.Parent=h
  776. game:GetService("Debris"):AddItem(c,.5)
  777. -- print(c.Value)
  778. --[[ if math.random(0,99)+math.random()<=7.8 then
  779. CRIT=true
  780. Damage=Damage*2
  781. s=it("Sound")
  782. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  783. s.Volume=1
  784. s.Pitch=2
  785. s.Parent=hit
  786. s.PlayOnRemove=true
  787. s.Parent=nil
  788.  
  789. end]]
  790. Damage=Damage+math.random(0,10)
  791. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  792. blocked=false
  793. block=hit.Parent:findFirstChild("Block")
  794. if block~=nil then
  795. print("herp")
  796. if block.Value>0 then
  797. blocked=true
  798. block.Value=block.Value-3
  799. print(block.Value)
  800. end
  801. end
  802. if blocked==false then
  803. -- h:TakeDamage(Damage)
  804. h.Health=h.Health-Damage
  805. showDamage(hit.Parent,Damage,.5)
  806. else
  807. h:TakeDamage(1)
  808. showDamage(hit.Parent,1,.5)
  809. end
  810. --if blocked==false then
  811. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  812. print(angle)
  813. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  814. rl=Instance.new("BodyAngularVelocity")
  815. rl.P=3000
  816. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  817. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  818. rl.Parent=hit
  819. coroutine.resume(coroutine.create(function(vel)
  820. wait(0.5)
  821. vel:Remove()
  822. end),rl)
  823. --end
  824. local bodyVelocity=Instance.new("BodyVelocity")
  825. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  826. bodyVelocity.P=5000
  827. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  828. bodyVelocity.Parent=hit
  829. coroutine.resume(coroutine.create(function(Vel)
  830. wait(0.2)
  831. Vel:Remove()
  832. end),bodyVelocity)
  833. c=it("ObjectValue")
  834. c.Name="creator"
  835. c.Value=Player
  836. c.Parent=h
  837. game:GetService("Debris"):AddItem(c,.5)
  838. CRIT=false
  839. hitDeb=true
  840. AttackPos=6
  841. end
  842. end
  843. end
  844.  
  845. showDamage=function(Char,Dealt,du)
  846. m=Instance.new("Model")
  847. m.Name=tostring(Dealt)
  848. h=Instance.new("Humanoid")
  849. h.Health=0
  850. h.MaxHealth=0
  851. h.Parent=m
  852. c=Instance.new("Part")
  853. c.Transparency=0
  854. c.BrickColor=BrickColor:Red()
  855. if CRIT==true then
  856. c.BrickColor=BrickColor.new("Really red")
  857. end
  858. c.Name="Head"
  859. c.TopSurface=0
  860. c.BottomSurface=0
  861. c.formFactor="Plate"
  862. c.Size=Vector3.new(1,.4,1)
  863. ms=Instance.new("CylinderMesh")
  864. ms.Scale=Vector3.new(.8,.8,.8)
  865. if CRIT==true then
  866. ms.Scale=Vector3.new(1,1.25,1)
  867. end
  868. ms.Parent=c
  869. c.Reflectance=0
  870. Instance.new("BodyGyro").Parent=c
  871. c.Parent=m
  872. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  873. f=Instance.new("BodyPosition")
  874. f.P=2000
  875. f.D=100
  876. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  877. f.position=c.Position+Vector3.new(0,3,0)
  878. f.Parent=c
  879. game:GetService("Debris"):AddItem(m,.5+du)
  880. c.CanCollide=false
  881. m.Parent=workspace
  882. c.CanCollide=false
  883. end
  884.  
  885. function oneslash()
  886. attack=true
  887. combo=1
  888. for i=0,1,0.1 do
  889. wait()
  890. Neck.C0=necko*euler(0,0,1*i)
  891. RW.C0=cf(0.5+1*i, 0.5, -0.5+0.5*i) * euler(1+2*i,0,0)
  892. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+1.5*i,0.4-0.4*i)
  893. LW.C0=cf(-1+1*i, 0.5+0.6*i, -0.5) * euler(1+2*i,0,0)
  894. LW.C1=cf(0, 0.5, 0) * euler(0,0,-1*i)
  895. end
  896. so("http://roblox.com/asset/?id=10209640",prt7,1,0.6)
  897. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,25,20) end)
  898. for i=0,1,0.1 do
  899. wait()
  900. Neck.C0=necko*euler(0,0,1-2*i)
  901. RW.C0=cf(1.5, 0.5, 0) * euler(3-3*i,-0.2*i,0)
  902. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  903. LW.C0=cf(0.5*i, 1.1-1*i, -0.5) * euler(3-3.5*i,0.5*i,0)
  904. LW.C1=cf(0, 0.5, 0) * euler(0,0,-1)
  905. end
  906. con1:disconnect()
  907. wait(0.2)
  908. --Neck.C0=necko
  909. attack=false
  910. end
  911.  
  912. function twoslash()
  913. attack=true
  914. combo=2
  915. for i=0,1,0.1 do
  916. wait()
  917. Neck.C0=necko*euler(0,0,-1)
  918. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.5*i,-0.2+1.77*i,0)
  919. RW.C1=cf(0, 0.5, 0) * euler(-0.5*i,0,0)
  920. 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)
  921. LW.C1=cf(0, 0.5, 0) * euler(0,0,-1+1*i)
  922. end
  923. so("http://roblox.com/asset/?id=10209640",prt7,1,0.7)
  924. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,25,30) end)
  925. for i=0,1,0.1 do
  926. wait()
  927. Neck.C0=necko*euler(0,0,-1+2*i)
  928. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.5,1.57,0)
  929. RW.C1=cf(0, 0.5, 0) * euler(-0.5+2*i,0,0)
  930. LW.C0=cf(-0.5+1*i, 0.5, -1*i) * euler(1.57,1.57,0)
  931. LW.C1=cf(0, 0.5, 0) * euler(1*i,0,0)
  932. end
  933. con1:disconnect()
  934. attack=false
  935. end
  936.  
  937. function Shoot()
  938. attack=true
  939. shoottrail(mouse,prt7)
  940. so("rbxasset://sounds/Launching rocket.wav",prt7,1,3)
  941. for i=0,1,0.2 do
  942. wait()
  943. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  944. RW.C0=cf(1.5, 0.5, 0) * euler(0,1,0)
  945. RW.C1=cf(0, 0.5, 0) * euler(0.3*i,0,0)
  946. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1-0.3*i,1,0)
  947. end
  948. for i=0,1,0.2 do
  949. wait()
  950. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  951. RW.C0=cf(1.5, 0.5, 0) * euler(0,1,0)
  952. RW.C1=cf(0, 0.5, 0) * euler(0.3-0.3*i,0,0)
  953. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1-0.3+0.3*i,1,0)
  954. end
  955. attack=false
  956. end
  957.  
  958. function GroundBlast()
  959. attack=true
  960. Humanoid.WalkSpeed=0
  961. for i=0,1,0.1 do
  962. wait()
  963. Neck.C0=necko
  964. wld1.C0=euler(1.57+0.4+2.64*i,0,0)*cf(0,1,0)
  965. RW.C0=cf(0.5+1*i, 0.5, -0.5+0.5*i) * euler(1+2.5*i,0,0)
  966. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+1.5*i,0.4-0.4*i)
  967. LW.C0=cf(-1+1*i, 0.5+0.5*i, -0.5) * euler(1+2.5*i,0,1*i)
  968. end
  969. so("http://www.roblox.com/asset/?id=2101137",prt7,1,0.75)
  970. for i=1,25 do
  971. wait()
  972. MagicCircle(BrickColor.new("Really 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)
  973. end
  974. for i=0,1,0.2 do
  975. wait()
  976. RW.C0=cf(1.5, 0.5, 0) * euler(3.5-2*i,0,0)
  977. LW.C0=cf(0.3*i, 1-0.5*i, -0.5) * euler(3.5-2.3*i,0,1)
  978. end
  979. so("http://www.roblox.com/asset/?id=2697431",prt7,1,0.2)
  980. BlastPos=prt7.Position+vt(0,-1,0)
  981. MagicCircle(BrickColor.new("Really red"),prt7.CFrame*cf(0,1,0),1,1,1,10,10,10)
  982. MagicBlock(BrickColor.new("Really red"),prt7.CFrame*cf(0,1,0),1,1,1,5,5,5)
  983. MagicBlock(BrickColor.new("Really red"),prt7.CFrame*cf(0,1,0),1,1,1,7,7,7)
  984. local c = game.Workspace:GetChildren()
  985. for i = 1, #c do
  986. local hum = c[i]:findFirstChild("Humanoid")
  987. if hum ~= nil and hum.Health ~= 0 then
  988. local head = c[i]:findFirstChild("Head")
  989. if head ~= nil then
  990. local targ = head.Position - BlastPos
  991. local mag = targ.magnitude
  992. if mag <= 20 and c[i].Name ~= Player.Name then
  993. attackdebounce=false
  994. Damagefunc2(head,25,30)
  995. end
  996. end
  997. end
  998. end
  999. wait(0.5)
  1000. for i=0,1,0.1 do
  1001. wait()
  1002. wld1.C0=euler(4.61-2.64*i,0,0)*cf(0,1,0)
  1003. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1.5-0.5*i,0,0)
  1004. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5*i,0.4*i)
  1005. LW.C0=cf(0.3-1.3*i, 0.5, -0.5) * euler(1.2-0.2*i,0,1-1*i)
  1006. end
  1007. Humanoid.WalkSpeed=16
  1008. attack=false
  1009. end
  1010.  
  1011. function BreakSlash()
  1012. attack=true
  1013. coroutine.resume(coroutine.create(function()
  1014. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1015. bg.P = 20000
  1016. bg.Parent = Torso
  1017. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1018. while attack==true and spinning==false do
  1019. wait()
  1020. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1021. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1022. bg.Parent = Head
  1023. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1024. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1025. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1026. offset=offset/mag
  1027. end
  1028. for i=0,1,0.1 do
  1029. wait()
  1030. bg.Parent=nil
  1031. end
  1032. end))
  1033. for i=0,1,0.1 do
  1034. wait()
  1035. Neck.C0=necko*euler(0,0,-1*i)
  1036. RW.C0=cf(0.5, 0.5, -0.5) * euler(1+0.57*i,0,0)
  1037. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.4+0.4*i)
  1038. LW.C0=cf(-1, 0.5, -0.5+0.5*i) * euler(1+0.57*i,0,0)
  1039. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1040. end
  1041. wait(0.3)
  1042. so("http://roblox.com/asset/?id=10209640",prt7,1,0.7)
  1043. con1=hitbox.Touched:connect(function(hit) Damagefuncbr(hit,25,1) end)
  1044. for i=0,1,0.1 do
  1045. wait()
  1046. 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)
  1047. wld1.C0=euler(1.57+0.4+0.4*i,0,0)*cf(0,1,0)
  1048. Neck.C0=necko*euler(0,0,-1+2.57*i)
  1049. RW.C0=cf(0.5+1*i, 0.5, -0.5+0.5*i) * euler(1.57,0,0)
  1050. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.8-1.6*i)
  1051. LW.C0=cf(-1+1.5*i, 0.5, -0.5*i) * euler(1.57,0,0)
  1052. LW.C1=cf(0, 0.5, 0) * euler(0,0,-1*i)
  1053. end
  1054. con1:disconnect()
  1055. DoBreak=false
  1056. for i=1,10 do
  1057. wait()
  1058. if BreakNumb==1 then
  1059. DoBreak=true
  1060. end
  1061. end
  1062. if DoBreak==true then
  1063. for i=0,1,0.2 do
  1064. wait()
  1065. wld1.C0=euler(1.57+0.4+0.4-0.4*i,0,0)*cf(0,1,0)
  1066. Neck.C0=necko*euler(0,0,-1+2.57-2.57*i)
  1067. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1.57,0,0)
  1068. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.8-1.6+1.6*i)
  1069. LW.C0=cf(-1+1.5-1.5*i, 0.5, -0.5+0.5*i) * euler(1.57,0,0)
  1070. LW.C1=cf(0, 0.5, 0) * euler(0,0,-1+1*i)
  1071. end
  1072. so("http://www.roblox.com/asset/?id=2101137",prt7,1,0.8)
  1073. for i=0,10 do
  1074. wait()
  1075. MagicBlock(BrickColor.new("Really red"),hitbox.CFrame,1,1,1,2,2,2)
  1076. end
  1077. local vel2 = Instance.new("BodyVelocity")
  1078. vel2.Parent = Torso
  1079. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  1080. vel2.velocity = Head.CFrame.lookVector*20
  1081. bg.Parent=Torso
  1082. CF = Torso.CFrame
  1083. con1=hitbox.Touched:connect(function(hit) Damagefuncbr(hit,10,10) end)
  1084. spinning=true
  1085. durnumb=0
  1086. for i=1,5 do
  1087. for i=0,1,0.1 do
  1088. if durnumb==7 then
  1089. so("rbxasset://sounds\\swordlunge.wav",prt7,0.5,0.7)
  1090. durnumb=0
  1091. end
  1092. bg.Parent=Torso
  1093. bg.cframe=CF*euler(0,-6.283*i,0)
  1094. 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)
  1095. durnumb=durnumb+1
  1096. wait()
  1097. end
  1098. end
  1099. spinning=false
  1100. con1:disconnect()
  1101. vel2.Parent=nil
  1102. bg.Parent=nil
  1103. end
  1104. wait(1)
  1105. bg.P = 9000
  1106. wld1.C0=euler(1.57+0.4,0,0)*cf(0,1,0)
  1107. Neck.C0=necko
  1108. RW.C0=cf(0.5, 0.5, -0.5) * euler(1,0,0)
  1109. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.4)
  1110. LW.C0=cf(-1, 0.5, -0.5) * euler(1,0,0)
  1111. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1112. attack=false
  1113. end
  1114.  
  1115. function GroundWave()
  1116. attack=true
  1117. for i=0,1,0.1 do
  1118. wait()
  1119. wld1.C0=euler(1.57+0.4+2.64*i,0,-0.4*i)*cf(0,1,0)
  1120. RW.C0=cf(0.5, 0.5+1*i, -0.5) * euler(1+2.5*i,0,0)
  1121. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+1.5*i,0.4)
  1122. LW.C0=cf(-1+0.5*i, 0.5+1*i, -0.5) * euler(1+2.5*i,0,0)
  1123. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.4*i)
  1124. end
  1125. so("http://roblox.com/asset/?id=10209640",prt7,1,0.6)
  1126. for i=0,1,0.1 do
  1127. wait()
  1128. RW.C0=cf(0.5, 1.5-1*i, -0.5) * euler(3.5-2*i,0,0)
  1129. LW.C0=cf(-0.5, 1.5-1*i, -0.5) * euler(3.5-2*i,0,0)
  1130. end
  1131. coroutine.resume(coroutine.create(function()
  1132. CF=Torso.CFrame
  1133. numb=-5
  1134. BaseCF=CF
  1135. for i=1,8 do
  1136. BaseCF=CF*cf(0,-2,numb)
  1137. local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"Part1",vt(1,1,1))
  1138. baseprt.Anchored=true
  1139. baseprt.CFrame=BaseCF
  1140. game:GetService("Debris"):AddItem(baseprt,.5)
  1141. local c = game.Workspace:GetChildren()
  1142. for i = 1, #c do
  1143. local hum = c[i]:findFirstChild("Humanoid")
  1144. if hum ~= nil and hum.Health ~= 0 then
  1145. local head = c[i]:findFirstChild("Head")
  1146. if head ~= nil then
  1147. local targ = head.Position - baseprt.Position
  1148. local mag = targ.magnitude
  1149. if mag <= 7 and c[i].Name ~= Player.Name then
  1150. attackdebounce=false
  1151. Damagefunc1(head,10,30)
  1152. end
  1153. end
  1154. end
  1155. end
  1156. so("http://www.roblox.com/asset/?id=2697431",baseprt,5,0.4)
  1157. MagicBlock(BrickColor.new("Really red"),BaseCF,0.5,0.5,0.5,2,2,2)
  1158. BlastEffect(BrickColor.new("Really red"),BaseCF,0.5,0.5,0.5,0.5,0.5,0.5)
  1159. numb=numb-3
  1160. wait(0.2)
  1161. end
  1162. end))
  1163. wait(1)
  1164. for i=0,1,0.1 do
  1165. wait()
  1166. wld1.C0=euler(1.57+0.4+2.64-2.64*i,0,-0.4+0.4*i)*cf(0,1,0)
  1167. RW.C0=cf(0.5, 0.5, -0.5) * euler(1.5-0.5*i,0,0)
  1168. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5*i,0.4)
  1169. LW.C0=cf(-0.5-0.5*i, 0.5, -0.5) * euler(1.5-0.5*i,0,0)
  1170. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.4+0.4*i)
  1171. end
  1172. attack=false
  1173. end
  1174.  
  1175. function MegaBlast()
  1176. attack=true
  1177. so("http://www.roblox.com/asset/?id=2974000",prt7,1,0.6)
  1178. MagicCircle(BrickColor.new("Really red"),prt7.CFrame,1,1,1,2,2,2)
  1179. for i=1,10 do
  1180. wait(0.1)
  1181. MagicBlock(BrickColor.new("Really red"),prt7.CFrame*cf(math.random(-1,1),math.random(-1,1),math.random(-1,1)),0,0,0,0.5,0.5,0.5)
  1182. end
  1183. wait(0.5)
  1184. so("http://www.roblox.com/asset/?id=2974249",prt7,1,0.6)
  1185. so("http://www.roblox.com/asset?id=1369158",prt7,1,2)
  1186. shoottrail2(mouse,prt7)
  1187. MagicCircle(BrickColor.new("Really red"),prt7.CFrame,1,1,1,3,3,3)
  1188. attack=false
  1189. end
  1190.  
  1191. function BreakStab()
  1192. attack=true
  1193. doringeffect=true
  1194. for i=0,1,0.1 do
  1195. wait()
  1196. Neck.C0=necko*euler(0,0,1+1*i)
  1197. RW.C0=cf(1.5, 0.5, 0) * euler(0,1,0.5*i)
  1198. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1,1,0.5*i)
  1199. end
  1200. so("http://www.roblox.com/asset/?id=2101137",prt7,1,0.75)
  1201. MagicCircle(BrickColor.new("Really red"),prt7.CFrame,1,1,1,2,2,2)
  1202. local ring=part(3,modelzorz,0,1,BrickColor.new("Really red"),"Ring",vt(1,1,1))
  1203. local ringmsh=mesh("SpecialMesh",ring,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(2,2,4))
  1204. local ringwld=weld(ring,ring,prt7,euler(0,1.57,0))
  1205. coroutine.resume(coroutine.create(function(Part,Weld)
  1206. for i=1,0,-0.02 do
  1207. wait()
  1208. Part.Transparency=i
  1209. Weld.C0=Weld.C0*euler(1,0,0)
  1210. MagicBlock(BrickColor.new("Really red"),Part.CFrame*cf(0,1,0),0,0,0,0.5,0.5,0.5)
  1211. end
  1212. while doringeffect==true do
  1213. wait()
  1214. Weld.C0=Weld.C0*euler(1,0,0)
  1215. MagicBlock(BrickColor.new("Really red"),Part.CFrame*cf(0,1,0),0,0,0,0.5,0.5,0.5)
  1216. end
  1217. end),ring,ringwld)
  1218. wait(2)
  1219. doringeffect=false
  1220. for i=0,1,0.1 do
  1221. wait()
  1222. Neck.C0=necko*euler(0,0,2)
  1223. RW.C0=cf(1.5, 0.5, 0) * euler(1.57*i,1+0.57*i,0.5-0.5*i)
  1224. RW.C1=cf(0, 0.5, 0) * euler(0.5*i,0,0)
  1225. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1+0.57*i,1+0.57*i,0.5-0.5*i)
  1226. end
  1227. so("http://roblox.com/asset/?id=10209640",prt7,1,0.7)
  1228. for i=0,1,0.1 do
  1229. wait()
  1230. Neck.C0=necko*euler(0,0,2-2*i)
  1231. end
  1232. ring.Parent=nil
  1233. shoottrail3(mouse,prt7)
  1234. for i=0,1,0.1 do
  1235. wait()
  1236. Neck.C0=necko*euler(0,0,-2*i)
  1237. end
  1238. wait(1)
  1239. for i=0,1,0.1 do
  1240. wait()
  1241. Neck.C0=necko*euler(0,0,-2+3*i)
  1242. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-1.57*i,1.57-0.57*i,0)
  1243. RW.C1=cf(0, 0.5, 0) * euler(0.5-0.5*i,0,0)
  1244. LW.C0=cf(-1.5, 0.5, -0.5) * euler(1.57-0.57*i,1.57-0.57*i,0)
  1245. end
  1246. attack=false
  1247. end
  1248.  
  1249. function ob1d(mouse)
  1250. if attack == true then return end
  1251. hold=true
  1252. if Mode=="Sword" then
  1253. attack=true
  1254. coroutine.resume(coroutine.create(function()
  1255. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1256. bg.P = 9000
  1257. bg.Parent = Torso
  1258. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1259. while attack==true do
  1260. wait()
  1261. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1262. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1263. bg.Parent = Head
  1264. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1265. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1266. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1267. offset=offset/mag
  1268. end
  1269. for i=0,1,0.1 do
  1270. wait()
  1271. bg.Parent=nil
  1272. end
  1273. end))
  1274. if combo==0 then
  1275. oneslash()
  1276. elseif combo==1 then
  1277. twoslash()
  1278. else
  1279. wait(0.3)
  1280. Neck.C0=necko
  1281. RW.C0=cf(0.5, 0.5, -0.5) * euler(1,0,0)
  1282. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.4)
  1283. LW.C0=cf(-1, 0.5, -0.5) * euler(1,0,0)
  1284. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1285. attack=false
  1286. end
  1287. coroutine.resume(coroutine.create(function()
  1288. wait(0.5)
  1289. if attack==false then
  1290. combo=0
  1291. Neck.C0=necko
  1292. RW.C0=cf(0.5, 0.5, -0.5) * euler(1,0,0)
  1293. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0.4)
  1294. LW.C0=cf(-1, 0.5, -0.5) * euler(1,0,0)
  1295. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1296. end
  1297. end))
  1298. elseif Mode=="Cannon" then
  1299. Shoot()
  1300. end
  1301. end
  1302.  
  1303. function ob1u(mouse)
  1304. hold = false
  1305. end
  1306.  
  1307. buttonhold = false
  1308.  
  1309. eul=0
  1310. BreakNumb=0
  1311. function key(key)
  1312. if key=="x" then
  1313. BreakNumb=BreakNumb+1
  1314. coroutine.resume(coroutine.create(function()
  1315. wait()
  1316. BreakNumb=0
  1317. end))
  1318. end
  1319. if attack == true then return end
  1320. if key=="f" then
  1321. BreakEffect(BrickColor.new("Really red"),Torso.CFrame,0.5,math.random(5,20),0.5)
  1322. end
  1323. if Mode=="Sword" then
  1324. if key=="z" then
  1325. GroundBlast()
  1326. end
  1327. if key=="x" then
  1328. BreakSlash()
  1329. end
  1330. if key=="c" then
  1331. GroundWave()
  1332. end
  1333. elseif Mode=="Cannon" then
  1334. if key=="z" then
  1335. MegaBlast()
  1336. end
  1337. if key=="x" then
  1338. BreakStab()
  1339. end
  1340. end
  1341. if key=="v" then
  1342. if Mode=="Sword" then
  1343. Mode="Cannon"
  1344. for i=0,1,0.1 do
  1345. wait()
  1346. wld1.C0=euler(1.57+0.4-0.4*i,0,0)*cf(0,1,0)
  1347. RW.C0=cf(0.5+1*i, 0.5, -0.5+0.5*i) * euler(1+1.5*i,0,0)
  1348. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+1.5*i,0.4-0.4*i)
  1349. LW.C0=cf(-1+1.3*i, 0.5, -0.5-0.3*i) * euler(1+1.7*i,0,1*i)
  1350. end
  1351. so("rbxasset://sounds\\unsheath.wav",prt7,1,0.5)
  1352. for i=0,1,0.2 do
  1353. wait()
  1354. BladeNumb=0.8+0.7*i
  1355. msh6.Scale=vt(0.5,0.5,1.3+1.4*i)
  1356. RW.C0=cf(1.5, 0.5, 0) * euler(2.5-1*i,0,0)
  1357. LW.C0=cf(0.3, 0.5, -0.8) * euler(2.7-1.2*i,0,1)
  1358. end
  1359. for i=0,1,0.1 do
  1360. wait()
  1361. RW.C0=cf(1.5, 0.5, 0) * euler(2.5-1+0.3*i,0,0)
  1362. LW.C0=cf(0.3, 0.5, -0.8) * euler(2.7-1.2+0.4*i,0,1)
  1363. end
  1364. cannonmode=true
  1365. coroutine.resume(coroutine.create(function()
  1366. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1367. bg.P = 9000
  1368. bg.Parent = Torso
  1369. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1370. while cannonmode==true do
  1371. wait()
  1372. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1373. bg.cframe = cf(Head.Position,pos4) * euler(0,3.14+GyroNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1374. bg.Parent = Head
  1375. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1376. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1377. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1378. offset=offset/mag
  1379. end
  1380. for i=0,1,0.1 do
  1381. wait()
  1382. bg.Parent=nil
  1383. end
  1384. end))
  1385. for i=0,1,0.1 do
  1386. wait()
  1387. Neck.C0=necko*euler(0,0,1*i)
  1388. RW.C0=cf(1.5, 0.5, 0) * euler(1.8-1.8*i,1*i,0)
  1389. 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)
  1390. end
  1391. elseif Mode=="Cannon" then
  1392. Mode="Sword"
  1393. for i=0,1,0.1 do
  1394. wait()
  1395. Neck.C0=necko*euler(0,0,1-1*i)
  1396. RW.C0=cf(1.5, 0.5, 0) * euler(1.5*i,1-1*i,0)
  1397. 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)
  1398. end
  1399. cannonmode=false
  1400. so("rbxasset://sounds\\unsheath.wav",prt7,1,0.7)
  1401. for i=0,1,0.1 do
  1402. wait()
  1403. BladeNumb=1.5-0.7*i
  1404. msh6.Scale=vt(0.5,0.5,2.7-1.4*i)
  1405. RW.C0=cf(1.5, 0.5, 0) * euler(1.5+0.5*i,0,0)
  1406. LW.C0=cf(0.2, 0.5+0.2*i, -0.6) * euler(1.2+0.6*i,0,1)
  1407. end
  1408. for i=0,1,0.1 do
  1409. wait()
  1410. wld1.C0=euler(1.57+0.4*i,0,0)*cf(0,1,0)
  1411. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(2-1*i,0,0)
  1412. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5*i,0.4*i)
  1413. 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)
  1414. end
  1415. end
  1416. end
  1417. wait(5)
  1418. combo=0
  1419. end
  1420.  
  1421. function key2(key)
  1422. end
  1423.  
  1424. function s(mouse)
  1425. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1426. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1427. mouse.KeyDown:connect(key)
  1428. mouse.KeyUp:connect(key2)
  1429. unsheathed = true
  1430. player = Player
  1431. ch = Character
  1432. MMouse = mouse
  1433. RSH = ch.Torso["Right Shoulder"]
  1434. LSH = ch.Torso["Left Shoulder"]
  1435. --
  1436. RSH.Parent = nil
  1437. LSH.Parent = nil
  1438. --
  1439. RW.Part0 = ch.Torso
  1440. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1441. RW.C1 = CFrame.new(0, 0.5, 0)
  1442. RW.Part1 = ch["Right Arm"]
  1443. RW.Parent = ch.Torso
  1444. --_G.R = RW
  1445. --
  1446. LW.Part0 = ch.Torso
  1447. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1448. LW.C1 = CFrame.new(0, 0.5, 0)
  1449. LW.Part1 = ch["Left Arm"]
  1450. LW.Parent = ch.Torso
  1451. --_G.L = LW
  1452. --
  1453. equipanim()
  1454. end
  1455.  
  1456. function ds(mouse)
  1457. hideanim()
  1458. wait(0)
  1459. RW.Parent = nil
  1460. LW.Parent = nil
  1461. RSH.Parent = player.Character.Torso
  1462. LSH.Parent = player.Character.Torso
  1463. end
  1464.  
  1465. Bin.Selected:connect(s)
  1466. Bin.Deselected:connect(ds)
  1467. print("Blast Blade loaded.")
  1468. -- mediafire
  1469. --[[
  1470. Copyrighted (C) Sora295 2013
  1471. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement