ghostteen14

Untitled

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