asdf2345

Untitled

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