Advertisement
xx_g

roblox cerberus fang

Apr 29th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 129.83 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
  3644. end
  3645. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement