Advertisement
ewrjekfsfdsf43e

Cerebus Fang

Apr 24th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 259.66 KB | None | 0 0
  1. --[[CHROMIUM_WEAPONRY]]--
  2. --[[Chat Gui Edit.]]--
  3.  
  4. wait(.5)
  5.  
  6. local runServ = game:GetService("RunService").RenderStepped
  7.  
  8. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  9. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  10. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  11. HBill.Size = UDim2.new(15,0,2.2,0)
  12. HBill.Name = "Health Display"
  13. HBill.StudsOffset = Vector3.new(0,4,0)
  14. HBill.AlwaysOnTop = true
  15. HBill.Enabled = true
  16. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  17. HMain.BackgroundTransparency = 1
  18. HMain.Size = UDim2.new(1,0,1,0)
  19. HBarBack.Parent = HMain
  20. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  21. HBarBack.BorderColor3 = Color3.new(0,0,0)
  22. HBarBack.BorderSizePixel = 2
  23. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  24. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  25. HBar.Parent = HBarBack
  26. HBar.BackgroundColor3 = Color3.new(0, 1, 0)
  27. HBar.BorderColor3 = Color3.new(0,0,0)
  28. HBar.Size = UDim2.new(.5,0,1,0)
  29. HHealth.BackgroundTransparency = 1
  30. HHealth.Size = UDim2.new(1,0,1,0)
  31. HHealth.Font = "SourceSans"
  32. HHealth.Text = " "
  33. HHealth.TextScaled = true
  34. HHealth.TextColor3 = Color3.new(1,1,1)
  35. HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255)
  36. HHealth.TextStrokeTransparency = 0
  37. HName.Parent = HMain
  38. HName.BackgroundTransparency = 1
  39. HName.Size = UDim2.new(1,0,.5,0)
  40. HName.Font = "SourceSansItalic"
  41. HName.Text = "Cerberus Fang, The Demon Mercenary"
  42. HName.TextScaled = true
  43. HName.TextColor3 = Color3.new(85/255, 0,127/255)
  44. HName.TextStrokeColor3 = Color3.new(0,0,0)
  45. HName.TextStrokeTransparency = 0
  46. HName.TextYAlignment = "Top"
  47.  
  48. runServ:connect(function()
  49. HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]"
  50. HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  51. end)
  52. local Player=game.Players.LocalPlayer
  53. repeat wait() until Player
  54. local Character=Player.Character
  55. repeat wait() until Character
  56. PlayerGui=Player.PlayerGui
  57. Backpack=Player.Backpack
  58. Torso=Character.Torso
  59. Head=Character.Head
  60. Humanoid=Character.Humanoid
  61. Humanoid.JumpPower = 90
  62. LeftArm=Character:WaitForChild("Left Arm")
  63. LeftLeg=Character:WaitForChild("Left Leg")
  64. RightArm=Character:WaitForChild("Right Arm")
  65. RightLeg=Character:WaitForChild("Left Arm")
  66. LS=Torso:WaitForChild("Left Shoulder")
  67. LH=Torso:WaitForChild("Left Hip")
  68. RS=Torso:WaitForChild("Right Shoulder")
  69. RH=Torso:WaitForChild("Right Hip")
  70. Neck=Torso.Neck
  71. it=Instance.new
  72. vt=Vector3.new
  73. cf=CFrame.new
  74. local runServ = game:GetService("RunService").RenderStepped
  75. local TextTable = {}
  76. euler=CFrame.fromEulerAnglesXYZ
  77. angles=CFrame.Angles
  78. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  79. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  80. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  81. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  82. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  83. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  84. RootPart=Character.HumanoidRootPart
  85. RootJoint=RootPart.RootJoint
  86. RootCF=euler(-1.57,0,3.14)
  87. attack=false
  88. attackdebounce=false
  89. MMouse=Player:GetMouse()
  90. combo=0
  91. local Anim="Idle"
  92. local Effects={}
  93. equipped=false
  94. local idle=0
  95. local hold=false
  96. local con1=nil
  97. local con2=nil
  98. local Mode="Binary"
  99. local idleanim=0
  100. local idleanim2=false
  101. local impulse=1
  102. local hitfloor,posfloor=nil,nil
  103. local damcount=0
  104. local guard=false
  105. local damagebonus = 1
  106. --player
  107. player=nil
  108. --save shoulders
  109. RSH, LSH=nil, nil
  110. --welds
  111. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  112. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  113. LH=Torso["Left Hip"]
  114. RH=Torso["Right Hip"]
  115. Asset="http://www.roblox.com/asset/?id="
  116. Health=20000
  117. Humanoid.MaxHealth=math.huge
  118. Humanoid.Health=math.huge
  119. coroutine.resume(coroutine.create(function()
  120. for i=1,20 do
  121. Humanoid.MaxHealth=math.huge
  122. Humanoid.Health=math.huge
  123. end
  124. Humanoid.MaxHealth=20000
  125. Humanoid.Health = Humanoid.MaxHealth
  126. end))
  127.  
  128. function swait(num)
  129. if num==0 or num==nil then
  130. game:service'RunService'.RenderStepped:wait()
  131. else
  132. for i=0,num do
  133. game:service'RunService'.RenderStepped:wait()
  134. end
  135. end
  136. end
  137.  
  138. if Character:findFirstChild("Binary Sword",true) ~= nil then
  139. Character:findFirstChild("Binary Sword",true).Parent = nil
  140. end
  141. if Character:findFirstChild("Demon Blade",true) ~= nil then
  142. Character:findFirstChild("Demon Blade",true).Parent = nil
  143. end
  144. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  145. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  146. end
  147.  
  148.  
  149. function NoOutline(Part)
  150. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  151. end
  152.  
  153. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  154. local fp=it("Part")
  155. fp.formFactor=formfactor
  156. fp.Parent=parent
  157. fp.Reflectance=reflectance
  158. fp.Transparency=transparency
  159. fp.CanCollide=false
  160. fp.Locked=true
  161. fp.BrickColor=brickcolor
  162. fp.Name=name
  163. fp.Size=size
  164. fp.Position=Torso.Position
  165. NoOutline(fp)
  166. if fp.BrickColor == BrickColor.new("Dark indigo") then
  167. fp.Material="Neon"
  168. elseif fp.BrickColor == BrickColor.new("Fossil") then
  169. fp.BrickColor = BrickColor.new("Dark indigo")
  170. fp.Material="Granite"
  171. else
  172. fp.Material="SmoothPlastic"
  173. end
  174. fp:BreakJoints()
  175. return fp
  176. end
  177.  
  178. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  179. local mesh=it(Mesh)
  180. mesh.Parent=part
  181. if Mesh=="SpecialMesh" then
  182. mesh.MeshType=meshtype
  183. mesh.MeshId=meshid
  184. end
  185. mesh.Offset=offset
  186. mesh.Scale=scale
  187. return mesh
  188. end
  189.  
  190. function weld(parent,part0,part1,c0)
  191. local weld=it("Weld")
  192. weld.Parent=parent
  193. weld.Part0=part0
  194. weld.Part1=part1
  195. weld.C0=c0
  196. return weld
  197. end
  198.  
  199. local fengui=it("GuiMain")
  200. fengui.Parent=Player.PlayerGui
  201. fengui.Name="WeaponGUI"
  202.  
  203. local Color1=BrickColor.new("Really black")
  204. local Color2=BrickColor.new("Dark stone grey")
  205. local Colorr3=BrickColor.new("Dark indigo")
  206. local Color4=BrickColor.new("Fossil")
  207.  
  208. local model1=Instance.new("Model")
  209. model1.Parent=Character
  210. model1.Name="Binary Sword"
  211. BSword={}
  212. BSwordWelds={}
  213. local model2=Instance.new("Model")
  214. model2.Parent=nil
  215. model2.Name="Demon Blade"
  216. DBlade={}
  217. DBladeWelds={}
  218.  
  219. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  220. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  221. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  222. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  223. prt5=part(3,model1,0,0,Color1,"Part5",vt())
  224. prt6=part(3,model1,0,0,Color4,"Part6",vt())
  225. prt7=part(3,model1,0,0,Color4,"Part7",vt())
  226. prt8=part(3,model1,0,0,Color4,"Part8",vt())
  227. prt9=part(3,model1,0,0,Color4,"Part9",vt())
  228. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  229. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  230. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  231.  
  232. prtd1=part(3,model2,0,0.4,BrickColor.new("Dark indigo"),"DPart1",vt())
  233. prtd2=part(3,model2,0,0,BrickColor.new("Really black"),"DPart2",vt())
  234. prtd3=part(3,model2,0,0,BrickColor.new("Really black"),"DPart3",vt())
  235. prtd4=part(3,model2,0,0,BrickColor.new("Really black"),"DPart4",vt())
  236. prtd5=part(3,model2,0,0,BrickColor.new("Really black"),"DPart5",vt())
  237. prtd6=part(3,model2,0,0,BrickColor.new("Really black"),"DPart6",vt())
  238. prtd7=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart7",vt())
  239. prtd8=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart8",vt())
  240. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart9",vt())
  241. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart10",vt())
  242. prtd11=part(3,model2,0.5,0,BrickColor.new("Dark indigo"),"DPart11",vt())
  243. prtd12=part(3,model2,0,0,BrickColor.new("Really black"),"DPart12",vt())
  244. for _,c in pairs(model2:children()) do
  245. if c.className=="Part" then
  246. table.insert(DBlade,c)
  247. end
  248. end
  249.  
  250. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  251. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  252. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  253. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  254. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  255. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  256. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  257. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  258. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  259. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  260. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  261. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  262.  
  263. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  264. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  265. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  266. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  267. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  268. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  269. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  270. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  271. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  272. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  273. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  274. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  275.  
  276. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  277. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  278. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  279. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  280. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  281. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  282. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  283. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  284. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  285. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  286. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  287. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  288.  
  289. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  290. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  291. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  292. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  293. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  294. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  295. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  296. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  297. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  298. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  299. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  300. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  301. for _,c in pairs(prtd1:children()) do
  302. if c.className=="Weld" then
  303. table.insert(DBladeWelds,c)
  304. print(c)
  305. end
  306. end
  307.  
  308. for i=-.9,.9,0.2 do
  309. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  310. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  311. 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))
  312. end
  313.  
  314. function Make1(Ceef)
  315. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  316. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  317. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  318. prtn1=part(3,model1,0,0,Colorr3,"1a",vt())
  319. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  320. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,0,0))
  321. prtn2=part(3,model1,0,0,Colorr3,"1b",vt())
  322. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  323. wldn2=weld(prtn2,prtn2,prtn1,euler(0.5,0,0)*cf(0,0.03,-0.1))
  324. prtn3=part(3,model1,0,0,Colorr3,"1c",vt())
  325. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  326. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0,0.15))
  327. end
  328. function Make0(Ceef)
  329. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  330. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  331. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  332. prtn1=part(3,model1,0,0,Colorr3,"0a",vt())
  333. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  334. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,-0.05,0))
  335. prtn2=part(3,model1,0,0,Colorr3,"0b",vt())
  336. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  337. wldn2=weld(prtn2,prtn2,prtn1,euler(1.57,0,0)*cf(0,0.05,0.15))
  338. prtn3=part(3,model1,0,0,Colorr3,"0c",vt())
  339. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  340. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0.05,-0.15))
  341. prtn4=part(3,model1,0,0,Colorr3,"0d",vt())
  342. mshn4=mesh("BlockMesh",prtn4,"","",vt(0,0,0),vt(.7,.2,1.5))
  343. wldn4=weld(prtn4,prtn4,prtn1,euler(0,0,0)*cf(0,0.1,0))
  344. end
  345. Make1(1.6)
  346. Make0(1.4)
  347. Make0(1.2)
  348. Make1(1)
  349. Make1(.8)
  350. Make1(.6)
  351. Make1(.4)
  352. Make0(.2)
  353. Make0(0)
  354.  
  355. local hitbox1=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  356. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  357.  
  358. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
  359. local Tool=Instance.new("HopperBin")
  360. Tool.Parent=Backpack
  361. Tool.Name="Cerberus' Fang"
  362. local Bin = Tool
  363. script.Parent = Tool
  364.  
  365. local bodvel=Instance.new("BodyVelocity")
  366. bodvel.Name="FixerVel"
  367. local bg=Instance.new("BodyGyro")
  368. bg.Name="FixerGyro"
  369.  
  370. so = function(id,par,vol,pit)
  371. coroutine.resume(coroutine.create(function()
  372. local sou = Instance.new("Sound",par or workspace)
  373. sou.Parent=par
  374. sou.Volume=vol
  375. sou.Pitch=pit or 1
  376. sou.SoundId=id
  377. swait()
  378. sou:Play()
  379. game:GetService("Debris"):AddItem(sou,6)
  380. end))
  381. end
  382.  
  383. function clerp(a,b,t)
  384. local qa = {QuaternionFromCFrame(a)}
  385. local qb = {QuaternionFromCFrame(b)}
  386. local ax, ay, az = a.x, a.y, a.z
  387. local bx, by, bz = b.x, b.y, b.z
  388. local _t = 1-t
  389. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  390. end
  391.  
  392. function QuaternionFromCFrame(cf)
  393. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  394. local trace = m00 + m11 + m22
  395. if trace > 0 then
  396. local s = math.sqrt(1 + trace)
  397. local recip = 0.5/s
  398. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  399. else
  400. local i = 0
  401. if m11 > m00 then
  402. i = 1
  403. end
  404. if m22 > (i == 0 and m00 or m11) then
  405. i = 2
  406. end
  407. if i == 0 then
  408. local s = math.sqrt(m00-m11-m22+1)
  409. local recip = 0.5/s
  410. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  411. elseif i == 1 then
  412. local s = math.sqrt(m11-m22-m00+1)
  413. local recip = 0.5/s
  414. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  415. elseif i == 2 then
  416. local s = math.sqrt(m22-m00-m11+1)
  417. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  418. end
  419. end
  420. end
  421.  
  422. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  423. local xs, ys, zs = x + x, y + y, z + z
  424. local wx, wy, wz = w*xs, w*ys, w*zs
  425. local xx = x*xs
  426. local xy = x*ys
  427. local xz = x*zs
  428. local yy = y*ys
  429. local yz = y*zs
  430. local zz = z*zs
  431. 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))
  432. end
  433.  
  434. function QuaternionSlerp(a, b, t)
  435. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  436. local startInterp, finishInterp;
  437. if cosTheta >= 0.0001 then
  438. if (1 - cosTheta) > 0.0001 then
  439. local theta = math.acos(cosTheta)
  440. local invSinTheta = 1/math.sin(theta)
  441. startInterp = math.sin((1-t)*theta)*invSinTheta
  442. finishInterp = math.sin(t*theta)*invSinTheta
  443. else
  444. startInterp = 1-t
  445. finishInterp = t
  446. end
  447. else
  448. if (1+cosTheta) > 0.0001 then
  449. local theta = math.acos(-cosTheta)
  450. local invSinTheta = 1/math.sin(theta)
  451. startInterp = math.sin((t-1)*theta)*invSinTheta
  452. finishInterp = math.sin(t*theta)*invSinTheta
  453. else
  454. startInterp = t-1
  455. finishInterp = t
  456. end
  457. end
  458. 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
  459. end
  460.  
  461. function hideanim()
  462. equipped=false
  463. attack=true
  464. if Mode=="Binary" then
  465. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  466. for i=0,1,0.1 do
  467. swait()
  468. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  469. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  470. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  471. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  472. end
  473. wld1.Part1=Torso
  474. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  475. for i=0,1,0.2 do
  476. swait()
  477. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  478. end
  479. for i=0,1,0.1 do
  480. swait()
  481. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  483. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  484. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  485. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  486. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  487. end
  488. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  489. else
  490. for i=0,1,0.1 do
  491. swait()
  492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  496. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  497. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  498. end
  499. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  500. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  501. for i=0,1,0.015 do
  502. swait()
  503. for i=1,3 do
  504. if math.random(1,4)==1 then
  505. 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)
  506. else
  507. MagicBlock(BrickColor.new("Dark indigo"),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)
  508. end
  509. end
  510. end
  511. model2.Parent=nil
  512. for i=0,1,0.1 do
  513. swait()
  514. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  515. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  516. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  517. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  518. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  519. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  520. end
  521. end
  522. Torso.Neck.C0=necko
  523. Torso.Neck.C1=necko2
  524. RootJoint.C0=RootCF
  525. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  526. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  527. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  528. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  529. RH.C0=RHC0
  530. RH.C1=RHC1
  531. LH.C0=LHC0
  532. LH.C1=LHC1
  533. Mode="Binary"
  534. attack=false
  535. end
  536.  
  537. function equipanim()
  538. equipped=true
  539. attack=true
  540. for i=0,1,0.2 do
  541. swait()
  542. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  543. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  544. end
  545. for i=0,1,0.1 do
  546. swait()
  547. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  548. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  549. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  550. end
  551. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  552. wld1.Part1=RightArm
  553. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  554. for i=0,1,0.1 do
  555. swait()
  556. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  558. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  560. end
  561. for i=0,1,0.1 do
  562. swait()
  563. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  565. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  566. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  567. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  568. end
  569. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  570. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  571. Torso.Neck.C0=necko*euler(0,0,0.5)
  572. RootJoint.C0=RootCF*euler(0,0,-0.5)
  573. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  574. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  575. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  576. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  577. attack=false
  578. end
  579.  
  580. function Stomp()
  581. Humanoid.WalkSpeed=0
  582. Torso.Velocity=RootPart.CFrame.lookVector*0
  583. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  584. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  585. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  586. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  587. Dam=math.random(5,10)
  588. showDamage(Torso,Dam,.5,BrickColor:Red())
  589. MagniDamage(Torso,20,50,99,math.random(10,15),"Knockdown")
  590. --[[for i=0,1,0.2 do
  591. swait()
  592. if Mode=="Binary" then
  593. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  594. end
  595. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  596. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  598. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  599. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  600. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  601. end
  602. for i=0,1,0.1 do
  603. swait()
  604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  605. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  606. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  607. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  608. end]]
  609. swait(10)
  610. Humanoid.WalkSpeed=16
  611. end
  612.  
  613. function attackone()
  614. attack=true
  615. for i=0,1,0.1 do
  616. swait()
  617. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  618. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  619. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  620. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  621. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  622. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  623. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  624. end
  625. hitbox1.Parent=model1
  626. hitbox1.Size=vt(1,5,1)
  627. hitbox1.Transparency=1
  628. hitbox1.CFrame=prt10.CFrame
  629. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  630. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,50,math.random(1,5),"Normal",RootPart,.5,1) end)
  631. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  632. blcf=nil
  633. scfr=nil
  634. for i=0,1,0.25 do
  635. swait()
  636. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  637. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  638. local h = 5
  639. 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)
  640. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  641. 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)
  642. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  643. scfr = blcf
  644. elseif not scfr then
  645. scfr = blcf
  646. end
  647. hitbox1.CFrame=prt10.CFrame
  648. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  650. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  651. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  652. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  653. end
  654. for i=0,1,0.1 do
  655. swait()
  656. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  657. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  658. local h = 5
  659. 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)
  660. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  661. 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)
  662. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  663. scfr = blcf
  664. elseif not scfr then
  665. scfr = blcf
  666. end
  667. hitbox1.CFrame=prt10.CFrame
  668. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  670. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  671. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  672. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  673. end
  674. con1:disconnect()
  675. hitbox1.Parent=nil
  676. attack=false
  677. end
  678.  
  679. function attacktwo()
  680. attack=true
  681. for i=0,1,0.1 do
  682. swait()
  683. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  684. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  685. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  686. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  687. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  688. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  689. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  690. end
  691. hitbox1.Parent=model1
  692. hitbox1.Size=vt(1,5,1)
  693. hitbox1.Transparency=1
  694. hitbox1.CFrame=prt10.CFrame
  695. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  696. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  697. blcf=nil
  698. scfr=nil
  699. for i=0,1,0.1 do
  700. swait()
  701. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  702. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  703. local h = 5
  704. 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)
  705. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  706. 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)
  707. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  708. scfr = blcf
  709. elseif not scfr then
  710. scfr = blcf
  711. end
  712. hitbox1.CFrame=prt10.CFrame
  713. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  715. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  718. end
  719. con1:disconnect()
  720. hitbox1.Parent=nil
  721. attack=false
  722. end
  723.  
  724. function attackthree()
  725. attack=true
  726. for i=0,1,0.1 do
  727. swait()
  728. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  729. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  730. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  731. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  732. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  733. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  734. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  735. end
  736. hitbox1.Parent=model1
  737. hitbox1.Size=vt(1,5,1)
  738. hitbox1.Transparency=1
  739. hitbox1.CFrame=prt10.CFrame
  740. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  741. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  742. blcf=nil
  743. scfr=nil
  744. for i=0,1,0.25 do
  745. swait()
  746. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  747. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  748. local h = 5
  749. 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)
  750. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  751. 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)
  752. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  753. scfr = blcf
  754. elseif not scfr then
  755. scfr = blcf
  756. end
  757. hitbox1.CFrame=prt10.CFrame
  758. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  759. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  760. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  761. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  762. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  763. end
  764. for i=0,1,0.2 do
  765. swait()
  766. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  767. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  768. local h = 5
  769. 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)
  770. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  771. 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)
  772. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  773. scfr = blcf
  774. elseif not scfr then
  775. scfr = blcf
  776. end
  777. hitbox1.CFrame=prt10.CFrame
  778. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  779. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  780. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  781. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  782. end
  783. con1:disconnect()
  784. hitbox1.Parent=nil
  785. attack=false
  786. end
  787.  
  788. function SpinSlash()
  789. attack=true
  790. for i=0,1,0.1 do
  791. swait()
  792. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  793. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  795. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  796. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  797. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  798. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  799. end
  800. hitbox1.Parent=model1
  801. hitbox1.Size=vt(1,5,1)
  802. hitbox1.Transparency=1
  803. hitbox1.CFrame=prt10.CFrame
  804. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Normal",RootPart,.001,1) end)
  805. blcf=nil
  806. scfr=nil
  807. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  808. repeat
  809. hitbox1.Parent=model1
  810. hitbox1.Size=vt(1,5,1)
  811. hitbox1.Transparency=1
  812. hitbox1.CFrame=prt10.CFrame
  813. for i=0,1,0.15 do
  814. swait()
  815. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  816. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  817. local h = 5
  818. 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)
  819. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  820. 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)
  821. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  822. scfr = blcf
  823. elseif not scfr then
  824. scfr = blcf
  825. end
  826. hitbox1.CFrame=prt10.CFrame
  827. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  830. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  831. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  832. RH.C0=clerp(RH.C0,RHC0,.3)
  833. LH.C0=clerp(LH.C0,LHC0,.3)
  834. end
  835. for i=0,1,0.05 do
  836. swait()
  837. if i>=0.45 and i<=0.5 then
  838. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  839. end
  840. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  841. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  842. local h = 5
  843. 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)
  844. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  845. 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)
  846. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  847. scfr = blcf
  848. elseif not scfr then
  849. scfr = blcf
  850. end
  851. hitbox1.CFrame=prt10.CFrame
  852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  853. end
  854. until hold==false
  855. con1:disconnect()
  856. hitbox1.Parent=nil
  857. attack=false
  858. end
  859.  
  860. function BinarySwing()
  861. attack=true
  862. for i=0,1,0.1 do
  863. swait()
  864. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  865. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  867. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  868. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  869. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  870. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  871. end
  872. Humanoid.Jump=true
  873. bodvol=Instance.new("BodyVelocity")
  874. bodvol.Parent=RootPart
  875. bodvol.velocity=vt(0,1,0)*600
  876. bodvol.P=7000
  877. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  878. --Torso.Velocity=vt(0,1,0)*100
  879. hitbox1.Parent=model1
  880. hitbox1.Size=vt(1,5,1)
  881. hitbox1.Transparency=1
  882. hitbox1.CFrame=prt10.CFrame
  883. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,40,80,math.random(10,20),"Dragger",RootPart,.001,1) end)
  884. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  885. blcf=nil
  886. scfr=nil
  887. for i=0,1,0.1 do
  888. swait()
  889. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  890. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  891. local h = 5
  892. 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)
  893. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  894. 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)
  895. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  896. scfr = blcf
  897. elseif not scfr then
  898. scfr = blcf
  899. end
  900. hitbox1.CFrame=prt10.CFrame
  901. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  902. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  904. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  905. RH.C0=clerp(RH.C0,RHC0,.3)
  906. LH.C0=clerp(LH.C0,LHC0,.3)
  907. end
  908. con1:disconnect()
  909. hitbox1.Parent=nil
  910. bodvol.Parent=nil
  911. attack=false
  912. end
  913.  
  914. function BinaryImpulse()
  915. attack=true
  916. if impulse==1 then
  917. impulse=2
  918. Humanoid.Jump=true
  919. for i=0,1,0.2 do
  920. swait()
  921. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  923. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  924. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  925. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  926. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  927. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  928. end
  929. blcf=nil
  930. scfr=nil
  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,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  936. for i=1,3 do
  937. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  938. for i=0,1,0.1 do
  939. swait()
  940. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  941. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  942. local h = 5
  943. 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)
  944. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  945. 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)
  946. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  947. scfr = blcf
  948. elseif not scfr then
  949. scfr = blcf
  950. end
  951. hitbox1.CFrame=prt10.CFrame
  952. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  953. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  954. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  955. end
  956. end
  957. con1:disconnect()
  958. hitbox1.Parent=nil
  959. elseif impulse==2 then
  960. impulse=3
  961. Humanoid.Jump=true
  962. for i=0,1,0.2 do
  963. swait()
  964. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  966. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  967. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  968. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  969. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  970. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  971. end
  972. blcf=nil
  973. scfr=nil
  974. hitbox1.Parent=model1
  975. hitbox1.Size=vt(1,5,1)
  976. hitbox1.Transparency=1
  977. hitbox1.CFrame=prt10.CFrame
  978. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  979. for i=1,3 do
  980. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  981. for i=0,1,0.1 do
  982. swait()
  983. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  984. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  985. local h = 5
  986. 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)
  987. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  988. 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)
  989. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  990. scfr = blcf
  991. elseif not scfr then
  992. scfr = blcf
  993. end
  994. hitbox1.CFrame=prt10.CFrame
  995. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  996. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  997. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  998. end
  999. end
  1000. con1:disconnect()
  1001. hitbox1.Parent=nil
  1002. elseif impulse==3 then
  1003. impulse=1
  1004. for i=0,1,0.2 do
  1005. swait()
  1006. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  1007. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  1008. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1009. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  1010. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  1011. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1012. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1013. end
  1014. Humanoid.Jump=true
  1015. blcf=nil
  1016. scfr=nil
  1017. hitbox1.Parent=model1
  1018. hitbox1.Size=vt(1,5,1)
  1019. hitbox1.Transparency=1
  1020. hitbox1.CFrame=prt10.CFrame
  1021. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,25,35,math.random(20,30),"Dragger",RootPart,.01,1) end)
  1022. for i=1,3 do
  1023. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1024. for i=0,1,0.1 do
  1025. swait()
  1026. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1027. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1028. local h = 5
  1029. 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)
  1030. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1031. 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)
  1032. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1033. scfr = blcf
  1034. elseif not scfr then
  1035. scfr = blcf
  1036. end
  1037. hitbox1.CFrame=prt10.CFrame
  1038. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1039. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1040. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1041. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1042. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1043. end
  1044. end
  1045. con1:disconnect()
  1046. hitbox1.Parent=nil
  1047. end
  1048. attack=false
  1049. end
  1050.  
  1051. function Bash()
  1052. attack=true
  1053. for i=0,1,0.1 do
  1054. swait()
  1055. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1057. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1058. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1059. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1060. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1061. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1062. end
  1063. Torso.Velocity=RootPart.CFrame.lookVector*600
  1064. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1065. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1066. hit=nil
  1067. for i=1,20 do
  1068. if hit==nil then
  1069. swait()
  1070. end
  1071. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1072. end
  1073. Torso.Velocity=RootPart.CFrame.lookVector*0
  1074. Humanoid.WalkSpeed=0
  1075. for i=0,1,0.1 do
  1076. swait()
  1077. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1079. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1080. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1081. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1082. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1083. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1084. end
  1085. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  1086. blcf=nil
  1087. scfr=nil
  1088. for i=0,1,0.2 do
  1089. swait()
  1090. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1091. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1092. local h = 5
  1093. 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)
  1094. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1095. 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)
  1096. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1097. scfr = blcf
  1098. elseif not scfr then
  1099. scfr = blcf
  1100. end
  1101. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1104. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1105. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1106. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  1107. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  1108. end
  1109. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1110. if hit~=nil then
  1111. local ref=part(3,workspace,0,1,BrickColor.new("Dark indigo"),"Effect",vt())
  1112. ref.Anchored=true
  1113. ref.CFrame=cf(pos)
  1114. game:GetService("Debris"):AddItem(ref,3)
  1115. for i=1,10 do
  1116. Col=hit.BrickColor
  1117. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1118. groundpart.Anchored=true
  1119. groundpart.Material=hit.Material
  1120. groundpart.CanCollide=true
  1121. 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))
  1122. game:GetService("Debris"):AddItem(groundpart,5)
  1123. end
  1124. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1125. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1126. MagniDamage(ref,10,40,80,math.random(100,600),"Up")
  1127. end
  1128. swait(0.05)
  1129. Humanoid.WalkSpeed=16
  1130. attack=false
  1131. end
  1132.  
  1133. function UnleashTheDemon()
  1134. attack=true
  1135. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1136. chatServ:Chat(Head, "Were you prepared for this?", 2)
  1137. for i=0,1,0.1 do
  1138. swait()
  1139. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1141. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1142. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1143. RH.C0=clerp(RH.C0,RHC0,.4)
  1144. LH.C0=clerp(LH.C0,LHC0,.4)
  1145. end
  1146. wld1.Part1=Torso
  1147. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1148. for i=0,1,0.1 do
  1149. swait()
  1150. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  1152. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  1153. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  1154. end
  1155. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  1156. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  1157. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  1158. num=0
  1159. for i=0,1,0.01 do
  1160. swait()
  1161. if num>=10 then
  1162. num=0
  1163. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1164. end
  1165. for i=1,2 do
  1166. if math.random(1,5)==1 then
  1167. 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)
  1168. else
  1169. MagicBlock(BrickColor.new("Dark indigo"),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)
  1170. end
  1171. end
  1172. num=num+1
  1173. end
  1174. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1175. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  1176. for i=1,4 do
  1177. MagicBlock(BrickColor.new("Dark indigo"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  1178. end
  1179. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  1180. Mode="Demon"
  1181. chatServ:Chat(Head, "Awaken, Demon Blade!", 2)
  1182. model2.Parent=Character
  1183. for i=1,#DBlade do
  1184. DBlade[i].Parent=model2
  1185. DBladeWelds[i].Parent=DBlade[1]
  1186. end
  1187. for i=0,1,0.1 do
  1188. swait()
  1189. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  1190. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1191. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  1192. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  1193. end
  1194. swait(10)
  1195. attack=false
  1196. end
  1197.  
  1198. local MomentumCancel = true
  1199. chatServ = game:GetService("Chat")
  1200. local chattedAlready = false
  1201.  
  1202. function MomentumCanelling()
  1203. if RootPart.Velocity.Magnitude > (Humanoid.WalkSpeed+50) and not attack and MomentumCancel then
  1204. RootPart.Velocity = Vector3.new(0,0,0)
  1205. if not chattedAlready then
  1206. chattedAlready = true
  1207. chatServ:Chat(Head, "Momentum Cancel!", 2)
  1208. wait(1)
  1209. chattedAlready = false
  1210. end
  1211. end
  1212. end
  1213. RootPart.Changed:connect(MomentumCanelling)
  1214. Torso.Changed:connect(MomentumCanelling)
  1215. Head.Changed:connect(MomentumCanelling)
  1216. RightArm.Changed:connect(MomentumCanelling)
  1217. RightLeg.Changed:connect(MomentumCanelling)
  1218. LeftArm.Changed:connect(MomentumCanelling)
  1219. LeftLeg.Changed:connect(MomentumCanelling)
  1220.  
  1221. function Demonattackone()
  1222. attack=true
  1223. --[[
  1224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  1227. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1228. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1229. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1230. ]]
  1231. for i=0,1,0.1 do
  1232. swait()
  1233. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  1234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1235. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  1236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  1237. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  1238. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  1239. end
  1240. hitbox2.Parent=model2
  1241. hitbox2.Size=vt(1,6,1)
  1242. hitbox2.Transparency=1
  1243. hitbox2.CFrame=prtd7.CFrame
  1244. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1245. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  1246. blcf=nil
  1247. scfr=nil
  1248. for i=0,1,0.08 do
  1249. swait()
  1250. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1251. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1252. local h = 5
  1253. 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)
  1254. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1255. 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)
  1256. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1257. scfr = blcf
  1258. elseif not scfr then
  1259. scfr = blcf
  1260. end
  1261. hitbox2.CFrame=prtd7.CFrame
  1262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  1263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1264. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  1265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1266. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  1267. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  1268. end
  1269. con1:disconnect()
  1270. hitbox2.Parent=nil
  1271. attack=false
  1272. end
  1273.  
  1274. function Demonattacktwo()
  1275. attack=true
  1276. for i=0,1,0.1 do
  1277. swait()
  1278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  1279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  1280. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  1281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1282. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  1283. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  1284. end
  1285. hitbox2.Parent=model2
  1286. hitbox2.Size=vt(1,6,1)
  1287. hitbox2.Transparency=1
  1288. hitbox2.CFrame=prtd7.CFrame
  1289. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1290. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  1291. blcf=nil
  1292. scfr=nil
  1293. for i=0,1,0.1 do
  1294. swait()
  1295. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1296. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1297. local h = 5
  1298. 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)
  1299. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1300. 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)
  1301. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1302. scfr = blcf
  1303. elseif not scfr then
  1304. scfr = blcf
  1305. end
  1306. hitbox2.CFrame=prtd7.CFrame
  1307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  1308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  1309. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  1310. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  1311. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  1312. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1313. end
  1314. con1:disconnect()
  1315. hitbox2.Parent=nil
  1316. attack=false
  1317. end
  1318.  
  1319. function Demonattackthree()
  1320. attack=true
  1321. for i=0,1,0.1 do
  1322. swait()
  1323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  1324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  1325. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  1326. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  1327. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  1328. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  1329. end
  1330. --Humanoid.WalkSpeed=0
  1331. hitbox2.Parent=model2
  1332. hitbox2.Size=vt(1,6,1)
  1333. hitbox2.Transparency=1
  1334. hitbox2.CFrame=prtd7.CFrame
  1335. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  1336. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  1337. blcf=nil
  1338. scfr=nil
  1339. for i=0,1,0.15 do
  1340. swait()
  1341. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1342. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1343. local h = 5
  1344. 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)
  1345. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1346. 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)
  1347. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1348. scfr = blcf
  1349. elseif not scfr then
  1350. scfr = blcf
  1351. end
  1352. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  1353. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  1354. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  1355. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  1356. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  1357. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  1358. if i==0.6 then
  1359. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1360. if hit~=nil then
  1361. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1362. ref.Anchored=true
  1363. ref.CFrame=cf(pos)
  1364. game:GetService("Debris"):AddItem(ref,3)
  1365. for i=1,5 do
  1366. Col=hit.BrickColor
  1367. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1368. groundpart.Anchored=true
  1369. groundpart.Material=hit.Material
  1370. groundpart.CanCollide=true
  1371. 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))
  1372. game:GetService("Debris"):AddItem(groundpart,3)
  1373. end
  1374. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  1375. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1376. MagniDamage(ref,10,10,20,math.random(10,20),"Normal")
  1377. end
  1378. end
  1379. end
  1380. con1:disconnect()
  1381. hitbox2.Parent=nil
  1382. swait(10)
  1383. --Humanoid.WalkSpeed=16
  1384. attack=false
  1385. end
  1386.  
  1387. function LetItBuild()
  1388. attack=true
  1389. for i=0,1,0.1 do
  1390. swait()
  1391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  1392. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1393. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  1394. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1395. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1396. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1397. end
  1398. local num=0
  1399. local magik=0
  1400. local num2=0
  1401. local dammulti = 1
  1402. chatServ:Chat(Head, "Devil...", 2)
  1403. while holdx==true do
  1404. swait()
  1405. if magik<25 then
  1406. if num>=10 then
  1407. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1408. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1409. Lightning(pos1,pos2,5,3,"Dark indigo",.1,.5,.5)
  1410. MagicCircle(BrickColor.new("Dark indigo"),cf(pos1),5,5,5,1,1,1,.1)
  1411. MagicBlood(BrickColor.new("Dark indigo"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  1412. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  1413. magik=magik+3
  1414. num=0
  1415. end
  1416. end
  1417. Humanoid.MaxHealth = Humanoid.MaxHealth+20
  1418. dammulti = dammulti+(2+(Humanoid.MaxHealth/Humanoid.Health))
  1419. num=num+1
  1420. num2=num2+magik
  1421. if num2>=50 then
  1422. MagicBlood(BrickColor.new("Dark indigo"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  1423. num2=0
  1424. end
  1425. --MagicBlock(BrickColor.new("Really red"),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)
  1426. end
  1427. chatServ:Chat(Head, "Cutter!", 2)
  1428. RootPart.Velocity=RootPart.CFrame.lookVector*(6*magik)
  1429. blcf=nil
  1430. scfr=nil
  1431. hitbox2.Parent=model2
  1432. hitbox2.Size=vt(1,6,1)
  1433. hitbox2.Transparency=1
  1434. hitbox2.CFrame=prtd7.CFrame
  1435. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,(magik*2221)*dammulti,(magik*4441)*dammulti,1,"DevilStyle",RootPart,.2/(dammulti*magik),1) end)
  1436. for i=1,3 do
  1437. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  1438. for i=0,1,0.1 do
  1439. swait()
  1440. hitbox2.CFrame=prtd7.CFrame
  1441. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  1442. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  1443. local h = 5
  1444. 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)
  1445. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1446. 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)
  1447. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1448. scfr = blcf
  1449. elseif not scfr then
  1450. scfr = blcf
  1451. end
  1452. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  1453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  1454. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  1455. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  1456. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  1457. end
  1458. end
  1459. con1:disconnect()
  1460. hitbox2.Parent=nil
  1461. attack=false
  1462. end
  1463.  
  1464. function YourMoveCreep()
  1465. attack=true
  1466. local pers=nil
  1467. for i=0,1,0.1 do
  1468. swait()
  1469. cost=Humanoid.Health*.00
  1470. Humanoid:TakeDamage(cost)
  1471. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1475. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1476. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1477. end
  1478. local blockprt=part(3,Character,0,1,BrickColor.new("Dark indigo"),"Block",vt(6,.1,6))
  1479. chatServ:Chat(Head, "Your move, creep.", 2)
  1480. blockprt.Anchored=false
  1481. blockprt.CanCollide = false
  1482. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1483. local Blockweld = Instance.new("Weld",blockprt)
  1484. Blockweld.Part0 = LeftArm
  1485. Blockweld.Part1 = blockprt
  1486. Blockweld.C0 = CFrame.new(0, -1, 0)
  1487. conbl=blockprt.Touched:connect(function(hit) end)
  1488. local extradam = 1
  1489. blockprt.Touched:connect(function(hit)
  1490. local Tor1 = hit.Parent.Parent:findFirstChild("Torso")
  1491. local Tor2 = hit.Parent:findFirstChild("Torso")
  1492. local function FindAHumanoid(parent)
  1493. local H = nil
  1494. for _, HUM in pairs(parent:GetChildren()) do
  1495. if HUM:IsA("Humanoid") then
  1496. H = HUM
  1497. end
  1498. end
  1499. return H
  1500. end
  1501. if Tor1 and guard then
  1502. if Tor1.Parent == Character then else
  1503. local HUM = FindAHumanoid(Tor1.Parent)
  1504. local DAM = math.random(10, 20)*extradam
  1505. if HUM then
  1506. if HUM.MaxHealth > 10000000 then
  1507. HUM.MaxHealth = 100
  1508. end
  1509. showDamage(Tor1.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  1510. HUM.Health = HUM.Health-DAM
  1511. HUM:ChangeState(Enum.HumanoidStateType.FallingDown)
  1512. chatServ:Chat(Head, "Ha!", 2)
  1513. end
  1514. guard = false
  1515. local BBlast = Instance.new("Part", F2)
  1516. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1517. BBlast.Material = "Neon"
  1518. BBlast.Transparency = .5
  1519. local OverallSize = Tor1.Size.X*4
  1520. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  1521. BBlast.CFrame = Tor1.CFrame
  1522. BBlast.Anchored = true
  1523. BBlast.CanCollide = false
  1524. BBlast.Locked = true
  1525. local BMesh = Instance.new("SpecialMesh", BBlast)
  1526. BMesh.MeshType = "Sphere"
  1527. local BSound = Instance.new("Sound", BBlast)
  1528. BSound.Volume = 10
  1529. BSound.SoundId = "rbxassetid://153832523"
  1530. BSound.Pitch = .8
  1531. BSound:Play()
  1532. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  1533. for I = .5, 1, .05 do
  1534. wait()
  1535. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  1536. BBlast.Transparency = I
  1537. end
  1538. game:GetService("Debris"):AddItem(BBlast, 0)
  1539. game:GetService("Debris"):AddItem(BSound, 0)
  1540. end
  1541. end
  1542. if Tor2 and guard then
  1543. if Tor2.Parent == Character then else
  1544. local HUM = FindAHumanoid(Tor2.Parent)
  1545. local DAM = math.random(10, 20)*extradam
  1546. if HUM then
  1547. if HUM.MaxHealth > 10000000 then
  1548. HUM.MaxHealth = 100
  1549. wait()
  1550. end
  1551. showDamage(Tor2.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  1552. HUM.Health = HUM.Health-DAM
  1553. HUM:ChangeState(Enum.HumanoidStateType.Ragdoll)
  1554. chatServ:Chat(Head, "Ha!", 2)
  1555. end
  1556. guard = false
  1557. local BBlast = Instance.new("Part", F2)
  1558. BBlast.BrickColor = BrickColor.new("Dark indigo")
  1559. BBlast.Material = "Neon"
  1560. BBlast.Transparency = .5
  1561. local OverallSize = Tor2.Size.X*4
  1562. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  1563. BBlast.CFrame = Tor2.CFrame
  1564. BBlast.Anchored = true
  1565. BBlast.CanCollide = false
  1566. BBlast.Locked = true
  1567. local BMesh = Instance.new("SpecialMesh", BBlast)
  1568. BMesh.MeshType = "Sphere"
  1569. local BSound = Instance.new("Sound", BBlast)
  1570. BSound.Volume = 10
  1571. BSound.SoundId = "rbxassetid://153832523"
  1572. BSound.Pitch = .8
  1573. BSound:Play()
  1574. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  1575. for I = .5, 1, .05 do
  1576. wait()
  1577. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  1578. BBlast.Transparency = I
  1579. end
  1580. game:GetService("Debris"):AddItem(BBlast, 0)
  1581. game:GetService("Debris"):AddItem(BSound, 0)
  1582. end
  1583. end
  1584. --[[if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  1585. pers=hit
  1586. print("HIT")
  1587. guard=false
  1588. end--]]
  1589. end)
  1590. num=0
  1591. while guard==true do
  1592. swait()
  1593. extradam = extradam+.5
  1594. if num>10 then
  1595. num=0
  1596. MagicBlock(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  1597. MagicCircle(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  1598. end
  1599. --blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  1600. num=num+1
  1601. end
  1602. conbl:disconnect()
  1603. game:GetService("Debris"):AddItem(blockprt, 0)
  1604. print(pers)
  1605. if pers~=nil then
  1606. for i=0,1,0.1 do
  1607. swait()
  1608. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1609. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1610. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1611. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1612. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1613. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1614. end
  1615. swait(0.05)
  1616. end
  1617. attack=false
  1618. end
  1619.  
  1620. function CreateWeaponPart(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  1621. local Part = Instance.new(className, parent)
  1622. Part.BrickColor = BrickColor.new(Brickcolor)
  1623. Part.Transparency = Transparency
  1624. Part.Reflectance = Reflectance
  1625. Part.Material = Material
  1626. Part.Name = Name
  1627. Part.Anchored = true
  1628. Part.CanCollide = false
  1629. Part.Locked = true
  1630. Part.Size = Size
  1631. Part.Position = Position
  1632. Part.Rotation = Rotation
  1633. local Mesh = Instance.new(MeshClass, Part)
  1634. Mesh.Scale = MeshScale
  1635. if MeshClass == "SpecialMesh" then
  1636. Mesh.MeshId = MeshId
  1637. Mesh.MeshType = MeshType
  1638. end
  1639. return Part
  1640. end
  1641.  
  1642. local Demon_Cannon = Instance.new("Model")
  1643. Demon_Cannon.Name = "Demon Cannon"
  1644.  
  1645. ----------------(ClassName, , BrickColor, Material , Trans, Refl, Name, Size, Position, Rotation, Mesh Class, Mesh Scale , MId, MType)
  1646. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1647. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1648. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1649. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1650. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 2.982, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1651. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.418, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1652. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.309, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1653. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.091, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  1654. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1655. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  1656. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(1.2, 0.436, 0.545), Vector3.new(3.1, 3.2, -267.264), Vector3.new(-90, 90, 0), "SpecialMesh", Vector3.new(1,1,1), "", "Torso")
  1657. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(0.545, 1.2, 0.2), Vector3.new(3.1, 3.2, -266.991), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,.545), _, _)
  1658. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBody", Vector3.new(0.545, 0.545, 2.509), Vector3.new(3.1, 3.2, -265.682), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,1), _, _)
  1659. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 3.473, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  1660. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 2.927, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  1661. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1662. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  1663. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1664. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1665. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1666. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  1667.  
  1668. local CannonMain = CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Main", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  1669. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole1", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 3.473, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1670. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole2", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 2.927, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  1671.  
  1672. local CHole1 = Demon_Cannon:WaitForChild("Blaster Hole1")
  1673. local CHole2 = Demon_Cannon:WaitForChild("Blaster Hole2")
  1674.  
  1675. for _, Part in pairs(Demon_Cannon:GetChildren()) do
  1676. if Part:IsA("Part") then
  1677. if Part.Name ~= "Main" then
  1678. local x = CannonMain
  1679. local y = Part
  1680. local W = Instance.new("Weld")
  1681. W.Part0 = x
  1682. W.Part1 = y
  1683. local CJ = CFrame.new(x.Position)
  1684. local C0 = x.CFrame:inverse()*CJ
  1685. local C1 = y.CFrame:inverse()*CJ
  1686. W.C0 = C0
  1687. W.C1 = C1
  1688. W.Parent = x
  1689. x.Anchored = false
  1690. y.Anchored = false
  1691. end
  1692. Part.Anchored = false
  1693. Part.TopSurface = "SmoothNoOutlines"
  1694. Part.BottomSurface = "SmoothNoOutlines"
  1695. Part.LeftSurface = "SmoothNoOutlines"
  1696. Part.RightSurface = "SmoothNoOutlines"
  1697. Part.FrontSurface = "SmoothNoOutlines"
  1698. Part.BackSurface = "SmoothNoOutlines"
  1699. end
  1700. end
  1701. CannonMain.Anchored = true
  1702.  
  1703. local CM2 = CreateWeaponPart("Part", Character, "Really black", "SmoothPlastic", 1, 0, "Main2", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  1704. CM2.Anchored = false
  1705.  
  1706. local CMW1 = Instance.new("Weld", CM2)
  1707. CMW1.Part0 = RootPart
  1708. CMW1.Part1 = CM2
  1709. CMW1.C0 = CFrame.new(0, 3, 0)
  1710.  
  1711. local CannonWeld = Instance.new("Weld", CM2)
  1712. local CPos = Instance.new("BodyPosition")
  1713. local CGyro = Instance.new("BodyGyro")
  1714.  
  1715. local DCOn = false
  1716. local TCtrl = false
  1717. local CanUseCannon = false
  1718. local Firing = false
  1719. local C = 1
  1720.  
  1721. function DemonCannon()
  1722. attack = true
  1723. chatServ:Chat(Head, "Behold..", 2)
  1724. for i=0, 10 do
  1725. swait()
  1726. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1727. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  1728. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1729. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  1730. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1731. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1732. end
  1733. wait(1)
  1734. Humanoid.WalkSpeed = 8
  1735. for i=0, 10 do
  1736. swait()
  1737. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  1738. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-.4,1.3),.3)
  1739. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  1740. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-2.6),.3)
  1741. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  1742. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1743. end
  1744. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1745. for i=0,1,0.01 do
  1746. swait()
  1747. for i=1,4 do
  1748. if math.random(1,4)==1 then
  1749. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1750. else
  1751. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1752. end
  1753. end
  1754. num=num+1
  1755. end
  1756. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  1757. local Boo = Instance.new("Part", F2)
  1758. Boo.BrickColor = BrickColor.new("Dark indigo")
  1759. Boo.Transparency = .5
  1760. Boo.Material = "Neon"
  1761. Boo.Anchored = true
  1762. Boo.CanCollide = false
  1763. Boo.CFrame = CM2.CFrame
  1764. Boo.Size = Vector3.new(3,3,3)
  1765. local BooM = Instance.new("SpecialMesh", Boo)
  1766. BooM.MeshType = "Sphere"
  1767. local nuM = 0
  1768. chatServ:Chat(Head, "The Demon Cannon!", 2)
  1769. Humanoid.WalkSpeed = 16
  1770. for i = 1, 4, .1 do
  1771. wait()
  1772. BooM.Scale = Vector3.new(i,i,i)
  1773. Boo.Transparency = .5+(i/8)
  1774. if nuM ~= 1 then
  1775. Demon_Cannon.Parent = Character
  1776. CannonWeld = Instance.new("Weld", CM2)
  1777. CannonWeld.Part0 = CM2
  1778. CannonWeld.Part1 = CannonMain
  1779. CannonMain.Anchored = false
  1780. nuM = 1
  1781. end
  1782. end
  1783. for i=0,1,0.1 do
  1784. wait()
  1785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  1786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  1787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  1788. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1789. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  1790. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  1791. end
  1792. game:GetService("Debris"):AddItem(Boo, 0)
  1793. CanUseCannon = true
  1794. CannonWeld.Part0 = nil
  1795. CannonWeld.Part1 = nil
  1796. CPos.Parent = CannonMain
  1797. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1798. CGyro.Parent = CannonMain
  1799. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1800. attack = false
  1801. end
  1802.  
  1803. function HideDemonCannon()
  1804. attack = true
  1805. CanUseCannon = false
  1806. CPos.Parent = nil
  1807. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1808. CGyro.Parent = nil
  1809. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1810. CannonWeld = Instance.new("Weld", CM2)
  1811. CannonWeld.Part0 = CM2
  1812. CannonWeld.Part1 = CannonMain
  1813. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1814. for i=0,1,0.01 do
  1815. swait()
  1816. for i=1,4 do
  1817. if math.random(1,4)==1 then
  1818. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1819. else
  1820. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1821. end
  1822. end
  1823. num=num+1
  1824. end
  1825. CannonMain.Anchored = true
  1826. Demon_Cannon.Parent = nil
  1827. CannonWeld.Part0 = nil
  1828. CannonWeld.Part1 = nil
  1829. game:GetService("Debris"):AddItem(CannonWeld, 0)
  1830. attack = false
  1831. end
  1832.  
  1833. function TimeControl()
  1834. print("hahaha")
  1835. attack = true
  1836. for i=0,1,0.1 do
  1837. wait()
  1838. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(math.rad(20),0,math.rad(-30)),.3)
  1839. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  1840. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-120),0),.3)
  1841. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(110),math.rad(-10),math.rad(-30)),.3)
  1842. RH.C0=clerp(RH.C0,cf(1,-.85,-.85)*euler(0,math.rad(100),math.rad(-30))*euler(0,0,0),.3)
  1843. LH.C0=clerp(LH.C0,cf(-1,-.45,-.35)*euler(0,math.rad(-60),math.rad(-20))*euler(0,0,0),.3)
  1844. end
  1845. local EmeraldWeld = Instance.new("Motor", LeftArm)
  1846. local Chaos_Emerald = Instance.new("Part", F2)
  1847. Chaos_Emerald.BrickColor = BrickColor.new("Dark indigo")
  1848. Chaos_Emerald.Material = "SmoothPlastic"
  1849. Chaos_Emerald.Reflectance = .3
  1850. Chaos_Emerald.Transparency = 1
  1851. Chaos_Emerald.Name = "Chaos Emerald"
  1852. Chaos_Emerald.Anchored = false
  1853. Chaos_Emerald.CanCollide = false
  1854. Chaos_Emerald.Locked = true
  1855. Chaos_Emerald.Size = Vector3.new(1,.4, 1)
  1856. local CE_Mesh = Instance.new("SpecialMesh", Chaos_Emerald)
  1857. CE_Mesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  1858. CE_Mesh.Scale = Vector3.new(2,1,2)
  1859. local CE_Light = Instance.new("PointLight", Chaos_Emerald)
  1860. CE_Light.Brightness = 100
  1861. CE_Light.Color = Color3.new(85/255, 0, 127/255)
  1862. CE_Light.Range = 8
  1863. CE_Light.Shadows = true
  1864. CE_Light.Enabled = false
  1865. local transPoints = {
  1866. NumberSequenceKeypoint.new(0,0,0),
  1867. NumberSequenceKeypoint.new(1,1,0),
  1868. }
  1869. local ETransparency = NumberSequence.new(transPoints)
  1870. local CE_PE = Instance.new("ParticleEmitter", Chaos_Emerald)
  1871. CE_PE.Color = ColorSequence.new(Chaos_Emerald.BrickColor.Color)
  1872. CE_PE.LightEmission = 1
  1873. CE_PE.Size = NumberSequence.new(.4)
  1874. CE_PE.Transparency = ETransparency
  1875. CE_PE.EmissionDirection = "Top"
  1876. CE_PE.LockedToPart = true
  1877. CE_PE.VelocityInheritance = 1
  1878. CE_PE.Rate = 50
  1879. CE_PE.Lifetime = NumberRange.new(.3, .5)
  1880. CE_PE.RotSpeed = NumberRange.new(100,300)
  1881. CE_PE.Speed = NumberRange.new(2)
  1882. CE_PE.VelocitySpread = 100
  1883. CE_PE.Enabled = false
  1884. EmeraldWeld.Part0 = LeftArm
  1885. EmeraldWeld.Part1 = Chaos_Emerald
  1886. EmeraldWeld.DesiredAngle = 9999999999999999999999999999999999999999999999999999999999999
  1887. EmeraldWeld.MaxVelocity = math.rad(5)
  1888. EmeraldWeld.C0 = CFrame.new(0, -6, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-180), 0, 0)
  1889. EmeraldWeld.C1 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1890. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  1891. for i=0,1,0.01 do
  1892. swait()
  1893. for i=1,6 do
  1894. if math.random(1,4)==1 then
  1895. MagicBlock(BrickColor.new("Really black"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  1896. else
  1897. MagicBlock(BrickColor.new("Dark indigo"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  1898. end
  1899. end
  1900. num=num+1
  1901. end
  1902. Chaos_Emerald.Transparency = .3
  1903. CE_PE.Enabled = true
  1904. CE_Light.Enabled = true
  1905. Humanoid.WalkSpeed = 0
  1906. wait(1)
  1907. for i = 0, 2.25, .1 do
  1908. wait()
  1909. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-.5,0)*euler(math.rad(-180),0,0),.1)
  1910. end
  1911. EmeraldWeld.MaxVelocity = 0
  1912. so("http://roblox.com/asset/?id=227194112",LeftArm,1,1)
  1913. for i=0,1,0.1 do
  1914. wait()
  1915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,math.rad(-30)),.3)
  1916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  1917. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-160),0),.3)
  1918. LW.C0=clerp(LW.C0,cf(-.5,.5,-1)*euler(math.rad(90),0,math.rad(80)),.3)
  1919. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,math.rad(90), 0),.3)
  1920. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,math.rad(-90),0),.3)
  1921. end
  1922. for i=0,1,0.1 do
  1923. wait()
  1924. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1925. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(-20),0,0),.3)
  1926. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(0),math.rad(0),math.rad(60))*euler(0,math.rad(-90),0),.3)
  1927. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(150),0,0),.3)
  1928. end
  1929. chatServ:Chat(Head, "Behold, my power!", 2)
  1930. EmeraldWeld.MaxVelocity = math.rad(5)
  1931. for i = 0, 1, .1 do
  1932. wait()
  1933. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-3,-1.1)*euler(math.rad(-240),0,0),.3)
  1934. end
  1935. local Chaos_Emerald2 = Chaos_Emerald:Clone()
  1936. Chaos_Emerald2.Parent = F2
  1937. Chaos_Emerald2.Anchored = false
  1938. for _, k in pairs(Chaos_Emerald2:GetChildren()) do
  1939. if k:IsA("PointLight") or k:IsA("ParticleEmitter") then
  1940. game:GetService("Debris"):AddItem(k, 0)
  1941. end
  1942. end
  1943. Chaos_Emerald2.Transparency = .5
  1944. local EmeraldWeld2 = Instance.new("Weld", Chaos_Emerald)
  1945. EmeraldWeld2.Part0 = Chaos_Emerald
  1946. EmeraldWeld2.Part1 = Chaos_Emerald2
  1947. EmeraldWeld2.C0 = CFrame.new(0,0,0)
  1948. local CE2_Mesh = Chaos_Emerald2:WaitForChild("Mesh")
  1949. CE2_Mesh.Scale = Vector3.new(0,0,0)
  1950. local function EFlash()
  1951. for t = 0, 2, .1 do
  1952. wait()
  1953. CE2_Mesh.Scale = Vector3.new(t*4,t*1.2,t*4)
  1954. Chaos_Emerald2.Transparency = .5+t/4
  1955. end
  1956. end
  1957. for i = 0, 5 do
  1958. EFlash()
  1959. wait(.1)
  1960. end
  1961. chatServ:Chat(Head, "Time control!", 2)
  1962. local TPlayers = {}
  1963. local THumanoids = {}
  1964. local RecentBrightness = game.Lighting.Brightness
  1965. local RecentOutDoorAmbient = game.Lighting.OutdoorAmbient
  1966. local RecentTimeOfDay = game.Lighting.TimeOfDay
  1967. local RecentFogEnd = game.Lighting.FogEnd
  1968. local RecentFogColor = game.Lighting.FogColor
  1969. local TBlast, TBMesh = Instance.new("Part", F2), Instance.new("SpecialMesh")
  1970. TBlast.BrickColor = BrickColor.new("Dark indigo")
  1971. TBlast.Transparency = 1
  1972. TBlast.Anchored = true
  1973. TBlast.CanCollide = false
  1974. TBlast.CFrame = RootPart.CFrame
  1975. TBlast.Size = Vector3.new(2,2,2)
  1976. TBMesh.Parent = TBlast
  1977. TBMesh.MeshType = "Sphere"
  1978. game.Lighting.Brightness = 0
  1979. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  1980. game.Lighting.TimeOfDay = 4
  1981. game.Lighting.FogEnd = 1000
  1982. game.Lighting.FogColor = TBlast.BrickColor.Color
  1983. local function GetPlayers()
  1984. for _, P in pairs(game.Players:GetPlayers()) do
  1985. if P then
  1986. if P ~= Player then
  1987. table.insert(TPlayers, P)
  1988. local cc = P:WaitForChild("Character")
  1989. local huh = FindHum(cc)
  1990. local Jd = huh:FindFirstChild("JumpedValue")
  1991. if not Jd then
  1992. Jd = Instance.new("BoolValue")
  1993. Jd.Parent = huh
  1994. Jd.Name = "JumpedValue"
  1995. Jd.Value = false
  1996. end
  1997. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  1998. if not S then
  1999. S = Instance.new("BodyVelocity",P:WaitForChild("Character"):WaitForChild("Torso"))
  2000. S.MaxForce = Vector3.new(0,0,0)
  2001. S.Velocity = Vector3.new(0,0,0)
  2002. S.Name = "svFgyuzxC"
  2003. end
  2004. end
  2005. end
  2006. end
  2007. end
  2008. local function GetOtherHumanoids()
  2009. for _, H in pairs(workspace:GetChildren()) do
  2010. if H:IsA("Model") then
  2011. local HUM = FindHum(H)
  2012. if HUM and HUM ~= Humanoid then
  2013. table.insert(THumanoids, HUM)
  2014. local Jd = HUM:FindFirstChild("JumpedValue")
  2015. if not Jd then
  2016. Jd = Instance.new("BoolValue")
  2017. Jd.Parent = HUM
  2018. Jd.Name = "JumpedValue"
  2019. Jd.Value = false
  2020. end
  2021. local S = HUM.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2022. if not S then
  2023. S = Instance.new("BodyVelocity",HUM.Parent:WaitForChild("Torso"))
  2024. S.MaxForce = Vector3.new(0,0,0)
  2025. S.Velocity = Vector3.new(0,0,0)
  2026. S.Name = "svFgyuzxC"
  2027. end
  2028. end
  2029. end
  2030. end
  2031. end
  2032. GetPlayers()
  2033. GetOtherHumanoids()
  2034. local function ClearTHumanoids()
  2035. for i, H in pairs(THumanoids) do
  2036. if H then
  2037. table.remove(THumanoids, i)
  2038. local Jd = H:FindFirstChild("JumpedValue")
  2039. if Jd then
  2040. game:GetService("Debris"):AddItem(Jd, 0)
  2041. end
  2042. H.WalkSpeed = 16
  2043. local S = H.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2044. if S then
  2045. game:GetService("Debris"):AddItem(S, 0)
  2046. end
  2047. end
  2048. end
  2049. end
  2050. local function ClearTPlayers()
  2051. for i, P in pairs(TPlayers) do
  2052. if P then
  2053. table.remove(TPlayers, i)
  2054. local cc = P:WaitForChild("Character")
  2055. local huh = FindHum(cc)
  2056. local Jd = huh:FindFirstChild("JumpedValue")
  2057. if Jd then
  2058. game:GetService("Debris"):AddItem(Jd, 0)
  2059. end
  2060. huh.WalkSpeed = 16
  2061. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2062. if S then
  2063. game:GetService("Debris"):AddItem(S, 0)
  2064. end
  2065. end
  2066. end
  2067. end
  2068. Humanoid.WalkSpeed = 16
  2069. for s = 0, 50, 5 do
  2070. wait()
  2071. TBMesh.Scale = Vector3.new(s*s,s*s,s*s)
  2072. TBlast.Transparency = s/50
  2073. end
  2074. attack = false
  2075. game:GetService("Debris"):AddItem(Chaos_Emerald, 0)
  2076. game:GetService("Debris"):AddItem(Chaos_Emerald2, 0)
  2077. game:GetService("Debris"):AddItem(TBlast, 0)
  2078. local PlayerJoined = game:GetService("Players").PlayerAdded:connect(function()
  2079. for _,child in pairs(game:GetService("Players"):GetPlayers()) do
  2080. table.insert(TPlayers, child)
  2081. local cc = child:WaitForChild("Character")
  2082. local huh = FindHum(cc)
  2083. local Jd = huh:FindFirstChild("JumpedValue")
  2084. if not Jd then
  2085. Jd = Instance.new("BoolValue")
  2086. Jd.Parent = huh
  2087. Jd.Name = "JumpedValue"
  2088. Jd.Value = false
  2089. end
  2090. local S = child:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2091. if not S then
  2092. S = Instance.new("BodyVelocity",child:WaitForChild("Character"):WaitForChild("Torso"))
  2093. S.MaxForce = Vector3.new(0,0,0)
  2094. S.Velocity = Vector3.new(0,0,0)
  2095. S.Name = "svFgyuzxC"
  2096. end
  2097. end
  2098. end)
  2099. local PlayerLeft = game:GetService("Players").PlayerRemoving:connect(function(player)
  2100. for i,child in pairs(TPlayers) do
  2101. if child == player then
  2102. table.remove(TPlayers,i)
  2103. end
  2104. end
  2105. end)
  2106. local function StuntJumpUntil(humanoid)
  2107. local duration = humanoid.JumpPower
  2108. local root = humanoid.Parent:FindFirstChild("HumanoidRootPart")
  2109. local RooT = nil
  2110. local Jd = humanoid:FindFirstChild("JumpedValue")
  2111. if not Jd then error("Jump Value was not found.") end
  2112. Jd.Value = true
  2113. humanoid.Jump = false
  2114. if root then
  2115. RooT = root
  2116. elseif not root then
  2117. root = humanoid.Parent:FindFirstChild("Torso")
  2118. if root then
  2119. RooT = root
  2120. end
  2121. end
  2122. local NUM = 0
  2123. --[[repeat
  2124. wait()
  2125. print(NUM, duration, humanoid.Parent)
  2126. NUM = NUM+.05
  2127. if RooT then
  2128. Jd.Value = true
  2129. RooT.Velocity = Vector3.new(0, .05, 0)
  2130. end
  2131. until NUM >= duration or humanoid.Health < .1--]]
  2132. local S = humanoid.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2133. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", humanoid.Parent:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2134. S.MaxForce = Vector3.new(0, math.huge, 0)
  2135. S.Velocity = Vector3.new(0, -.1, 0)
  2136. wait(duration)
  2137. S.MaxForce = Vector3.new(0, 0, 0)
  2138. Jd.Value = false
  2139. end
  2140. local TimeC = runServ:connect(function()
  2141. game.Lighting.Brightness = 0
  2142. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  2143. game.Lighting.TimeOfDay = 4
  2144. game.Lighting.FogEnd = 1000
  2145. game.Lighting.FogColor = TBlast.BrickColor.Color
  2146. for i, P in pairs(TPlayers) do
  2147. if P then
  2148. local cHar = P:WaitForChild("Character")
  2149. local hUm = FindHum(cHar)
  2150. local Jd = hUm:FindFirstChild("JumpedValue")
  2151. if not Jd then error("Jump Value was not found.") end
  2152. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2153. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2154. if hUm.WalkSpeed > .8 then
  2155. hUm.WalkSpeed = .8
  2156. elseif hUm.WalkSpeed == 0 then
  2157. end
  2158. if hUm:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2159. StuntJumpUntil(hUm)
  2160. end
  2161. if hUm:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2162. S.MaxForce = Vector3.new(0, math.huge, 0)
  2163. S.Velocity = Vector3.new(0, -.1, 0)
  2164. elseif hUm:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2165. S.MaxForce = Vector3.new(0,0,0)
  2166. end
  2167. end
  2168. end
  2169. for i, H in pairs(THumanoids) do
  2170. if H then
  2171. local cHar = H.Parent
  2172. local Jd = H:FindFirstChild("JumpedValue")
  2173. if not Jd then error("Jump Value was not found.") end
  2174. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  2175. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  2176. if H.WalkSpeed > .8 then
  2177. H.WalkSpeed = .8
  2178. elseif H.WalkSpeed == 0 then
  2179. end
  2180. if H:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  2181. StuntJumpUntil(H)
  2182. end
  2183. if H.Health < .1 then
  2184. table.remove(THumanoids, i)
  2185. wait(5)
  2186. ClearTHumanoids()
  2187. GetOtherHumanoids()
  2188. end
  2189. if H:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  2190. S.MaxForce = Vector3.new(0, math.huge, 0)
  2191. S.Velocity = Vector3.new(0, -.1, 0)
  2192. elseif H:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  2193. S.MaxForce = Vector3.new(0,0,0)
  2194. end
  2195. end
  2196. end
  2197. end)
  2198. repeat wait() until not TCtrl or Humanoid.Health < .01
  2199. TimeC:disconnect()
  2200. chatServ:Chat(Head, "Time release.", 2)
  2201. game.Lighting.Brightness = RecentBrightness
  2202. game.Lighting.OutdoorAmbient = RecentOutDoorAmbient
  2203. game.Lighting.TimeOfDay = RecentTimeOfDay
  2204. game.Lighting.FogEnd = RecentFogEnd
  2205. game.Lighting.FogColor = RecentFogColor
  2206. wait(.1)
  2207. ClearTHumanoids()
  2208. ClearTPlayers()
  2209. end
  2210.  
  2211. function FindHum(parent)
  2212. local hm = nil
  2213. for _, HM in pairs(parent:GetChildren()) do
  2214. if HM:IsA("Humanoid") then
  2215. hm = HM
  2216. end
  2217. end
  2218. return hm
  2219. end
  2220.  
  2221. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  2222. for _,c in pairs(workspace:children()) do
  2223. local hum=FindHum(c)
  2224. if hum~=nil then
  2225. local head=c:findFirstChild("Torso")
  2226. if head~=nil then
  2227. local targ=head.Position-Part.Position
  2228. local mag=targ.magnitude
  2229. if mag<=magni and c.Name~=Player.Name then
  2230. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  2231. end
  2232. end
  2233. end
  2234. end
  2235. end
  2236.  
  2237. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2238. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2239. end
  2240.  
  2241. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2242. LastPoint=Point
  2243. function effect(Color,Ref,LP,P1,returnn)
  2244. local effectsmsh=Instance.new("CylinderMesh")
  2245. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2246. effectsmsh.Name="Mesh"
  2247. local effectsg=Instance.new("Part")
  2248. effectsg.formFactor=3
  2249. effectsg.CanCollide=false
  2250. effectsg.Name="Eff"
  2251. effectsg.Locked=true
  2252. effectsg.Anchored=true
  2253. effectsg.Size=Vector3.new(0.5,1,0.5)
  2254. effectsg.Parent=F2
  2255. effectsmsh.Parent=effectsg
  2256. effectsg.BrickColor=BrickColor.new(Color)
  2257. effectsg.Reflectance=Ref
  2258. local point1=P1
  2259. local mg=(LP.p - point1.p).magnitude
  2260. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2261. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2262. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2263. game:GetService("Debris"):AddItem(effectsg,2)
  2264. if returnn then return effectsg end
  2265. coroutine.resume(coroutine.create(function(Part,Mesh)
  2266. if not returnn then
  2267. for i=0,1,0.05 do
  2268. wait()
  2269. Part.Transparency=1*i
  2270. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  2271. end
  2272. Part.Parent=nil
  2273. end
  2274. end),effectsg,effectsmsh)
  2275. end
  2276.  
  2277. local function CFrameFromTopBack(at, top, back)
  2278. local right = top:Cross(back)
  2279. return CFrame.new(at.x, at.y, at.z,
  2280. right.x, top.x, back.x,
  2281. right.y, top.y, back.y,
  2282. right.z, top.z, back.z)
  2283. end
  2284.  
  2285. F1 = Instance.new("Folder", Character)
  2286. F1.Name = "Effects Folder"
  2287. F2 = Instance.new("Folder", F1)
  2288. F2.Name = "Effects"
  2289.  
  2290. function Triangle(a, b, c)
  2291. --[[local edg1 = (c-a):Dot((b-a).unit)
  2292. local edg2 = (a-b):Dot((c-b).unit)
  2293. local edg3 = (b-c):Dot((a-c).unit)
  2294. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2295. a, b, c = a, b, c
  2296. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2297. a, b, c = b, c, a
  2298. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2299. a, b, c = c, a, b
  2300. else
  2301. assert(false, "unreachable")
  2302. end
  2303.  
  2304. local len1 = (c-a):Dot((b-a).unit)
  2305. local len2 = (b-a).magnitude - len1
  2306. local width = (a + (b-a).unit*len1 - c).magnitude
  2307.  
  2308. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2309.  
  2310. local list = {}
  2311.  
  2312. if len1 > 0.01 then
  2313. local w1 = Instance.new('WedgePart', workspace)
  2314. w1.FormFactor = 'Custom'
  2315. w1.Material = "Neon"
  2316. if Mode=="Binary" then
  2317. w1.BrickColor = BrickColor.new("White")
  2318. else
  2319. w1.BrickColor = BrickColor.new("Dark indigo")
  2320. end
  2321. w1.Transparency = 0
  2322. w1.Reflectance = 0
  2323. w1.CanCollide = false
  2324. NoOutline(w1)
  2325. local sz = Vector3.new(0.2, width, len1)
  2326. w1.Size = sz
  2327. local sp = Instance.new("SpecialMesh",w1)
  2328. sp.MeshType = "Wedge"
  2329. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2330. w1:BreakJoints()
  2331. w1.Anchored = true
  2332. w1.Transparency = 0.7
  2333. game:GetService("Debris"):AddItem(w1,25)
  2334. table.insert(Effects,{w1,"Disappear",.01})
  2335. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2336. table.insert(list,w1)
  2337. end
  2338.  
  2339. if len2 > 0.01 then
  2340. local w2 = Instance.new('WedgePart', workspace)
  2341. w2.Material = "Neon"
  2342. w2.FormFactor = 'Custom'
  2343. if Mode=="Binary" then
  2344. w2.BrickColor = BrickColor.new("White")
  2345. else
  2346. w2.BrickColor = BrickColor.new("Dark indigo")
  2347. end
  2348. w2.Transparency = 0
  2349. w2.Reflectance = 0
  2350. w2.CanCollide = false
  2351. NoOutline(w2)
  2352. local sz = Vector3.new(0.2, width, len2)
  2353. w2.Size = sz
  2354. local sp = Instance.new("SpecialMesh",w2)
  2355. sp.MeshType = "Wedge"
  2356. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2357. w2:BreakJoints()
  2358. w2.Anchored = true
  2359. w2.Transparency = 0.7
  2360. game:GetService("Debris"):AddItem(w2,25)
  2361. table.insert(Effects,{w2,"Disappear",.01})
  2362. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2363. table.insert(list,w2)
  2364. end
  2365. return unpack(list)--]]
  2366. end
  2367.  
  2368. --[[
  2369. Things for effects
  2370. put the variables in one table
  2371. like effect={brick,interval,i}
  2372. ]]
  2373. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2374. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2375. prt.Anchored=true
  2376. prt.CFrame=cframe
  2377. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2378. game:GetService("Debris"):AddItem(prt,5)
  2379. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  2380. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  2381. for i=0,1,delay do
  2382. wait()
  2383. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2384. Part.Transparency=i
  2385. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2386. end
  2387. Part.Parent=nil
  2388. end),prt,msh)]]
  2389. end
  2390.  
  2391. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2392. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2393. prt.Anchored=true
  2394. prt.CFrame=cframe
  2395. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2396. game:GetService("Debris"):AddItem(prt,5)
  2397. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2398. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2399. local wld=nil
  2400. for i=0,1,delay do
  2401. wait()
  2402. Part.CFrame=Part.CFrame
  2403. Part.Transparency=i
  2404. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2405. end
  2406. Part.Parent=nil
  2407. end),prt,msh)]]
  2408. end
  2409.  
  2410. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2411. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2412. prt.Anchored=true
  2413. prt.CFrame=cframe
  2414. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2415. game:GetService("Debris"):AddItem(prt,5)
  2416. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2417. end
  2418.  
  2419. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2420. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2421. prt.Anchored=true
  2422. prt.CFrame=cframe
  2423. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  2424. game:GetService("Debris"):AddItem(prt,5)
  2425. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2426. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2427. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2428. for i=0,1,delay do
  2429. wait()
  2430. Part.CFrame=Part.CFrame
  2431. Part.Transparency=i
  2432. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2433. end
  2434. Part.Parent=nil
  2435. end),prt,msh)]]
  2436. end
  2437.  
  2438. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2439. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2440. prt.Anchored=true
  2441. prt.CFrame=cframe
  2442. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2443. game:GetService("Debris"):AddItem(prt,5)
  2444. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2445. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2446. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2447. for i=0,1,delay do
  2448. wait()
  2449. Part.CFrame=Part.CFrame
  2450. Part.Transparency=i
  2451. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2452. end
  2453. Part.Parent=nil
  2454. end),prt,msh)]]
  2455. end
  2456.  
  2457. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2458. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  2459. prt.Anchored=true
  2460. prt.CFrame=cframe
  2461. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2462. game:GetService("Debris"):AddItem(prt,5)
  2463. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  2464. end
  2465.  
  2466. function ElecEffect(cff,x,y,z)
  2467. local prt=part(3,F2,0,0,BrickColor.new("Dark indigo"),"Part",vt(1,1,1))
  2468. prt.Anchored=true
  2469. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2470. prt.CFrame=cf(prt.Position)
  2471. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2472. game:GetService("Debris"):AddItem(prt,2)
  2473. xval=math.random()/2
  2474. yval=math.random()/2
  2475. zval=math.random()/2
  2476. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2477. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  2478. end
  2479.  
  2480. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2481. --[[p0=pos1
  2482. p1=pos2
  2483. tym=times
  2484. ofs=offset
  2485. col=color
  2486. th=size
  2487. tra=transparency
  2488. last=lastingtime]]
  2489. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2490. for i=1,tym do
  2491. local li = Instance.new("Part",F2) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  2492. li.Material = "Neon"
  2493. 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)])
  2494. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2495. if tym == i then
  2496. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2497. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2498. else
  2499. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2500. end
  2501. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game:GetService("Debris"):AddItem(li,last)
  2502. end
  2503. end
  2504.  
  2505. local DragTable = {}
  2506.  
  2507. function Bringer()
  2508. for i, d in pairs(DragTable) do
  2509. if d then
  2510. if d:IsA("BodyPosition") then
  2511. local tem = d:FindFirstChild("Time")
  2512. if not tem then
  2513. tem = Instance.new("NumberValue")
  2514. tem.Parent = d
  2515. tem.Name = "Time"
  2516. tem.Value = 0
  2517. end
  2518. if tem.Value < 1.5 then
  2519. tem.Value = tem.Value+.1
  2520. d.Position = RootPart.Position
  2521. else
  2522. game:GetService("Debris"):AddItem(tem, 0)
  2523. game:GetService("Debris"):AddItem(d, 0)
  2524. table.remove(DragTable, i)
  2525. end
  2526. end
  2527. end
  2528. end
  2529. end
  2530.  
  2531. runServ:connect(function()
  2532. Bringer()
  2533. end)
  2534.  
  2535. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Duration,KnockbackType,decreaseblock)
  2536. if hit.Parent==nil then
  2537. return
  2538. end
  2539. local H = nil
  2540. h=hit.Parent:FindFirstChild("Humanoid")
  2541. for _,v in pairs(hit.Parent:children()) do
  2542. if v:IsA("Humanoid") then
  2543. h=v
  2544. H = v
  2545. end
  2546. end
  2547. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2548. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2549. end
  2550. if hit.Parent.className=="Hat" then
  2551. hit=hit.Parent.Parent:findFirstChild("Head")
  2552. end
  2553. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  2554. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2555. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2556. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2557. return
  2558. end]]
  2559. --hs(hit,1.2)
  2560. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  2561. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  2562. c=Instance.new("ObjectValue")
  2563. c.Name="creator"
  2564. c.Value=game:service("Players").LocalPlayer
  2565. c.Parent=h
  2566. game:GetService("Debris"):AddItem(c,.5)
  2567. Damage=math.random(minim,maxim)
  2568. if Mode=="Demon" then
  2569. Damage=Damage*damagebonus
  2570. end
  2571. -- h:TakeDamage(Damage)
  2572. blocked=false
  2573. block=hit.Parent:findFirstChild("Block")
  2574. if block~=nil then
  2575. print(block.className)
  2576. if block.className=="NumberValue" then
  2577. if block.Value>0 then
  2578. blocked=true
  2579. if decreaseblock==nil then
  2580. block.Value=block.Value-1
  2581. end
  2582. end
  2583. end
  2584. if block.className=="IntValue" then
  2585. if block.Value>0 then
  2586. blocked=true
  2587. if decreaseblock~=nil then
  2588. block.Value=block.Value-1
  2589. end
  2590. end
  2591. end
  2592. end
  2593. if blocked==false then
  2594. --h:TakeDamage(Damage)
  2595. --H.Health=H.Health-Damage
  2596. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  2597. else
  2598. --H.Health=H.Health-(Damage/2)
  2599. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2600. end
  2601. if Type=="Knockdown" then
  2602. hum=hit.Parent.Humanoid
  2603. hum.PlatformStand=true
  2604. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2605. local tor = hum.Parent:FindFirstChild("Torso")
  2606. if tor then
  2607. tor.Velocity = tor.CFrame.lookVector*-10
  2608. end
  2609. coroutine.resume(coroutine.create(function(HHumanoid)
  2610. swait(1)
  2611. HHumanoid.PlatformStand=false
  2612. end),hum)
  2613. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2614. elseif Type=="Breaker" then
  2615. hum=hit.Parent.Humanoid
  2616. hum.PlatformStand=true
  2617. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  2618. hum.JumpPower = 20
  2619. local tor = hum.Parent:FindFirstChild("Torso")
  2620. if tor then
  2621. tor.Velocity = tor.CFrame.lookVector*-50
  2622. end
  2623. coroutine.resume(coroutine.create(function(HHumanoid)
  2624. swait(1)
  2625. HHumanoid.PlatformStand=false
  2626. end),hum)
  2627. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2628. if H.MaxHealth > 100000000 then
  2629. H.MaxHealth = 100
  2630. wait()
  2631. end
  2632. elseif Type=="Normal" then
  2633. vp=Instance.new("BodyVelocity")
  2634. vp.P=500
  2635. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2636. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2637. if KnockbackType==1 then
  2638. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2639. elseif KnockbackType==2 then
  2640. vp.velocity=Property.CFrame.lookVector*knockback
  2641. end
  2642. if knockback>-100 then
  2643. vp.Parent=hit.Parent.Torso
  2644. end
  2645. game:GetService("Debris"):AddItem(vp,.5)
  2646. elseif Type=="Lifesteal" then
  2647. for i=1,5 do
  2648. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2649. end
  2650. vp=Instance.new("BodyVelocity")
  2651. vp.P=500
  2652. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2653. if KnockbackType==1 then
  2654. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2655. elseif KnockbackType==2 then
  2656. vp.velocity=Property.CFrame.lookVector*knockback
  2657. end
  2658. if knockback>-250 then
  2659. vp.Parent=hit.Parent.Torso
  2660. end
  2661. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2662. game:GetService("Debris"):AddItem(vp,.5)
  2663. Heal=math.ceil(Damage/3)
  2664. Humanoid.Health=Humanoid.Health+Heal
  2665. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  2666. elseif Type == "DevilStyle" then
  2667. for i=1,5 do
  2668. --MagicBlood(BrickColor.new("Dark indigo"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2669. end
  2670. vp=Instance.new("BodyPosition")
  2671. vp.P = 80000
  2672. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2673. if KnockbackType==1 then
  2674. vp.Position=RootPart.Position
  2675. elseif KnockbackType==2 then
  2676. vp.Position=RootPart.Position
  2677. end
  2678. if H.MaxHealth > 100000000 then
  2679. H.MaxHealth = 100
  2680. wait()
  2681. end
  2682. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2683. vp.Parent=hit.Parent.Torso
  2684. table.insert(DragTable, vp)
  2685. Heal=math.ceil(Damage/5)
  2686. Humanoid.Health=Humanoid.Health+Heal
  2687. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  2688. elseif Type == "Dragger" then
  2689. for i=1,5 do
  2690. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2691. end
  2692. vp=Instance.new("BodyPosition")
  2693. vp.P = 80000
  2694. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2695. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2696. if KnockbackType==1 then
  2697. vp.Position=RootPart.Position
  2698. elseif KnockbackType==2 then
  2699. vp.Position=RootPart.Position
  2700. end
  2701. vp.Parent=hit.Parent.Torso
  2702. table.insert(DragTable, vp)
  2703. elseif Type=="Up" then
  2704. hit.Velocity = Vector3.new(0, 100, 0)
  2705. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  2706. elseif Type=="Snare" then
  2707. bp=Instance.new("BodyPosition")
  2708. bp.P=2000
  2709. bp.D=100
  2710. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2711. bp.position=hit.Parent.Torso.Position
  2712. bp.Parent=hit.Parent.Torso
  2713. game:GetService("Debris"):AddItem(bp,1)
  2714. elseif Type=="Charge" then
  2715. Charge=Charge+1
  2716. coroutine.resume(coroutine.create(function(Part)
  2717. swait(0.05)
  2718. for i=1,5 do
  2719. swait(5)
  2720. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2721. --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)
  2722. newdam=math.random(1,5)
  2723. if blocked==false then
  2724. H.Health = H.Health-newdam
  2725. showDamage(hit.Parent,newdam,.5,BrickColor:Red())
  2726. else
  2727. H.Health = H.Health-newdam/2
  2728. showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  2729. end
  2730. end
  2731. end),hit)
  2732. end
  2733. local debounceD=Instance.new("BoolValue")
  2734. debounceD.Name="DebounceHit"
  2735. debounceD.Parent=hit.Parent
  2736. debounceD.Value=true
  2737. if Duration < .2 then
  2738. Duration = .2
  2739. end
  2740. game:GetService("Debris"):AddItem(debounceD,Duration)
  2741. local c=Instance.new("ObjectValue")
  2742. c.Name="creator"
  2743. c.Value=Player
  2744. c.Parent=h
  2745. game:GetService("Debris"):AddItem(c,Duration)
  2746. H.Health=H.Health-Damage
  2747. CRIT=false
  2748. hitDeb=true
  2749. AttackPos=6
  2750. end
  2751. end
  2752.  
  2753. showDamage=function(Char,Dealt,du,Color)
  2754. --[[c=Instance.new("Part")
  2755. c.Transparency=0
  2756. c.BrickColor=Color
  2757. c.Material = "Neon"
  2758. c.Name="DamageDisplay"
  2759. c.TopSurface=0
  2760. c.BottomSurface=0
  2761. c.formFactor="Plate"
  2762. c.Size=Vector3.new(1,.4,1)
  2763. ms=Instance.new("CylinderMesh")
  2764. ms.Scale=Vector3.new(.8,.8,.8)
  2765. local bill = Instance.new("BillboardGui")
  2766. bill.Parent = c
  2767. bill.AlwaysOnTop = true
  2768. bill.Name = "YEA"
  2769. bill.Size = UDim2.new(4, 0, 4, 0)
  2770. bill.StudsOffset = Vector3.new(0, 1, 0)
  2771. local textl = Instance.new("TextLabel")
  2772. textl.Parent = bill
  2773. textl.Name = "WHYYYYYYYY"
  2774. textl.BackgroundTransparency = 1
  2775. textl.Size = UDim2.new(1, 0, 1, 0)
  2776. textl.Font = "SourceSansLight"
  2777. textl.Text = "-"..Dealt..""
  2778. textl.TextColor3 = Color3.new(40/255, 0,60/255)
  2779. textl.TextScaled = true
  2780. textl.TextStrokeColor3 = Color3.new(139/255, 0, 209/255)
  2781. textl.TextStrokeTransparency = 0
  2782. if CRIT==true then
  2783. ms.Scale=Vector3.new(1,1.25,1)
  2784. end
  2785. ms.Parent=c
  2786. c.Reflectance=0
  2787. Instance.new("BodyGyro").Parent=c
  2788. c.Parent=F2
  2789. if Char:findFirstChild("Head")~=nil then
  2790. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2791. elseif Char.Parent:findFirstChild("Head")~=nil then
  2792. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2793. end
  2794. local f=Instance.new("BodyPosition")
  2795. f.P=2000
  2796. f.D=100
  2797. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2798. f.position=c.Position+Vector3.new(0,3,0)
  2799. f.Parent=c
  2800. game:GetService("Debris"):AddItem(c,0)
  2801. c.CanCollide=false
  2802. c.CanCollide=false--]]
  2803. end
  2804.  
  2805. combo=0
  2806. function ob1d(mouse)
  2807. hold=true
  2808. if attack==true or equipped==false then return end
  2809. if Mode=="Binary" then
  2810. idle=0
  2811. if Anim=="Run" then
  2812. SpinSlash()
  2813. else
  2814. if combo==0 then
  2815. combo=1
  2816. attackone()
  2817. elseif combo==1 then
  2818. combo=2
  2819. attacktwo()
  2820. elseif combo==2 then
  2821. combo=0
  2822. attackthree()
  2823. end
  2824. end
  2825. else
  2826. if combo==0 then
  2827. combo=1
  2828. Demonattackone()
  2829. elseif combo==1 then
  2830. combo=2
  2831. Demonattacktwo()
  2832. elseif combo==2 then
  2833. combo=0
  2834. Demonattackthree()
  2835. end
  2836. end
  2837. coroutine.resume(coroutine.create(function()
  2838. for i=1,20 do
  2839. if attack==false then
  2840. swait()
  2841. end
  2842. end
  2843. if attack==false then
  2844. combo=0
  2845. --equipanim()
  2846. end
  2847. end))
  2848. end
  2849.  
  2850. function ob1u(mouse)
  2851. hold = false
  2852. end
  2853.  
  2854. buttonhold = false
  2855.  
  2856. eul=0
  2857. holdx=false
  2858. equipped=false
  2859. local nostop = false
  2860.  
  2861. function FireBullet(Shooter, Velocity, MinDam, MaxDam, SIZe)
  2862. local Bullet = Instance.new("Part", F2)
  2863. Bullet.BrickColor = BrickColor.new("Dark indigo")
  2864. Bullet.Material = "Neon"
  2865. Bullet.Transparency = .5
  2866. Bullet.CanCollide = false
  2867. Bullet.Name = "Bullet"
  2868. Bullet.Anchored = false
  2869. Bullet.Locked = true
  2870. Bullet.Size = SIZe
  2871. Bullet.Shape = "Ball"
  2872. Bullet.CFrame = Shooter.CFrame
  2873. local BVel = Instance.new("BodyVelocity",Bullet)
  2874. BVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2875. BVel.Velocity = Shooter.CFrame.lookVector*Velocity
  2876. local bill = Instance.new("BillboardGui")
  2877. bill.Parent = Shooter
  2878. bill.Name = "pew"
  2879. bill.Size = UDim2.new(1.6, 0, 1.6, 0)
  2880. local IL = Instance.new("ImageLabel")
  2881. IL.Parent = bill
  2882. IL.Name = "Flash"
  2883. IL.BackgroundTransparency = 1
  2884. IL.Size = UDim2.new(1, 0, 1, 0)
  2885. IL.Image = "rbxasset://textures/particles/sparkles_main.dds"
  2886. IL.ImageColor3 = Color3.new(170/255, 0, 1)
  2887. local Flash = Instance.new("PointLight", Shooter)
  2888. Flash.Brightness = 100
  2889. Flash.Color = IL.ImageColor3
  2890. Flash.Range = 10
  2891. Flash.Shadows = true
  2892. so("http://roblox.com/asset/?id=200633327",Shooter,1,.7)
  2893. game:GetService("Debris"):AddItem(Bullet, 10)
  2894. game:GetService("Debris"):AddItem(bill, .1)
  2895. game:GetService("Debris"):AddItem(Flash, .1)
  2896. local function BoomEffect(Cframe)
  2897. local Boo = Instance.new("Part", F2)
  2898. Boo.BrickColor = BrickColor.new("Dark indigo")
  2899. Boo.Transparency = .5
  2900. Boo.Material = "Neon"
  2901. Boo.Anchored = true
  2902. Boo.CanCollide = false
  2903. Boo.CFrame = Cframe
  2904. game:GetService("Debris"):AddItem(Bullet, 0)
  2905. Boo.Size = Vector3.new(Bullet.Size.X*10,Bullet.Size.X*10,Bullet.Size.X*10)
  2906. MagniDamage(Boo,(Bullet.Size.X*10)*2,MinDam+5,MaxDam+5,1,"Breaker")
  2907. so("http://roblox.com/asset/?id=206082273",Shooter,.5,1)
  2908. local BooM = Instance.new("SpecialMesh", Boo)
  2909. BooM.MeshType = "Sphere"
  2910. for i = .5, 2, .3 do
  2911. wait()
  2912. BooM.Scale = Vector3.new(i*2,i*2,i*2)
  2913. Boo.Transparency = i/2
  2914. end
  2915. game:GetService("Debris"):AddItem(Boo, 0)
  2916. end
  2917. local HitSomething = false
  2918. Bullet.Touched:connect(function(part)
  2919. local HUM = FindHum(part.Parent)
  2920. if HUM and HUM ~= Humanoid and not HitSomething then
  2921. local Tor = part.Parent:FindFirstChild("Torso")
  2922. if Tor then
  2923. HitSomething = true
  2924. Damagefunc(Tor,MinDam/2,MaxDam/2,10,"Breaker",RootPart,.2,.5,1)
  2925. BoomEffect(Bullet.CFrame)
  2926. end
  2927. end
  2928. if not HUM and not HitSomething then
  2929. if part.Anchored == true and part.Name ~= "Effect" and part.Name ~= "Handle" then
  2930. BoomEffect(Bullet.CFrame)
  2931. end
  2932. end
  2933. end)
  2934. end
  2935.  
  2936. local StopLaser = false
  2937. function FireLaser(Shooter, Duration, Range, Size, minDam, maxDam, BuildUp, FirstMes, LastMes, message)
  2938. local BeamStart = Instance.new("Part", F2)
  2939. BeamStart.BrickColor = BrickColor.new("Dark indigo")
  2940. BeamStart.Material = "Neon"
  2941. BeamStart.Transparency = 0
  2942. BeamStart.Name = "BeamStart"
  2943. BeamStart.Anchored = false
  2944. BeamStart.CanCollide = false
  2945. BeamStart.Locked = true
  2946. BeamStart.Size = Size
  2947. BeamStart.CFrame = Shooter.CFrame
  2948. local BSMesh = Instance.new("SpecialMesh", BeamStart)
  2949. BSMesh.MeshType = "Sphere"
  2950. local BSWeld = Instance.new("Weld", BeamStart)
  2951. BSWeld.Part0 = Shooter
  2952. BSWeld.Part1 = BeamStart
  2953. BSWeld.C0 = CFrame.new(0,0,-(Size.Z/2))
  2954. if message then
  2955. chatServ:Chat(Head, FirstMes, 2)
  2956. end
  2957. if BuildUp > .008 then
  2958. BSMesh.Scale = Vector3.new(0,0,0)
  2959. local BeamCharge = Instance.new("Sound", BeamStart)
  2960. BeamCharge.Volume = 1
  2961. BeamCharge.SoundId = "http://roblox.com/asset/?id=244578827"
  2962. BeamCharge.Pitch = 0.8
  2963. BeamCharge:Play()
  2964. for i = 0, BuildUp, .008 do
  2965. wait()
  2966. BSMesh.Scale = Vector3.new(i/BuildUp,i/BuildUp,i/BuildUp)
  2967. BSWeld.C0 = CFrame.new(0,0,-((i*(Size.Z/2))/BuildUp))
  2968. BeamStart.Transparency = ((-BuildUp+i)*-1)
  2969. MagicBlood(BrickColor.new("Dark indigo"),Shooter.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2970. end
  2971. BeamCharge:Pause()
  2972. game:GetService("Debris"):AddItem(BeamCharge, 0)
  2973. end
  2974. if message then
  2975. chatServ:Chat(Head, LastMes, 2)
  2976. end
  2977. local Beam = Instance.new("Part", F2)
  2978. Beam.BrickColor = BrickColor.new("Dark indigo")
  2979. Beam.Material = "Neon"
  2980. Beam.Name = "Beam"
  2981. Beam.Transparency = 0
  2982. Beam.Anchored = true
  2983. Beam.CanCollide = false
  2984. Beam.Locked = true
  2985. local BeamMesh = Instance.new("SpecialMesh", Beam)
  2986. BeamMesh.MeshType = "Cylinder"
  2987. local BeamEnd = Instance.new("Part", F2)
  2988. BeamEnd.BrickColor = BrickColor.new("Dark indigo")
  2989. BeamEnd.Material = "Neon"
  2990. BeamEnd.Transparency = 0
  2991. BeamEnd.Name = "BeamEnd"
  2992. BeamEnd.Anchored = true
  2993. BeamEnd.CanCollide = false
  2994. BeamEnd.Locked = true
  2995. BeamEnd.Size = Vector3.new(Size.X, Size.X, Size.X)
  2996. local BEMesh = Instance.new("SpecialMesh", BeamEnd)
  2997. BEMesh.MeshType = "Sphere"
  2998. local BeamFire = Instance.new("Sound", Beam)
  2999. BeamFire.Volume = 1
  3000. BeamFire.PlayOnRemove = true
  3001. BeamFire.SoundId = "http://roblox.com/asset/?id=376107717"
  3002. BeamFire.Pitch = 1
  3003. BeamFire:Destroy()
  3004. game:GetService("Debris"):AddItem(BeamFire, 5)
  3005. local BeamSound = Instance.new("Sound", Beam)
  3006. BeamSound.Volume = 1
  3007. BeamSound.Looped = true
  3008. BeamSound.SoundId = "http://roblox.com/asset/?id=254847708"
  3009. BeamSound.Pitch = 1
  3010. BeamSound:Play()
  3011. local TEM = 0
  3012. local run = runServ:connect(function()
  3013. local Hit, Pos = rayCast(BeamStart.Position, BeamStart.CFrame.lookVector, 999, Character)
  3014. Beam.Size = Vector3.new((BeamStart.CFrame.p - Pos).magnitude,Size.X,Size.X)
  3015. Beam.CFrame = CFrame.new((BeamStart.CFrame.p + Pos)/2,BeamStart.CFrame.p)*CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3016. BeamEnd.CFrame = CFrame.new(Pos)
  3017. if Hit then
  3018. if Beam.Transparency == 0 then
  3019. MagicBlock(BrickColor.new("Dark indigo"),BeamEnd.CFrame*cf(math.random(-200,200)/100,-math.random(0,1)/100,math.random(-200,200)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,Size.X*2,Size.X*2,Size.X*2,0.05)
  3020. end
  3021. end
  3022. end)
  3023. local run2 = runServ:connect(function()
  3024. MagniDamage(BeamEnd,Range,minDam,maxDam,1,"Breaker")
  3025. MagniDamage(Beam,Range,minDam*4,maxDam*4,1,"LifeSteal")
  3026. end)
  3027. repeat TEM = TEM+.1 wait() until TEM > Duration-1 or StopLaser
  3028. StopLaser = false
  3029. so("http://roblox.com/asset/?id=161006163",Shooter,1,.4)
  3030. BeamSound:Pause()
  3031. game:GetService("Debris"):AddItem(BeamSound, 0)
  3032. for i = 0, 1, .04 do
  3033. wait()
  3034. BeamStart.Transparency = i
  3035. Beam.Transparency = i
  3036. BeamEnd.Transparency = i
  3037. BSMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  3038. BeamMesh.Scale = Vector3.new(1,(-1+i)*-1,(-1+i)*-1)
  3039. BEMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  3040. end
  3041. run:disconnect()
  3042. run2:disconnect()
  3043. game:GetService("Debris"):AddItem(BeamStart, 0)
  3044. game:GetService("Debris"):AddItem(Beam, 0)
  3045. game:GetService("Debris"):AddItem(BeamEnd, 0)
  3046. end
  3047.  
  3048. local CanLaser = true
  3049. local Hover = false
  3050. local CMHP = false
  3051. local MadePlatform = false
  3052. local HovLaser = false
  3053.  
  3054. function CreateGround()
  3055. local G1 = Instance.new("Part", workspace)
  3056. local G2 = Instance.new("Part", workspace)
  3057. G1.BrickColor = BrickColor.new("Earth green")
  3058. G2.BrickColor = BrickColor.new("Pine Cone")
  3059. G1.Material, G2.Material = "Grass", "Grass"
  3060. G1.Name, G2.Name = "GrassBaseplate", "DirtBaseplate"
  3061. G1.Anchored, G2.Anchored = true, true
  3062. G1.Locked, G2.Locked = true, true
  3063. G1.Size, G2.Size = Vector3.new(2048, 10, 2048), Vector3.new(2048, 100, 2048)
  3064. G1.CFrame = RootPart.CFrame*CFrame.new(0,-3-(G1.Size.Y/2), 0)
  3065. G2.CFrame = G1.CFrame*CFrame.new(0,-5-(G2.Size.Y/2), 0)
  3066. return G1, G2
  3067. end
  3068.  
  3069.  
  3070. function CreateMiniPlatforms()
  3071. if not CMHP then
  3072. CMHP = true
  3073. local Plat = Instance.new("Part", workspace)
  3074. Plat.BrickColor = BrickColor.new("Dark indigo")
  3075. Plat.Transparency = .8
  3076. Plat.Name = "Platform"
  3077. Plat.Material = "Neon"
  3078. Plat.Anchored = true
  3079. Plat.CanCollide = true
  3080. Plat.Locked = true
  3081. Plat.Size = Vector3.new(10, 10, 1)
  3082. Plat.CFrame = (RootPart.CFrame * CFrame.new(0, -4, 0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3083. local PMesh = Instance.new("SpecialMesh", Plat)
  3084. PMesh.MeshType = "Sphere"
  3085. local function gh()
  3086. if HovLaser then
  3087. FireLaser(Plat, 0, 8, Vector3.new(3.6,3.6,6.8), 100, 300, 0, _, _, false)
  3088. end
  3089. end
  3090. delay(.1,gh)
  3091. CMHP = false
  3092. for i = .8, 1, .04 do
  3093. wait()
  3094. Plat.Transparency = i
  3095. Plat.Parent = F2
  3096. end
  3097. game:GetService("Debris"):AddItem(Plat, 0)
  3098. end
  3099. end
  3100.  
  3101. runServ:connect(function()
  3102. if Hover and Humanoid.Health > .1 then
  3103. CreateMiniPlatforms()
  3104. end
  3105. end)
  3106.  
  3107. Humanoid.Changed:connect(function()
  3108. if Humanoid.Health < .1 then
  3109. game:GetService("Debris"):AddItem(Grass, 0)
  3110. game:GetService("Debris"):AddItem(Dirt, 0)
  3111. end
  3112. end)
  3113.  
  3114. function key(key)
  3115. if key == "j" then
  3116. Hover = not Hover
  3117. end
  3118. if key == "l" and Hover and not HovLaser then
  3119. HovLaser = true
  3120. wait(.001)
  3121. HovLaser = false
  3122. end
  3123. if key == "k" then
  3124. if not MadePlatform then
  3125. MadePlatform = true
  3126. Grass, Dirt = CreateGround()
  3127. Hover = false
  3128. else
  3129. MadePlatform = false
  3130. game:GetService("Debris"):AddItem(Grass, 0)
  3131. game:GetService("Debris"):AddItem(Dirt, 0)
  3132. end
  3133. end
  3134. if key == "q" and not Firing and DCOn and CanUseCannon then
  3135. Firing = true
  3136. keyConnect = MMouse.KeyUp:connect(function(key)
  3137. if key == "q" and Firing then
  3138. Firing = false
  3139. end
  3140. end)
  3141. repeat
  3142. wait(.1)
  3143. if C == 1 then
  3144. C = 2
  3145. FireBullet(CHole1, 800, 1, 5, Vector3.new(.5,.5,.5))
  3146. elseif C == 2 then
  3147. C = 1
  3148. FireBullet(CHole2, 800, 1, 5, Vector3.new(.5,.5,.5))
  3149. end
  3150. until not Firing
  3151. keyConnect:disconnect()
  3152. end
  3153. if key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 25084774 or key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 25084774 then
  3154. Firing = true
  3155. keyConnect = MMouse.KeyUp:connect(function(key)
  3156. if key == "p" and Firing then
  3157. StopLaser = true
  3158. CanLaser = false
  3159. wait(0.05)
  3160. Firing = false
  3161. wait(0.05)
  3162. CanLaser = true
  3163. keyConnect:disconnect()
  3164. end
  3165. end)
  3166. if C == 1 then
  3167. C = 2
  3168. FireLaser(CHole1, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 0.05, "You made me do this..", "Planet buster!", true)
  3169. elseif C == 2 then
  3170. C = 1
  3171. FireLaser(CHole2, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 0.056, "You made me do this..", "Planet buster!", true)
  3172. end
  3173. end
  3174. if key == "e" then
  3175. if DCOn and CanUseCannon and not Firing then
  3176. if C == 1 then
  3177. C = 2
  3178. FireBullet(CHole1, 50, 60, 90, Vector3.new(.6,.6,.6))
  3179. elseif C == 2 then
  3180. C = 1
  3181. FireBullet(CHole2, 50, 60, 90, Vector3.new(.6,.6,.6))
  3182. end
  3183. end
  3184. end
  3185. if key == "r" then
  3186. if DCOn and CanUseCannon and not Firing then
  3187. if C == 1 then
  3188. C = 2
  3189. FireBullet(CHole1, 300, 5, 20, Vector3.new(.3,.3,.3))
  3190. elseif C == 2 then
  3191. C = 1
  3192. FireBullet(CHole2, 300, 5, 20, Vector3.new(.3,.3,.3))
  3193. end
  3194. end
  3195. end
  3196. if key == "t" then
  3197. if DCOn and CanUseCannon and not Firing then
  3198. Firing = true
  3199. FireBullet(CHole2, 10, 100, 200, Vector3.new(6,6,6))
  3200. wait(1.5)
  3201. Firing = false
  3202. end
  3203. end
  3204. if key == "y" then
  3205. if DCOn and CanUseCannon and not Firing and CanLaser then
  3206. Firing = true
  3207. FireLaser(CHole1, 25, 10, Vector3.new(4.6,4.6,8.8), 60, 100, 1, "Were you ready for this?..", "Nether Blast!", true)
  3208. wait(0.05)
  3209. Firing = false
  3210. end
  3211. end
  3212. if key == "u" then
  3213. if DCOn and CanUseCannon and not Firing and CanLaser then
  3214. Firing = true
  3215. CanLaser = false
  3216. FireLaser(CHole2, 10, 40, Vector3.new(20.8,20.8,46), 600000, 9000000, 1.5, "This time, it's over!", "Nether Obliterator!", true)
  3217. wait(0.05)
  3218. Firing = false
  3219. wait(0.05)
  3220. CanLaser = true
  3221. end
  3222. end
  3223. if key == "h" then
  3224. if DCOn and CanUseCannon and not Firing and CanLaser then
  3225. if C == 1 then
  3226. C = 2
  3227. FireLaser(CHole1, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  3228. elseif C == 2 then
  3229. C = 1
  3230. FireLaser(CHole2, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  3231. end
  3232. end
  3233. end
  3234. if key == "g" and DCOn and CanUseCannon and not Firing and CanLaser then
  3235. Firing = true
  3236. keyConnect = MMouse.KeyUp:connect(function(key)
  3237. if key == "g" and DCOn and CanUseCannon and Firing then
  3238. Firing = false
  3239. StopLaser = true
  3240. CanLaser = false
  3241. wait(3)
  3242. CanLaser = true
  3243. keyConnect:disconnect()
  3244. end
  3245. end)
  3246. if C == 1 then
  3247. C = 2
  3248. FireLaser(CHole1, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?" , true)
  3249. elseif C == 2 then
  3250. C = 1
  3251. FireLaser(CHole2, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?", true)
  3252. end
  3253. end
  3254. if key == "m" then
  3255. MomentumCancel = not MomentumCancel
  3256. if MomentumCancel then
  3257. chatServ:Chat(Head, "Negator: Active", 2)
  3258. else
  3259. chatServ:Chat(Head, "Negator: Inactive", 2)
  3260. end
  3261. end
  3262. if key == "n" then
  3263. if not nostop then
  3264. nostop = true
  3265. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  3266. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
  3267. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  3268. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
  3269. chatServ:Chat(Head, "Stablize Armour! Can't knock me down so easily now, huh?", 2)
  3270. else
  3271. nostop = false
  3272. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  3273. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, true)
  3274. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
  3275. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
  3276. chatServ:Chat(Head, "Armour Break! Maybe I'll go easy..", 2)
  3277. end
  3278. end
  3279. if key=="c" then
  3280. if guard==true then
  3281. guard=false
  3282. else
  3283. guard=true
  3284. end
  3285. end
  3286. if key=="x" then
  3287. holdx=true
  3288. end
  3289. if attack==true then return end
  3290. if key=="f" then
  3291. if equipped==false then
  3292. equipped=true
  3293. RSH=ch.Torso["Right Shoulder"]
  3294. LSH=ch.Torso["Left Shoulder"]
  3295. --
  3296. RSH.Parent=nil
  3297. LSH.Parent=nil
  3298. --
  3299. RW.Name="Right Shoulder"
  3300. RW.Part0=ch.Torso
  3301. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3302. RW.C1=cf(0, 0.5, 0)
  3303. RW.Part1=ch["Right Arm"]
  3304. RW.Parent=ch.Torso
  3305. --
  3306. LW.Name="Left Shoulder"
  3307. LW.Part0=ch.Torso
  3308. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3309. LW.C1=cf(0, 0.5, 0)
  3310. LW.Part1=ch["Left Arm"]
  3311. LW.Parent=ch.Torso
  3312. --
  3313. equipanim()
  3314. else
  3315. equipped=false
  3316. damagebonus = 1
  3317. hideanim()
  3318. swait(0)
  3319. RW.Parent=nil
  3320. LW.Parent=nil
  3321. RSH.Parent=player.Character.Torso
  3322. LSH.Parent=player.Character.Torso
  3323. end
  3324. end
  3325. if equipped==false then return end
  3326. if Mode=="Binary" then
  3327. if key=="q" then
  3328. idle=500
  3329. end
  3330. if key=="z" and hitfloor~=nil then
  3331. BinarySwing()
  3332. end
  3333. if key=="x" then
  3334. BinaryImpulse()
  3335. end
  3336. if key=="c" then
  3337. Bash()
  3338. end
  3339. if key=="v" then
  3340. damagebonus = 50
  3341. UnleashTheDemon()
  3342. end
  3343. end
  3344. if Mode=="Demon" then
  3345. if key == "z" and not Firing then
  3346. if not DCOn then
  3347. DemonCannon()
  3348. DCOn = true
  3349. else
  3350. HideDemonCannon()
  3351. DCOn = false
  3352. end
  3353. end
  3354. if key=="x" then
  3355. LetItBuild()
  3356. end
  3357. if key=="c" then
  3358. YourMoveCreep()
  3359. end
  3360. if key == "b" then
  3361. TCtrl = not TCtrl
  3362. if TCtrl then
  3363. TimeControl()
  3364. end
  3365. end
  3366. end
  3367. if key=="0" then
  3368. Humanoid.WalkSpeed=(16*16)
  3369. end
  3370. end
  3371.  
  3372. function key2(key)
  3373. if key=="0" then
  3374. Humanoid.WalkSpeed=16
  3375. end
  3376. if key=="x" then
  3377. holdx=false
  3378. end
  3379. end
  3380.  
  3381. function s(mouse)
  3382. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3383. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3384. mouse.KeyDown:connect(key)
  3385. mouse.KeyUp:connect(key2)
  3386.  
  3387. player=Player
  3388. ch=Character
  3389. --MMouse=mouse
  3390. end
  3391.  
  3392. function ds(mouse)
  3393. end
  3394.  
  3395. Bin.Selected:connect(s)
  3396. Bin.Deselected:connect(ds)
  3397. print("Fixer the Demon Mercenary loaded.")
  3398.  
  3399. runServ:connect(function()
  3400. if DCOn and CanUseCannon then
  3401. local CCF = CFrame.new(CM2.Position, Vector3.new(MMouse.Hit.p.X, MMouse.Hit.p.Y, MMouse.Hit.p.Z))
  3402. CPos.Position = CM2.Position
  3403. CGyro.CFrame = CCF
  3404. CPos.P = 50000
  3405. end
  3406. end)
  3407.  
  3408. local thenum=0
  3409. while true do
  3410. swait()
  3411. if Mode=="Demon" then
  3412. if thenum>=5 then
  3413. --ElecEffect(prtd7.CFrame,2,4,2)
  3414. thenum=0
  3415. end
  3416. thenum=thenum+1
  3417. for _,c in pairs(Character:children()) do
  3418. for _,v in pairs(c:children()) do
  3419. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  3420. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  3421. v.Parent=nil
  3422. end
  3423. end
  3424. end
  3425. end
  3426. end
  3427. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3428. local velderp=RootPart.Velocity.y
  3429. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3430. if equipped==true then
  3431. if Anim=="Idle" and attack==false and Mode=="Binary" then
  3432. idle=idle+1
  3433. else
  3434. idle=0
  3435. end
  3436. if idleanim>=0.3 then
  3437. idleanim2=true
  3438. elseif idleanim<=0 then
  3439. idleanim2=false
  3440. end
  3441. if idleanim2==false then
  3442. if Anim=="Walk" then
  3443. idleanim=idleanim+0.005
  3444. elseif Anim=="Idle" then
  3445. idleanim=idleanim+0.003
  3446. end
  3447. else
  3448. if Anim=="Walk" then
  3449. idleanim=idleanim-0.005
  3450. elseif Anim=="Idle" then
  3451. idleanim=idleanim-0.003
  3452. end
  3453. end
  3454. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3455. Anim="Jump"
  3456. if attack==false and Mode=="Binary" then
  3457. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  3459. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3461. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3462. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  3463. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  3464. end
  3465. if attack==false and Mode=="Demon" then
  3466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  3469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  3470. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  3471. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  3472. end
  3473. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3474. Anim="Fall"
  3475. if attack==false and Mode=="Binary" then
  3476. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3477. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  3478. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3479. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  3480. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3481. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3482. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3483. end
  3484. if attack==false and Mode=="Demon" then
  3485. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  3486. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  3487. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  3488. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  3489. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  3490. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  3491. end
  3492. elseif torvel<1 and hitfloor~=nil then
  3493. if Anim=="Fall" then
  3494. if velderp<=-120 then
  3495. coroutine.resume(coroutine.create(function()
  3496. Stomp()
  3497. end))
  3498. end
  3499. end
  3500. Anim="Idle"
  3501. if idle<=500 then
  3502. if attack==false and Mode=="Binary" then
  3503. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  3504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  3505. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  3506. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  3507. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  3508. RH.C0=clerp(RH.C0,RHC0,.2)
  3509. LH.C0=clerp(LH.C0,LHC0,.2)
  3510. end
  3511. if attack==false and Mode=="Demon" then
  3512. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  3513. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  3514. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  3515. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  3516. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  3517. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  3518. end
  3519. else
  3520. if attack==false and Mode=="Binary" then
  3521. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  3522. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  3523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  3524. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  3525. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  3526. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  3527. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  3528. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  3529. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  3530. end
  3531. end
  3532. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3533. if Anim=="Fall" then
  3534. if velderp<=-120 then
  3535. coroutine.resume(coroutine.create(function()
  3536. Stomp()
  3537. end))
  3538. end
  3539. end
  3540. Anim="Walk"
  3541. if attack==false and Mode=="Binary" then
  3542. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  3543. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3544. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3545. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3546. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  3547. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  3548. RH.C0=clerp(RH.C0,RHC0,.3)
  3549. LH.C0=clerp(LH.C0,LHC0,.3)
  3550. end
  3551. if attack==false and Mode=="Demon" then
  3552. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3553. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3554. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  3555. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  3556. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  3557. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  3558. end
  3559. elseif torvel>=22 and hitfloor~=nil then
  3560. if Anim=="Fall" then
  3561. if velderp<=-120 then
  3562. coroutine.resume(coroutine.create(function()
  3563. Stomp()
  3564. end))
  3565. end
  3566. end
  3567. Anim="Run"
  3568. if attack==false and Mode=="Binary" then
  3569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  3570. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  3571. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  3572. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  3573. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  3574. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  3575. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  3576. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  3577. end
  3578. if attack==false and Mode=="Demon" then
  3579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  3580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  3581. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  3582. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  3583. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  3584. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  3585. end
  3586. end
  3587. end
  3588. if #Effects>0 then
  3589. --table.insert(Effects,{prt,"Block1",delay})
  3590. for e=1,#Effects do
  3591. if Effects[e]~=nil then
  3592. --for j=1,#Effects[e] do
  3593. local Thing=Effects[e]
  3594. if Thing~=nil then
  3595. local Part=Thing[1]
  3596. local Mode=Thing[2]
  3597. local Delay=Thing[3]
  3598. local IncX=Thing[4]
  3599. local IncY=Thing[5]
  3600. local IncZ=Thing[6]
  3601. if Thing[1].Transparency<=1 then
  3602. if Thing[2]=="Block1" then
  3603. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3604. Mesh=Thing[1]:FindFirstChild("Mesh")
  3605. if not Mesh then
  3606. Mesh = Instance.new("BlockMesh")
  3607. end
  3608. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3609. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3610. elseif Thing[2]=="Cylinder" then
  3611. Mesh=Thing[1]:FindFirstChild("Mesh")
  3612. if not Mesh then
  3613. Mesh = Instance.new("BlockMesh")
  3614. end
  3615. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3616. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3617. elseif Thing[2]=="Blood" then
  3618. Mesh=Thing[1]:FindFirstChild("Mesh")
  3619. if not Mesh then
  3620. Mesh = Instance.new("BlockMesh")
  3621. end
  3622. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3623. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3624. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3625. elseif Thing[2]=="Elec" then
  3626. Mesh=Thing[1]:FindFirstChild("Mesh")
  3627. if not Mesh then
  3628. Mesh = Instance.new("BlockMesh")
  3629. end
  3630. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3631. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3632. elseif Thing[2]=="Disappear" then
  3633. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3634. end
  3635. else
  3636. Part.Parent=nil
  3637. game:GetService("Debris"):AddItem(Part, 0)
  3638. table.remove(Effects,e)
  3639. end
  3640. end
  3641. --end
  3642. end
  3643. end--[[CHROMIUM_WEAPONRY]]--
  3644. --[[Chat Gui Edit.]]--
  3645.  
  3646. wait(.5)
  3647.  
  3648. local runServ = game:GetService("RunService").RenderStepped
  3649.  
  3650. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  3651. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  3652. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  3653. HBill.Size = UDim2.new(15,0,2.2,0)
  3654. HBill.Name = "Health Display"
  3655. HBill.StudsOffset = Vector3.new(0,4,0)
  3656. HBill.AlwaysOnTop = true
  3657. HBill.Enabled = true
  3658. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  3659. HMain.BackgroundTransparency = 1
  3660. HMain.Size = UDim2.new(1,0,1,0)
  3661. HBarBack.Parent = HMain
  3662. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  3663. HBarBack.BorderColor3 = Color3.new(0,0,0)
  3664. HBarBack.BorderSizePixel = 2
  3665. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  3666. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  3667. HBar.Parent = HBarBack
  3668. HBar.BackgroundColor3 = Color3.new(0, 1, 0)
  3669. HBar.BorderColor3 = Color3.new(0,0,0)
  3670. HBar.Size = UDim2.new(.5,0,1,0)
  3671. HHealth.BackgroundTransparency = 1
  3672. HHealth.Size = UDim2.new(1,0,1,0)
  3673. HHealth.Font = "SourceSans"
  3674. HHealth.Text = " "
  3675. HHealth.TextScaled = true
  3676. HHealth.TextColor3 = Color3.new(1,1,1)
  3677. HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255)
  3678. HHealth.TextStrokeTransparency = 0
  3679. HName.Parent = HMain
  3680. HName.BackgroundTransparency = 1
  3681. HName.Size = UDim2.new(1,0,.5,0)
  3682. HName.Font = "SourceSansItalic"
  3683. HName.Text = "Cerberus Fang, The Demon Mercenary"
  3684. HName.TextScaled = true
  3685. HName.TextColor3 = Color3.new(85/255, 0,127/255)
  3686. HName.TextStrokeColor3 = Color3.new(0,0,0)
  3687. HName.TextStrokeTransparency = 0
  3688. HName.TextYAlignment = "Top"
  3689.  
  3690. runServ:connect(function()
  3691. HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]"
  3692. HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  3693. end)
  3694. local Player=game.Players.LocalPlayer
  3695. repeat wait() until Player
  3696. local Character=Player.Character
  3697. repeat wait() until Character
  3698. PlayerGui=Player.PlayerGui
  3699. Backpack=Player.Backpack
  3700. Torso=Character.Torso
  3701. Head=Character.Head
  3702. Humanoid=Character.Humanoid
  3703. Humanoid.JumpPower = 90
  3704. LeftArm=Character:WaitForChild("Left Arm")
  3705. LeftLeg=Character:WaitForChild("Left Leg")
  3706. RightArm=Character:WaitForChild("Right Arm")
  3707. RightLeg=Character:WaitForChild("Left Arm")
  3708. LS=Torso:WaitForChild("Left Shoulder")
  3709. LH=Torso:WaitForChild("Left Hip")
  3710. RS=Torso:WaitForChild("Right Shoulder")
  3711. RH=Torso:WaitForChild("Right Hip")
  3712. Neck=Torso.Neck
  3713. it=Instance.new
  3714. vt=Vector3.new
  3715. cf=CFrame.new
  3716. local runServ = game:GetService("RunService").RenderStepped
  3717. local TextTable = {}
  3718. euler=CFrame.fromEulerAnglesXYZ
  3719. angles=CFrame.Angles
  3720. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3721. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3722. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  3723. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  3724. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  3725. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  3726. RootPart=Character.HumanoidRootPart
  3727. RootJoint=RootPart.RootJoint
  3728. RootCF=euler(-1.57,0,3.14)
  3729. attack=false
  3730. attackdebounce=false
  3731. MMouse=Player:GetMouse()
  3732. combo=0
  3733. local Anim="Idle"
  3734. local Effects={}
  3735. equipped=false
  3736. local idle=0
  3737. local hold=false
  3738. local con1=nil
  3739. local con2=nil
  3740. local Mode="Binary"
  3741. local idleanim=0
  3742. local idleanim2=false
  3743. local impulse=1
  3744. local hitfloor,posfloor=nil,nil
  3745. local damcount=0
  3746. local guard=false
  3747. local damagebonus = 1
  3748. --player
  3749. player=nil
  3750. --save shoulders
  3751. RSH, LSH=nil, nil
  3752. --welds
  3753. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  3754. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  3755. LH=Torso["Left Hip"]
  3756. RH=Torso["Right Hip"]
  3757. Asset="http://www.roblox.com/asset/?id="
  3758. Health=20000
  3759. Humanoid.MaxHealth=math.huge
  3760. Humanoid.Health=math.huge
  3761. coroutine.resume(coroutine.create(function()
  3762. for i=1,20 do
  3763. Humanoid.MaxHealth=math.huge
  3764. Humanoid.Health=math.huge
  3765. end
  3766. Humanoid.MaxHealth=20000
  3767. Humanoid.Health = Humanoid.MaxHealth
  3768. end))
  3769.  
  3770. function swait(num)
  3771. if num==0 or num==nil then
  3772. game:service'RunService'.RenderStepped:wait()
  3773. else
  3774. for i=0,num do
  3775. game:service'RunService'.RenderStepped:wait()
  3776. end
  3777. end
  3778. end
  3779.  
  3780. if Character:findFirstChild("Binary Sword",true) ~= nil then
  3781. Character:findFirstChild("Binary Sword",true).Parent = nil
  3782. end
  3783. if Character:findFirstChild("Demon Blade",true) ~= nil then
  3784. Character:findFirstChild("Demon Blade",true).Parent = nil
  3785. end
  3786. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  3787. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  3788. end
  3789.  
  3790.  
  3791. function NoOutline(Part)
  3792. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  3793. end
  3794.  
  3795. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  3796. local fp=it("Part")
  3797. fp.formFactor=formfactor
  3798. fp.Parent=parent
  3799. fp.Reflectance=reflectance
  3800. fp.Transparency=transparency
  3801. fp.CanCollide=false
  3802. fp.Locked=true
  3803. fp.BrickColor=brickcolor
  3804. fp.Name=name
  3805. fp.Size=size
  3806. fp.Position=Torso.Position
  3807. NoOutline(fp)
  3808. if fp.BrickColor == BrickColor.new("Dark indigo") then
  3809. fp.Material="Neon"
  3810. elseif fp.BrickColor == BrickColor.new("Fossil") then
  3811. fp.BrickColor = BrickColor.new("Dark indigo")
  3812. fp.Material="Granite"
  3813. else
  3814. fp.Material="SmoothPlastic"
  3815. end
  3816. fp:BreakJoints()
  3817. return fp
  3818. end
  3819.  
  3820. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  3821. local mesh=it(Mesh)
  3822. mesh.Parent=part
  3823. if Mesh=="SpecialMesh" then
  3824. mesh.MeshType=meshtype
  3825. mesh.MeshId=meshid
  3826. end
  3827. mesh.Offset=offset
  3828. mesh.Scale=scale
  3829. return mesh
  3830. end
  3831.  
  3832. function weld(parent,part0,part1,c0)
  3833. local weld=it("Weld")
  3834. weld.Parent=parent
  3835. weld.Part0=part0
  3836. weld.Part1=part1
  3837. weld.C0=c0
  3838. return weld
  3839. end
  3840.  
  3841. local fengui=it("GuiMain")
  3842. fengui.Parent=Player.PlayerGui
  3843. fengui.Name="WeaponGUI"
  3844.  
  3845. local Color1=BrickColor.new("Really black")
  3846. local Color2=BrickColor.new("Dark stone grey")
  3847. local Colorr3=BrickColor.new("Dark indigo")
  3848. local Color4=BrickColor.new("Fossil")
  3849.  
  3850. local model1=Instance.new("Model")
  3851. model1.Parent=Character
  3852. model1.Name="Binary Sword"
  3853. BSword={}
  3854. BSwordWelds={}
  3855. local model2=Instance.new("Model")
  3856. model2.Parent=nil
  3857. model2.Name="Demon Blade"
  3858. DBlade={}
  3859. DBladeWelds={}
  3860.  
  3861. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  3862. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  3863. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  3864. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  3865. prt5=part(3,model1,0,0,Color1,"Part5",vt())
  3866. prt6=part(3,model1,0,0,Color4,"Part6",vt())
  3867. prt7=part(3,model1,0,0,Color4,"Part7",vt())
  3868. prt8=part(3,model1,0,0,Color4,"Part8",vt())
  3869. prt9=part(3,model1,0,0,Color4,"Part9",vt())
  3870. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  3871. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  3872. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  3873.  
  3874. prtd1=part(3,model2,0,0.4,BrickColor.new("Dark indigo"),"DPart1",vt())
  3875. prtd2=part(3,model2,0,0,BrickColor.new("Really black"),"DPart2",vt())
  3876. prtd3=part(3,model2,0,0,BrickColor.new("Really black"),"DPart3",vt())
  3877. prtd4=part(3,model2,0,0,BrickColor.new("Really black"),"DPart4",vt())
  3878. prtd5=part(3,model2,0,0,BrickColor.new("Really black"),"DPart5",vt())
  3879. prtd6=part(3,model2,0,0,BrickColor.new("Really black"),"DPart6",vt())
  3880. prtd7=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart7",vt())
  3881. prtd8=part(3,model2,0.8,0,BrickColor.new("Dark indigo"),"DPart8",vt())
  3882. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart9",vt())
  3883. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Fossil"),"DPart10",vt())
  3884. prtd11=part(3,model2,0.5,0,BrickColor.new("Dark indigo"),"DPart11",vt())
  3885. prtd12=part(3,model2,0,0,BrickColor.new("Really black"),"DPart12",vt())
  3886. for _,c in pairs(model2:children()) do
  3887. if c.className=="Part" then
  3888. table.insert(DBlade,c)
  3889. end
  3890. end
  3891.  
  3892. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  3893. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  3894. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  3895. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  3896. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  3897. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  3898. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  3899. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  3900. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  3901. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  3902. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  3903. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  3904.  
  3905. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  3906. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  3907. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  3908. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  3909. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  3910. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  3911. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  3912. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  3913. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  3914. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  3915. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  3916. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  3917.  
  3918. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  3919. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  3920. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  3921. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  3922. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  3923. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  3924. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  3925. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  3926. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  3927. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  3928. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  3929. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  3930.  
  3931. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  3932. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  3933. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  3934. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  3935. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  3936. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  3937. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  3938. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  3939. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  3940. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  3941. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  3942. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  3943. for _,c in pairs(prtd1:children()) do
  3944. if c.className=="Weld" then
  3945. table.insert(DBladeWelds,c)
  3946. print(c)
  3947. end
  3948. end
  3949.  
  3950. for i=-.9,.9,0.2 do
  3951. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  3952. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  3953. 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))
  3954. end
  3955.  
  3956. function Make1(Ceef)
  3957. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  3958. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  3959. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  3960. prtn1=part(3,model1,0,0,Colorr3,"1a",vt())
  3961. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  3962. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,0,0))
  3963. prtn2=part(3,model1,0,0,Colorr3,"1b",vt())
  3964. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  3965. wldn2=weld(prtn2,prtn2,prtn1,euler(0.5,0,0)*cf(0,0.03,-0.1))
  3966. prtn3=part(3,model1,0,0,Colorr3,"1c",vt())
  3967. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  3968. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0,0.15))
  3969. end
  3970. function Make0(Ceef)
  3971. prtnr=part(3,model1,0,1,Color1,"1a",vt())
  3972. mshnr=mesh("BlockMesh",prtnr,"","",vt(0,0,0),vt(.7,.7,.7))
  3973. wldnr=weld(prtnr,prtnr,prt10,euler(0,0,0)*cf(0,Ceef,0))
  3974. prtn1=part(3,model1,0,0,Colorr3,"0a",vt())
  3975. mshn1=mesh("BlockMesh",prtn1,"","",vt(0,0,0),vt(.7,.2,1.5))
  3976. wldn1=weld(prtn1,prtn1,prtnr,euler(0,0,0)*cf(0,-0.05,0))
  3977. prtn2=part(3,model1,0,0,Colorr3,"0b",vt())
  3978. mshn2=mesh("BlockMesh",prtn2,"","",vt(0,0,0),vt(.7,.2,.5))
  3979. wldn2=weld(prtn2,prtn2,prtn1,euler(1.57,0,0)*cf(0,0.05,0.15))
  3980. prtn3=part(3,model1,0,0,Colorr3,"0c",vt())
  3981. mshn3=mesh("BlockMesh",prtn3,"","",vt(0,0,0),vt(.7,.2,.5))
  3982. wldn3=weld(prtn3,prtn3,prtn1,euler(1.57,0,0)*cf(0,0.05,-0.15))
  3983. prtn4=part(3,model1,0,0,Colorr3,"0d",vt())
  3984. mshn4=mesh("BlockMesh",prtn4,"","",vt(0,0,0),vt(.7,.2,1.5))
  3985. wldn4=weld(prtn4,prtn4,prtn1,euler(0,0,0)*cf(0,0.1,0))
  3986. end
  3987. Make1(1.6)
  3988. Make0(1.4)
  3989. Make0(1.2)
  3990. Make1(1)
  3991. Make1(.8)
  3992. Make1(.6)
  3993. Make1(.4)
  3994. Make0(.2)
  3995. Make0(0)
  3996.  
  3997. local hitbox1=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  3998. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  3999.  
  4000. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
  4001. local Tool=Instance.new("HopperBin")
  4002. Tool.Parent=Backpack
  4003. Tool.Name="Cerberus' Fang"
  4004. local Bin = Tool
  4005. script.Parent = Tool
  4006.  
  4007. local bodvel=Instance.new("BodyVelocity")
  4008. bodvel.Name="FixerVel"
  4009. local bg=Instance.new("BodyGyro")
  4010. bg.Name="FixerGyro"
  4011.  
  4012. so = function(id,par,vol,pit)
  4013. coroutine.resume(coroutine.create(function()
  4014. local sou = Instance.new("Sound",par or workspace)
  4015. sou.Parent=par
  4016. sou.Volume=vol
  4017. sou.Pitch=pit or 1
  4018. sou.SoundId=id
  4019. swait()
  4020. sou:Play()
  4021. game:GetService("Debris"):AddItem(sou,6)
  4022. end))
  4023. end
  4024.  
  4025. function clerp(a,b,t)
  4026. local qa = {QuaternionFromCFrame(a)}
  4027. local qb = {QuaternionFromCFrame(b)}
  4028. local ax, ay, az = a.x, a.y, a.z
  4029. local bx, by, bz = b.x, b.y, b.z
  4030. local _t = 1-t
  4031. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4032. end
  4033.  
  4034. function QuaternionFromCFrame(cf)
  4035. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4036. local trace = m00 + m11 + m22
  4037. if trace > 0 then
  4038. local s = math.sqrt(1 + trace)
  4039. local recip = 0.5/s
  4040. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4041. else
  4042. local i = 0
  4043. if m11 > m00 then
  4044. i = 1
  4045. end
  4046. if m22 > (i == 0 and m00 or m11) then
  4047. i = 2
  4048. end
  4049. if i == 0 then
  4050. local s = math.sqrt(m00-m11-m22+1)
  4051. local recip = 0.5/s
  4052. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4053. elseif i == 1 then
  4054. local s = math.sqrt(m11-m22-m00+1)
  4055. local recip = 0.5/s
  4056. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4057. elseif i == 2 then
  4058. local s = math.sqrt(m22-m00-m11+1)
  4059. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4060. end
  4061. end
  4062. end
  4063.  
  4064. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4065. local xs, ys, zs = x + x, y + y, z + z
  4066. local wx, wy, wz = w*xs, w*ys, w*zs
  4067. local xx = x*xs
  4068. local xy = x*ys
  4069. local xz = x*zs
  4070. local yy = y*ys
  4071. local yz = y*zs
  4072. local zz = z*zs
  4073. 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))
  4074. end
  4075.  
  4076. function QuaternionSlerp(a, b, t)
  4077. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4078. local startInterp, finishInterp;
  4079. if cosTheta >= 0.0001 then
  4080. if (1 - cosTheta) > 0.0001 then
  4081. local theta = math.acos(cosTheta)
  4082. local invSinTheta = 1/math.sin(theta)
  4083. startInterp = math.sin((1-t)*theta)*invSinTheta
  4084. finishInterp = math.sin(t*theta)*invSinTheta
  4085. else
  4086. startInterp = 1-t
  4087. finishInterp = t
  4088. end
  4089. else
  4090. if (1+cosTheta) > 0.0001 then
  4091. local theta = math.acos(-cosTheta)
  4092. local invSinTheta = 1/math.sin(theta)
  4093. startInterp = math.sin((t-1)*theta)*invSinTheta
  4094. finishInterp = math.sin(t*theta)*invSinTheta
  4095. else
  4096. startInterp = t-1
  4097. finishInterp = t
  4098. end
  4099. end
  4100. 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
  4101. end
  4102.  
  4103. function hideanim()
  4104. equipped=false
  4105. attack=true
  4106. if Mode=="Binary" then
  4107. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  4108. for i=0,1,0.1 do
  4109. swait()
  4110. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  4111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4112. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  4114. end
  4115. wld1.Part1=Torso
  4116. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  4117. for i=0,1,0.2 do
  4118. swait()
  4119. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  4120. end
  4121. for i=0,1,0.1 do
  4122. swait()
  4123. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4124. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4126. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4127. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4128. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4129. end
  4130. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4131. else
  4132. for i=0,1,0.1 do
  4133. swait()
  4134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  4135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  4136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  4137. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  4138. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  4139. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  4140. end
  4141. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  4142. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  4143. for i=0,1,0.015 do
  4144. swait()
  4145. for i=1,3 do
  4146. if math.random(1,4)==1 then
  4147. 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)
  4148. else
  4149. MagicBlock(BrickColor.new("Dark indigo"),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)
  4150. end
  4151. end
  4152. end
  4153. model2.Parent=nil
  4154. for i=0,1,0.1 do
  4155. swait()
  4156. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4159. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4160. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4161. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4162. end
  4163. end
  4164. Torso.Neck.C0=necko
  4165. Torso.Neck.C1=necko2
  4166. RootJoint.C0=RootCF
  4167. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  4168. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4169. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  4170. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4171. RH.C0=RHC0
  4172. RH.C1=RHC1
  4173. LH.C0=LHC0
  4174. LH.C1=LHC1
  4175. Mode="Binary"
  4176. attack=false
  4177. end
  4178.  
  4179. function equipanim()
  4180. equipped=true
  4181. attack=true
  4182. for i=0,1,0.2 do
  4183. swait()
  4184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4185. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  4186. end
  4187. for i=0,1,0.1 do
  4188. swait()
  4189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  4190. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4191. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4192. end
  4193. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  4194. wld1.Part1=RightArm
  4195. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  4196. for i=0,1,0.1 do
  4197. swait()
  4198. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4199. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  4200. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  4201. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4202. end
  4203. for i=0,1,0.1 do
  4204. swait()
  4205. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  4207. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  4208. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  4209. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  4210. end
  4211. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4212. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  4213. Torso.Neck.C0=necko*euler(0,0,0.5)
  4214. RootJoint.C0=RootCF*euler(0,0,-0.5)
  4215. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  4216. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4217. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  4218. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4219. attack=false
  4220. end
  4221.  
  4222. function Stomp()
  4223. Humanoid.WalkSpeed=0
  4224. Torso.Velocity=RootPart.CFrame.lookVector*0
  4225. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  4226. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  4227. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  4228. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  4229. Dam=math.random(5,10)
  4230. showDamage(Torso,Dam,.5,BrickColor:Red())
  4231. MagniDamage(Torso,20,50,99,math.random(10,15),"Knockdown")
  4232. --[[for i=0,1,0.2 do
  4233. swait()
  4234. if Mode=="Binary" then
  4235. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  4236. end
  4237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  4238. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  4239. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  4240. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  4241. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  4242. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  4243. end
  4244. for i=0,1,0.1 do
  4245. swait()
  4246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  4247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  4248. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  4249. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  4250. end]]
  4251. swait(10)
  4252. Humanoid.WalkSpeed=16
  4253. end
  4254.  
  4255. function attackone()
  4256. attack=true
  4257. for i=0,1,0.1 do
  4258. swait()
  4259. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4260. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4261. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4262. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  4263. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  4264. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4265. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4266. end
  4267. hitbox1.Parent=model1
  4268. hitbox1.Size=vt(1,5,1)
  4269. hitbox1.Transparency=1
  4270. hitbox1.CFrame=prt10.CFrame
  4271. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(1,5),"Normal",RootPart,.5,1) end)
  4272. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,50,math.random(1,5),"Normal",RootPart,.5,1) end)
  4273. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4274. blcf=nil
  4275. scfr=nil
  4276. for i=0,1,0.25 do
  4277. swait()
  4278. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4279. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4280. local h = 5
  4281. 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)
  4282. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4283. 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)
  4284. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4285. scfr = blcf
  4286. elseif not scfr then
  4287. scfr = blcf
  4288. end
  4289. hitbox1.CFrame=prt10.CFrame
  4290. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  4291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  4292. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  4293. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  4294. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  4295. end
  4296. for i=0,1,0.1 do
  4297. swait()
  4298. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4299. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4300. local h = 5
  4301. 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)
  4302. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4303. 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)
  4304. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4305. scfr = blcf
  4306. elseif not scfr then
  4307. scfr = blcf
  4308. end
  4309. hitbox1.CFrame=prt10.CFrame
  4310. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  4311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  4312. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  4313. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  4314. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  4315. end
  4316. con1:disconnect()
  4317. hitbox1.Parent=nil
  4318. attack=false
  4319. end
  4320.  
  4321. function attacktwo()
  4322. attack=true
  4323. for i=0,1,0.1 do
  4324. swait()
  4325. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  4327. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  4328. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  4329. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  4330. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4331. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4332. end
  4333. hitbox1.Parent=model1
  4334. hitbox1.Size=vt(1,5,1)
  4335. hitbox1.Transparency=1
  4336. hitbox1.CFrame=prt10.CFrame
  4337. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  4338. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  4339. blcf=nil
  4340. scfr=nil
  4341. for i=0,1,0.1 do
  4342. swait()
  4343. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4344. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4345. local h = 5
  4346. 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)
  4347. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4348. 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)
  4349. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4350. scfr = blcf
  4351. elseif not scfr then
  4352. scfr = blcf
  4353. end
  4354. hitbox1.CFrame=prt10.CFrame
  4355. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  4356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4357. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4358. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  4359. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  4360. end
  4361. con1:disconnect()
  4362. hitbox1.Parent=nil
  4363. attack=false
  4364. end
  4365.  
  4366. function attackthree()
  4367. attack=true
  4368. for i=0,1,0.1 do
  4369. swait()
  4370. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  4371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  4372. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  4373. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  4374. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  4375. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4376. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4377. end
  4378. hitbox1.Parent=model1
  4379. hitbox1.Size=vt(1,5,1)
  4380. hitbox1.Transparency=1
  4381. hitbox1.CFrame=prt10.CFrame
  4382. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(1,5),"Normal",RootPart,.5,1) end)
  4383. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  4384. blcf=nil
  4385. scfr=nil
  4386. for i=0,1,0.25 do
  4387. swait()
  4388. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4389. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4390. local h = 5
  4391. 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)
  4392. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4393. 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)
  4394. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4395. scfr = blcf
  4396. elseif not scfr then
  4397. scfr = blcf
  4398. end
  4399. hitbox1.CFrame=prt10.CFrame
  4400. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  4401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  4402. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  4403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  4404. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  4405. end
  4406. for i=0,1,0.2 do
  4407. swait()
  4408. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4409. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4410. local h = 5
  4411. 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)
  4412. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4413. 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)
  4414. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4415. scfr = blcf
  4416. elseif not scfr then
  4417. scfr = blcf
  4418. end
  4419. hitbox1.CFrame=prt10.CFrame
  4420. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  4421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  4422. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  4423. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  4424. end
  4425. con1:disconnect()
  4426. hitbox1.Parent=nil
  4427. attack=false
  4428. end
  4429.  
  4430. function SpinSlash()
  4431. attack=true
  4432. for i=0,1,0.1 do
  4433. swait()
  4434. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  4435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  4436. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  4437. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  4438. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  4439. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  4440. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  4441. end
  4442. hitbox1.Parent=model1
  4443. hitbox1.Size=vt(1,5,1)
  4444. hitbox1.Transparency=1
  4445. hitbox1.CFrame=prt10.CFrame
  4446. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Normal",RootPart,.001,1) end)
  4447. blcf=nil
  4448. scfr=nil
  4449. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  4450. repeat
  4451. hitbox1.Parent=model1
  4452. hitbox1.Size=vt(1,5,1)
  4453. hitbox1.Transparency=1
  4454. hitbox1.CFrame=prt10.CFrame
  4455. for i=0,1,0.15 do
  4456. swait()
  4457. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4458. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4459. local h = 5
  4460. 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)
  4461. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4462. 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)
  4463. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4464. scfr = blcf
  4465. elseif not scfr then
  4466. scfr = blcf
  4467. end
  4468. hitbox1.CFrame=prt10.CFrame
  4469. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  4471. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  4472. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  4473. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  4474. RH.C0=clerp(RH.C0,RHC0,.3)
  4475. LH.C0=clerp(LH.C0,LHC0,.3)
  4476. end
  4477. for i=0,1,0.05 do
  4478. swait()
  4479. if i>=0.45 and i<=0.5 then
  4480. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4481. end
  4482. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4483. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4484. local h = 5
  4485. 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)
  4486. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4487. 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)
  4488. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4489. scfr = blcf
  4490. elseif not scfr then
  4491. scfr = blcf
  4492. end
  4493. hitbox1.CFrame=prt10.CFrame
  4494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  4495. end
  4496. until hold==false
  4497. con1:disconnect()
  4498. hitbox1.Parent=nil
  4499. attack=false
  4500. end
  4501.  
  4502. function BinarySwing()
  4503. attack=true
  4504. for i=0,1,0.1 do
  4505. swait()
  4506. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  4508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  4509. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  4510. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  4511. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  4512. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  4513. end
  4514. Humanoid.Jump=true
  4515. bodvol=Instance.new("BodyVelocity")
  4516. bodvol.Parent=RootPart
  4517. bodvol.velocity=vt(0,1,0)*600
  4518. bodvol.P=7000
  4519. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  4520. --Torso.Velocity=vt(0,1,0)*100
  4521. hitbox1.Parent=model1
  4522. hitbox1.Size=vt(1,5,1)
  4523. hitbox1.Transparency=1
  4524. hitbox1.CFrame=prt10.CFrame
  4525. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,40,80,math.random(10,20),"Dragger",RootPart,.001,1) end)
  4526. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  4527. blcf=nil
  4528. scfr=nil
  4529. for i=0,1,0.1 do
  4530. swait()
  4531. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4532. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4533. local h = 5
  4534. 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)
  4535. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4536. 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)
  4537. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4538. scfr = blcf
  4539. elseif not scfr then
  4540. scfr = blcf
  4541. end
  4542. hitbox1.CFrame=prt10.CFrame
  4543. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  4544. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  4545. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  4546. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  4547. RH.C0=clerp(RH.C0,RHC0,.3)
  4548. LH.C0=clerp(LH.C0,LHC0,.3)
  4549. end
  4550. con1:disconnect()
  4551. hitbox1.Parent=nil
  4552. bodvol.Parent=nil
  4553. attack=false
  4554. end
  4555.  
  4556. function BinaryImpulse()
  4557. attack=true
  4558. if impulse==1 then
  4559. impulse=2
  4560. Humanoid.Jump=true
  4561. for i=0,1,0.2 do
  4562. swait()
  4563. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  4564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  4565. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  4566. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  4567. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  4568. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  4569. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  4570. end
  4571. blcf=nil
  4572. scfr=nil
  4573. hitbox1.Parent=model1
  4574. hitbox1.Size=vt(1,5,1)
  4575. hitbox1.Transparency=1
  4576. hitbox1.CFrame=prt10.CFrame
  4577. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  4578. for i=1,3 do
  4579. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  4580. for i=0,1,0.1 do
  4581. swait()
  4582. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4583. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4584. local h = 5
  4585. 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)
  4586. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4587. 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)
  4588. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4589. scfr = blcf
  4590. elseif not scfr then
  4591. scfr = blcf
  4592. end
  4593. hitbox1.CFrame=prt10.CFrame
  4594. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  4595. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  4596. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  4597. end
  4598. end
  4599. con1:disconnect()
  4600. hitbox1.Parent=nil
  4601. elseif impulse==2 then
  4602. impulse=3
  4603. Humanoid.Jump=true
  4604. for i=0,1,0.2 do
  4605. swait()
  4606. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  4607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  4608. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  4609. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  4610. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  4611. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  4612. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  4613. end
  4614. blcf=nil
  4615. scfr=nil
  4616. hitbox1.Parent=model1
  4617. hitbox1.Size=vt(1,5,1)
  4618. hitbox1.Transparency=1
  4619. hitbox1.CFrame=prt10.CFrame
  4620. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Dragger",RootPart,.01,1) end)
  4621. for i=1,3 do
  4622. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  4623. for i=0,1,0.1 do
  4624. swait()
  4625. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4626. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4627. local h = 5
  4628. 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)
  4629. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4630. 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)
  4631. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4632. scfr = blcf
  4633. elseif not scfr then
  4634. scfr = blcf
  4635. end
  4636. hitbox1.CFrame=prt10.CFrame
  4637. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  4638. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  4639. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  4640. end
  4641. end
  4642. con1:disconnect()
  4643. hitbox1.Parent=nil
  4644. elseif impulse==3 then
  4645. impulse=1
  4646. for i=0,1,0.2 do
  4647. swait()
  4648. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  4649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  4650. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  4651. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  4652. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  4653. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  4654. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  4655. end
  4656. Humanoid.Jump=true
  4657. blcf=nil
  4658. scfr=nil
  4659. hitbox1.Parent=model1
  4660. hitbox1.Size=vt(1,5,1)
  4661. hitbox1.Transparency=1
  4662. hitbox1.CFrame=prt10.CFrame
  4663. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,25,35,math.random(20,30),"Dragger",RootPart,.01,1) end)
  4664. for i=1,3 do
  4665. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  4666. for i=0,1,0.1 do
  4667. swait()
  4668. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4669. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4670. local h = 5
  4671. 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)
  4672. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4673. 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)
  4674. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4675. scfr = blcf
  4676. elseif not scfr then
  4677. scfr = blcf
  4678. end
  4679. hitbox1.CFrame=prt10.CFrame
  4680. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  4681. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  4682. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  4683. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  4684. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  4685. end
  4686. end
  4687. con1:disconnect()
  4688. hitbox1.Parent=nil
  4689. end
  4690. attack=false
  4691. end
  4692.  
  4693. function Bash()
  4694. attack=true
  4695. for i=0,1,0.1 do
  4696. swait()
  4697. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  4698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  4699. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  4700. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  4701. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  4702. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  4703. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  4704. end
  4705. Torso.Velocity=RootPart.CFrame.lookVector*600
  4706. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  4707. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  4708. hit=nil
  4709. for i=1,20 do
  4710. if hit==nil then
  4711. swait()
  4712. end
  4713. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  4714. end
  4715. Torso.Velocity=RootPart.CFrame.lookVector*0
  4716. Humanoid.WalkSpeed=0
  4717. for i=0,1,0.1 do
  4718. swait()
  4719. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  4720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  4721. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  4722. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  4723. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  4724. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4725. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4726. end
  4727. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  4728. blcf=nil
  4729. scfr=nil
  4730. for i=0,1,0.2 do
  4731. swait()
  4732. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4733. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4734. local h = 5
  4735. 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)
  4736. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4737. 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)
  4738. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4739. scfr = blcf
  4740. elseif not scfr then
  4741. scfr = blcf
  4742. end
  4743. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  4744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  4745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  4746. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  4747. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  4748. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  4749. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  4750. end
  4751. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  4752. if hit~=nil then
  4753. local ref=part(3,workspace,0,1,BrickColor.new("Dark indigo"),"Effect",vt())
  4754. ref.Anchored=true
  4755. ref.CFrame=cf(pos)
  4756. game:GetService("Debris"):AddItem(ref,3)
  4757. for i=1,10 do
  4758. Col=hit.BrickColor
  4759. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  4760. groundpart.Anchored=true
  4761. groundpart.Material=hit.Material
  4762. groundpart.CanCollide=true
  4763. 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))
  4764. game:GetService("Debris"):AddItem(groundpart,5)
  4765. end
  4766. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  4767. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  4768. MagniDamage(ref,10,40,80,math.random(100,600),"Up")
  4769. end
  4770. swait(0.05)
  4771. Humanoid.WalkSpeed=16
  4772. attack=false
  4773. end
  4774.  
  4775. function UnleashTheDemon()
  4776. attack=true
  4777. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  4778. chatServ:Chat(Head, "Were you prepared for this?", 2)
  4779. for i=0,1,0.1 do
  4780. swait()
  4781. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  4782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4783. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4784. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  4785. RH.C0=clerp(RH.C0,RHC0,.4)
  4786. LH.C0=clerp(LH.C0,LHC0,.4)
  4787. end
  4788. wld1.Part1=Torso
  4789. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  4790. for i=0,1,0.1 do
  4791. swait()
  4792. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  4793. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  4794. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  4795. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  4796. end
  4797. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  4798. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  4799. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  4800. num=0
  4801. for i=0,1,0.01 do
  4802. swait()
  4803. if num>=10 then
  4804. num=0
  4805. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  4806. end
  4807. for i=1,2 do
  4808. if math.random(1,5)==1 then
  4809. 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)
  4810. else
  4811. MagicBlock(BrickColor.new("Dark indigo"),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)
  4812. end
  4813. end
  4814. num=num+1
  4815. end
  4816. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  4817. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  4818. for i=1,4 do
  4819. MagicBlock(BrickColor.new("Dark indigo"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  4820. end
  4821. MagicWave(BrickColor.new("Dark indigo"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  4822. Mode="Demon"
  4823. chatServ:Chat(Head, "Awaken, Demon Blade!", 2)
  4824. model2.Parent=Character
  4825. for i=1,#DBlade do
  4826. DBlade[i].Parent=model2
  4827. DBladeWelds[i].Parent=DBlade[1]
  4828. end
  4829. for i=0,1,0.1 do
  4830. swait()
  4831. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  4832. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  4833. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  4834. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  4835. end
  4836. swait(10)
  4837. attack=false
  4838. end
  4839.  
  4840. local MomentumCancel = true
  4841. chatServ = game:GetService("Chat")
  4842. local chattedAlready = false
  4843.  
  4844. function MomentumCanelling()
  4845. if RootPart.Velocity.Magnitude > (Humanoid.WalkSpeed+50) and not attack and MomentumCancel then
  4846. RootPart.Velocity = Vector3.new(0,0,0)
  4847. if not chattedAlready then
  4848. chattedAlready = true
  4849. chatServ:Chat(Head, "Momentum Cancel!", 2)
  4850. wait(1)
  4851. chattedAlready = false
  4852. end
  4853. end
  4854. end
  4855. RootPart.Changed:connect(MomentumCanelling)
  4856. Torso.Changed:connect(MomentumCanelling)
  4857. Head.Changed:connect(MomentumCanelling)
  4858. RightArm.Changed:connect(MomentumCanelling)
  4859. RightLeg.Changed:connect(MomentumCanelling)
  4860. LeftArm.Changed:connect(MomentumCanelling)
  4861. LeftLeg.Changed:connect(MomentumCanelling)
  4862.  
  4863. function Demonattackone()
  4864. attack=true
  4865. --[[
  4866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  4867. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  4868. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  4869. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  4870. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  4871. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  4872. ]]
  4873. for i=0,1,0.1 do
  4874. swait()
  4875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  4876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  4877. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  4878. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  4879. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  4880. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  4881. end
  4882. hitbox2.Parent=model2
  4883. hitbox2.Size=vt(1,6,1)
  4884. hitbox2.Transparency=1
  4885. hitbox2.CFrame=prtd7.CFrame
  4886. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  4887. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  4888. blcf=nil
  4889. scfr=nil
  4890. for i=0,1,0.08 do
  4891. swait()
  4892. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  4893. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  4894. local h = 5
  4895. 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)
  4896. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4897. 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)
  4898. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4899. scfr = blcf
  4900. elseif not scfr then
  4901. scfr = blcf
  4902. end
  4903. hitbox2.CFrame=prtd7.CFrame
  4904. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  4905. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  4906. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  4907. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  4908. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  4909. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  4910. end
  4911. con1:disconnect()
  4912. hitbox2.Parent=nil
  4913. attack=false
  4914. end
  4915.  
  4916. function Demonattacktwo()
  4917. attack=true
  4918. for i=0,1,0.1 do
  4919. swait()
  4920. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  4921. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  4922. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  4923. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  4924. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  4925. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  4926. end
  4927. hitbox2.Parent=model2
  4928. hitbox2.Size=vt(1,6,1)
  4929. hitbox2.Transparency=1
  4930. hitbox2.CFrame=prtd7.CFrame
  4931. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  4932. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  4933. blcf=nil
  4934. scfr=nil
  4935. for i=0,1,0.1 do
  4936. swait()
  4937. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  4938. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  4939. local h = 5
  4940. 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)
  4941. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4942. 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)
  4943. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4944. scfr = blcf
  4945. elseif not scfr then
  4946. scfr = blcf
  4947. end
  4948. hitbox2.CFrame=prtd7.CFrame
  4949. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  4950. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  4951. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  4952. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  4953. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  4954. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  4955. end
  4956. con1:disconnect()
  4957. hitbox2.Parent=nil
  4958. attack=false
  4959. end
  4960.  
  4961. function Demonattackthree()
  4962. attack=true
  4963. for i=0,1,0.1 do
  4964. swait()
  4965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  4966. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  4967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  4968. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  4969. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  4970. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  4971. end
  4972. --Humanoid.WalkSpeed=0
  4973. hitbox2.Parent=model2
  4974. hitbox2.Size=vt(1,6,1)
  4975. hitbox2.Transparency=1
  4976. hitbox2.CFrame=prtd7.CFrame
  4977. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,30,60,math.random(1,5),"Lifesteal",RootPart,.5,1) end)
  4978. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  4979. blcf=nil
  4980. scfr=nil
  4981. for i=0,1,0.15 do
  4982. swait()
  4983. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  4984. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  4985. local h = 5
  4986. 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)
  4987. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4988. 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)
  4989. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4990. scfr = blcf
  4991. elseif not scfr then
  4992. scfr = blcf
  4993. end
  4994. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  4995. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  4996. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  4997. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  4998. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  4999. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  5000. if i==0.6 then
  5001. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5002. if hit~=nil then
  5003. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  5004. ref.Anchored=true
  5005. ref.CFrame=cf(pos)
  5006. game:GetService("Debris"):AddItem(ref,3)
  5007. for i=1,5 do
  5008. Col=hit.BrickColor
  5009. local groundpart=part(3,F2,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  5010. groundpart.Anchored=true
  5011. groundpart.Material=hit.Material
  5012. groundpart.CanCollide=true
  5013. 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))
  5014. game:GetService("Debris"):AddItem(groundpart,3)
  5015. end
  5016. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  5017. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  5018. MagniDamage(ref,10,10,20,math.random(10,20),"Normal")
  5019. end
  5020. end
  5021. end
  5022. con1:disconnect()
  5023. hitbox2.Parent=nil
  5024. swait(10)
  5025. --Humanoid.WalkSpeed=16
  5026. attack=false
  5027. end
  5028.  
  5029. function LetItBuild()
  5030. attack=true
  5031. for i=0,1,0.1 do
  5032. swait()
  5033. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  5034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  5035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  5036. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5037. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5038. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5039. end
  5040. local num=0
  5041. local magik=0
  5042. local num2=0
  5043. local dammulti = 1
  5044. chatServ:Chat(Head, "Devil...", 2)
  5045. while holdx==true do
  5046. swait()
  5047. if magik<25 then
  5048. if num>=10 then
  5049. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  5050. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  5051. Lightning(pos1,pos2,5,3,"Dark indigo",.1,.5,.5)
  5052. MagicCircle(BrickColor.new("Dark indigo"),cf(pos1),5,5,5,1,1,1,.1)
  5053. MagicBlood(BrickColor.new("Dark indigo"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  5054. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  5055. magik=magik+3
  5056. num=0
  5057. end
  5058. end
  5059. Humanoid.MaxHealth = Humanoid.MaxHealth+20
  5060. dammulti = dammulti+(2+(Humanoid.MaxHealth/Humanoid.Health))
  5061. num=num+1
  5062. num2=num2+magik
  5063. if num2>=50 then
  5064. MagicBlood(BrickColor.new("Dark indigo"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  5065. num2=0
  5066. end
  5067. --MagicBlock(BrickColor.new("Really red"),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)
  5068. end
  5069. chatServ:Chat(Head, "Cutter!", 2)
  5070. RootPart.Velocity=RootPart.CFrame.lookVector*(6*magik)
  5071. blcf=nil
  5072. scfr=nil
  5073. hitbox2.Parent=model2
  5074. hitbox2.Size=vt(1,6,1)
  5075. hitbox2.Transparency=1
  5076. hitbox2.CFrame=prtd7.CFrame
  5077. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,(magik*2221)*dammulti,(magik*4441)*dammulti,1,"DevilStyle",RootPart,.2/(dammulti*magik),1) end)
  5078. for i=1,3 do
  5079. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  5080. for i=0,1,0.1 do
  5081. swait()
  5082. hitbox2.CFrame=prtd7.CFrame
  5083. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5084. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5085. local h = 5
  5086. 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)
  5087. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5088. 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)
  5089. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5090. scfr = blcf
  5091. elseif not scfr then
  5092. scfr = blcf
  5093. end
  5094. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  5095. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  5096. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5097. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5098. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5099. end
  5100. end
  5101. con1:disconnect()
  5102. hitbox2.Parent=nil
  5103. attack=false
  5104. end
  5105.  
  5106. function YourMoveCreep()
  5107. attack=true
  5108. local pers=nil
  5109. for i=0,1,0.1 do
  5110. swait()
  5111. cost=Humanoid.Health*.00
  5112. Humanoid:TakeDamage(cost)
  5113. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  5114. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  5115. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  5116. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  5117. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  5118. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5119. end
  5120. local blockprt=part(3,Character,0,1,BrickColor.new("Dark indigo"),"Block",vt(6,.1,6))
  5121. chatServ:Chat(Head, "Your move, creep.", 2)
  5122. blockprt.Anchored=false
  5123. blockprt.CanCollide = false
  5124. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5125. local Blockweld = Instance.new("Weld",blockprt)
  5126. Blockweld.Part0 = LeftArm
  5127. Blockweld.Part1 = blockprt
  5128. Blockweld.C0 = CFrame.new(0, -1, 0)
  5129. conbl=blockprt.Touched:connect(function(hit) end)
  5130. local extradam = 1
  5131. blockprt.Touched:connect(function(hit)
  5132. local Tor1 = hit.Parent.Parent:findFirstChild("Torso")
  5133. local Tor2 = hit.Parent:findFirstChild("Torso")
  5134. local function FindAHumanoid(parent)
  5135. local H = nil
  5136. for _, HUM in pairs(parent:GetChildren()) do
  5137. if HUM:IsA("Humanoid") then
  5138. H = HUM
  5139. end
  5140. end
  5141. return H
  5142. end
  5143. if Tor1 and guard then
  5144. if Tor1.Parent == Character then else
  5145. local HUM = FindAHumanoid(Tor1.Parent)
  5146. local DAM = math.random(10, 20)*extradam
  5147. if HUM then
  5148. if HUM.MaxHealth > 10000000 then
  5149. HUM.MaxHealth = 100
  5150. end
  5151. showDamage(Tor1.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  5152. HUM.Health = HUM.Health-DAM
  5153. HUM:ChangeState(Enum.HumanoidStateType.FallingDown)
  5154. chatServ:Chat(Head, "Ha!", 2)
  5155. end
  5156. guard = false
  5157. local BBlast = Instance.new("Part", F2)
  5158. BBlast.BrickColor = BrickColor.new("Dark indigo")
  5159. BBlast.Material = "Neon"
  5160. BBlast.Transparency = .5
  5161. local OverallSize = Tor1.Size.X*4
  5162. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  5163. BBlast.CFrame = Tor1.CFrame
  5164. BBlast.Anchored = true
  5165. BBlast.CanCollide = false
  5166. BBlast.Locked = true
  5167. local BMesh = Instance.new("SpecialMesh", BBlast)
  5168. BMesh.MeshType = "Sphere"
  5169. local BSound = Instance.new("Sound", BBlast)
  5170. BSound.Volume = 10
  5171. BSound.SoundId = "rbxassetid://153832523"
  5172. BSound.Pitch = .8
  5173. BSound:Play()
  5174. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  5175. for I = .5, 1, .05 do
  5176. wait()
  5177. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  5178. BBlast.Transparency = I
  5179. end
  5180. game:GetService("Debris"):AddItem(BBlast, 0)
  5181. game:GetService("Debris"):AddItem(BSound, 0)
  5182. end
  5183. end
  5184. if Tor2 and guard then
  5185. if Tor2.Parent == Character then else
  5186. local HUM = FindAHumanoid(Tor2.Parent)
  5187. local DAM = math.random(10, 20)*extradam
  5188. if HUM then
  5189. if HUM.MaxHealth > 10000000 then
  5190. HUM.MaxHealth = 100
  5191. wait()
  5192. end
  5193. showDamage(Tor2.Parent,DAM,.5,BrickColor.new("Dark indigo"))
  5194. HUM.Health = HUM.Health-DAM
  5195. HUM:ChangeState(Enum.HumanoidStateType.Ragdoll)
  5196. chatServ:Chat(Head, "Ha!", 2)
  5197. end
  5198. guard = false
  5199. local BBlast = Instance.new("Part", F2)
  5200. BBlast.BrickColor = BrickColor.new("Dark indigo")
  5201. BBlast.Material = "Neon"
  5202. BBlast.Transparency = .5
  5203. local OverallSize = Tor2.Size.X*4
  5204. BBlast.Size = Vector3.new(OverallSize,OverallSize,OverallSize)
  5205. BBlast.CFrame = Tor2.CFrame
  5206. BBlast.Anchored = true
  5207. BBlast.CanCollide = false
  5208. BBlast.Locked = true
  5209. local BMesh = Instance.new("SpecialMesh", BBlast)
  5210. BMesh.MeshType = "Sphere"
  5211. local BSound = Instance.new("Sound", BBlast)
  5212. BSound.Volume = 10
  5213. BSound.SoundId = "rbxassetid://153832523"
  5214. BSound.Pitch = .8
  5215. BSound:Play()
  5216. MagniDamage(BBlast,OverallSize*2,(DAM/2)-.01,DAM/2,1,"Breaker")
  5217. for I = .5, 1, .05 do
  5218. wait()
  5219. BMesh.Scale = Vector3.new(I*2, I*2, I*2)
  5220. BBlast.Transparency = I
  5221. end
  5222. game:GetService("Debris"):AddItem(BBlast, 0)
  5223. game:GetService("Debris"):AddItem(BSound, 0)
  5224. end
  5225. end
  5226. --[[if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  5227. pers=hit
  5228. print("HIT")
  5229. guard=false
  5230. end--]]
  5231. end)
  5232. num=0
  5233. while guard==true do
  5234. swait()
  5235. extradam = extradam+.5
  5236. if num>10 then
  5237. num=0
  5238. MagicBlock(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  5239. MagicCircle(BrickColor.new("Dark indigo"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  5240. end
  5241. --blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5242. num=num+1
  5243. end
  5244. conbl:disconnect()
  5245. game:GetService("Debris"):AddItem(blockprt, 0)
  5246. print(pers)
  5247. if pers~=nil then
  5248. for i=0,1,0.1 do
  5249. swait()
  5250. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  5251. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  5252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  5253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  5254. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  5255. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5256. end
  5257. swait(0.05)
  5258. end
  5259. attack=false
  5260. end
  5261.  
  5262. function CreateWeaponPart(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  5263. local Part = Instance.new(className, parent)
  5264. Part.BrickColor = BrickColor.new(Brickcolor)
  5265. Part.Transparency = Transparency
  5266. Part.Reflectance = Reflectance
  5267. Part.Material = Material
  5268. Part.Name = Name
  5269. Part.Anchored = true
  5270. Part.CanCollide = false
  5271. Part.Locked = true
  5272. Part.Size = Size
  5273. Part.Position = Position
  5274. Part.Rotation = Rotation
  5275. local Mesh = Instance.new(MeshClass, Part)
  5276. Mesh.Scale = MeshScale
  5277. if MeshClass == "SpecialMesh" then
  5278. Mesh.MeshId = MeshId
  5279. Mesh.MeshType = MeshType
  5280. end
  5281. return Part
  5282. end
  5283.  
  5284. local Demon_Cannon = Instance.new("Model")
  5285. Demon_Cannon.Name = "Demon Cannon"
  5286.  
  5287. ----------------(ClassName, , BrickColor, Material , Trans, Refl, Name, Size, Position, Rotation, Mesh Class, Mesh Scale , MId, MType)
  5288. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5289. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5290. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5291. CreateWeaponPart("Part", Demon_Cannon, "Fossil", "SmoothPlastic", 0, 0, "FossilPart", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5292. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 2.982, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  5293. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.418, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  5294. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.309, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  5295. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "BodyNeon", Vector3.new(0.545, 0.2, 2.4), Vector3.new(3.1, 3.091, -265.736), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1.01, 0.055, 1), _, _)
  5296. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5297. CreateWeaponPart("Part", Demon_Cannon, "Black", "SmoothPlastic", 0, 0, "BulletHole", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.5, 0.06, 0.5), _, _)
  5298. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(1.2, 0.436, 0.545), Vector3.new(3.1, 3.2, -267.264), Vector3.new(-90, 90, 0), "SpecialMesh", Vector3.new(1,1,1), "", "Torso")
  5299. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBack", Vector3.new(0.545, 1.2, 0.2), Vector3.new(3.1, 3.2, -266.991), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,.545), _, _)
  5300. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonBody", Vector3.new(0.545, 0.545, 2.509), Vector3.new(3.1, 3.2, -265.682), Vector3.new(0, 0, 0), "BlockMesh", Vector3.new(1,1,1), _, _)
  5301. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 3.473, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  5302. CreateWeaponPart("Part", Demon_Cannon, "Really black", "Pebble", 0, 0, "CannonCylinder", Vector3.new(0.545, 2.509, 0.655), Vector3.new(3.1, 2.927, -265.682), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(1,1,1), _, _)
  5303. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 3.473, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  5304. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.545, 0.218, 0.655), Vector3.new(3.1, 2.927, -264.427), Vector3.new(-90, 0, -180), "CylinderMesh", Vector3.new(0.55, 0.05, 0.55), _, _)
  5305. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  5306. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.364, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  5307. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(3.373, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  5308. CreateWeaponPart("Part", Demon_Cannon, "Dark indigo", "Neon", 0, 0, "NeonCylinder", Vector3.new(0.218, 0.218, 0.218), Vector3.new(2.827, 3.036, -264.536), Vector3.new(-90, 0, 90), "CylinderMesh", Vector3.new(0.6, 0.05, 0.6), _, _)
  5309.  
  5310. local CannonMain = CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Main", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  5311. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole1", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 3.473, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  5312. CreateWeaponPart("Part", Demon_Cannon, "Really black", "SmoothPlastic", 1, 0, "Blaster Hole2", Vector3.new(0.545, 0.345, 0.2), Vector3.new(3.1, 2.927, -264.436), Vector3.new(-180, -0, -180), "BlockMesh", Vector3.new(1, 1, 1), _, _)
  5313.  
  5314. local CHole1 = Demon_Cannon:WaitForChild("Blaster Hole1")
  5315. local CHole2 = Demon_Cannon:WaitForChild("Blaster Hole2")
  5316.  
  5317. for _, Part in pairs(Demon_Cannon:GetChildren()) do
  5318. if Part:IsA("Part") then
  5319. if Part.Name ~= "Main" then
  5320. local x = CannonMain
  5321. local y = Part
  5322. local W = Instance.new("Weld")
  5323. W.Part0 = x
  5324. W.Part1 = y
  5325. local CJ = CFrame.new(x.Position)
  5326. local C0 = x.CFrame:inverse()*CJ
  5327. local C1 = y.CFrame:inverse()*CJ
  5328. W.C0 = C0
  5329. W.C1 = C1
  5330. W.Parent = x
  5331. x.Anchored = false
  5332. y.Anchored = false
  5333. end
  5334. Part.Anchored = false
  5335. Part.TopSurface = "SmoothNoOutlines"
  5336. Part.BottomSurface = "SmoothNoOutlines"
  5337. Part.LeftSurface = "SmoothNoOutlines"
  5338. Part.RightSurface = "SmoothNoOutlines"
  5339. Part.FrontSurface = "SmoothNoOutlines"
  5340. Part.BackSurface = "SmoothNoOutlines"
  5341. end
  5342. end
  5343. CannonMain.Anchored = true
  5344.  
  5345. local CM2 = CreateWeaponPart("Part", Character, "Really black", "SmoothPlastic", 1, 0, "Main2", Vector3.new(0.545, 1.345, 3.309), Vector3.new(3.1, 3.2, -265.882), Vector3.new(180, -0, -180), "BlockMesh", Vector3.new(1,1,1), _, _)
  5346. CM2.Anchored = false
  5347.  
  5348. local CMW1 = Instance.new("Weld", CM2)
  5349. CMW1.Part0 = RootPart
  5350. CMW1.Part1 = CM2
  5351. CMW1.C0 = CFrame.new(0, 3, 0)
  5352.  
  5353. local CannonWeld = Instance.new("Weld", CM2)
  5354. local CPos = Instance.new("BodyPosition")
  5355. local CGyro = Instance.new("BodyGyro")
  5356.  
  5357. local DCOn = false
  5358. local TCtrl = false
  5359. local CanUseCannon = false
  5360. local Firing = false
  5361. local C = 1
  5362.  
  5363. function DemonCannon()
  5364. attack = true
  5365. chatServ:Chat(Head, "Behold..", 2)
  5366. for i=0, 10 do
  5367. swait()
  5368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  5369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  5370. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  5371. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  5372. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  5373. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5374. end
  5375. wait(1)
  5376. Humanoid.WalkSpeed = 8
  5377. for i=0, 10 do
  5378. swait()
  5379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  5380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-.4,1.3),.3)
  5381. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  5382. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-2.6),.3)
  5383. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  5384. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5385. end
  5386. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  5387. for i=0,1,0.01 do
  5388. swait()
  5389. for i=1,4 do
  5390. if math.random(1,4)==1 then
  5391. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5392. else
  5393. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5394. end
  5395. end
  5396. num=num+1
  5397. end
  5398. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  5399. local Boo = Instance.new("Part", F2)
  5400. Boo.BrickColor = BrickColor.new("Dark indigo")
  5401. Boo.Transparency = .5
  5402. Boo.Material = "Neon"
  5403. Boo.Anchored = true
  5404. Boo.CanCollide = false
  5405. Boo.CFrame = CM2.CFrame
  5406. Boo.Size = Vector3.new(3,3,3)
  5407. local BooM = Instance.new("SpecialMesh", Boo)
  5408. BooM.MeshType = "Sphere"
  5409. local nuM = 0
  5410. chatServ:Chat(Head, "The Demon Cannon!", 2)
  5411. Humanoid.WalkSpeed = 16
  5412. for i = 1, 4, .1 do
  5413. wait()
  5414. BooM.Scale = Vector3.new(i,i,i)
  5415. Boo.Transparency = .5+(i/8)
  5416. if nuM ~= 1 then
  5417. Demon_Cannon.Parent = Character
  5418. CannonWeld = Instance.new("Weld", CM2)
  5419. CannonWeld.Part0 = CM2
  5420. CannonWeld.Part1 = CannonMain
  5421. CannonMain.Anchored = false
  5422. nuM = 1
  5423. end
  5424. end
  5425. for i=0,1,0.1 do
  5426. wait()
  5427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  5428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  5429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  5430. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  5431. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  5432. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5433. end
  5434. game:GetService("Debris"):AddItem(Boo, 0)
  5435. CanUseCannon = true
  5436. CannonWeld.Part0 = nil
  5437. CannonWeld.Part1 = nil
  5438. CPos.Parent = CannonMain
  5439. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5440. CGyro.Parent = CannonMain
  5441. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  5442. attack = false
  5443. end
  5444.  
  5445. function HideDemonCannon()
  5446. attack = true
  5447. CanUseCannon = false
  5448. CPos.Parent = nil
  5449. CPos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5450. CGyro.Parent = nil
  5451. CGyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  5452. CannonWeld = Instance.new("Weld", CM2)
  5453. CannonWeld.Part0 = CM2
  5454. CannonWeld.Part1 = CannonMain
  5455. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  5456. for i=0,1,0.01 do
  5457. swait()
  5458. for i=1,4 do
  5459. if math.random(1,4)==1 then
  5460. MagicBlock(BrickColor.new("Really black"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5461. else
  5462. MagicBlock(BrickColor.new("Dark indigo"),CM2.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/100,math.random(-300,300)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5463. end
  5464. end
  5465. num=num+1
  5466. end
  5467. CannonMain.Anchored = true
  5468. Demon_Cannon.Parent = nil
  5469. CannonWeld.Part0 = nil
  5470. CannonWeld.Part1 = nil
  5471. game:GetService("Debris"):AddItem(CannonWeld, 0)
  5472. attack = false
  5473. end
  5474.  
  5475. function TimeControl()
  5476. print("hahaha")
  5477. attack = true
  5478. for i=0,1,0.1 do
  5479. wait()
  5480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(math.rad(20),0,math.rad(-30)),.3)
  5481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  5482. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-120),0),.3)
  5483. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(110),math.rad(-10),math.rad(-30)),.3)
  5484. RH.C0=clerp(RH.C0,cf(1,-.85,-.85)*euler(0,math.rad(100),math.rad(-30))*euler(0,0,0),.3)
  5485. LH.C0=clerp(LH.C0,cf(-1,-.45,-.35)*euler(0,math.rad(-60),math.rad(-20))*euler(0,0,0),.3)
  5486. end
  5487. local EmeraldWeld = Instance.new("Motor", LeftArm)
  5488. local Chaos_Emerald = Instance.new("Part", F2)
  5489. Chaos_Emerald.BrickColor = BrickColor.new("Dark indigo")
  5490. Chaos_Emerald.Material = "SmoothPlastic"
  5491. Chaos_Emerald.Reflectance = .3
  5492. Chaos_Emerald.Transparency = 1
  5493. Chaos_Emerald.Name = "Chaos Emerald"
  5494. Chaos_Emerald.Anchored = false
  5495. Chaos_Emerald.CanCollide = false
  5496. Chaos_Emerald.Locked = true
  5497. Chaos_Emerald.Size = Vector3.new(1,.4, 1)
  5498. local CE_Mesh = Instance.new("SpecialMesh", Chaos_Emerald)
  5499. CE_Mesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  5500. CE_Mesh.Scale = Vector3.new(2,1,2)
  5501. local CE_Light = Instance.new("PointLight", Chaos_Emerald)
  5502. CE_Light.Brightness = 100
  5503. CE_Light.Color = Color3.new(85/255, 0, 127/255)
  5504. CE_Light.Range = 8
  5505. CE_Light.Shadows = true
  5506. CE_Light.Enabled = false
  5507. local transPoints = {
  5508. NumberSequenceKeypoint.new(0,0,0),
  5509. NumberSequenceKeypoint.new(1,1,0),
  5510. }
  5511. local ETransparency = NumberSequence.new(transPoints)
  5512. local CE_PE = Instance.new("ParticleEmitter", Chaos_Emerald)
  5513. CE_PE.Color = ColorSequence.new(Chaos_Emerald.BrickColor.Color)
  5514. CE_PE.LightEmission = 1
  5515. CE_PE.Size = NumberSequence.new(.4)
  5516. CE_PE.Transparency = ETransparency
  5517. CE_PE.EmissionDirection = "Top"
  5518. CE_PE.LockedToPart = true
  5519. CE_PE.VelocityInheritance = 1
  5520. CE_PE.Rate = 50
  5521. CE_PE.Lifetime = NumberRange.new(.3, .5)
  5522. CE_PE.RotSpeed = NumberRange.new(100,300)
  5523. CE_PE.Speed = NumberRange.new(2)
  5524. CE_PE.VelocitySpread = 100
  5525. CE_PE.Enabled = false
  5526. EmeraldWeld.Part0 = LeftArm
  5527. EmeraldWeld.Part1 = Chaos_Emerald
  5528. EmeraldWeld.DesiredAngle = 9999999999999999999999999999999999999999999999999999999999999
  5529. EmeraldWeld.MaxVelocity = math.rad(5)
  5530. EmeraldWeld.C0 = CFrame.new(0, -6, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-180), 0, 0)
  5531. EmeraldWeld.C1 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  5532. so("http://roblox.com/asset/?id=178452217",CM2,1,.4)
  5533. for i=0,1,0.01 do
  5534. swait()
  5535. for i=1,6 do
  5536. if math.random(1,4)==1 then
  5537. MagicBlock(BrickColor.new("Really black"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  5538. else
  5539. MagicBlock(BrickColor.new("Dark indigo"),Chaos_Emerald.CFrame*cf(math.random(-100,100)/100,-math.random(-100,100)/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)
  5540. end
  5541. end
  5542. num=num+1
  5543. end
  5544. Chaos_Emerald.Transparency = .3
  5545. CE_PE.Enabled = true
  5546. CE_Light.Enabled = true
  5547. Humanoid.WalkSpeed = 0
  5548. wait(1)
  5549. for i = 0, 2.25, .1 do
  5550. wait()
  5551. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-.5,0)*euler(math.rad(-180),0,0),.1)
  5552. end
  5553. EmeraldWeld.MaxVelocity = 0
  5554. so("http://roblox.com/asset/?id=227194112",LeftArm,1,1)
  5555. for i=0,1,0.1 do
  5556. wait()
  5557. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,math.rad(-30)),.3)
  5558. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,math.rad(30)),.3)
  5559. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(-50),math.rad(0),math.rad(60))*euler(0,math.rad(-160),0),.3)
  5560. LW.C0=clerp(LW.C0,cf(-.5,.5,-1)*euler(math.rad(90),0,math.rad(80)),.3)
  5561. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,math.rad(90), 0),.3)
  5562. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,math.rad(-90),0),.3)
  5563. end
  5564. for i=0,1,0.1 do
  5565. wait()
  5566. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  5567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(math.rad(-20),0,0),.3)
  5568. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*euler(math.rad(0),math.rad(0),math.rad(60))*euler(0,math.rad(-90),0),.3)
  5569. LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*euler(math.rad(150),0,0),.3)
  5570. end
  5571. chatServ:Chat(Head, "Behold, my power!", 2)
  5572. EmeraldWeld.MaxVelocity = math.rad(5)
  5573. for i = 0, 1, .1 do
  5574. wait()
  5575. EmeraldWeld.C0=clerp(EmeraldWeld.C0,cf(0,-3,-1.1)*euler(math.rad(-240),0,0),.3)
  5576. end
  5577. local Chaos_Emerald2 = Chaos_Emerald:Clone()
  5578. Chaos_Emerald2.Parent = F2
  5579. Chaos_Emerald2.Anchored = false
  5580. for _, k in pairs(Chaos_Emerald2:GetChildren()) do
  5581. if k:IsA("PointLight") or k:IsA("ParticleEmitter") then
  5582. game:GetService("Debris"):AddItem(k, 0)
  5583. end
  5584. end
  5585. Chaos_Emerald2.Transparency = .5
  5586. local EmeraldWeld2 = Instance.new("Weld", Chaos_Emerald)
  5587. EmeraldWeld2.Part0 = Chaos_Emerald
  5588. EmeraldWeld2.Part1 = Chaos_Emerald2
  5589. EmeraldWeld2.C0 = CFrame.new(0,0,0)
  5590. local CE2_Mesh = Chaos_Emerald2:WaitForChild("Mesh")
  5591. CE2_Mesh.Scale = Vector3.new(0,0,0)
  5592. local function EFlash()
  5593. for t = 0, 2, .1 do
  5594. wait()
  5595. CE2_Mesh.Scale = Vector3.new(t*4,t*1.2,t*4)
  5596. Chaos_Emerald2.Transparency = .5+t/4
  5597. end
  5598. end
  5599. for i = 0, 5 do
  5600. EFlash()
  5601. wait(.1)
  5602. end
  5603. chatServ:Chat(Head, "Time control!", 2)
  5604. local TPlayers = {}
  5605. local THumanoids = {}
  5606. local RecentBrightness = game.Lighting.Brightness
  5607. local RecentOutDoorAmbient = game.Lighting.OutdoorAmbient
  5608. local RecentTimeOfDay = game.Lighting.TimeOfDay
  5609. local RecentFogEnd = game.Lighting.FogEnd
  5610. local RecentFogColor = game.Lighting.FogColor
  5611. local TBlast, TBMesh = Instance.new("Part", F2), Instance.new("SpecialMesh")
  5612. TBlast.BrickColor = BrickColor.new("Dark indigo")
  5613. TBlast.Transparency = 1
  5614. TBlast.Anchored = true
  5615. TBlast.CanCollide = false
  5616. TBlast.CFrame = RootPart.CFrame
  5617. TBlast.Size = Vector3.new(2,2,2)
  5618. TBMesh.Parent = TBlast
  5619. TBMesh.MeshType = "Sphere"
  5620. game.Lighting.Brightness = 0
  5621. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  5622. game.Lighting.TimeOfDay = 4
  5623. game.Lighting.FogEnd = 1000
  5624. game.Lighting.FogColor = TBlast.BrickColor.Color
  5625. local function GetPlayers()
  5626. for _, P in pairs(game.Players:GetPlayers()) do
  5627. if P then
  5628. if P ~= Player then
  5629. table.insert(TPlayers, P)
  5630. local cc = P:WaitForChild("Character")
  5631. local huh = FindHum(cc)
  5632. local Jd = huh:FindFirstChild("JumpedValue")
  5633. if not Jd then
  5634. Jd = Instance.new("BoolValue")
  5635. Jd.Parent = huh
  5636. Jd.Name = "JumpedValue"
  5637. Jd.Value = false
  5638. end
  5639. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5640. if not S then
  5641. S = Instance.new("BodyVelocity",P:WaitForChild("Character"):WaitForChild("Torso"))
  5642. S.MaxForce = Vector3.new(0,0,0)
  5643. S.Velocity = Vector3.new(0,0,0)
  5644. S.Name = "svFgyuzxC"
  5645. end
  5646. end
  5647. end
  5648. end
  5649. end
  5650. local function GetOtherHumanoids()
  5651. for _, H in pairs(workspace:GetChildren()) do
  5652. if H:IsA("Model") then
  5653. local HUM = FindHum(H)
  5654. if HUM and HUM ~= Humanoid then
  5655. table.insert(THumanoids, HUM)
  5656. local Jd = HUM:FindFirstChild("JumpedValue")
  5657. if not Jd then
  5658. Jd = Instance.new("BoolValue")
  5659. Jd.Parent = HUM
  5660. Jd.Name = "JumpedValue"
  5661. Jd.Value = false
  5662. end
  5663. local S = HUM.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5664. if not S then
  5665. S = Instance.new("BodyVelocity",HUM.Parent:WaitForChild("Torso"))
  5666. S.MaxForce = Vector3.new(0,0,0)
  5667. S.Velocity = Vector3.new(0,0,0)
  5668. S.Name = "svFgyuzxC"
  5669. end
  5670. end
  5671. end
  5672. end
  5673. end
  5674. GetPlayers()
  5675. GetOtherHumanoids()
  5676. local function ClearTHumanoids()
  5677. for i, H in pairs(THumanoids) do
  5678. if H then
  5679. table.remove(THumanoids, i)
  5680. local Jd = H:FindFirstChild("JumpedValue")
  5681. if Jd then
  5682. game:GetService("Debris"):AddItem(Jd, 0)
  5683. end
  5684. H.WalkSpeed = 16
  5685. local S = H.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5686. if S then
  5687. game:GetService("Debris"):AddItem(S, 0)
  5688. end
  5689. end
  5690. end
  5691. end
  5692. local function ClearTPlayers()
  5693. for i, P in pairs(TPlayers) do
  5694. if P then
  5695. table.remove(TPlayers, i)
  5696. local cc = P:WaitForChild("Character")
  5697. local huh = FindHum(cc)
  5698. local Jd = huh:FindFirstChild("JumpedValue")
  5699. if Jd then
  5700. game:GetService("Debris"):AddItem(Jd, 0)
  5701. end
  5702. huh.WalkSpeed = 16
  5703. local S = P:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5704. if S then
  5705. game:GetService("Debris"):AddItem(S, 0)
  5706. end
  5707. end
  5708. end
  5709. end
  5710. Humanoid.WalkSpeed = 16
  5711. for s = 0, 50, 5 do
  5712. wait()
  5713. TBMesh.Scale = Vector3.new(s*s,s*s,s*s)
  5714. TBlast.Transparency = s/50
  5715. end
  5716. attack = false
  5717. game:GetService("Debris"):AddItem(Chaos_Emerald, 0)
  5718. game:GetService("Debris"):AddItem(Chaos_Emerald2, 0)
  5719. game:GetService("Debris"):AddItem(TBlast, 0)
  5720. local PlayerJoined = game:GetService("Players").PlayerAdded:connect(function()
  5721. for _,child in pairs(game:GetService("Players"):GetPlayers()) do
  5722. table.insert(TPlayers, child)
  5723. local cc = child:WaitForChild("Character")
  5724. local huh = FindHum(cc)
  5725. local Jd = huh:FindFirstChild("JumpedValue")
  5726. if not Jd then
  5727. Jd = Instance.new("BoolValue")
  5728. Jd.Parent = huh
  5729. Jd.Name = "JumpedValue"
  5730. Jd.Value = false
  5731. end
  5732. local S = child:WaitForChild("Character"):WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5733. if not S then
  5734. S = Instance.new("BodyVelocity",child:WaitForChild("Character"):WaitForChild("Torso"))
  5735. S.MaxForce = Vector3.new(0,0,0)
  5736. S.Velocity = Vector3.new(0,0,0)
  5737. S.Name = "svFgyuzxC"
  5738. end
  5739. end
  5740. end)
  5741. local PlayerLeft = game:GetService("Players").PlayerRemoving:connect(function(player)
  5742. for i,child in pairs(TPlayers) do
  5743. if child == player then
  5744. table.remove(TPlayers,i)
  5745. end
  5746. end
  5747. end)
  5748. local function StuntJumpUntil(humanoid)
  5749. local duration = humanoid.JumpPower
  5750. local root = humanoid.Parent:FindFirstChild("HumanoidRootPart")
  5751. local RooT = nil
  5752. local Jd = humanoid:FindFirstChild("JumpedValue")
  5753. if not Jd then error("Jump Value was not found.") end
  5754. Jd.Value = true
  5755. humanoid.Jump = false
  5756. if root then
  5757. RooT = root
  5758. elseif not root then
  5759. root = humanoid.Parent:FindFirstChild("Torso")
  5760. if root then
  5761. RooT = root
  5762. end
  5763. end
  5764. local NUM = 0
  5765. --[[repeat
  5766. wait()
  5767. print(NUM, duration, humanoid.Parent)
  5768. NUM = NUM+.05
  5769. if RooT then
  5770. Jd.Value = true
  5771. RooT.Velocity = Vector3.new(0, .05, 0)
  5772. end
  5773. until NUM >= duration or humanoid.Health < .1--]]
  5774. local S = humanoid.Parent:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5775. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", humanoid.Parent:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  5776. S.MaxForce = Vector3.new(0, math.huge, 0)
  5777. S.Velocity = Vector3.new(0, -.1, 0)
  5778. wait(duration)
  5779. S.MaxForce = Vector3.new(0, 0, 0)
  5780. Jd.Value = false
  5781. end
  5782. local TimeC = runServ:connect(function()
  5783. game.Lighting.Brightness = 0
  5784. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  5785. game.Lighting.TimeOfDay = 4
  5786. game.Lighting.FogEnd = 1000
  5787. game.Lighting.FogColor = TBlast.BrickColor.Color
  5788. for i, P in pairs(TPlayers) do
  5789. if P then
  5790. local cHar = P:WaitForChild("Character")
  5791. local hUm = FindHum(cHar)
  5792. local Jd = hUm:FindFirstChild("JumpedValue")
  5793. if not Jd then error("Jump Value was not found.") end
  5794. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5795. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  5796. if hUm.WalkSpeed > .8 then
  5797. hUm.WalkSpeed = .8
  5798. elseif hUm.WalkSpeed == 0 then
  5799. end
  5800. if hUm:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  5801. StuntJumpUntil(hUm)
  5802. end
  5803. if hUm:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  5804. S.MaxForce = Vector3.new(0, math.huge, 0)
  5805. S.Velocity = Vector3.new(0, -.1, 0)
  5806. elseif hUm:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  5807. S.MaxForce = Vector3.new(0,0,0)
  5808. end
  5809. end
  5810. end
  5811. for i, H in pairs(THumanoids) do
  5812. if H then
  5813. local cHar = H.Parent
  5814. local Jd = H:FindFirstChild("JumpedValue")
  5815. if not Jd then error("Jump Value was not found.") end
  5816. local S = cHar:WaitForChild("Torso"):FindFirstChild("svFgyuzxC")
  5817. if not S then error("Could not find bodyvelocity.") S = Instance.new("BodyVelocity", cHar:WaitForChild("Torso")) S.MaxForce = Vector3.new(0,0,0) S.Velocity = Vector3.new(0,0,0) end
  5818. if H.WalkSpeed > .8 then
  5819. H.WalkSpeed = .8
  5820. elseif H.WalkSpeed == 0 then
  5821. end
  5822. if H:GetState() == Enum.HumanoidStateType.Jumping and not Jd.Value then
  5823. StuntJumpUntil(H)
  5824. end
  5825. if H.Health < .1 then
  5826. table.remove(THumanoids, i)
  5827. wait(5)
  5828. ClearTHumanoids()
  5829. GetOtherHumanoids()
  5830. end
  5831. if H:GetState() == Enum.HumanoidStateType.Freefall and not Jd.Value then
  5832. S.MaxForce = Vector3.new(0, math.huge, 0)
  5833. S.Velocity = Vector3.new(0, -.1, 0)
  5834. elseif H:GetState() == Enum.HumanoidStateType.RunningNoPhysics and not Jd.Value then
  5835. S.MaxForce = Vector3.new(0,0,0)
  5836. end
  5837. end
  5838. end
  5839. end)
  5840. repeat wait() until not TCtrl or Humanoid.Health < .01
  5841. TimeC:disconnect()
  5842. chatServ:Chat(Head, "Time release.", 2)
  5843. game.Lighting.Brightness = RecentBrightness
  5844. game.Lighting.OutdoorAmbient = RecentOutDoorAmbient
  5845. game.Lighting.TimeOfDay = RecentTimeOfDay
  5846. game.Lighting.FogEnd = RecentFogEnd
  5847. game.Lighting.FogColor = RecentFogColor
  5848. wait(.1)
  5849. ClearTHumanoids()
  5850. ClearTPlayers()
  5851. end
  5852.  
  5853. function FindHum(parent)
  5854. local hm = nil
  5855. for _, HM in pairs(parent:GetChildren()) do
  5856. if HM:IsA("Humanoid") then
  5857. hm = HM
  5858. end
  5859. end
  5860. return hm
  5861. end
  5862.  
  5863. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  5864. for _,c in pairs(workspace:children()) do
  5865. local hum=FindHum(c)
  5866. if hum~=nil then
  5867. local head=c:findFirstChild("Torso")
  5868. if head~=nil then
  5869. local targ=head.Position-Part.Position
  5870. local mag=targ.magnitude
  5871. if mag<=magni and c.Name~=Player.Name then
  5872. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  5873. end
  5874. end
  5875. end
  5876. end
  5877. end
  5878.  
  5879. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  5880. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  5881. end
  5882.  
  5883. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  5884. LastPoint=Point
  5885. function effect(Color,Ref,LP,P1,returnn)
  5886. local effectsmsh=Instance.new("CylinderMesh")
  5887. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5888. effectsmsh.Name="Mesh"
  5889. local effectsg=Instance.new("Part")
  5890. effectsg.formFactor=3
  5891. effectsg.CanCollide=false
  5892. effectsg.Name="Eff"
  5893. effectsg.Locked=true
  5894. effectsg.Anchored=true
  5895. effectsg.Size=Vector3.new(0.5,1,0.5)
  5896. effectsg.Parent=F2
  5897. effectsmsh.Parent=effectsg
  5898. effectsg.BrickColor=BrickColor.new(Color)
  5899. effectsg.Reflectance=Ref
  5900. local point1=P1
  5901. local mg=(LP.p - point1.p).magnitude
  5902. effectsg.Size=Vector3.new(0.5,mg,0.5)
  5903. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  5904. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5905. game:GetService("Debris"):AddItem(effectsg,2)
  5906. if returnn then return effectsg end
  5907. coroutine.resume(coroutine.create(function(Part,Mesh)
  5908. if not returnn then
  5909. for i=0,1,0.05 do
  5910. wait()
  5911. Part.Transparency=1*i
  5912. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  5913. end
  5914. Part.Parent=nil
  5915. end
  5916. end),effectsg,effectsmsh)
  5917. end
  5918.  
  5919. local function CFrameFromTopBack(at, top, back)
  5920. local right = top:Cross(back)
  5921. return CFrame.new(at.x, at.y, at.z,
  5922. right.x, top.x, back.x,
  5923. right.y, top.y, back.y,
  5924. right.z, top.z, back.z)
  5925. end
  5926.  
  5927. F1 = Instance.new("Folder", Character)
  5928. F1.Name = "Effects Folder"
  5929. F2 = Instance.new("Folder", F1)
  5930. F2.Name = "Effects"
  5931.  
  5932. function Triangle(a, b, c)
  5933. --[[local edg1 = (c-a):Dot((b-a).unit)
  5934. local edg2 = (a-b):Dot((c-b).unit)
  5935. local edg3 = (b-c):Dot((a-c).unit)
  5936. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  5937. a, b, c = a, b, c
  5938. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  5939. a, b, c = b, c, a
  5940. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  5941. a, b, c = c, a, b
  5942. else
  5943. assert(false, "unreachable")
  5944. end
  5945.  
  5946. local len1 = (c-a):Dot((b-a).unit)
  5947. local len2 = (b-a).magnitude - len1
  5948. local width = (a + (b-a).unit*len1 - c).magnitude
  5949.  
  5950. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  5951.  
  5952. local list = {}
  5953.  
  5954. if len1 > 0.01 then
  5955. local w1 = Instance.new('WedgePart', workspace)
  5956. w1.FormFactor = 'Custom'
  5957. w1.Material = "Neon"
  5958. if Mode=="Binary" then
  5959. w1.BrickColor = BrickColor.new("White")
  5960. else
  5961. w1.BrickColor = BrickColor.new("Dark indigo")
  5962. end
  5963. w1.Transparency = 0
  5964. w1.Reflectance = 0
  5965. w1.CanCollide = false
  5966. NoOutline(w1)
  5967. local sz = Vector3.new(0.2, width, len1)
  5968. w1.Size = sz
  5969. local sp = Instance.new("SpecialMesh",w1)
  5970. sp.MeshType = "Wedge"
  5971. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  5972. w1:BreakJoints()
  5973. w1.Anchored = true
  5974. w1.Transparency = 0.7
  5975. game:GetService("Debris"):AddItem(w1,25)
  5976. table.insert(Effects,{w1,"Disappear",.01})
  5977. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  5978. table.insert(list,w1)
  5979. end
  5980.  
  5981. if len2 > 0.01 then
  5982. local w2 = Instance.new('WedgePart', workspace)
  5983. w2.Material = "Neon"
  5984. w2.FormFactor = 'Custom'
  5985. if Mode=="Binary" then
  5986. w2.BrickColor = BrickColor.new("White")
  5987. else
  5988. w2.BrickColor = BrickColor.new("Dark indigo")
  5989. end
  5990. w2.Transparency = 0
  5991. w2.Reflectance = 0
  5992. w2.CanCollide = false
  5993. NoOutline(w2)
  5994. local sz = Vector3.new(0.2, width, len2)
  5995. w2.Size = sz
  5996. local sp = Instance.new("SpecialMesh",w2)
  5997. sp.MeshType = "Wedge"
  5998. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  5999. w2:BreakJoints()
  6000. w2.Anchored = true
  6001. w2.Transparency = 0.7
  6002. game:GetService("Debris"):AddItem(w2,25)
  6003. table.insert(Effects,{w2,"Disappear",.01})
  6004. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  6005. table.insert(list,w2)
  6006. end
  6007. return unpack(list)--]]
  6008. end
  6009.  
  6010. --[[
  6011. Things for effects
  6012. put the variables in one table
  6013. like effect={brick,interval,i}
  6014. ]]
  6015. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6016. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  6017. prt.Anchored=true
  6018. prt.CFrame=cframe
  6019. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  6020. game:GetService("Debris"):AddItem(prt,5)
  6021. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  6022. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  6023. for i=0,1,delay do
  6024. wait()
  6025. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  6026. Part.Transparency=i
  6027. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  6028. end
  6029. Part.Parent=nil
  6030. end),prt,msh)]]
  6031. end
  6032.  
  6033. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6034. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  6035. prt.Anchored=true
  6036. prt.CFrame=cframe
  6037. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  6038. game:GetService("Debris"):AddItem(prt,5)
  6039. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  6040. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  6041. local wld=nil
  6042. for i=0,1,delay do
  6043. wait()
  6044. Part.CFrame=Part.CFrame
  6045. Part.Transparency=i
  6046. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  6047. end
  6048. Part.Parent=nil
  6049. end),prt,msh)]]
  6050. end
  6051.  
  6052. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6053. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  6054. prt.Anchored=true
  6055. prt.CFrame=cframe
  6056. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  6057. game:GetService("Debris"):AddItem(prt,5)
  6058. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  6059. end
  6060.  
  6061. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6062. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  6063. prt.Anchored=true
  6064. prt.CFrame=cframe
  6065. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  6066. game:GetService("Debris"):AddItem(prt,5)
  6067. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  6068. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  6069. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  6070. for i=0,1,delay do
  6071. wait()
  6072. Part.CFrame=Part.CFrame
  6073. Part.Transparency=i
  6074. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  6075. end
  6076. Part.Parent=nil
  6077. end),prt,msh)]]
  6078. end
  6079.  
  6080. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6081. local prt=part(3,F2,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  6082. prt.Anchored=true
  6083. prt.CFrame=cframe
  6084. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  6085. game:GetService("Debris"):AddItem(prt,5)
  6086. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  6087. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  6088. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  6089. for i=0,1,delay do
  6090. wait()
  6091. Part.CFrame=Part.CFrame
  6092. Part.Transparency=i
  6093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  6094. end
  6095. Part.Parent=nil
  6096. end),prt,msh)]]
  6097. end
  6098.  
  6099. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  6100. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  6101. prt.Anchored=true
  6102. prt.CFrame=cframe
  6103. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  6104. game:GetService("Debris"):AddItem(prt,5)
  6105. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  6106. end
  6107.  
  6108. function ElecEffect(cff,x,y,z)
  6109. local prt=part(3,F2,0,0,BrickColor.new("Dark indigo"),"Part",vt(1,1,1))
  6110. prt.Anchored=true
  6111. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  6112. prt.CFrame=cf(prt.Position)
  6113. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  6114. game:GetService("Debris"):AddItem(prt,2)
  6115. xval=math.random()/2
  6116. yval=math.random()/2
  6117. zval=math.random()/2
  6118. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  6119. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  6120. end
  6121.  
  6122. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  6123. --[[p0=pos1
  6124. p1=pos2
  6125. tym=times
  6126. ofs=offset
  6127. col=color
  6128. th=size
  6129. tra=transparency
  6130. last=lastingtime]]
  6131. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  6132. for i=1,tym do
  6133. local li = Instance.new("Part",F2) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  6134. li.Material = "Neon"
  6135. 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)])
  6136. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  6137. if tym == i then
  6138. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  6139. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  6140. else
  6141. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  6142. end
  6143. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game:GetService("Debris"):AddItem(li,last)
  6144. end
  6145. end
  6146.  
  6147. local DragTable = {}
  6148.  
  6149. function Bringer()
  6150. for i, d in pairs(DragTable) do
  6151. if d then
  6152. if d:IsA("BodyPosition") then
  6153. local tem = d:FindFirstChild("Time")
  6154. if not tem then
  6155. tem = Instance.new("NumberValue")
  6156. tem.Parent = d
  6157. tem.Name = "Time"
  6158. tem.Value = 0
  6159. end
  6160. if tem.Value < 1.5 then
  6161. tem.Value = tem.Value+.1
  6162. d.Position = RootPart.Position
  6163. else
  6164. game:GetService("Debris"):AddItem(tem, 0)
  6165. game:GetService("Debris"):AddItem(d, 0)
  6166. table.remove(DragTable, i)
  6167. end
  6168. end
  6169. end
  6170. end
  6171. end
  6172.  
  6173. runServ:connect(function()
  6174. Bringer()
  6175. end)
  6176.  
  6177. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Duration,KnockbackType,decreaseblock)
  6178. if hit.Parent==nil then
  6179. return
  6180. end
  6181. local H = nil
  6182. h=hit.Parent:FindFirstChild("Humanoid")
  6183. for _,v in pairs(hit.Parent:children()) do
  6184. if v:IsA("Humanoid") then
  6185. h=v
  6186. H = v
  6187. end
  6188. end
  6189. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  6190. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  6191. end
  6192. if hit.Parent.className=="Hat" then
  6193. hit=hit.Parent.Parent:findFirstChild("Head")
  6194. end
  6195. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  6196. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  6197. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  6198. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  6199. return
  6200. end]]
  6201. --hs(hit,1.2)
  6202. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  6203. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  6204. c=Instance.new("ObjectValue")
  6205. c.Name="creator"
  6206. c.Value=game:service("Players").LocalPlayer
  6207. c.Parent=h
  6208. game:GetService("Debris"):AddItem(c,.5)
  6209. Damage=math.random(minim,maxim)
  6210. if Mode=="Demon" then
  6211. Damage=Damage*damagebonus
  6212. end
  6213. -- h:TakeDamage(Damage)
  6214. blocked=false
  6215. block=hit.Parent:findFirstChild("Block")
  6216. if block~=nil then
  6217. print(block.className)
  6218. if block.className=="NumberValue" then
  6219. if block.Value>0 then
  6220. blocked=true
  6221. if decreaseblock==nil then
  6222. block.Value=block.Value-1
  6223. end
  6224. end
  6225. end
  6226. if block.className=="IntValue" then
  6227. if block.Value>0 then
  6228. blocked=true
  6229. if decreaseblock~=nil then
  6230. block.Value=block.Value-1
  6231. end
  6232. end
  6233. end
  6234. end
  6235. if blocked==false then
  6236. --h:TakeDamage(Damage)
  6237. --H.Health=H.Health-Damage
  6238. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  6239. else
  6240. --H.Health=H.Health-(Damage/2)
  6241. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  6242. end
  6243. if Type=="Knockdown" then
  6244. hum=hit.Parent.Humanoid
  6245. hum.PlatformStand=true
  6246. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  6247. local tor = hum.Parent:FindFirstChild("Torso")
  6248. if tor then
  6249. tor.Velocity = tor.CFrame.lookVector*-10
  6250. end
  6251. coroutine.resume(coroutine.create(function(HHumanoid)
  6252. swait(1)
  6253. HHumanoid.PlatformStand=false
  6254. end),hum)
  6255. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  6256. elseif Type=="Breaker" then
  6257. hum=hit.Parent.Humanoid
  6258. hum.PlatformStand=true
  6259. hum:ChangeState(Enum.HumanoidStateType.FallingDown)
  6260. hum.JumpPower = 20
  6261. local tor = hum.Parent:FindFirstChild("Torso")
  6262. if tor then
  6263. tor.Velocity = tor.CFrame.lookVector*-50
  6264. end
  6265. coroutine.resume(coroutine.create(function(HHumanoid)
  6266. swait(1)
  6267. HHumanoid.PlatformStand=false
  6268. end),hum)
  6269. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  6270. if H.MaxHealth > 100000000 then
  6271. H.MaxHealth = 100
  6272. wait()
  6273. end
  6274. elseif Type=="Normal" then
  6275. vp=Instance.new("BodyVelocity")
  6276. vp.P=500
  6277. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  6278. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  6279. if KnockbackType==1 then
  6280. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  6281. elseif KnockbackType==2 then
  6282. vp.velocity=Property.CFrame.lookVector*knockback
  6283. end
  6284. if knockback>-100 then
  6285. vp.Parent=hit.Parent.Torso
  6286. end
  6287. game:GetService("Debris"):AddItem(vp,.5)
  6288. elseif Type=="Lifesteal" then
  6289. for i=1,5 do
  6290. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  6291. end
  6292. vp=Instance.new("BodyVelocity")
  6293. vp.P=500
  6294. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  6295. if KnockbackType==1 then
  6296. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  6297. elseif KnockbackType==2 then
  6298. vp.velocity=Property.CFrame.lookVector*knockback
  6299. end
  6300. if knockback>-250 then
  6301. vp.Parent=hit.Parent.Torso
  6302. end
  6303. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  6304. game:GetService("Debris"):AddItem(vp,.5)
  6305. Heal=math.ceil(Damage/3)
  6306. Humanoid.Health=Humanoid.Health+Heal
  6307. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  6308. elseif Type == "DevilStyle" then
  6309. for i=1,5 do
  6310. --MagicBlood(BrickColor.new("Dark indigo"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  6311. end
  6312. vp=Instance.new("BodyPosition")
  6313. vp.P = 80000
  6314. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6315. if KnockbackType==1 then
  6316. vp.Position=RootPart.Position
  6317. elseif KnockbackType==2 then
  6318. vp.Position=RootPart.Position
  6319. end
  6320. if H.MaxHealth > 100000000 then
  6321. H.MaxHealth = 100
  6322. wait()
  6323. end
  6324. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  6325. vp.Parent=hit.Parent.Torso
  6326. table.insert(DragTable, vp)
  6327. Heal=math.ceil(Damage/5)
  6328. Humanoid.Health=Humanoid.Health+Heal
  6329. showDamage(RootPart,Heal,.5,BrickColor.new("Bright green"))
  6330. elseif Type == "Dragger" then
  6331. for i=1,5 do
  6332. --MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  6333. end
  6334. vp=Instance.new("BodyPosition")
  6335. vp.P = 80000
  6336. vp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6337. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  6338. if KnockbackType==1 then
  6339. vp.Position=RootPart.Position
  6340. elseif KnockbackType==2 then
  6341. vp.Position=RootPart.Position
  6342. end
  6343. vp.Parent=hit.Parent.Torso
  6344. table.insert(DragTable, vp)
  6345. elseif Type=="Up" then
  6346. hit.Velocity = Vector3.new(0, 100, 0)
  6347. H:ChangeState(Enum.HumanoidStateType.FallingDown)
  6348. elseif Type=="Snare" then
  6349. bp=Instance.new("BodyPosition")
  6350. bp.P=2000
  6351. bp.D=100
  6352. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6353. bp.position=hit.Parent.Torso.Position
  6354. bp.Parent=hit.Parent.Torso
  6355. game:GetService("Debris"):AddItem(bp,1)
  6356. elseif Type=="Charge" then
  6357. Charge=Charge+1
  6358. coroutine.resume(coroutine.create(function(Part)
  6359. swait(0.05)
  6360. for i=1,5 do
  6361. swait(5)
  6362. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  6363. --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)
  6364. newdam=math.random(1,5)
  6365. if blocked==false then
  6366. H.Health = H.Health-newdam
  6367. showDamage(hit.Parent,newdam,.5,BrickColor:Red())
  6368. else
  6369. H.Health = H.Health-newdam/2
  6370. showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  6371. end
  6372. end
  6373. end),hit)
  6374. end
  6375. local debounceD=Instance.new("BoolValue")
  6376. debounceD.Name="DebounceHit"
  6377. debounceD.Parent=hit.Parent
  6378. debounceD.Value=true
  6379. if Duration < .2 then
  6380. Duration = .2
  6381. end
  6382. game:GetService("Debris"):AddItem(debounceD,Duration)
  6383. local c=Instance.new("ObjectValue")
  6384. c.Name="creator"
  6385. c.Value=Player
  6386. c.Parent=h
  6387. game:GetService("Debris"):AddItem(c,Duration)
  6388. H.Health=H.Health-Damage
  6389. CRIT=false
  6390. hitDeb=true
  6391. AttackPos=6
  6392. end
  6393. end
  6394.  
  6395. showDamage=function(Char,Dealt,du,Color)
  6396. --[[c=Instance.new("Part")
  6397. c.Transparency=0
  6398. c.BrickColor=Color
  6399. c.Material = "Neon"
  6400. c.Name="DamageDisplay"
  6401. c.TopSurface=0
  6402. c.BottomSurface=0
  6403. c.formFactor="Plate"
  6404. c.Size=Vector3.new(1,.4,1)
  6405. ms=Instance.new("CylinderMesh")
  6406. ms.Scale=Vector3.new(.8,.8,.8)
  6407. local bill = Instance.new("BillboardGui")
  6408. bill.Parent = c
  6409. bill.AlwaysOnTop = true
  6410. bill.Name = "YEA"
  6411. bill.Size = UDim2.new(4, 0, 4, 0)
  6412. bill.StudsOffset = Vector3.new(0, 1, 0)
  6413. local textl = Instance.new("TextLabel")
  6414. textl.Parent = bill
  6415. textl.Name = "WHYYYYYYYY"
  6416. textl.BackgroundTransparency = 1
  6417. textl.Size = UDim2.new(1, 0, 1, 0)
  6418. textl.Font = "SourceSansLight"
  6419. textl.Text = "-"..Dealt..""
  6420. textl.TextColor3 = Color3.new(40/255, 0,60/255)
  6421. textl.TextScaled = true
  6422. textl.TextStrokeColor3 = Color3.new(139/255, 0, 209/255)
  6423. textl.TextStrokeTransparency = 0
  6424. if CRIT==true then
  6425. ms.Scale=Vector3.new(1,1.25,1)
  6426. end
  6427. ms.Parent=c
  6428. c.Reflectance=0
  6429. Instance.new("BodyGyro").Parent=c
  6430. c.Parent=F2
  6431. if Char:findFirstChild("Head")~=nil then
  6432. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  6433. elseif Char.Parent:findFirstChild("Head")~=nil then
  6434. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  6435. end
  6436. local f=Instance.new("BodyPosition")
  6437. f.P=2000
  6438. f.D=100
  6439. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6440. f.position=c.Position+Vector3.new(0,3,0)
  6441. f.Parent=c
  6442. game:GetService("Debris"):AddItem(c,0)
  6443. c.CanCollide=false
  6444. c.CanCollide=false--]]
  6445. end
  6446.  
  6447. combo=0
  6448. function ob1d(mouse)
  6449. hold=true
  6450. if attack==true or equipped==false then return end
  6451. if Mode=="Binary" then
  6452. idle=0
  6453. if Anim=="Run" then
  6454. SpinSlash()
  6455. else
  6456. if combo==0 then
  6457. combo=1
  6458. attackone()
  6459. elseif combo==1 then
  6460. combo=2
  6461. attacktwo()
  6462. elseif combo==2 then
  6463. combo=0
  6464. attackthree()
  6465. end
  6466. end
  6467. else
  6468. if combo==0 then
  6469. combo=1
  6470. Demonattackone()
  6471. elseif combo==1 then
  6472. combo=2
  6473. Demonattacktwo()
  6474. elseif combo==2 then
  6475. combo=0
  6476. Demonattackthree()
  6477. end
  6478. end
  6479. coroutine.resume(coroutine.create(function()
  6480. for i=1,20 do
  6481. if attack==false then
  6482. swait()
  6483. end
  6484. end
  6485. if attack==false then
  6486. combo=0
  6487. --equipanim()
  6488. end
  6489. end))
  6490. end
  6491.  
  6492. function ob1u(mouse)
  6493. hold = false
  6494. end
  6495.  
  6496. buttonhold = false
  6497.  
  6498. eul=0
  6499. holdx=false
  6500. equipped=false
  6501. local nostop = false
  6502.  
  6503. function FireBullet(Shooter, Velocity, MinDam, MaxDam, SIZe)
  6504. local Bullet = Instance.new("Part", F2)
  6505. Bullet.BrickColor = BrickColor.new("Dark indigo")
  6506. Bullet.Material = "Neon"
  6507. Bullet.Transparency = .5
  6508. Bullet.CanCollide = false
  6509. Bullet.Name = "Bullet"
  6510. Bullet.Anchored = false
  6511. Bullet.Locked = true
  6512. Bullet.Size = SIZe
  6513. Bullet.Shape = "Ball"
  6514. Bullet.CFrame = Shooter.CFrame
  6515. local BVel = Instance.new("BodyVelocity",Bullet)
  6516. BVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  6517. BVel.Velocity = Shooter.CFrame.lookVector*Velocity
  6518. local bill = Instance.new("BillboardGui")
  6519. bill.Parent = Shooter
  6520. bill.Name = "pew"
  6521. bill.Size = UDim2.new(1.6, 0, 1.6, 0)
  6522. local IL = Instance.new("ImageLabel")
  6523. IL.Parent = bill
  6524. IL.Name = "Flash"
  6525. IL.BackgroundTransparency = 1
  6526. IL.Size = UDim2.new(1, 0, 1, 0)
  6527. IL.Image = "rbxasset://textures/particles/sparkles_main.dds"
  6528. IL.ImageColor3 = Color3.new(170/255, 0, 1)
  6529. local Flash = Instance.new("PointLight", Shooter)
  6530. Flash.Brightness = 100
  6531. Flash.Color = IL.ImageColor3
  6532. Flash.Range = 10
  6533. Flash.Shadows = true
  6534. so("http://roblox.com/asset/?id=200633327",Shooter,1,.7)
  6535. game:GetService("Debris"):AddItem(Bullet, 10)
  6536. game:GetService("Debris"):AddItem(bill, .1)
  6537. game:GetService("Debris"):AddItem(Flash, .1)
  6538. local function BoomEffect(Cframe)
  6539. local Boo = Instance.new("Part", F2)
  6540. Boo.BrickColor = BrickColor.new("Dark indigo")
  6541. Boo.Transparency = .5
  6542. Boo.Material = "Neon"
  6543. Boo.Anchored = true
  6544. Boo.CanCollide = false
  6545. Boo.CFrame = Cframe
  6546. game:GetService("Debris"):AddItem(Bullet, 0)
  6547. Boo.Size = Vector3.new(Bullet.Size.X*10,Bullet.Size.X*10,Bullet.Size.X*10)
  6548. MagniDamage(Boo,(Bullet.Size.X*10)*2,MinDam+5,MaxDam+5,1,"Breaker")
  6549. so("http://roblox.com/asset/?id=206082273",Shooter,.5,1)
  6550. local BooM = Instance.new("SpecialMesh", Boo)
  6551. BooM.MeshType = "Sphere"
  6552. for i = .5, 2, .3 do
  6553. wait()
  6554. BooM.Scale = Vector3.new(i*2,i*2,i*2)
  6555. Boo.Transparency = i/2
  6556. end
  6557. game:GetService("Debris"):AddItem(Boo, 0)
  6558. end
  6559. local HitSomething = false
  6560. Bullet.Touched:connect(function(part)
  6561. local HUM = FindHum(part.Parent)
  6562. if HUM and HUM ~= Humanoid and not HitSomething then
  6563. local Tor = part.Parent:FindFirstChild("Torso")
  6564. if Tor then
  6565. HitSomething = true
  6566. Damagefunc(Tor,MinDam/2,MaxDam/2,10,"Breaker",RootPart,.2,.5,1)
  6567. BoomEffect(Bullet.CFrame)
  6568. end
  6569. end
  6570. if not HUM and not HitSomething then
  6571. if part.Anchored == true and part.Name ~= "Effect" and part.Name ~= "Handle" then
  6572. BoomEffect(Bullet.CFrame)
  6573. end
  6574. end
  6575. end)
  6576. end
  6577.  
  6578. local StopLaser = false
  6579. function FireLaser(Shooter, Duration, Range, Size, minDam, maxDam, BuildUp, FirstMes, LastMes, message)
  6580. local BeamStart = Instance.new("Part", F2)
  6581. BeamStart.BrickColor = BrickColor.new("Dark indigo")
  6582. BeamStart.Material = "Neon"
  6583. BeamStart.Transparency = 0
  6584. BeamStart.Name = "BeamStart"
  6585. BeamStart.Anchored = false
  6586. BeamStart.CanCollide = false
  6587. BeamStart.Locked = true
  6588. BeamStart.Size = Size
  6589. BeamStart.CFrame = Shooter.CFrame
  6590. local BSMesh = Instance.new("SpecialMesh", BeamStart)
  6591. BSMesh.MeshType = "Sphere"
  6592. local BSWeld = Instance.new("Weld", BeamStart)
  6593. BSWeld.Part0 = Shooter
  6594. BSWeld.Part1 = BeamStart
  6595. BSWeld.C0 = CFrame.new(0,0,-(Size.Z/2))
  6596. if message then
  6597. chatServ:Chat(Head, FirstMes, 2)
  6598. end
  6599. if BuildUp > .008 then
  6600. BSMesh.Scale = Vector3.new(0,0,0)
  6601. local BeamCharge = Instance.new("Sound", BeamStart)
  6602. BeamCharge.Volume = 1
  6603. BeamCharge.SoundId = "http://roblox.com/asset/?id=244578827"
  6604. BeamCharge.Pitch = 0.8
  6605. BeamCharge:Play()
  6606. for i = 0, BuildUp, .008 do
  6607. wait()
  6608. BSMesh.Scale = Vector3.new(i/BuildUp,i/BuildUp,i/BuildUp)
  6609. BSWeld.C0 = CFrame.new(0,0,-((i*(Size.Z/2))/BuildUp))
  6610. BeamStart.Transparency = ((-BuildUp+i)*-1)
  6611. MagicBlood(BrickColor.new("Dark indigo"),Shooter.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  6612. end
  6613. BeamCharge:Pause()
  6614. game:GetService("Debris"):AddItem(BeamCharge, 0)
  6615. end
  6616. if message then
  6617. chatServ:Chat(Head, LastMes, 2)
  6618. end
  6619. local Beam = Instance.new("Part", F2)
  6620. Beam.BrickColor = BrickColor.new("Dark indigo")
  6621. Beam.Material = "Neon"
  6622. Beam.Name = "Beam"
  6623. Beam.Transparency = 0
  6624. Beam.Anchored = true
  6625. Beam.CanCollide = false
  6626. Beam.Locked = true
  6627. local BeamMesh = Instance.new("SpecialMesh", Beam)
  6628. BeamMesh.MeshType = "Cylinder"
  6629. local BeamEnd = Instance.new("Part", F2)
  6630. BeamEnd.BrickColor = BrickColor.new("Dark indigo")
  6631. BeamEnd.Material = "Neon"
  6632. BeamEnd.Transparency = 0
  6633. BeamEnd.Name = "BeamEnd"
  6634. BeamEnd.Anchored = true
  6635. BeamEnd.CanCollide = false
  6636. BeamEnd.Locked = true
  6637. BeamEnd.Size = Vector3.new(Size.X, Size.X, Size.X)
  6638. local BEMesh = Instance.new("SpecialMesh", BeamEnd)
  6639. BEMesh.MeshType = "Sphere"
  6640. local BeamFire = Instance.new("Sound", Beam)
  6641. BeamFire.Volume = 1
  6642. BeamFire.PlayOnRemove = true
  6643. BeamFire.SoundId = "http://roblox.com/asset/?id=376107717"
  6644. BeamFire.Pitch = 1
  6645. BeamFire:Destroy()
  6646. game:GetService("Debris"):AddItem(BeamFire, 5)
  6647. local BeamSound = Instance.new("Sound", Beam)
  6648. BeamSound.Volume = 1
  6649. BeamSound.Looped = true
  6650. BeamSound.SoundId = "http://roblox.com/asset/?id=254847708"
  6651. BeamSound.Pitch = 1
  6652. BeamSound:Play()
  6653. local TEM = 0
  6654. local run = runServ:connect(function()
  6655. local Hit, Pos = rayCast(BeamStart.Position, BeamStart.CFrame.lookVector, 999, Character)
  6656. Beam.Size = Vector3.new((BeamStart.CFrame.p - Pos).magnitude,Size.X,Size.X)
  6657. Beam.CFrame = CFrame.new((BeamStart.CFrame.p + Pos)/2,BeamStart.CFrame.p)*CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  6658. BeamEnd.CFrame = CFrame.new(Pos)
  6659. if Hit then
  6660. if Beam.Transparency == 0 then
  6661. MagicBlock(BrickColor.new("Dark indigo"),BeamEnd.CFrame*cf(math.random(-200,200)/100,-math.random(0,1)/100,math.random(-200,200)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,Size.X*2,Size.X*2,Size.X*2,0.05)
  6662. end
  6663. end
  6664. end)
  6665. local run2 = runServ:connect(function()
  6666. MagniDamage(BeamEnd,Range,minDam,maxDam,1,"Breaker")
  6667. MagniDamage(Beam,Range,minDam*4,maxDam*4,1,"LifeSteal")
  6668. end)
  6669. repeat TEM = TEM+.1 wait() until TEM > Duration-1 or StopLaser
  6670. StopLaser = false
  6671. so("http://roblox.com/asset/?id=161006163",Shooter,1,.4)
  6672. BeamSound:Pause()
  6673. game:GetService("Debris"):AddItem(BeamSound, 0)
  6674. for i = 0, 1, .04 do
  6675. wait()
  6676. BeamStart.Transparency = i
  6677. Beam.Transparency = i
  6678. BeamEnd.Transparency = i
  6679. BSMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  6680. BeamMesh.Scale = Vector3.new(1,(-1+i)*-1,(-1+i)*-1)
  6681. BEMesh.Scale = Vector3.new((-1+i)*-1,(-1+i)*-1,1)
  6682. end
  6683. run:disconnect()
  6684. run2:disconnect()
  6685. game:GetService("Debris"):AddItem(BeamStart, 0)
  6686. game:GetService("Debris"):AddItem(Beam, 0)
  6687. game:GetService("Debris"):AddItem(BeamEnd, 0)
  6688. end
  6689.  
  6690. local CanLaser = true
  6691. local Hover = false
  6692. local CMHP = false
  6693. local MadePlatform = false
  6694. local HovLaser = false
  6695.  
  6696. function CreateGround()
  6697. local G1 = Instance.new("Part", workspace)
  6698. local G2 = Instance.new("Part", workspace)
  6699. G1.BrickColor = BrickColor.new("Earth green")
  6700. G2.BrickColor = BrickColor.new("Pine Cone")
  6701. G1.Material, G2.Material = "Grass", "Grass"
  6702. G1.Name, G2.Name = "GrassBaseplate", "DirtBaseplate"
  6703. G1.Anchored, G2.Anchored = true, true
  6704. G1.Locked, G2.Locked = true, true
  6705. G1.Size, G2.Size = Vector3.new(2048, 10, 2048), Vector3.new(2048, 100, 2048)
  6706. G1.CFrame = RootPart.CFrame*CFrame.new(0,-3-(G1.Size.Y/2), 0)
  6707. G2.CFrame = G1.CFrame*CFrame.new(0,-5-(G2.Size.Y/2), 0)
  6708. return G1, G2
  6709. end
  6710.  
  6711.  
  6712. function CreateMiniPlatforms()
  6713. if not CMHP then
  6714. CMHP = true
  6715. local Plat = Instance.new("Part", workspace)
  6716. Plat.BrickColor = BrickColor.new("Dark indigo")
  6717. Plat.Transparency = .8
  6718. Plat.Name = "Platform"
  6719. Plat.Material = "Neon"
  6720. Plat.Anchored = true
  6721. Plat.CanCollide = true
  6722. Plat.Locked = true
  6723. Plat.Size = Vector3.new(10, 10, 1)
  6724. Plat.CFrame = (RootPart.CFrame * CFrame.new(0, -4, 0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  6725. local PMesh = Instance.new("SpecialMesh", Plat)
  6726. PMesh.MeshType = "Sphere"
  6727. local function gh()
  6728. if HovLaser then
  6729. FireLaser(Plat, 0, 8, Vector3.new(3.6,3.6,6.8), 100, 300, 0, _, _, false)
  6730. end
  6731. end
  6732. delay(.1,gh)
  6733. CMHP = false
  6734. for i = .8, 1, .04 do
  6735. wait()
  6736. Plat.Transparency = i
  6737. Plat.Parent = F2
  6738. end
  6739. game:GetService("Debris"):AddItem(Plat, 0)
  6740. end
  6741. end
  6742.  
  6743. runServ:connect(function()
  6744. if Hover and Humanoid.Health > .1 then
  6745. CreateMiniPlatforms()
  6746. end
  6747. end)
  6748.  
  6749. Humanoid.Changed:connect(function()
  6750. if Humanoid.Health < .1 then
  6751. game:GetService("Debris"):AddItem(Grass, 0)
  6752. game:GetService("Debris"):AddItem(Dirt, 0)
  6753. end
  6754. end)
  6755.  
  6756. function key(key)
  6757. if key == "j" then
  6758. Hover = not Hover
  6759. end
  6760. if key == "l" and Hover and not HovLaser then
  6761. HovLaser = true
  6762. wait(.001)
  6763. HovLaser = false
  6764. end
  6765. if key == "k" then
  6766. if not MadePlatform then
  6767. MadePlatform = true
  6768. Grass, Dirt = CreateGround()
  6769. Hover = false
  6770. else
  6771. MadePlatform = false
  6772. game:GetService("Debris"):AddItem(Grass, 0)
  6773. game:GetService("Debris"):AddItem(Dirt, 0)
  6774. end
  6775. end
  6776. if key == "q" and not Firing and DCOn and CanUseCannon then
  6777. Firing = true
  6778. keyConnect = MMouse.KeyUp:connect(function(key)
  6779. if key == "q" and Firing then
  6780. Firing = false
  6781. end
  6782. end)
  6783. repeat
  6784. wait(.1)
  6785. if C == 1 then
  6786. C = 2
  6787. FireBullet(CHole1, 800, 1, 5, Vector3.new(.5,.5,.5))
  6788. elseif C == 2 then
  6789. C = 1
  6790. FireBullet(CHole2, 800, 1, 5, Vector3.new(.5,.5,.5))
  6791. end
  6792. until not Firing
  6793. keyConnect:disconnect()
  6794. end
  6795. if key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 25084774 or key == "p" and not Firing and DCOn and CanUseCannon and Player.UserId == 25084774 then
  6796. Firing = true
  6797. keyConnect = MMouse.KeyUp:connect(function(key)
  6798. if key == "p" and Firing then
  6799. StopLaser = true
  6800. CanLaser = false
  6801. wait(0.05)
  6802. Firing = false
  6803. wait(0.05)
  6804. CanLaser = true
  6805. keyConnect:disconnect()
  6806. end
  6807. end)
  6808. if C == 1 then
  6809. C = 2
  6810. FireLaser(CHole1, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 0.05, "You made me do this..", "Planet buster!", true)
  6811. elseif C == 2 then
  6812. C = 1
  6813. FireLaser(CHole2, math.huge, 300, Vector3.new(150.8,150.8,1186), 6000000, 90000000, 0.056, "You made me do this..", "Planet buster!", true)
  6814. end
  6815. end
  6816. if key == "e" then
  6817. if DCOn and CanUseCannon and not Firing then
  6818. if C == 1 then
  6819. C = 2
  6820. FireBullet(CHole1, 50, 60, 90, Vector3.new(.6,.6,.6))
  6821. elseif C == 2 then
  6822. C = 1
  6823. FireBullet(CHole2, 50, 60, 90, Vector3.new(.6,.6,.6))
  6824. end
  6825. end
  6826. end
  6827. if key == "r" then
  6828. if DCOn and CanUseCannon and not Firing then
  6829. if C == 1 then
  6830. C = 2
  6831. FireBullet(CHole1, 300, 5, 20, Vector3.new(.3,.3,.3))
  6832. elseif C == 2 then
  6833. C = 1
  6834. FireBullet(CHole2, 300, 5, 20, Vector3.new(.3,.3,.3))
  6835. end
  6836. end
  6837. end
  6838. if key == "t" then
  6839. if DCOn and CanUseCannon and not Firing then
  6840. Firing = true
  6841. FireBullet(CHole2, 10, 100, 200, Vector3.new(6,6,6))
  6842. wait(1.5)
  6843. Firing = false
  6844. end
  6845. end
  6846. if key == "y" then
  6847. if DCOn and CanUseCannon and not Firing and CanLaser then
  6848. Firing = true
  6849. FireLaser(CHole1, 25, 10, Vector3.new(4.6,4.6,8.8), 60, 100, 1, "Were you ready for this?..", "Nether Blast!", true)
  6850. wait(0.05)
  6851. Firing = false
  6852. end
  6853. end
  6854. if key == "u" then
  6855. if DCOn and CanUseCannon and not Firing and CanLaser then
  6856. Firing = true
  6857. CanLaser = false
  6858. FireLaser(CHole2, 10, 40, Vector3.new(20.8,20.8,46), 600000, 9000000, 1.5, "This time, it's over!", "Nether Obliterator!", true)
  6859. wait(0.05)
  6860. Firing = false
  6861. wait(0.05)
  6862. CanLaser = true
  6863. end
  6864. end
  6865. if key == "h" then
  6866. if DCOn and CanUseCannon and not Firing and CanLaser then
  6867. if C == 1 then
  6868. C = 2
  6869. FireLaser(CHole1, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  6870. elseif C == 2 then
  6871. C = 1
  6872. FireLaser(CHole2, .3, 2, Vector3.new(.3,.3,2.5), 5, 20, 0, _, _, false)
  6873. end
  6874. end
  6875. end
  6876. if key == "g" and DCOn and CanUseCannon and not Firing and CanLaser then
  6877. Firing = true
  6878. keyConnect = MMouse.KeyUp:connect(function(key)
  6879. if key == "g" and DCOn and CanUseCannon and Firing then
  6880. Firing = false
  6881. StopLaser = true
  6882. CanLaser = false
  6883. wait(3)
  6884. CanLaser = true
  6885. keyConnect:disconnect()
  6886. end
  6887. end)
  6888. if C == 1 then
  6889. C = 2
  6890. FireLaser(CHole1, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?" , true)
  6891. elseif C == 2 then
  6892. C = 1
  6893. FireLaser(CHole2, math.huge, 6, Vector3.new(2,2,4.2), 20, 40, 1, "How about...", "This!?", true)
  6894. end
  6895. end
  6896. if key == "m" then
  6897. MomentumCancel = not MomentumCancel
  6898. if MomentumCancel then
  6899. chatServ:Chat(Head, "Negator: Active", 2)
  6900. else
  6901. chatServ:Chat(Head, "Negator: Inactive", 2)
  6902. end
  6903. end
  6904. if key == "n" then
  6905. if not nostop then
  6906. nostop = true
  6907. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  6908. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
  6909. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  6910. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
  6911. chatServ:Chat(Head, "Stablize Armour! Can't knock me down so easily now, huh?", 2)
  6912. else
  6913. nostop = false
  6914. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  6915. Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, true)
  6916. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
  6917. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
  6918. chatServ:Chat(Head, "Armour Break! Maybe I'll go easy..", 2)
  6919. end
  6920. end
  6921. if key=="c" then
  6922. if guard==true then
  6923. guard=false
  6924. else
  6925. guard=true
  6926. end
  6927. end
  6928. if key=="x" then
  6929. holdx=true
  6930. end
  6931. if attack==true then return end
  6932. if key=="f" then
  6933. if equipped==false then
  6934. equipped=true
  6935. RSH=ch.Torso["Right Shoulder"]
  6936. LSH=ch.Torso["Left Shoulder"]
  6937. --
  6938. RSH.Parent=nil
  6939. LSH.Parent=nil
  6940. --
  6941. RW.Name="Right Shoulder"
  6942. RW.Part0=ch.Torso
  6943. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  6944. RW.C1=cf(0, 0.5, 0)
  6945. RW.Part1=ch["Right Arm"]
  6946. RW.Parent=ch.Torso
  6947. --
  6948. LW.Name="Left Shoulder"
  6949. LW.Part0=ch.Torso
  6950. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  6951. LW.C1=cf(0, 0.5, 0)
  6952. LW.Part1=ch["Left Arm"]
  6953. LW.Parent=ch.Torso
  6954. --
  6955. equipanim()
  6956. else
  6957. equipped=false
  6958. damagebonus = 1
  6959. hideanim()
  6960. swait(0)
  6961. RW.Parent=nil
  6962. LW.Parent=nil
  6963. RSH.Parent=player.Character.Torso
  6964. LSH.Parent=player.Character.Torso
  6965. end
  6966. end
  6967. if equipped==false then return end
  6968. if Mode=="Binary" then
  6969. if key=="q" then
  6970. idle=500
  6971. end
  6972. if key=="z" and hitfloor~=nil then
  6973. BinarySwing()
  6974. end
  6975. if key=="x" then
  6976. BinaryImpulse()
  6977. end
  6978. if key=="c" then
  6979. Bash()
  6980. end
  6981. if key=="v" then
  6982. damagebonus = 50
  6983. UnleashTheDemon()
  6984. end
  6985. end
  6986. if Mode=="Demon" then
  6987. if key == "z" and not Firing then
  6988. if not DCOn then
  6989. DemonCannon()
  6990. DCOn = true
  6991. else
  6992. HideDemonCannon()
  6993. DCOn = false
  6994. end
  6995. end
  6996. if key=="x" then
  6997. LetItBuild()
  6998. end
  6999. if key=="c" then
  7000. YourMoveCreep()
  7001. end
  7002. if key == "b" then
  7003. TCtrl = not TCtrl
  7004. if TCtrl then
  7005. TimeControl()
  7006. end
  7007. end
  7008. end
  7009. if key=="0" then
  7010. Humanoid.WalkSpeed=(16*16)
  7011. end
  7012. end
  7013.  
  7014. function key2(key)
  7015. if key=="0" then
  7016. Humanoid.WalkSpeed=16
  7017. end
  7018. if key=="x" then
  7019. holdx=false
  7020. end
  7021. end
  7022.  
  7023. function s(mouse)
  7024. mouse.Button1Down:connect(function() ob1d(mouse) end)
  7025. mouse.Button1Up:connect(function() ob1u(mouse) end)
  7026. mouse.KeyDown:connect(key)
  7027. mouse.KeyUp:connect(key2)
  7028.  
  7029. player=Player
  7030. ch=Character
  7031. --MMouse=mouse
  7032. end
  7033.  
  7034. function ds(mouse)
  7035. end
  7036.  
  7037. Bin.Selected:connect(s)
  7038. Bin.Deselected:connect(ds)
  7039. print("Fixer the Demon Mercenary loaded.")
  7040.  
  7041. runServ:connect(function()
  7042. if DCOn and CanUseCannon then
  7043. local CCF = CFrame.new(CM2.Position, Vector3.new(MMouse.Hit.p.X, MMouse.Hit.p.Y, MMouse.Hit.p.Z))
  7044. CPos.Position = CM2.Position
  7045. CGyro.CFrame = CCF
  7046. CPos.P = 50000
  7047. end
  7048. end)
  7049.  
  7050. local thenum=0
  7051. while true do
  7052. swait()
  7053. if Mode=="Demon" then
  7054. if thenum>=5 then
  7055. --ElecEffect(prtd7.CFrame,2,4,2)
  7056. thenum=0
  7057. end
  7058. thenum=thenum+1
  7059. for _,c in pairs(Character:children()) do
  7060. for _,v in pairs(c:children()) do
  7061. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  7062. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  7063. v.Parent=nil
  7064. end
  7065. end
  7066. end
  7067. end
  7068. end
  7069. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7070. local velderp=RootPart.Velocity.y
  7071. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7072. if equipped==true then
  7073. if Anim=="Idle" and attack==false and Mode=="Binary" then
  7074. idle=idle+1
  7075. else
  7076. idle=0
  7077. end
  7078. if idleanim>=0.3 then
  7079. idleanim2=true
  7080. elseif idleanim<=0 then
  7081. idleanim2=false
  7082. end
  7083. if idleanim2==false then
  7084. if Anim=="Walk" then
  7085. idleanim=idleanim+0.005
  7086. elseif Anim=="Idle" then
  7087. idleanim=idleanim+0.003
  7088. end
  7089. else
  7090. if Anim=="Walk" then
  7091. idleanim=idleanim-0.005
  7092. elseif Anim=="Idle" then
  7093. idleanim=idleanim-0.003
  7094. end
  7095. end
  7096. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7097. Anim="Jump"
  7098. if attack==false and Mode=="Binary" then
  7099. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  7100. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  7101. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  7102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  7103. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  7104. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  7105. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  7106. end
  7107. if attack==false and Mode=="Demon" then
  7108. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  7109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  7110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  7111. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  7112. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  7113. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  7114. end
  7115. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7116. Anim="Fall"
  7117. if attack==false and Mode=="Binary" then
  7118. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  7119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  7120. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  7121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  7122. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  7123. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  7124. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  7125. end
  7126. if attack==false and Mode=="Demon" then
  7127. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  7128. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  7129. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  7130. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  7131. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  7132. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  7133. end
  7134. elseif torvel<1 and hitfloor~=nil then
  7135. if Anim=="Fall" then
  7136. if velderp<=-120 then
  7137. coroutine.resume(coroutine.create(function()
  7138. Stomp()
  7139. end))
  7140. end
  7141. end
  7142. Anim="Idle"
  7143. if idle<=500 then
  7144. if attack==false and Mode=="Binary" then
  7145. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  7146. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  7147. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  7148. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  7149. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  7150. RH.C0=clerp(RH.C0,RHC0,.2)
  7151. LH.C0=clerp(LH.C0,LHC0,.2)
  7152. end
  7153. if attack==false and Mode=="Demon" then
  7154. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  7155. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  7156. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  7157. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  7158. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  7159. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  7160. end
  7161. else
  7162. if attack==false and Mode=="Binary" then
  7163. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  7164. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  7165. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  7166. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  7167. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  7168. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  7169. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  7170. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  7171. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  7172. end
  7173. end
  7174. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7175. if Anim=="Fall" then
  7176. if velderp<=-120 then
  7177. coroutine.resume(coroutine.create(function()
  7178. Stomp()
  7179. end))
  7180. end
  7181. end
  7182. Anim="Walk"
  7183. if attack==false and Mode=="Binary" then
  7184. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  7185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  7186. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  7187. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  7188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  7189. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  7190. RH.C0=clerp(RH.C0,RHC0,.3)
  7191. LH.C0=clerp(LH.C0,LHC0,.3)
  7192. end
  7193. if attack==false and Mode=="Demon" then
  7194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  7195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  7196. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  7197. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  7198. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  7199. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  7200. end
  7201. elseif torvel>=22 and hitfloor~=nil then
  7202. if Anim=="Fall" then
  7203. if velderp<=-120 then
  7204. coroutine.resume(coroutine.create(function()
  7205. Stomp()
  7206. end))
  7207. end
  7208. end
  7209. Anim="Run"
  7210. if attack==false and Mode=="Binary" then
  7211. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  7212. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  7213. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  7214. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  7215. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  7216. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  7217. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  7218. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  7219. end
  7220. if attack==false and Mode=="Demon" then
  7221. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  7222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  7223. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  7224. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  7225. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  7226. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  7227. end
  7228. end
  7229. end
  7230. if #Effects>0 then
  7231. --table.insert(Effects,{prt,"Block1",delay})
  7232. for e=1,#Effects do
  7233. if Effects[e]~=nil then
  7234. --for j=1,#Effects[e] do
  7235. local Thing=Effects[e]
  7236. if Thing~=nil then
  7237. local Part=Thing[1]
  7238. local Mode=Thing[2]
  7239. local Delay=Thing[3]
  7240. local IncX=Thing[4]
  7241. local IncY=Thing[5]
  7242. local IncZ=Thing[6]
  7243. if Thing[1].Transparency<=1 then
  7244. if Thing[2]=="Block1" then
  7245. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  7246. Mesh=Thing[1]:FindFirstChild("Mesh")
  7247. if not Mesh then
  7248. Mesh = Instance.new("BlockMesh")
  7249. end
  7250. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  7251. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  7252. elseif Thing[2]=="Cylinder" then
  7253. Mesh=Thing[1]:FindFirstChild("Mesh")
  7254. if not Mesh then
  7255. Mesh = Instance.new("BlockMesh")
  7256. end
  7257. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  7258. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  7259. elseif Thing[2]=="Blood" then
  7260. Mesh=Thing[1]:FindFirstChild("Mesh")
  7261. if not Mesh then
  7262. Mesh = Instance.new("BlockMesh")
  7263. end
  7264. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  7265. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  7266. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  7267. elseif Thing[2]=="Elec" then
  7268. Mesh=Thing[1]:FindFirstChild("Mesh")
  7269. if not Mesh then
  7270. Mesh = Instance.new("BlockMesh")
  7271. end
  7272. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  7273. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  7274. elseif Thing[2]=="Disappear" then
  7275. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  7276. end
  7277. else
  7278. Part.Parent=nil
  7279. game:GetService("Debris"):AddItem(Part, 0)
  7280. table.remove(Effects,e)
  7281. end
  7282. end
  7283. --end
  7284. end
  7285. end
  7286. end
  7287. end
  7288. end
  7289. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement