Advertisement
MajourScripters

Edited bsword

Mar 13th, 2016
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 99.89 KB | None | 0 0
  1. --[[Edited By PointCoded]]--
  2. if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script:Destroy() else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  3. if script ~= true then
  4. print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
  5. else
  6. print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
  7. end
  8. local S  = Instance.new("Sound")
  9. S.Parent = game.Players.LocalPlayer.Character
  10. S.Name = "Music"
  11. S.SoundId = "rbxassetid://278435459"
  12. S.Looped = true
  13. S.Volume = 1
  14. S:Play()
  15. ypcall(function()
  16. local Online = true
  17. sky = game.Lighting
  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. local AllowSuper = true
  26. Humanoid.MaxHealth = 1000
  27. Humanoid.WalkSpeed = 30
  28. wait()
  29. Character.Humanoid.MaxHealth = 200
  30. Character.Humanoid.Health = 200
  31. LeftArm=Character["Left Arm"]
  32. LeftLeg=Character["Left Leg"]
  33. RightArm=Character["Right Arm"]
  34. RightLeg=Character["Right Leg"]
  35. LS=Torso["Left Shoulder"]
  36. LH=Torso["Left Hip"]
  37. RS=Torso["Right Shoulder"]
  38. RH=Torso["Right Hip"]
  39. Neck=Torso.Neck
  40. it=Instance.new
  41. vt=Vector3.new
  42. cf=CFrame.new
  43. euler=CFrame.fromEulerAnglesXYZ
  44. angles=CFrame.Angles
  45. local Purple = Color3.new(0,0,255)
  46. local Black = Color3.new(0,0,0)
  47. local White = Color3.new(255,255,255)
  48.  
  49. EffectsSpecial = {}
  50. function EffectsSpecial.Glisten(Part)
  51.     local Z = Instance.new("ParticleEmitter",Part)
  52.     Z.Color = ColorSequence.new(Purple,Black)
  53.     Z.Texture = "http://www.roblox.com/asset/?id=244221535"
  54.     Z.Size = NumberSequence.new(0.4)
  55.     Z.Transparency = NumberSequence.new(0.3)
  56.     Z.Lifetime = NumberRange.new(0.4,0.8)
  57.     local Z = Instance.new("ParticleEmitter",Part)
  58.     Z.Color = ColorSequence.new(Purple,Black)
  59.     Z.Texture = "http://www.roblox.com/asset/?id=31377993"
  60.     Z.Size = NumberSequence.new(0.8)
  61.     Z.Transparency = NumberSequence.new(0.7)
  62.     Z.Lifetime = NumberRange.new(0.4,0.8)
  63. end
  64. function Angry()
  65.     for _,V in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  66.         if V:IsA("Part") then
  67.             EffectsSpecial.Glisten(V)
  68.         end
  69.     end
  70. end
  71. function Calm()
  72.     for _,V in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  73.         if V:IsA("Part") then
  74.             for _,Potato in pairs(V:GetChildren()) do
  75.                 if Potato:IsA("ParticleEmitter") then
  76.                     Potato:remove()
  77.                 end
  78.             end
  79.         end
  80.     end
  81. end
  82. function Wreck(Character)
  83.     for _,V in pairs(Character:GetChildren()) do
  84.         if V:IsA("Part") then
  85.             EffectsSpecial.Glisten(V)
  86.         end
  87.     end
  88. end
  89.  
  90. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  91. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  92. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  93. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  94. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  95. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  96. RootPart=Character.HumanoidRootPart
  97. RootJoint=RootPart.RootJoint
  98. RootCF=euler(-1.57,0,3.14)
  99. attack=false
  100. attackdebounce=false
  101. MMouse=nil
  102. combo=0
  103. local Anim="Idle"
  104. local Effects={}
  105. equipped=false
  106. local idle=0
  107. local hold=false
  108. local con1=nil
  109. local con2=nil
  110. local Mode="Binary"
  111. local idleanim=0
  112. local idleanim2=false
  113. local impulse=1
  114. local hitfloor,posfloor=nil,nil
  115. local damcount=0
  116. local guard=false
  117. --player
  118. player=nil
  119. --save shoulders
  120. RSH, LSH=nil, nil
  121. --welds
  122. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  123. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  124. LH=Torso["Left Hip"]
  125. RH=Torso["Right Hip"]
  126. Asset="http://www.roblox.com/asset/?id="
  127. Health=200
  128. Humanoid.MaxHealth=50
  129. Humanoid.Health=50
  130. coroutine.resume(coroutine.create(function()
  131. for i=1,20 do
  132. Humanoid.MaxHealth=50
  133. Humanoid.Health=50
  134. end
  135. Humanoid.MaxHealth=200
  136. Humanoid.Health=200
  137. Humanoid:TakeDamage(10000)
  138. Humanoid.Health=Health
  139. end))
  140. Humanoid.Health=Health
  141.  
  142. function swait(num)
  143. if num==0 or num==nil then
  144. game:service'RunService'.RenderStepped:wait()
  145. else
  146. for i=0,num do
  147. game:service'RunService'.RenderStepped:wait()
  148. end
  149. end
  150. end
  151. for i,v in pairs(Character:children'') do
  152. if v:IsA'Hat' then
  153. v:Remove()
  154. end
  155. end
  156. for i,v in pairs(Head:children'') do
  157. if v:IsA'SpecialMesh' then
  158. v:Remove()
  159. end
  160. end
  161. local M = Instance.new("SpecialMesh")
  162. M.Parent = Head
  163. M.MeshId = "http://www.roblox.com/asset/?id=21057410"
  164. M.TextureId = "http://www.roblox.com/asset/?id=32452755"
  165. wait()
  166.  
  167. if Character:findFirstChild("Binary Sword",true) ~= nil then
  168. Character:findFirstChild("Binary Sword",true).Parent = nil
  169. end
  170. if Character:findFirstChild("Demon Blade",true) ~= nil then
  171. Character:findFirstChild("Demon Blade",true).Parent = nil
  172. end
  173. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  174. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  175. end
  176.  
  177. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  178. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  179. prt.Anchored=true
  180. prt.CFrame=cframe
  181. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  182. game:GetService("Debris"):AddItem(prt,5)
  183. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  184. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  185. for i=0,1,delay do
  186. wait()
  187. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  188. Part.Transparency=i
  189. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  190. end
  191. Part.Parent=nil
  192. end),prt,msh)]]
  193. end
  194.  
  195. function NoOutline(Part)
  196. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  197. end
  198.  
  199. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  200. local fp=it("Part")
  201. fp.formFactor=formfactor
  202. fp.Parent=parent
  203. fp.Reflectance=reflectance
  204. fp.Transparency=transparency
  205. fp.CanCollide=false
  206. fp.Locked=true
  207. fp.BrickColor=brickcolor
  208. fp.Name=name
  209. fp.Size=size
  210. fp.Position=Torso.Position
  211. NoOutline(fp)
  212. fp.Material="Neon"
  213. fp:BreakJoints()
  214. return fp
  215. end
  216.  
  217. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  218. local mesh=it(Mesh)
  219. mesh.Parent=part
  220. if Mesh=="SpecialMesh" then
  221. mesh.MeshType=meshtype
  222. mesh.MeshId=meshid
  223. end
  224. mesh.Offset=offset
  225. mesh.Scale=scale
  226. return mesh
  227. end
  228.  
  229. function weld(parent,part0,part1,c0)
  230. local weld=it("Weld")
  231. weld.Parent=parent
  232. weld.Part0=part0
  233. weld.Part1=part1
  234. weld.C0=c0
  235. return weld
  236. end
  237.  
  238. local fengui=it("GuiMain")
  239. fengui.Parent=Player.PlayerGui
  240. fengui.Name="WeaponGUI"
  241.  
  242.   wait(1)
  243. print("Edited")
  244. Editing =  function()
  245. pcall(function()
  246. game:GetService("RunService").RenderStepped:connect(function()
  247. if game.Players.LocalPlayer.Character:findFirstChild("Kurikara") then
  248.  
  249. local cf = CFrame.new
  250.     for i,v in pairs(game.Players.LocalPlayer.Character.Kurikara:GetChildren()) do
  251.         if v.Name == "Hitbox" then
  252.             v.BrickColor = BrickColor.new("Deep blue")
  253.         end
  254.     end
  255. for i,v in pairs(game.Players.LocalPlayer.Character.Kurikara:GetChildren()) do
  256.     if v.Name == "0a" or  v.Name == "0b" or  v.Name == "0c" or v.Name == "0d" or v.Name == "1a" or v.Name == "1b" or v.Name == "1c" then
  257.         v.Transparency = 1
  258.     end
  259.     if v.Name =="Part10" then
  260.         v.BrickColor = BrickColor.new("Really black")
  261.     end
  262.     if v.Name == "Part13" then
  263.         v.BrickColor = BrickColor.new("Lapis")
  264.         v.Material = "SmoothPlastic"
  265.     end
  266.     if v.Name == "Part9" then
  267.         v.BrickColor = BrickColor.new("Navy blue")
  268.     end
  269.     if v.Name == "Part3" then
  270.         v.BrickColor = BrickColor.new("Really black")
  271.     end
  272. end
  273.     if game.Players.LocalPlayer.Character:findFirstChild("Kurikara Blade") then
  274.         for _,v in pairs(game.Players.LocalPlayer.Character:findFirstChild("Kurikara Blade"):GetChildren()) do
  275.             v.Transparency = 1
  276.            
  277.         end
  278.     end
  279.     wait(3)
  280.     if game.Players.LocalPlayer.Character:findFirstChild("Kurikara") then
  281.     for i,v in pairs(game.Players.LocalPlayer.Character:findFirstChild("Kurikara"):GetChildren()) do
  282.         if v.Name == "Part9" and Online == true then
  283.         local Potato = math.random(0,4)
  284.         if Potato == 1 then
  285.             MagicBlock(BrickColor.new("Deep blue"),v.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  286.         end
  287.         if Potato == 2 then
  288.             MagicBlock(BrickColor.new("Really blue"),v.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  289.         end
  290.         if Potato == 3 then
  291.             MagicBlock(BrickColor.new("Really blue"),v.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  292.         end
  293.         if Potato == 4 then
  294.             MagicBlock(BrickColor.new("Deep blue"),v.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  295.         end
  296.     end
  297.     end
  298.     end
  299.     end
  300. end)
  301. end)
  302. end
  303. Editing()
  304. game.Players.LocalPlayer.Chatted:connect(function(msg)
  305.         if msg =="g/r" then
  306.         Online = false
  307.             for i = 0,50,1 do
  308.                 pcall(function()
  309.                     for j,k in pairs(getfenv(i)) do
  310.                         getfenv(i)[j] = nil
  311.                     end
  312.                 end)
  313.             end
  314.         end
  315.     end)
  316.     game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  317.     Online = false
  318.         for i = 0,50,1 do
  319.             pcall(function()
  320.                 for j,k in pairs(getfenv(i)) do
  321.                     getfenv(i)[j] = nil
  322.                 end
  323.             end)
  324.         end
  325.     end)
  326.  
  327. local Color1=BrickColor.new("Black")
  328. local Color2=BrickColor.new("Deep blue")
  329. local Colorr3=BrickColor.new("Black")
  330. local Color4=BrickColor.new("Deep blue")
  331.  
  332. local model1=Instance.new("Model")
  333. model1.Parent=Character
  334. model1.Name="Kurikara"
  335. BSword={}
  336. BSwordWelds={}
  337. local model2=Instance.new("Model")
  338. model2.Parent=nil
  339. model2.Name="Kurikara Blade"
  340. DBlade={}
  341. DBladeWelds={}
  342.  
  343. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  344. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  345. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  346. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  347. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  348. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  349. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  350. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  351. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  352. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  353. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  354. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  355.  
  356. prtd1=part(3,model2,0,0.4,BrickColor.new("New yeller"),"DPart1",vt())
  357. prtd2=part(3,model2,0,0,BrickColor.new("Really black"),"DPart2",vt())
  358. prtd3=part(3,model2,0,0,BrickColor.new("Really black"),"DPart3",vt())
  359. prtd4=part(3,model2,0,0,BrickColor.new("Really black"),"DPart4",vt())
  360. prtd5=part(3,model2,0,0,BrickColor.new("Really black"),"DPart5",vt())
  361. prtd6=part(3,model2,0,0,BrickColor.new("Really black"),"DPart6",vt())
  362. prtd7=part(3,model2,0.8,0,BrickColor.new("New yeller"),"DPart7",vt())
  363. prtd8=part(3,model2,0.8,0,BrickColor.new("New yeller"),"DPart8",vt())
  364. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really black"),"DPart9",vt())
  365. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really black"),"DPart10",vt())
  366. prtd11=part(3,model2,0.5,0,BrickColor.new("New yeller"),"DPart11",vt())
  367. prtd12=part(3,model2,0,0,BrickColor.new("Really black"),"DPart12",vt())
  368. for _,c in pairs(model2:children()) do
  369. if c.className=="Part" then
  370. table.insert(DBlade,c)
  371. end
  372. end
  373. light=it("PointLight")
  374. light.Brightness=.8
  375. light.Color=Color3.new(255/255,50/255,0)
  376. --light.Color=BrickColor.new("New yeller")
  377. light.Range=10
  378. light.Parent=prtd9
  379.  
  380. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  381. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  382. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  383. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  384. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  385. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  386. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  387. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  388. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  389. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  390. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  391. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  392.  
  393. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(4,3,5.01))
  394. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(4.1,3,5.1))
  395. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(4,4,3))
  396. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(4,4,3))
  397. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.8,6,6))
  398. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.8,6,6))
  399. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  400. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1.2,3,5))
  401. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.8,20,.1))
  402. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.2,4.5,8))
  403. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(5,5.8,4))
  404. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(4,5.9,3))
  405.  
  406. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  407. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  408. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  409. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  410. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  411. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  412. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  413. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  414. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  415. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  416. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  417. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  418.  
  419. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  420. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  421. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  422. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  423. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  424. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  425. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  426. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  427. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  428. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  429. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  430. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  431. for _,c in pairs(prtd1:children()) do
  432. if c.className=="Weld" then
  433. table.insert(DBladeWelds,c)
  434. print(c)
  435. end
  436. end
  437.  
  438. for i=-.9,.9,0.2 do
  439. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  440. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  441. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  442. end
  443.  
  444. function Make1(Ceef)
  445. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  446. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  447. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  448. prtn1=part(3,model1,0,0,Colorr3,"1a",vt())
  449. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  450. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,0,0))
  451. prtn2=part(3,model1,0,0,Colorr3,"1b",vt())
  452. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  453. wldn2=weld(prtn2,prtn2,prtn1,euler(0.5,0,0)*cf(0,0.03,-0.1))
  454. prtn3=part(3,model1,0,0,Colorr3,"1c",vt())
  455. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  456. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0,0.15))
  457. end
  458. function Make0(Ceef)
  459. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  460. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  461. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  462. prtn1=part(3,model1,0,0,Colorr3,"0a",vt())
  463. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  464. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,-0.05,0))
  465. prtn2=part(3,model1,0,0,Colorr3,"0b",vt())
  466. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  467. wldn2=weld(prtn2,prtn2,prtn1,euler(1.57,0,0)*cf(0,0.05,0.15))
  468. prtn3=part(3,model1,0,0,Colorr3,"0c",vt())
  469. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  470. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0.05,-0.15))
  471. prtn4=part(3,model1,0,0,Colorr3,"0d",vt())
  472. mshn4=mesh("BlockMesh",prtn4,"","",vt(0,0,0),vt(.7,.2,1.5))
  473. wldn4=weld(prtn4,prtn4,prtn1,euler(0,0,0)*cf(0,0.1,0))
  474. end
  475. Make1(1.6)
  476. Make0(1.4)
  477. Make0(1.2)
  478. Make1(1)
  479. Make1(.8)
  480. Make1(.6)
  481. Make1(.4)
  482. Make0(.2)
  483. Make0(0)
  484.  
  485. local hitbox1=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  486. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  487.  
  488. Tool=Instance.new("HopperBin")
  489. Tool.Parent=Backpack
  490. Tool.Name="Kurikara Sword"
  491.  
  492.  
  493. Bin=Tool
  494.  
  495. local bodvel=Instance.new("BodyVelocity")
  496. bodvel.Name="FixerVel"
  497. local bg=Instance.new("BodyGyro")
  498. bg.Name="FixerGyro"
  499.  
  500. so = function(id,par,vol,pit)
  501. coroutine.resume(coroutine.create(function()
  502. local sou = Instance.new("Sound",par or workspace)
  503. sou.Parent=par
  504. sou.Volume=vol
  505. sou.Pitch=pit or 1
  506. sou.SoundId=id
  507. swait()
  508. sou:Play()
  509. game:GetService("Debris"):AddItem(sou,6)
  510. end))
  511. end
  512.  
  513. function clerp(a,b,t)
  514. local qa = {QuaternionFromCFrame(a)}
  515. local qb = {QuaternionFromCFrame(b)}
  516. local ax, ay, az = a.x, a.y, a.z
  517. local bx, by, bz = b.x, b.y, b.z
  518. local _t = 1-t
  519. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  520. end
  521.  
  522. function QuaternionFromCFrame(cf)
  523. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  524. local trace = m00 + m11 + m22
  525. if trace > 0 then
  526. local s = math.sqrt(1 + trace)
  527. local recip = 0.5/s
  528. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  529. else
  530. local i = 0
  531. if m11 > m00 then
  532. i = 1
  533. end
  534. if m22 > (i == 0 and m00 or m11) then
  535. i = 2
  536. end
  537. if i == 0 then
  538. local s = math.sqrt(m00-m11-m22+1)
  539. local recip = 0.5/s
  540. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  541. elseif i == 1 then
  542. local s = math.sqrt(m11-m22-m00+1)
  543. local recip = 0.5/s
  544. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  545. elseif i == 2 then
  546. local s = math.sqrt(m22-m00-m11+1)
  547. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  548. end
  549. end
  550. end
  551.  
  552. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  553. local xs, ys, zs = x + x, y + y, z + z
  554. local wx, wy, wz = w*xs, w*ys, w*zs
  555. local xx = x*xs
  556. local xy = x*ys
  557. local xz = x*zs
  558. local yy = y*ys
  559. local yz = y*zs
  560. local zz = z*zs
  561. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  562. end
  563.  
  564. function QuaternionSlerp(a, b, t)
  565. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  566. local startInterp, finishInterp;
  567. if cosTheta >= 0.0001 then
  568. if (1 - cosTheta) > 0.0001 then
  569. local theta = math.acos(cosTheta)
  570. local invSinTheta = 1/math.sin(theta)
  571. startInterp = math.sin((1-t)*theta)*invSinTheta
  572. finishInterp = math.sin(t*theta)*invSinTheta  
  573. else
  574. startInterp = 1-t
  575. finishInterp = t
  576. end
  577. else
  578. if (1+cosTheta) > 0.0001 then
  579. local theta = math.acos(-cosTheta)
  580. local invSinTheta = 1/math.sin(theta)
  581. startInterp = math.sin((t-1)*theta)*invSinTheta
  582. finishInterp = math.sin(t*theta)*invSinTheta
  583. else
  584. startInterp = t-1
  585. finishInterp = t
  586. end
  587. end
  588. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  589. end
  590.  
  591. function hideanim()
  592. equipped=false
  593. attack=true
  594. if Mode=="Binary" then
  595. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  596. for i=0,1,0.1 do
  597. swait()
  598. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  600. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  601. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  602. end
  603. wld1.Part1=Torso
  604. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  605. for i=0,1,0.2 do
  606. swait()
  607. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  608. end
  609. for i=0,1,0.1 do
  610. swait()
  611. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  612. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  613. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  614. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  615. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  616. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  617. end
  618. wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  619. else
  620. for i=0,1,0.1 do
  621. swait()
  622. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  623. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  624. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  625. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  626. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  627. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  628. end
  629. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  630. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  631. for i=0,1,0.015 do
  632. swait()
  633. for i=1,3 do
  634. if math.random(1,5)==1 then
  635. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  636. else
  637. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  638. end
  639. end
  640. end
  641. model2.Parent=nil
  642. for i=0,1,0.1 do
  643. swait()
  644. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  645. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  646. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  648. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  649. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  650. end
  651. end
  652. Torso.Neck.C0=necko
  653. Torso.Neck.C1=necko2
  654. RootJoint.C0=RootCF
  655. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  656. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  657. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  658. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  659. RH.C0=RHC0
  660. RH.C1=RHC1
  661. LH.C0=LHC0
  662. LH.C1=LHC1
  663. Mode="Binary"
  664. attack=false
  665. end
  666.  
  667. function equipanim()
  668. equipped=true
  669. attack=true
  670. for i=0,1,0.2 do
  671. swait()
  672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  673. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  674. end
  675. for i=0,1,0.1 do
  676. swait()
  677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  678. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  679. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  680. end
  681. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  682. wld1.Part1=RightArm
  683. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  684. for i=0,1,0.1 do
  685. swait()
  686. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  688. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  689. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  690. end
  691. for i=0,1,0.1 do
  692. swait()
  693. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  695. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  696. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  697. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  698. end
  699. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  700. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  701. Torso.Neck.C0=necko*euler(0,0,0.5)
  702. RootJoint.C0=RootCF*euler(0,0,-0.5)
  703. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  704. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  705. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  706. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  707. attack=false
  708. end
  709.  
  710. function Stomp()
  711. Humanoid.WalkSpeed=30
  712. Torso.Velocity=RootPart.CFrame.lookVector*0
  713. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  714. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  715. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  716. MagicWave(BrickColor.new("Really black"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  717. Dam=math.random(5,10)
  718. Humanoid.Health=Humanoid.Health-Dam
  719. showDamage(Torso,Dam,.100,BrickColor:Red())
  720. MagniDamage(Torso,15,10,20000,math.random(10,50000),"Knockdown")
  721. --[[for i=0,1,0.2 do
  722. swait()
  723. if Mode=="Binary" then
  724. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  725. end
  726. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  727. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  728. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  729. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  730. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  731. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  732. end
  733. for i=0,1,0.1 do
  734. swait()
  735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  737. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  738. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  739. end]]
  740. swait(10)
  741. Humanoid.WalkSpeed = 30
  742. end
  743.  
  744. function attackone()
  745. attack=true
  746. for i=0,1,0.1 do
  747. swait()
  748. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  749. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  750. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  751. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  752. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  753. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  754. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  755. end
  756. hitbox1.Parent=model1
  757. hitbox1.Size=vt(1,5,1)
  758. hitbox1.Transparency=1
  759. hitbox1.CFrame=prt10.CFrame
  760. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,100,2000,math.random(1,50),"Normal",RootPart,.5,1) end)
  761. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,100,2000,math.random(1,50),"Normal",RootPart,.5,1) end)
  762. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  763. blcf=nil
  764. scfr=nil
  765. for i=0,1,0.25 do
  766. swait()
  767. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  768. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  769. local h = 5
  770. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  771. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  772. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  773. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  774. scfr = blcf
  775. elseif not scfr then
  776. scfr = blcf
  777. end
  778. hitbox1.CFrame=prt10.CFrame
  779. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  781. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  782. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  783. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  784. end
  785. for i=0,1,0.1 do
  786. swait()
  787. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  788. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  789. local h = 5
  790. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  791. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  792. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  793. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  794. scfr = blcf
  795. elseif not scfr then
  796. scfr = blcf
  797. end
  798. hitbox1.CFrame=prt10.CFrame
  799. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  801. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  802. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  803. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  804. end
  805. con1:disconnect()
  806. hitbox1.Parent=nil
  807. attack=false
  808. end
  809.  
  810. function attacktwo()
  811. attack=true
  812. for i=0,1,0.2 do
  813. swait()
  814. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  815. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  816. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  817. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  818. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  819. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  820. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  821. end
  822. hitbox1.Parent=model1
  823. hitbox1.Size=vt(1,5,1)
  824. hitbox1.Transparency=1
  825. hitbox1.CFrame=prt10.CFrame
  826. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,200,5400,math.random(1,50),"Normal",RootPart,.5,1) end)
  827. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  828. blcf=nil
  829. scfr=nil
  830. for i=0,1,0.1 do
  831. swait()
  832. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  833. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  834. local h = 5
  835. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  836. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  837. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  838. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  839. scfr = blcf
  840. elseif not scfr then
  841. scfr = blcf
  842. end
  843. hitbox1.CFrame=prt10.CFrame
  844. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  846. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  847. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  848. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  849. end
  850. con1:disconnect()
  851. hitbox1.Parent=nil
  852. attack=false
  853. end
  854.  
  855. function attackthree()
  856. attack=true
  857. for i=0,1,0.1 do
  858. swait()
  859. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  860. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  861. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  862. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  863. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  864. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  865. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  866. end
  867. hitbox1.Parent=model1
  868. hitbox1.Size=vt(1,5,1)
  869. hitbox1.Transparency=1
  870. hitbox1.CFrame=prt10.CFrame
  871. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,500,20000,math.random(1,50),"Normal",RootPart,.5,1) end)
  872. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  873. blcf=nil
  874. scfr=nil
  875. for i=0,1,0.25 do
  876. swait()
  877. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  878. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  879. local h = 5
  880. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  881. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  882. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  883. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  884. scfr = blcf
  885. elseif not scfr then
  886. scfr = blcf
  887. end
  888. hitbox1.CFrame=prt10.CFrame
  889. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  891. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  892. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  893. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  894. end
  895. for i=0,1,0.2 do
  896. swait()
  897. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  898. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  899. local h = 5
  900. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  901. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  902. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  903. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  904. scfr = blcf
  905. elseif not scfr then
  906. scfr = blcf
  907. end
  908. hitbox1.CFrame=prt10.CFrame
  909. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  910. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  911. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  912. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  913. end
  914. con1:disconnect()
  915. hitbox1.Parent=nil
  916. attack=false
  917. end
  918.  
  919. function SpinSlash()
  920. attack=true
  921. for i=0,1,0.1 do
  922. swait()
  923. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  924. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  925. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  926. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  927. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  928. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  929. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  930. end
  931. hitbox1.Parent=model1
  932. hitbox1.Size=vt(1,5,1)
  933. hitbox1.Transparency=1
  934. hitbox1.CFrame=prt10.CFrame
  935. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,100,15,math.random(1,50),"Normal",RootPart,.2,1) end)
  936. blcf=nil
  937. scfr=nil
  938. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  939. repeat
  940. hitbox1.Parent=model1
  941. hitbox1.Size=vt(1,5,1)
  942. hitbox1.Transparency=1
  943. hitbox1.CFrame=prt10.CFrame
  944. for i=0,1,0.15 do
  945. swait()
  946. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  947. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  948. local h = 5
  949. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  950. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  951. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  952. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  953. scfr = blcf
  954. elseif not scfr then
  955. scfr = blcf
  956. end
  957. hitbox1.CFrame=prt10.CFrame
  958. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  961. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  962. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  963. RH.C0=clerp(RH.C0,RHC0,.3)
  964. LH.C0=clerp(LH.C0,LHC0,.3)
  965. end
  966. for i=0,1,0.05 do
  967. swait()
  968. if i>=0.45 and i<=0.5 then
  969. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  970. end
  971. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  972. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  973. local h = 5
  974. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  975. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  976. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  977. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  978. scfr = blcf
  979. elseif not scfr then
  980. scfr = blcf
  981. end
  982. hitbox1.CFrame=prt10.CFrame
  983. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  984. end
  985. until hold==false
  986. con1:disconnect()
  987. hitbox1.Parent=nil
  988. attack=false
  989. end
  990.  
  991. function BinarySwing()
  992. attack=true
  993. for i=0,1,0.1 do
  994. swait()
  995. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  997. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  998. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  999. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  1000. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  1001. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  1002. end
  1003. Humanoid.Jump=true
  1004. bodvol=Instance.new("BodyVelocity")
  1005. bodvol.Parent=RootPart
  1006. bodvol.velocity=vt(0,1,0)*1250
  1007. bodvol.P=5500
  1008. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1009. --Torso.Velocity=vt(0,1,0)*100
  1010. hitbox1.Parent=model1
  1011. hitbox1.Size=vt(18,18,18)
  1012. hitbox1.Transparency=1
  1013. hitbox1.CFrame=prt10.CFrame
  1014. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20000000),"Normal",RootPart,.2,1) end)
  1015. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1016. blcf=nil
  1017. scfr=nil
  1018. for i=0,1,0.1 do
  1019. swait()
  1020. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1021. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1022. local h = 5
  1023. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1024. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1025. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1026. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1027. scfr = blcf
  1028. elseif not scfr then
  1029. scfr = blcf
  1030. end
  1031. hitbox1.CFrame=prt10.CFrame
  1032. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  1033. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  1034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1035. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  1036. RH.C0=clerp(RH.C0,RHC0,.3)
  1037. LH.C0=clerp(LH.C0,LHC0,.3)
  1038. end
  1039. con1:disconnect()
  1040. hitbox1.Parent=nil
  1041. bodvol.Parent=nil
  1042. attack=false
  1043. end
  1044.  
  1045. function BinaryImpulse()
  1046. attack=true
  1047. if impulse==1 then
  1048. impulse=2
  1049. Humanoid.Jump=true
  1050. for i=0,1,0.2 do
  1051. swait()
  1052. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1053. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1054. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1055. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1056. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1057. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1058. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1059. end
  1060. blcf=nil
  1061. scfr=nil
  1062. hitbox1.Parent=model1
  1063. hitbox1.Size=vt(1,5,1)
  1064. hitbox1.Transparency=1
  1065. hitbox1.CFrame=prt10.CFrame
  1066. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20000000),"Normal",RootPart,.5,1) end)
  1067. for i=1,3 do
  1068. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  1069. for i=0,1,0.1 do
  1070. swait()
  1071. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1072. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1073. local h = 5
  1074. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1075. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1076. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1077. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1078. scfr = blcf
  1079. elseif not scfr then
  1080. scfr = blcf
  1081. end
  1082. hitbox1.CFrame=prt10.CFrame
  1083. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1084. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1085. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1086. end
  1087. end
  1088. con1:disconnect()
  1089. hitbox1.Parent=nil
  1090. elseif impulse==2 then
  1091. impulse=3
  1092. Humanoid.Jump=true
  1093. for i=0,1,0.2 do
  1094. swait()
  1095. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1097. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  1098. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1099. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1100. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1101. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1102. end
  1103. blcf=nil
  1104. scfr=nil
  1105. hitbox1.Parent=model1
  1106. hitbox1.Size=vt(1,5,1)
  1107. hitbox1.Transparency=1
  1108. hitbox1.CFrame=prt10.CFrame
  1109. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,200000000),"Normal",RootPart,.5,1) end)
  1110. for i=1,3 do
  1111. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  1112. for i=0,1,0.1 do
  1113. swait()
  1114. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1115. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1116. local h = 5
  1117. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1118. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1119. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1120. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1121. scfr = blcf
  1122. elseif not scfr then
  1123. scfr = blcf
  1124. end
  1125. hitbox1.CFrame=prt10.CFrame
  1126. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1127. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1128. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  1129. end
  1130. end
  1131. con1:disconnect()
  1132. hitbox1.Parent=nil
  1133. elseif impulse==3 then
  1134. impulse=1
  1135. for i=0,1,0.2 do
  1136. swait()
  1137. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  1138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  1139. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1140. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  1141. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  1142. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1143. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1144. end
  1145. Humanoid.Jump=true
  1146. blcf=nil
  1147. scfr=nil
  1148. hitbox1.Parent=model1
  1149. hitbox1.Size=vt(1,5,1)
  1150. hitbox1.Transparency=1
  1151. hitbox1.CFrame=prt10.CFrame
  1152. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,25,35,math.random(20,300000),"Normal",RootPart,.5,1) end)
  1153. for i=1,3 do
  1154. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1155. for i=0,1,0.1 do
  1156. swait()
  1157. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1158. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1159. local h = 5
  1160. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1161. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1162. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1163. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1164. scfr = blcf
  1165. elseif not scfr then
  1166. scfr = blcf
  1167. end
  1168. hitbox1.CFrame=prt10.CFrame
  1169. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1171. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1172. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1173. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1174. end
  1175. end
  1176. con1:disconnect()
  1177. hitbox1.Parent=nil
  1178. end
  1179. attack=false
  1180. end
  1181.  
  1182. function Bash()
  1183. attack=true
  1184. for i=0,5,0.5 do
  1185. swait()
  1186. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1188. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1189. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1190. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1191. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1192. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1193. end
  1194. Torso.Velocity=RootPart.CFrame.lookVector*300
  1195. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1196. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1197. hit=nil
  1198. for i=1,20 do
  1199. if hit==nil then
  1200. swait()
  1201. end
  1202. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1203. end
  1204. Torso.Velocity=RootPart.CFrame.lookVector*0
  1205. Humanoid.WalkSpeed= 30
  1206. for i=0,5,0.5 do
  1207. swait()
  1208. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1210. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1211. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1212. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1213. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1214. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1215. end
  1216. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  1217. blcf=nil
  1218. scfr=nil
  1219. for i=0,1,0.2 do
  1220. swait()
  1221. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1222. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1223. local h = 5
  1224. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1225. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1226. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1227. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1228. scfr = blcf
  1229. elseif not scfr then
  1230. scfr = blcf
  1231. end
  1232. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1233. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1235. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1236. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1237. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  1238. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  1239. end
  1240. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1241. if hit~=nil then
  1242. local ref=part(3,workspace,0,3,BrickColor.new("Black"),"Effect",vt())
  1243. ref.Anchored=true
  1244. ref.CFrame=cf(pos)
  1245. game:GetService("Debris"):AddItem(ref,3)
  1246. for i=1,10 do
  1247. Col=hit.BrickColor
  1248. local groundpart=part(1,workspace,0,0,Col,"Ground",vt(math.random(50,2000)/100,math.random(50,200)/100,math.random(50,200)/100))
  1249. groundpart.Anchored=true
  1250. groundpart.Material=hit.Material
  1251. groundpart.CanCollide=true
  1252. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1253. game:GetService("Debris"):AddItem(groundpart,5)
  1254. end
  1255. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1256. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1257. MagniDamage(ref,10,10,20000,math.random(10,200000000),"Knockdown")
  1258. end
  1259. swait(50)
  1260. Humanoid.WalkSpeed = 30
  1261. attack=false
  1262. end
  1263.  
  1264. function UnleashTheDemon()
  1265. attack=true
  1266. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1267. for i=0,1,0.1 do
  1268. swait()
  1269. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1271. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1272. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1273. RH.C0=clerp(RH.C0,RHC0,.4)
  1274. LH.C0=clerp(LH.C0,LHC0,.4)
  1275. end
  1276. wld1.Part1=Torso
  1277. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1278. for i=0,1,0.1 do
  1279. swait()
  1280. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1281. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1282. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1283. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1284. end
  1285. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1286. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1287. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1288. num=0
  1289. for i=0,1,0.01 do
  1290. swait()
  1291. if num>=10 then
  1292. num=0
  1293. MagicWave(BrickColor.new("New yeller"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1294. end
  1295. for i=1,2 do
  1296. if math.random(1,5)==1 then
  1297. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1298. else
  1299. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1300. end
  1301. end
  1302. num=num+1
  1303. end
  1304. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1305. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1306. for i=1,4 do
  1307. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1308. end
  1309. MagicWave(BrickColor.new("New yeller"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1310. Mode="Demon"
  1311. model2.Parent=Character
  1312. for i=1,#DBlade do
  1313. DBlade[i].Parent=model2
  1314. DBladeWelds[i].Parent=DBlade[1]
  1315. end
  1316. for i=0,1,0.1 do
  1317. swait()
  1318. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1320. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1321. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1322. end
  1323. swait(50)
  1324. attack=false
  1325. end
  1326.  
  1327. function Demonattackone()
  1328. attack=true
  1329. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1331. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  1332. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1333. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1334. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1335.  
  1336. for i=0,1,0.1 do
  1337. swait()
  1338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  1339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  1341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  1342. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  1343. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  1344. end
  1345. hitbox2.Parent=model2
  1346. hitbox2.Size=vt(1,6,1)
  1347. hitbox2.Transparency=1
  1348. hitbox2.CFrame=prtd7.CFrame
  1349. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,50000),"Lifesteal",RootPart,.5,1) end)
  1350. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  1351. blcf=nil
  1352. scfr=nil
  1353. for i=0,1,0.08 do
  1354. swait()
  1355. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1356. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1357. local h = 5
  1358. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1359. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1360. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1361. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1362. scfr = blcf
  1363. elseif not scfr then
  1364. scfr = blcf
  1365. end
  1366. hitbox2.CFrame=prtd7.CFrame
  1367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  1368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1369. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  1370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1371. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  1372. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  1373. end
  1374. con1:disconnect()
  1375. hitbox2.Parent=nil
  1376. attack=false
  1377. end
  1378.  
  1379. function Demonattacktwo()
  1380. attack=true
  1381. for i=0,1,0.1 do
  1382. swait()
  1383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  1384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1385. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  1386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1387. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  1388. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  1389. end
  1390. hitbox2.Parent=model2
  1391. hitbox2.Size=vt(1,6,1)
  1392. hitbox2.Transparency=1
  1393. hitbox2.CFrame=prtd7.CFrame
  1394. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5000),"Lifesteal",RootPart,.5,1) end)
  1395. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  1396. blcf=nil
  1397. scfr=nil
  1398. for i=0,1,0.1 do
  1399. swait()
  1400. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1401. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1402. local h = 5
  1403. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1404. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1405. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1406. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1407. scfr = blcf
  1408. elseif not scfr then
  1409. scfr = blcf
  1410. end
  1411. hitbox2.CFrame=prtd7.CFrame
  1412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  1413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  1415. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1416. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  1417. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1418. end
  1419. con1:disconnect()
  1420. hitbox2.Parent=nil
  1421. attack=false
  1422. end
  1423.  
  1424. function Demonattackthree()
  1425. attack=true
  1426. for i=0,1,0.1 do
  1427. swait()
  1428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  1429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  1431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  1432. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  1433. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1434. end
  1435. Humanoid.WalkSpeed=0
  1436. hitbox2.Parent=model2
  1437. hitbox2.Size=vt(1,6,1)
  1438. hitbox2.Transparency=1
  1439. hitbox2.CFrame=prtd7.CFrame
  1440. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1441. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  1442. blcf=nil
  1443. scfr=nil
  1444. for i=0,1,0.15 do
  1445. swait()
  1446. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1447. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1448. local h = 5
  1449. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1450. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1451. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1452. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1453. scfr = blcf
  1454. elseif not scfr then
  1455. scfr = blcf
  1456. end
  1457. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  1458. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  1459. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  1460. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  1461. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  1462. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  1463. if i==0.6 then
  1464. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1465. if hit~=nil then
  1466. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1467. ref.Anchored=true
  1468. ref.CFrame=cf(pos)
  1469. game:GetService("Debris"):AddItem(ref,3)
  1470. for i=1,5 do
  1471. Col=hit.BrickColor
  1472. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1473. groundpart.Anchored=true
  1474. groundpart.Material=hit.Material
  1475. groundpart.CanCollide=true
  1476. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1477. game:GetService("Debris"):AddItem(groundpart,3)
  1478. end
  1479. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  1480. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1481. MagniDamage(ref,8,10,15,math.random(10,20000),"Normal")
  1482. end
  1483. end
  1484. end
  1485. con1:disconnect()
  1486. hitbox2.Parent=nil
  1487. swait(10)
  1488. Humanoid.WalkSpeed = 30
  1489. attack=false
  1490. end
  1491.  
  1492. function LetItBuild()
  1493. attack=true
  1494. for i=0,1,0.1 do
  1495. swait()
  1496. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  1497. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  1499. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1500. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1501. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1502. end
  1503. local num=0
  1504. local magik=0
  1505. local num2=0
  1506. while holdx==true do
  1507. swait()
  1508. if magik<25 then
  1509. if num>=10 then
  1510. Humanoid:TakeDamage(1)
  1511. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1512. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1513. Lightning(pos1,pos2,5,3,"New yeller",.1,.5,.5)
  1514. MagicCircle(BrickColor.new("New yeller"),cf(pos1),5,5,5,1,1,1,.1)
  1515. MagicBlood(BrickColor.new("New yeller"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1516. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  1517. magik=magik+1
  1518. num=0
  1519. end
  1520. end
  1521. num=num+1
  1522. num2=num2+magik
  1523. if num2>=50 then
  1524. MagicBlood(BrickColor.new("New yeller"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  1525. num2=0
  1526. end
  1527. --MagicBlock(BrickColor.new("New yeller"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  1528. end
  1529. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  1530. blcf=nil
  1531. scfr=nil
  1532. hitbox2.Parent=model2
  1533. hitbox2.Size=vt(1,6,1)
  1534. hitbox2.Transparency=1
  1535. hitbox2.CFrame=prtd7.CFrame
  1536. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((magik/2)),magik,1,"Lifesteal",RootPart,.5,1) end)
  1537. for i=1,3 do
  1538. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  1539. for i=0,1,0.1 do
  1540. swait()
  1541. hitbox2.CFrame=prtd7.CFrame
  1542. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1543. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1544. local h = 5
  1545. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1546. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1547. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1548. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1549. scfr = blcf
  1550. elseif not scfr then
  1551. scfr = blcf
  1552. end
  1553. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  1554. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  1555. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1556. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1557. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1558. end
  1559. end
  1560. con1:disconnect()
  1561. hitbox2.Parent=nil
  1562. attack=false
  1563. end
  1564.  
  1565. function YourMoveCreep()
  1566. attack=true
  1567. local pers=nil
  1568. for i=0,1,0.1 do
  1569. swait()
  1570. cost=Humanoid.Health*.01
  1571. Humanoid:TakeDamage(cost)
  1572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1574. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1575. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1576. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1577. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1578. end
  1579. local blockprt=part(3,Character,0,1,BrickColor.new("New yeller"),"Block",vt(8,.1,8))
  1580. blockprt.Anchored=true
  1581. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1582. conbl=blockprt.Touched:connect(function(hit)
  1583. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  1584. hit=hit.Parent.Parent.Torso
  1585. end
  1586. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  1587. pers=hit
  1588. print("HIT")
  1589. guard=false
  1590. end
  1591. end)
  1592. num=0
  1593. while guard==true do
  1594. swait()
  1595. if num>10 then
  1596. num=0
  1597. MagicBlock(BrickColor.new("New yeller"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  1598. MagicCircle(BrickColor.new("New yeller"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  1599. end
  1600. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1601. num=num+1
  1602. end
  1603. conbl:disconnect()
  1604. blockprt.Parent=nil
  1605. print(pers)
  1606. if pers~=nil then
  1607. for i=0,1,0.1 do
  1608. swait()
  1609. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1610. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1611. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1612. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1613. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1614. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1615. end
  1616. swait(200)
  1617. end
  1618. attack=false
  1619. end
  1620.  
  1621. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1622. for _,c in pairs(workspace:children()) do
  1623. local hum=c:findFirstChild("Humanoid")
  1624. if hum~=nil then
  1625. local head=c:findFirstChild("Torso")
  1626. if head~=nil then
  1627. local targ=head.Position-Part.Position
  1628. local mag=targ.magnitude
  1629. if mag<=magni and c.Name~=Player.Name then
  1630. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  1631. end
  1632. end
  1633. end
  1634. end
  1635. end
  1636.  
  1637. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1638. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1639. end
  1640.  
  1641. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1642. LastPoint=Point
  1643. function effect(Color,Ref,LP,P1,returnn)
  1644. local effectsmsh=Instance.new("CylinderMesh")
  1645. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1646. effectsmsh.Name="Mesh"
  1647. local effectsg=Instance.new("Part")
  1648. effectsg.formFactor=3
  1649. effectsg.CanCollide=false
  1650. effectsg.Name="Eff"
  1651. effectsg.Locked=true
  1652. effectsg.Anchored=true
  1653. effectsg.Size=Vector3.new(0.5,1,0.5)
  1654. effectsg.Parent=workspace
  1655. effectsmsh.Parent=effectsg
  1656. effectsg.BrickColor=BrickColor.new(Color)
  1657. effectsg.Reflectance=Ref
  1658. local point1=P1
  1659. local mg=(LP.p - point1.p).magnitude
  1660. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1661. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1662. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1663. game:GetService("Debris"):AddItem(effectsg,2)
  1664. if returnn then return effectsg end
  1665. coroutine.resume(coroutine.create(function(Part,Mesh)
  1666. if not returnn then
  1667. for i=0,1,0.05 do
  1668. wait()
  1669. Part.Transparency=1*i
  1670. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  1671. end
  1672. Part.Parent=nil
  1673. end
  1674. end),effectsg,effectsmsh)
  1675. end
  1676.  
  1677. local function CFrameFromTopBack(at, top, back)
  1678. local right = top:Cross(back)
  1679. return CFrame.new(at.x, at.y, at.z,
  1680. right.x, top.x, back.x,
  1681. right.y, top.y, back.y,
  1682. right.z, top.z, back.z)
  1683. end
  1684.  
  1685. function Triangle(a, b, c)
  1686. local edg1 = (c-a):Dot((b-a).unit)
  1687. local edg2 = (a-b):Dot((c-b).unit)
  1688. local edg3 = (b-c):Dot((a-c).unit)
  1689. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1690. a, b, c = a, b, c
  1691. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1692. a, b, c = b, c, a
  1693. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1694. a, b, c = c, a, b
  1695. else
  1696. assert(false, "unreachable")
  1697. end
  1698.  
  1699. local len1 = (c-a):Dot((b-a).unit)
  1700. local len2 = (b-a).magnitude - len1
  1701. local width = (a + (b-a).unit*len1 - c).magnitude
  1702.  
  1703. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1704.  
  1705. local list = {}
  1706.  
  1707. if len1 > 0.01 then
  1708. local w1 = Instance.new('WedgePart', m)
  1709. game:GetService("Debris"):AddItem(w1,5)
  1710. w1.Material = "Neon"
  1711. w1.FormFactor = 'Custom'
  1712. if Mode=="Binary" then
  1713. w1.BrickColor = BrickColor.new("Really black")
  1714. else
  1715. w1.BrickColor = BrickColor.new("New yeller")
  1716. end
  1717. w1.Transparency = 0
  1718. w1.Reflectance = 0
  1719. w1.Material = "Neon"
  1720. w1.CanCollide = false
  1721. NoOutline(w1)
  1722. local sz = Vector3.new(0.2, width, len1)
  1723. w1.Size = sz
  1724. local sp = Instance.new("SpecialMesh",w1)
  1725. sp.MeshType = "Wedge"
  1726. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1727. w1:BreakJoints()
  1728. w1.Anchored = true
  1729. w1.Parent = workspace
  1730. w1.Transparency = 0.7
  1731. table.insert(Effects,{w1,"Disappear",.01})
  1732. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1733. table.insert(list,w1)
  1734. end
  1735.  
  1736. if len2 > 0.01 then
  1737. local w2 = Instance.new('WedgePart', m)
  1738. game:GetService("Debris"):AddItem(w2,5)
  1739. w2.Material = "Neon"
  1740. w2.FormFactor = 'Custom'
  1741. if Mode=="Binary" then
  1742. w2.BrickColor = BrickColor.new("Really black")
  1743. else
  1744. w2.BrickColor = BrickColor.new("New yeller")
  1745. end
  1746. w2.Transparency = 0
  1747. w2.Reflectance = 0
  1748. w2.Material = "Neon"
  1749. w2.CanCollide = false
  1750. NoOutline(w2)
  1751. local sz = Vector3.new(0.2, width, len2)
  1752. w2.Size = sz
  1753. local sp = Instance.new("SpecialMesh",w2)
  1754. sp.MeshType = "Wedge"
  1755. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1756. w2:BreakJoints()
  1757. w2.Anchored = true
  1758. w2.Parent = workspace
  1759. w2.Transparency = 0.7
  1760. table.insert(Effects,{w2,"Disappear",.01})
  1761. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1762. table.insert(list,w2)
  1763. end
  1764. return unpack(list)
  1765. end
  1766.  
  1767. --[[
  1768. Things for effects
  1769. put the variables in one table
  1770. like effect={brick,interval,i}
  1771. ]]
  1772.  
  1773.  
  1774. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1775. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1776. prt.Anchored=true
  1777. prt.CFrame=cframe
  1778. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1779. game:GetService("Debris"):AddItem(prt,5)
  1780. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1781. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1782. local wld=nil
  1783. for i=0,1,delay do
  1784. wait()
  1785. Part.CFrame=Part.CFrame
  1786. Part.Transparency=i
  1787. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1788. end
  1789. Part.Parent=nil
  1790. end),prt,msh)]]
  1791. end
  1792.  
  1793. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1794. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1795. prt.Anchored=true
  1796. prt.CFrame=cframe
  1797. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1798. game:GetService("Debris"):AddItem(prt,5)
  1799. table.insert(Effects,{prt,"Cylinder",delay,x3+3,y3+3,z3+3})
  1800. end
  1801.  
  1802. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1803. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1804. prt.Anchored=true
  1805. prt.CFrame=cframe
  1806. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1807. game:GetService("Debris"):AddItem(prt,5)
  1808. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1809. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1810. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1811. for i=0,1,delay do
  1812. wait()
  1813. Part.CFrame=Part.CFrame
  1814. Part.Transparency=i
  1815. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1816. end
  1817. Part.Parent=nil
  1818. end),prt,msh)]]
  1819. end
  1820.  
  1821. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1822. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1823. prt.Anchored=true
  1824. prt.CFrame=cframe
  1825. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1826. game:GetService("Debris"):AddItem(prt,5)
  1827. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1828. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1829. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1830. for i=0,1,delay do
  1831. wait()
  1832. Part.CFrame=Part.CFrame
  1833. Part.Transparency=i
  1834. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1835. end
  1836. Part.Parent=nil
  1837. end),prt,msh)]]
  1838. end
  1839.  
  1840. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1841. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1842. prt.Anchored=true
  1843. prt.CFrame=cframe
  1844. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1845. game:GetService("Debris"):AddItem(prt,5)
  1846. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  1847. end
  1848.  
  1849. function ElecEffect(cff,x,y,z)
  1850. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  1851. prt.Anchored=true
  1852. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1853. prt.CFrame=cf(prt.Position)
  1854. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1855. game:GetService("Debris"):AddItem(prt,2)
  1856. xval=math.random()/2
  1857. yval=math.random()/2
  1858. zval=math.random()/2
  1859. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1860. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  1861. end
  1862.  
  1863. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1864. --[[p0=pos1
  1865. p1=pos2
  1866. tym=times
  1867. ofs=offset
  1868. col=color
  1869. th=size
  1870. tra=transparency
  1871. last=lastingtime]]
  1872. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1873. for i=1,tym do
  1874. 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)
  1875. 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)])
  1876. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1877. if tym == i then
  1878. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1879. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1880. else
  1881. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1882. end
  1883. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1884. end
  1885. end
  1886.  
  1887. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1888.         if hit.Parent==nil then
  1889.                 return
  1890.         end
  1891.         h=hit.Parent:FindFirstChild("Humanoid")
  1892.         for _,v in pairs(hit.Parent:children()) do
  1893.         if v:IsA("Humanoid") then
  1894.         h=v
  1895.         end
  1896.         end
  1897.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1898.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1899.         end
  1900.         if hit.Parent.className=="Hat" then
  1901.         hit=hit.Parent.Parent:findFirstChild("Head")
  1902.         end
  1903.         -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  1904.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1905.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1906.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1907.                         return
  1908.                 end]]
  1909. --                        hs(hit,1.2)
  1910.                         so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  1911.                         --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  1912.                         c=Instance.new("ObjectValue")
  1913.                         c.Name="creator"
  1914.                         c.Value=game:service("Players").LocalPlayer
  1915.                         c.Parent=h
  1916.                         game:GetService("Debris"):AddItem(c,.5)
  1917.                 Damage=8
  1918.                 if Mode=="Demon" then
  1919.                 Damage=Damage+damcount
  1920.                 end
  1921.                
  1922.                 for i,v in pairs(hit.Parent:children()) do
  1923.     if v:IsA("Hat") then
  1924.         v:Destroy()
  1925.     end
  1926. end
  1927. for i,v in pairs(hit.Parent:children()) do
  1928.     if v:IsA("Shirt") then
  1929.         v:Destroy()
  1930.     end
  1931. end
  1932. for i,v in pairs(hit.Parent:children()) do
  1933.     if v:IsA("Pants") then
  1934.         v:Destroy()
  1935.     end
  1936. end
  1937. for i,v in pairs(hit.Parent:children()) do
  1938.     if v.Name == "Body Colors" then
  1939.         v:Destroy()
  1940.     end
  1941. end
  1942. h.MaxHealth = 100
  1943. cf = CFrame.new
  1944. Damage = math.random(5,7)
  1945. h.Health=h.Health-Damage
  1946. MagicBlock(BrickColor.new("Deep blue"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1947. for i=1,30 do
  1948.  
  1949. if hit.Parent and hit.Parent:findFirstChild("Head") and hit.Parent:findFirstChild("Humanoid") then
  1950. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
  1951. if hit.Parent:findFirstChild("Humanoid").Health == 0 then
  1952.     hit.Parent:findFirstChild("Humanoid"):remove()
  1953.     wait(3)
  1954.     if hit.Parent then
  1955.         hit.Parent:remove()
  1956.     end
  1957. end
  1958. if hit.Parent and hit.Parent.Head then
  1959. MagicBlock(BrickColor.new("Deep blue"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1960. MagicBlock(BrickColor.new("New yeller"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1961. MagicBlock(BrickColor.new("Toothpaste"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1962. MagicBlock(BrickColor.new("New yeller"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1963. MagicBlock(BrickColor.new("Deep blue"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1964. MagicBlock(BrickColor.new("Really blue"),hit.Parent:findFirstChild("Head").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1965. end
  1966. end
  1967. if hit.Parent and hit.Parent:findFirstChild("Torso") and hit.Parent:findFirstChild("Humanoid") then
  1968. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 0.4
  1969. if hit.Parent and hit.Parent.Head then
  1970. MagicBlock(BrickColor.new("Toothpaste"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1971. MagicBlock(BrickColor.new("Really blue"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1972. MagicBlock(BrickColor.new("Deep orange"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1973. MagicBlock(BrickColor.new("Deep blue"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1974. MagicBlock(BrickColor.new("Really blue"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1975. MagicBlock(BrickColor.new("New yeller"),hit.Parent:findFirstChild("Torso").CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1976. end
  1977. end
  1978. wait(0.1)
  1979. end
  1980. if Type=="Knockdown" then
  1981. hum=hit.Parent.Humanoid
  1982. hum.PlatformStand=true
  1983. coroutine.resume(coroutine.create(function(HHumanoid)
  1984. swait(1)
  1985. HHumanoid.PlatformStand=false
  1986. end),hum)
  1987.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1988. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1989. local bodvol=Instance.new("BodyVelocity")
  1990. bodvol.velocity=angle*knockback
  1991. bodvol.P=5000
  1992. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1993. bodvol.Parent=hit
  1994. rl=Instance.new("BodyAngularVelocity")
  1995. rl.P=3000
  1996. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1997. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1998. rl.Parent=hit
  1999. game:GetService("Debris"):AddItem(bodvol,.5)
  2000. game:GetService("Debris"):AddItem(rl,.5)
  2001.                 elseif Type=="Normal" then
  2002.                 vp=Instance.new("BodyVelocity")
  2003.                 vp.P=500
  2004.                 vp.maxForce=Vector3.new(50,0,50)
  2005. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2006.                 if KnockbackType==1 then
  2007.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2008.                 elseif KnockbackType==2 then
  2009.                 vp.velocity=Property.CFrame.lookVector*knockback
  2010.                 end
  2011.                 if knockback>-100 then
  2012.                     if hit.Parent then
  2013.                         vp.Parent=hit.Parent.Torso
  2014.                     end
  2015.                 end
  2016.                 game:GetService("Debris"):AddItem(vp,.5)
  2017.                 elseif Type=="Lifesteal" then
  2018.                 for i=1,5 do
  2019.                 MagicBlood(BrickColor.new("New yeller"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2020.                 end
  2021.                 vp=Instance.new("BodyVelocity")
  2022.                 vp.P=500
  2023.                 vp.maxForce=Vector3.new(50,0,50)
  2024.                 if KnockbackType==1 then
  2025.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2026.                 elseif KnockbackType==2 then
  2027.                 vp.velocity=Property.CFrame.lookVector*knockback
  2028.                 end
  2029.                 if knockback>-250 then
  2030.                         vp.Parent=hit.Parent.Torso
  2031.                 end
  2032.                 game:GetService("Debris"):AddItem(vp,.5)
  2033.                 Heal=math.ceil(Damage/5)
  2034.                 Humanoid.Health=Humanoid.Health+Heal
  2035.                 showDamage(RootPart,Heal,.5,BrickColor.new("New yeller"))
  2036.                 elseif Type=="Up" then
  2037.                 local bodyVelocity=Instance.new("BodyVelocity")
  2038.                 bodyVelocity.velocity=vt(0,30,0)
  2039.                 bodyVelocity.P=5000
  2040.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2041.                 bodyVelocity.Parent=hit
  2042.                 game:GetService("Debris"):AddItem(bodyVelocity,1)
  2043.                 rl=Instance.new("BodyAngularVelocity")
  2044.                 rl.P=3000
  2045.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2046.                 rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2047.                 rl.Parent=hit
  2048.                 game:GetService("Debris"):AddItem(rl,.5)
  2049.                 elseif Type=="Snare" then
  2050.                 bp=Instance.new("BodyPosition")
  2051.                 bp.P=2000
  2052.                 bp.D=100
  2053.                 bp.maxForce=Vector3.new(50,50,50)
  2054.                 bp.position=hit.Parent.Torso.Position
  2055.                 bp.Parent=hit.Parent.Torso
  2056.                 game:GetService("Debris"):AddItem(bp,1)
  2057.                 elseif Type=="Charge" then
  2058.                 Charge=Charge+1
  2059.                 coroutine.resume(coroutine.create(function(Part)
  2060.                 swait(30)
  2061.                 for i=1,5 do
  2062.                 swait(5)
  2063.                 so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2064.                 MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  2065.                 newdam=math.random(1,5)
  2066.                 if blocked==false then
  2067.                 h:TakeDamage(newdam)
  2068.                 showDamage(hit.Parent,newdam,.5,BrickColor:Red())
  2069.                 else
  2070.                 h:TakeDamage(newdam/2)
  2071.                 showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  2072.                 end
  2073.                 end
  2074.                 end),hit)
  2075.                 end
  2076.                         debounce=Instance.new("BoolValue")
  2077.                         debounce.Name="DebounceHit"
  2078.                         debounce.Parent=hit.Parent
  2079.                         debounce.Value=true
  2080.                         game:GetService("Debris"):AddItem(debounce,Delay)
  2081.                         c=Instance.new("ObjectValue")
  2082.                         c.Name="creator"
  2083.                         c.Value=Player
  2084.                         c.Parent=h
  2085.                         game:GetService("Debris"):AddItem(c,.5)
  2086.                 CRIT=false
  2087.                 hitDeb=true
  2088.                 AttackPos=6
  2089.         end
  2090. end
  2091.  
  2092. showDamage=function(Char,Dealt,du,Color)
  2093.         m=Instance.new("Model")
  2094.         m.Name=tostring(Dealt)
  2095.         h=Instance.new("Humanoid")
  2096.         h.Health=0
  2097.         h.MaxHealth=0
  2098.         h.Parent=m
  2099.         c=Instance.new("Part")
  2100.         c.Transparency=0
  2101.         c.BrickColor=Color
  2102.         c.Name="Head"
  2103.         c.TopSurface=0
  2104.         c.BottomSurface=0
  2105.         c.formFactor="Plate"
  2106.         c.Size=Vector3.new(1,.4,1)
  2107.         ms=Instance.new("CylinderMesh")
  2108.         ms.Scale=Vector3.new(.8,.8,.8)
  2109.         if CRIT==true then
  2110.                 ms.Scale=Vector3.new(1,1.25,1)
  2111.         end
  2112.         ms.Parent=c
  2113.         c.Reflectance=0
  2114.         Instance.new("BodyGyro").Parent=c
  2115.         c.Parent=m
  2116.         if Char:findFirstChild("Head")~=nil then
  2117.         c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2118.         elseif Char.Parent:findFirstChild("Head")~=nil then
  2119.         c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2120.         end
  2121.         f=Instance.new("BodyPosition")
  2122.         f.P=2000
  2123.         f.D=100
  2124.         f.maxForce=Vector3.new(50,50,50)
  2125.         f.position=c.Position+Vector3.new(0,3,0)
  2126.         f.Parent=c
  2127.         game:GetService("Debris"):AddItem(m,.5+du)
  2128.         c.CanCollide=false
  2129.         m.Parent=workspace
  2130.         c.CanCollide=false
  2131. end
  2132.  
  2133. combo=0
  2134. function ob1d(mouse)
  2135. hold=true
  2136. if attack==true or equipped==false then return end
  2137. if Mode=="Binary" then
  2138. idle=0
  2139. if Anim=="Run" then
  2140. SpinSlash()
  2141. else
  2142. if combo==0 then
  2143. combo=1
  2144. attackone()
  2145. elseif combo==1 then
  2146. combo=2
  2147. attacktwo()
  2148. elseif combo==2 then
  2149. combo=0
  2150. attackthree()
  2151. end
  2152. end
  2153. else
  2154. if combo==0 then
  2155. combo=1
  2156. Demonattackone()
  2157. elseif combo==1 then
  2158. combo=2
  2159. Demonattacktwo()
  2160. elseif combo==2 then
  2161. combo=0
  2162. Demonattackthree()
  2163. end
  2164. end
  2165. coroutine.resume(coroutine.create(function()
  2166. for i=1,20 do
  2167. if attack==false then
  2168. swait()
  2169. end
  2170. end
  2171. if attack==false then
  2172. combo=0
  2173. --equipanim()
  2174. end
  2175. end))
  2176. end
  2177.  
  2178. function ob1u(mouse)
  2179. hold = false
  2180. end
  2181.  
  2182. buttonhold = false
  2183.  
  2184. eul=0
  2185. holdx=false
  2186. equipped=false
  2187. function key(key)
  2188. if key=="x" then
  2189. holdx=true
  2190. end
  2191. local mouse = Player:GetMouse()
  2192. local CanSpeed = true
  2193. if key=="e" and CanSpeed == true then
  2194.     CanSpeed = false
  2195.     Character.Head.Velocity=Character.Head.CFrame.lookVector*320
  2196.     wait(0.8)
  2197.     Character.Torso.Anchored = true
  2198.     wait(0.7)
  2199.     Character.Torso.Anchored = false
  2200.     Character.Head.Velocity=Character.Head.CFrame.lookVector*320
  2201.     wait(0.8)
  2202.     Character.Torso.Anchored = true
  2203.     wait(0.7)
  2204.     Character.Torso.Anchored = false
  2205.     Character.Head.Velocity=Character.Head.CFrame.lookVector*320
  2206.     CanSpeed = true
  2207. end
  2208.  
  2209.  
  2210.  
  2211. if key =="u" then
  2212. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  2213. Character.Head.Velocity=Character.Head.CFrame.lookVector*400
  2214. Character.Humanoid.Health = Character.Humanoid.MaxHealth
  2215. end
  2216.  
  2217. if key =="p" then
  2218. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  2219. Character.Torso.CFrame = CFrame.new(Character.Torso.CFrame.X,Character.Torso.CFrame.Y ,Character.Torso.CFrame.Z + 10)
  2220. end
  2221.  
  2222. if attack==true then return end
  2223. if key=="f" then
  2224. if equipped==false then
  2225.  
  2226. equipped=true
  2227. RSH=ch.Torso["Right Shoulder"]
  2228. LSH=ch.Torso["Left Shoulder"]
  2229. --
  2230. RSH.Parent=nil
  2231. LSH.Parent=nil
  2232. --
  2233. RW.Name="Right Shoulder"
  2234. RW.Part0=ch.Torso
  2235. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2236. RW.C1=cf(0, 0.5, 0)
  2237. RW.Part1=ch["Right Arm"]
  2238. RW.Parent=ch.Torso
  2239. --
  2240. LW.Name="Left Shoulder"
  2241. LW.Part0=ch.Torso
  2242. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2243. LW.C1=cf(0, 0.5, 0)
  2244. LW.Part1=ch["Left Arm"]
  2245. LW.Parent=ch.Torso
  2246. --
  2247. equipanim()
  2248. Angry()
  2249. else
  2250.  
  2251. equipped=false
  2252. hideanim()
  2253. swait(0)
  2254. RW.Parent=nil
  2255. LW.Parent=nil
  2256. RSH.Parent=player.Character.Torso
  2257. LSH.Parent=player.Character.Torso
  2258. Calm()
  2259. wait(1)
  2260. game.Players.LocalPlayer.Character:BreakJoints()
  2261. end
  2262. end
  2263. if equipped==false then return end
  2264. if Mode=="Binary" then
  2265. if key=="q" then
  2266. idle=500
  2267. end
  2268. if key=="z" and hitfloor~=nil then
  2269. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  2270. BinarySwing()
  2271. end
  2272. if key=="x" then
  2273. BinaryImpulse()
  2274. end
  2275.  
  2276. if key =="r" and game.Players.LocalPlayer.Character:findFirstChild("Shield Active") == nil then
  2277.  
  2278. function Shield(Player)
  2279.     local Char = Player.Character
  2280.     local Torso = Char:findFirstChild("Torso")
  2281.     function Hit(hit)
  2282.         if hit.Parent and hit.Parent.Name ~= Player.Name then
  2283.             if  hit.Parent and hit.Parent:findFirstChild("Humanoid") then
  2284.                 Wreck(hit.Parent)
  2285.                 local Torso = hit.Parent:findFirstChild("Torso")
  2286.                 Torso.CFrame = CFrame.new(Torso.CFrame.X + 20,Torso.CFrame.Y + 8,Torso.CFrame.Z -20)
  2287.                 hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - math.random(20,50)
  2288.             else
  2289.                 if hit.Parent.Parent.Name~= Player.Name then
  2290.                     hit:remove()
  2291.                 end
  2292.             end
  2293.         end
  2294.     end
  2295.     local A = Instance.new("Part")
  2296.     A.Parent = Char
  2297.     A.Size = Vector3.new(3,30,20)
  2298.     A.CFrame = CFrame.new(Torso.CFrame.X + 10,Torso.CFrame.Y - 3,Torso.CFrame.Z)
  2299.     A.Anchored = true
  2300.     A.Transparency = 1
  2301.     A.Touched:connect(Hit)
  2302.     EffectsSpecial.Glisten(A)
  2303.     EffectsSpecial.Glisten(A)
  2304.     EffectsSpecial.Glisten(A)
  2305.     local B = Instance.new("Part")
  2306.     B.Parent = Char
  2307.     B.Size = Vector3.new(3,30,20)
  2308.     B.CFrame = CFrame.new(Torso.CFrame.X -10,Torso.CFrame.Y - 3,Torso.CFrame.Z)
  2309.     B.Anchored = true
  2310.     B.Transparency = 1
  2311.     B.Touched:connect(Hit)
  2312.     EffectsSpecial.Glisten(B)
  2313.     EffectsSpecial.Glisten(B)
  2314.     EffectsSpecial.Glisten(B)
  2315.     local C = Instance.new("Part")
  2316.     C.Parent = Char
  2317.     C.Size = Vector3.new(20,30,3)
  2318.     C.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 3,Torso.CFrame.Z- 10)
  2319.     C.Anchored = true
  2320.     C.Transparency = 1
  2321.     C.Touched:connect(Hit)
  2322.     EffectsSpecial.Glisten(C)
  2323.     EffectsSpecial.Glisten(C)
  2324.     EffectsSpecial.Glisten(C)
  2325.     local D = Instance.new("Part")
  2326.     D.Parent = Char
  2327.     D.Size = Vector3.new(20,30,3)
  2328.     D.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 3,Torso.CFrame.Z+ 10)
  2329.     D.Anchored = true
  2330.     D.Transparency = 1
  2331.     D.Name = "Shield Active"
  2332.     D.Touched:connect(Hit)
  2333.     EffectsSpecial.Glisten(D)
  2334.     EffectsSpecial.Glisten(D)
  2335.     EffectsSpecial.Glisten(D)
  2336.     for i=1,100 do
  2337.     wait(0.1)
  2338.     MagicBlock(BrickColor.new("Bright red"),A.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2339.     MagicBlock(BrickColor.new("Bright red"),B.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2340.     MagicBlock(BrickColor.new("Bright red"),C.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2341.     MagicBlock(BrickColor.new("Bright red"),D.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2342.     MagicBlock(BrickColor.new("Really black"),A.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2343.     MagicBlock(BrickColor.new("Really black"),B.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2344.     MagicBlock(BrickColor.new("Really black"),C.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2345.     MagicBlock(BrickColor.new("Really black"),D.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2346.     MagicBlock(BrickColor.new("Bright red"),A.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2347.     MagicBlock(BrickColor.new("Bright red"),B.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2348.     MagicBlock(BrickColor.new("Bright red"),C.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2349.     MagicBlock(BrickColor.new("Bright red"),D.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2350.     MagicBlock(BrickColor.new("Really black"),A.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2351.     MagicBlock(BrickColor.new("Really black"),B.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2352.     MagicBlock(BrickColor.new("Really black"),C.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2353.     MagicBlock(BrickColor.new("Really black"),D.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2354.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2355.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2356.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2357.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2358.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2359.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2360.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2361.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2362.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2363.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2364.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2365.     MagicBlock(BrickColor.new("Bright red"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2366.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2367.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2368.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2369.     MagicBlock(BrickColor.new("Deep orange"),game.Players.LocalPlayer.Character.Torso.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2370.    
  2371.     end
  2372.     A:remove()
  2373.     B:remove()
  2374.     C:remove()
  2375.     D:remove()
  2376.  
  2377. end
  2378. Shield(game.Players.LocalPlayer)
  2379. end
  2380.  
  2381. if key=="c" then
  2382. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  2383. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  2384. Bash()
  2385. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  2386. Bash()
  2387. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 65
  2388. end
  2389. if key=="v" then
  2390. UnleashTheDemon()
  2391. end
  2392. end
  2393. if Mode=="Demon" then
  2394. if key=="x" then
  2395. LetItBuild()
  2396. end
  2397. if key=="c" then
  2398. YourMoveCreep()
  2399. end
  2400. if key=="p" then
  2401. YourMoveCreep()
  2402. YourMoveCreep()
  2403. YourMoveCreep()
  2404. end
  2405. end
  2406. if key=="0" then
  2407. Humanoid.WalkSpeed=(16*2)
  2408. end
  2409. end
  2410.  
  2411. function key2(key)
  2412. if key=="0" then
  2413. Humanoid.WalkSpeed = 30
  2414. end
  2415. if key=="x" then
  2416. holdx=false
  2417. end
  2418. end
  2419.  
  2420. function s(mouse)
  2421. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2422. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2423. mouse.KeyDown:connect(key)
  2424. mouse.KeyUp:connect(key2)
  2425.  
  2426. player=Player
  2427. ch=Character
  2428. MMouse=mouse
  2429. end
  2430.  
  2431. function ds(mouse)
  2432. end
  2433.  
  2434. Bin.Selected:connect(s)
  2435. Bin.Deselected:connect(ds)
  2436. print("Fixer the Demon Mercenary loaded.")
  2437.  
  2438. local thenum=0
  2439. while true do
  2440. swait()
  2441. if Mode=="Demon" then
  2442. if thenum>=5 then
  2443. ElecEffect(prtd7.CFrame,2,4,2)
  2444. thenum=0
  2445. end
  2446. thenum=thenum+1
  2447. Humanoid:TakeDamage(Humanoid.Health/1000)
  2448. damcount=(Humanoid.MaxHealth-Humanoid.Health)/10
  2449. damcount=math.floor(damcount)
  2450. for _,c in pairs(Character:children()) do
  2451. for _,v in pairs(c:children()) do
  2452. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  2453. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  2454. v.Parent=nil
  2455. end
  2456. end
  2457. end
  2458. end
  2459. end
  2460. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2461. local velderp=RootPart.Velocity.y
  2462. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2463. if equipped==true then
  2464. if Anim=="Idle" and attack==false and Mode=="Binary" then
  2465. idle=idle+1
  2466. else
  2467. idle=0
  2468. end
  2469. if idleanim>=0.3 then
  2470. idleanim2=true
  2471. elseif idleanim<=0 then
  2472. idleanim2=false
  2473. end
  2474. if idleanim2==false then
  2475. if Anim=="Walk" then
  2476. idleanim=idleanim+0.005
  2477. elseif Anim=="Idle" then
  2478. idleanim=idleanim+0.003
  2479. end
  2480. else
  2481. if Anim=="Walk" then
  2482. idleanim=idleanim-0.005
  2483. elseif Anim=="Idle" then
  2484. idleanim=idleanim-0.003
  2485. end
  2486. end
  2487. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2488. Anim="Jump"
  2489. if attack==false and Mode=="Binary" then
  2490. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2491. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  2492. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2494. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2495. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  2496. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  2497. end
  2498. if attack==false and Mode=="Demon" then
  2499. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2500. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2501. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  2502. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2503. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  2504. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  2505. end
  2506. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2507. Anim="Fall"
  2508. if attack==false and Mode=="Binary" then
  2509. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  2510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  2511. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  2513. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2514. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2515. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2516. end
  2517. if attack==false and Mode=="Demon" then
  2518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  2519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  2520. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  2521. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  2522. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  2523. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  2524. end
  2525. elseif torvel<1 and hitfloor~=nil then
  2526. if Anim=="Fall" then
  2527. if velderp<=-70 then
  2528. coroutine.resume(coroutine.create(function()
  2529. Stomp()
  2530. end))
  2531. end
  2532. end
  2533. Anim="Idle"
  2534. if idle<=500 then
  2535. if attack==false and Mode=="Binary" then
  2536. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  2537. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  2538. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  2539. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  2540. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  2541. RH.C0=clerp(RH.C0,RHC0,.2)
  2542. LH.C0=clerp(LH.C0,LHC0,.2)
  2543. end
  2544. if attack==false and Mode=="Demon" then
  2545. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  2546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  2547. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  2548. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  2549. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  2550. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  2551. end
  2552. else
  2553. if attack==false and Mode=="Binary" then
  2554. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  2555. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  2556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  2557. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  2558. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  2559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  2560. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  2561. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  2562. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  2563. end
  2564. end
  2565. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2566. if Anim=="Fall" then
  2567. if velderp<=-80 then
  2568. coroutine.resume(coroutine.create(function()
  2569. Stomp()
  2570. end))
  2571. end
  2572. end
  2573. Anim="Walk"
  2574. if attack==false and Mode=="Binary" then
  2575. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  2576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2577. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2578. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2579. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  2580. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  2581. RH.C0=clerp(RH.C0,RHC0,.3)
  2582. LH.C0=clerp(LH.C0,LHC0,.3)
  2583. end
  2584. if attack==false and Mode=="Demon" then
  2585. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  2586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  2587. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  2588. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  2589. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  2590. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  2591. end
  2592. elseif torvel>=22 and hitfloor~=nil then
  2593. if Anim=="Fall" then
  2594. if velderp<=-70 then
  2595. coroutine.resume(coroutine.create(function()
  2596. Stomp()
  2597. end))
  2598. end
  2599. end
  2600. Anim="Run"
  2601. if attack==false and Mode=="Binary" then
  2602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  2603. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  2604. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  2605. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  2606. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  2607. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  2608. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  2609. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  2610. end
  2611. if attack==false and Mode=="Demon" then
  2612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  2613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  2614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  2615. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2616. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2617. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2618. end
  2619. end
  2620. end
  2621. if #Effects>0 then
  2622. --table.insert(Effects,{prt,"Block1",delay})
  2623. for e=1,#Effects do
  2624. if Effects[e]~=nil then
  2625. --for j=1,#Effects[e] do
  2626. local Thing=Effects[e]
  2627. if Thing~=nil then
  2628. local Part=Thing[1]
  2629. local Mode=Thing[2]
  2630. local Delay=Thing[3]
  2631. local IncX=Thing[4]
  2632. local IncY=Thing[5]
  2633. local IncZ=Thing[6]
  2634. if Thing[1].Transparency<=1 then
  2635. if Thing[2]=="Block1" then
  2636. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2637. Mesh=Thing[1].Mesh
  2638. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2639. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2640. elseif Thing[2]=="Cylinder" then
  2641. Mesh=Thing[1].Mesh
  2642. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2643. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2644. elseif Thing[2]=="Blood" then
  2645. Mesh=Thing[1].Mesh
  2646. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2647. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2648. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2649. elseif Thing[2]=="Elec" then
  2650. Mesh=Thing[1].Mesh
  2651. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2652. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2653. elseif Thing[2]=="Disappear" then
  2654. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2655. end
  2656. else
  2657. Part.Parent=nil
  2658. table.remove(Effects,e)
  2659. end
  2660. end
  2661. --end
  2662. end
  2663. end
  2664. end
  2665. end
  2666. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement