Advertisement
memberhero

Spectre Test

May 29th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 161.35 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. Ghost = Instance.new("BoolValue",script)
  5. Ghost.Name = "GhostMode"
  6. Ghost.Value = false
  7. wait(0.2)
  8. script:WaitForChild("GhostMode")
  9. Player=game:GetService("Players").LocalPlayer
  10. Character=Player.Character
  11. PlayerGui=Player.PlayerGui
  12. Backpack=Player.Backpack
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character.Humanoid
  16. LeftArm=Character["Left Arm"]
  17. LeftLeg=Character["Left Leg"]
  18. RightArm=Character["Right Arm"]
  19. RightLeg=Character["Right Leg"]
  20. LS=Torso["Left Shoulder"]
  21. LH=Torso["Left Hip"]
  22. RS=Torso["Right Shoulder"]
  23. RH=Torso["Right Hip"]
  24. Neck=Torso.Neck
  25. it=Instance.new
  26. vt=Vector3.new
  27. cf=CFrame.new
  28. euler=CFrame.fromEulerAnglesXYZ
  29. angles=CFrame.Angles
  30. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  33. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  34. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  36. RootPart=Character.HumanoidRootPart
  37. RootJoint=RootPart.RootJoint
  38. RootCF=euler(-1.57,0,3.14)
  39. attack = false
  40. attackdebounce = false
  41. MMouse=Player:GetMouse()
  42.  
  43. combo=0
  44. if Character:findFirstChild("Shirt Graphic") then
  45. tshirt=Character:findFirstChild("Shirt Graphic"):Clone()
  46. else
  47. tshirt=nil
  48. end
  49. local canGhost = true
  50. local tshirt2=Torso:findFirstChild("roblox"):Clone()
  51. local oHeadCol=Character["Body Colors"].HeadColor
  52. local oTorsoCol=Character["Body Colors"].TorsoColor
  53. local oLeftArmCol=Character["Body Colors"].LeftArmColor
  54. local oRightArmCol=Character["Body Colors"].RightArmColor
  55. local oLeftLegCol=Character["Body Colors"].LeftLegColor
  56. local oRightLegCol=Character["Body Colors"].RightLegColor
  57. local idle=0
  58. local Anim="Idle"
  59. local Effects={}
  60. local Weapon={}
  61. local Welds={}
  62. local ghostmode=false
  63. local clone=nil
  64. local nr=NumberRange.new
  65. local ns=NumberSequence.new
  66. local cs=ColorSequence.new
  67. nsk=NumberSequenceKeypoint.new
  68. local testpart=it("Part")
  69. local cRootJoint,cNeck,cRW,cLW,cRH,cLH=nil,nil,nil,nil,nil,nil
  70. local bodycolors=Character:findFirstChild("Body Colors")
  71. local shirt=Character:findFirstChild("Shirt")
  72. local pants=Character:findFirstChild("Pants")
  73. local face=Head:findFirstChild("face")
  74. local drainmana=false
  75. local marked=nil
  76. local bladetype="None"
  77. local oldCFrames={}
  78. local ominField=nil
  79. local ominup=false
  80. local orblimit=0
  81. local dtatkfour=false
  82. local doing4=false
  83. local decreaseatk=0
  84. local decreasedef=0
  85. local decreasemvmt=0
  86. local move1="(Z)\
  87. Ghastly Grip"
  88. local move2="(X)\
  89. Ominous Matter"
  90. local move3="(C)\
  91. Spirit Orbs"
  92. local move4="(V)\
  93. Phantom's Mark"
  94. local cooldowns={}
  95. local cooldown1=0 table.insert(cooldowns,cooldown1)
  96. local cooldown2=0 table.insert(cooldowns,cooldown2)
  97. local cooldown3=0 table.insert(cooldowns,cooldown3)
  98. local cooldown4=0 table.insert(cooldowns,cooldown4)
  99. local cooldownsadd={}
  100. local cooldownadd1=.33 table.insert(cooldownsadd,cooldownadd1)
  101. local cooldownadd2=.2 table.insert(cooldownsadd,cooldownadd2)
  102. local cooldownadd3=.5 table.insert(cooldownsadd,cooldownadd3)
  103. local cooldownadd4=.12 table.insert(cooldownsadd,cooldownadd4)
  104. local cooldownmax=100
  105. ----local damageFunc=workspace.damageFunc
  106. holdc=false
  107. orb=0
  108. orbcharge=0
  109. maxorbs=4
  110. --blocknum=100
  111. local manualguardend=false
  112. --player
  113. player=nil
  114. --save shoulders
  115. RSH, LSH=nil, nil
  116. --welds
  117. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  118. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  119. LH=Torso["Left Hip"]
  120. RH=Torso["Right Hip"]
  121. TorsoColor=Torso.BrickColor
  122. TorsoRed=TorsoColor.Color.r
  123. TorsoGreen=TorsoColor.Color.g
  124. TorsoBlue=TorsoColor.Color.b
  125. NewCol=BrickColor.new("Eggplant").Color
  126. NewCol2=BrickColor.new("Medium blue").Color
  127. NewCol3=BrickColor.new("Steel blue").Color
  128. if Player:findFirstChild("Color1")~=nil then
  129. NewCol=Player.Color1.Value
  130. end
  131. --print(BrickColor.new(NewCol))
  132. local mdec=Instance.new("NumberValue",Decrease)
  133. mdec.Name="DecreaseDef"
  134. mdec.Value=.4
  135. local mdec2=Instance.new("NumberValue",Decrease)
  136. mdec2.Name="DecreaseMvmt"
  137. mdec2.Value=.1
  138. local mdec3=Instance.new("NumberValue")
  139. mdec3.Name="DecreaseMvmt"
  140.  
  141. --end
  142. local effects=it("Model",workspace)
  143. effects.Name="Effects"..Player.Name
  144.  
  145. --local Animate=Humanoid.Animator
  146. local animate=Character:findFirstChild("Animate")
  147. --[[local animation=Instance.new("Animation")
  148. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  149. local animTrack=Humanoid:LoadAnimation(animation)]]
  150. local canjump=true
  151. function removeControl()
  152. canjump=false
  153. end
  154. function resumeControl()
  155. canjump=true
  156. end
  157. Player.Character.Humanoid.Changed:connect(function()
  158. if canjump==false then
  159. if Player.Character:FindFirstChild("Humanoid") then
  160. Player.Character.Humanoid.Jump=false
  161. end
  162. end
  163. end)
  164.  
  165. function swait(num)
  166. if num==0 or num==nil then
  167. --if Stagger.Value==false or Stun.Value<=100 then
  168. game:GetService("RunService").Heartbeat:wait()
  169. --end
  170. else
  171. for i=0,num do
  172. game:GetService("RunService").Heartbeat:wait()
  173. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  174. break
  175. end]]
  176. end
  177. end
  178. end
  179.  
  180. if Character:findFirstChild("Ghostwalker",true) ~= nil then
  181. Character:findFirstChild("Ghostwalker",true).Parent = nil
  182. end
  183. if Character:findFirstChild("Ghost Claws",true) ~= nil then
  184. Character:findFirstChild("Ghost Claws",true).Parent = nil
  185. end
  186. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  187. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  188. end
  189. if Character:findFirstChild("Alignment",true) ~= nil then
  190. Character:findFirstChild("Alignment",true).Parent = nil
  191. end
  192. if Character:findFirstChild("Stats",true) ~= nil then
  193. Character:findFirstChild("Stats",true).Parent = nil
  194. end
  195. local Stats=Instance.new("BoolValue")
  196. Stats.Name="Stats"
  197. Stats.Parent=Character
  198. local Atk=Instance.new("NumberValue")
  199. Atk.Name="Damage"
  200. Atk.Parent=Stats
  201. Atk.Value=1
  202. local Def=Instance.new("NumberValue")
  203. Def.Name="Defense"
  204. Def.Parent=Stats
  205. Def.Value=1
  206. local Mvmt=Instance.new("NumberValue")
  207. Mvmt.Name="Movement"
  208. Mvmt.Parent=Stats
  209. Mvmt.Value=1
  210. local Block=Instance.new("BoolValue")
  211. Block.Name="Block"
  212. Block.Parent=Stats
  213. Block.Value=false
  214. local Stun=Instance.new("NumberValue")
  215. Stun.Name="Stun"
  216. Stun.Parent=Stats
  217. Stun.Value=0
  218. local StunT=Instance.new("NumberValue")
  219. StunT.Name="StunThreshold"
  220. StunT.Parent=Stats
  221. StunT.Value=100
  222. local Rooted=Instance.new("BoolValue")
  223. Rooted.Name="Rooted"
  224. Rooted.Parent=Stats
  225. Rooted.Value=false
  226. local Decrease=Instance.new("BoolValue")
  227. Decrease.Name="Decrease"
  228. Decrease.Parent=Stats
  229. Decrease.Value=false
  230. local Stunned=Instance.new("BoolValue")
  231. Stunned.Name="Stunned"
  232. Stunned.Parent=Stats
  233. Stunned.Value=false
  234. local Stagger=Instance.new("BoolValue")
  235. Stagger.Name="Stagger"
  236. Stagger.Parent=Stats
  237. Stagger.Value=false
  238. local StaggerHit=Instance.new("BoolValue")
  239. StaggerHit.Name="StaggerHit"
  240. StaggerHit.Parent=Stats
  241. StaggerHit.Value=false
  242. local RecentEnemy=Instance.new("ObjectValue")
  243. RecentEnemy.Name="RecentEnemy"
  244. RecentEnemy.Parent=Stats
  245. RecentEnemy.Value=nil
  246. local PhantomEnemy=Instance.new("ObjectValue")
  247. PhantomEnemy.Name="PhantomEnemy"
  248. PhantomEnemy.Parent=Stats
  249. PhantomEnemy.Value=nil
  250. local PhantomPos=nil
  251. TimeLocked=Instance.new("BoolValue")
  252. TimeLocked.Name="TimeLocked"
  253. TimeLocked.Parent=Stats
  254. TimeLocked.Value=false
  255. tlock = false
  256. TimeLocking=Instance.new("BoolValue")
  257. TimeLocking.Name="TimeLocking"
  258. TimeLocking.Parent=Stats
  259. TimeLocking.Value=false
  260. LockTime=Instance.new("NumberValue")
  261. LockTime.Name="Timer"
  262. LockTime.Parent=TimeLocked
  263. LockTime.Value=0
  264. Unstable=Instance.new("BoolValue")
  265. Unstable.Name="Unstable"
  266. Unstable.Parent=Stats
  267. Unstable.Value=false
  268. UnstableTime=Instance.new("NumberValue")
  269. UnstableTime.Name="Timer"
  270. UnstableTime.Parent=Unstable
  271. UnstableTime.Value=0
  272. Suppressed=Instance.new("BoolValue")
  273. Suppressed.Name="Suppressed"
  274. Suppressed.Parent=Stats
  275. Suppressed.Value=false
  276. NoTarget=Instance.new("BoolValue")
  277. NoTarget.Name="NoTarget"
  278. NoTarget.Value=true
  279. SuppressedTime=Instance.new("NumberValue")
  280. SuppressedTime.Name="Timer"
  281. SuppressedTime.Parent=Suppressed
  282. SuppressedTime.Value=0
  283. KnockbackResistance=Instance.new("NumberValue")
  284. KnockbackResistance.Name="KnockbackResistance"
  285. KnockbackResistance.Parent=Stats
  286. KnockbackResistance.Value=0
  287. decreasekbr=0
  288. UltVal=Instance.new("BoolValue")
  289. UltVal.Name="Ulting"
  290. UltVal.Parent=Stats
  291. UltVal.Value=false
  292. local mana=Instance.new("NumberValue")
  293. mana.Name="Mana"
  294. mana.Parent=Stats
  295. mana.Value=0
  296. local Alignment=Instance.new("Color3Value")
  297. Alignment.Name="Alignment"
  298. Alignment.Parent=Character
  299. Alignment.Value=Player.TeamColor.Color
  300. local passive1=Instance.new("NumberValue",nil)
  301. passive1.Name="DecreaseDef"
  302. passive1.Value=.5
  303. local passive2=Instance.new("NumberValue",nil)
  304. passive2.Name="DecreaseMvmt"
  305. passive2.Value=-.3
  306. local spdebounce=Instance.new("BoolValue")
  307. spdebounce.Name="DebounceHit"
  308. spdebounce.Value=true
  309.  
  310. function NoOutline(Part)
  311. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  312. end
  313.  
  314. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  315. local fp=it("Part")
  316. fp.formFactor=formfactor
  317. fp.Reflectance=reflectance
  318. fp.Transparency=transparency
  319. fp.CanCollide=false
  320. fp.Locked=true
  321. fp.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  322. fp.BrickColor=brickcolor
  323. fp.Name=name
  324. fp.Size=size
  325. fp.Position=Torso.Position
  326. NoOutline(fp)
  327. fp.Material="SmoothPlastic"
  328. if parent ~= workspace then
  329. fp.Parent=parent
  330. else
  331. fp.Parent=workspace
  332. end
  333. fp:BreakJoints()
  334. return fp
  335. end
  336.  
  337. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  338. local mesh=it(Mesh)
  339. mesh.Parent=part
  340. if Mesh=="SpecialMesh" then
  341. mesh.MeshType=meshtype
  342. if meshid~="nil" then
  343. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  344. end
  345. end
  346. mesh.Offset=offset
  347. mesh.Scale=scale
  348. return mesh
  349. end
  350.  
  351. function weld(parent,part0,part1,c0)
  352. local weld=it("Motor")
  353. weld.Parent=parent
  354. weld.Part0=part0
  355. weld.Part1=part1
  356. weld.C0=c0
  357. return weld
  358. end
  359.  
  360. function gui(GuiType,parent,text,backtrans,backcol,pos,size,zindex)
  361. local gui=it(GuiType)
  362. gui.Parent=parent
  363. gui.Text=text
  364. gui.BackgroundTransparency=backtrans
  365. gui.BackgroundColor3=backcol
  366. gui.SizeConstraint="RelativeXY"
  367. gui.TextXAlignment="Center"
  368. gui.TextYAlignment="Center"
  369. gui.Position=pos
  370. gui.Size=size
  371. gui.Font="SourceSans"
  372. gui.FontSize="Size14"
  373. gui.TextWrapped=false
  374. gui.TextStrokeTransparency=0
  375. gui.TextColor=BrickColor.new("White")
  376. if zindex then
  377. gui.ZIndex=zindex
  378. end
  379. return gui
  380. end
  381.  
  382. function imggui(GuiType,parent,backtrans,backcol,pos,size,img,imgcol,imgtrans,zindex)
  383. local gui=it(GuiType)
  384. gui.Parent=parent
  385. gui.BackgroundTransparency=backtrans
  386. gui.BackgroundColor3=backcol
  387. gui.SizeConstraint="RelativeXY"
  388. gui.Position=pos
  389. gui.Size=size
  390. gui.Image=img
  391. gui.ImageColor3=imgcol
  392. gui.ImageTransparency=imgtrans
  393. gui.ZIndex=zindex
  394. return gui
  395. end
  396.  
  397. local Color1=Torso.BrickColor
  398.  
  399. function CreateImageBar(Type, Colour, Parent)
  400. local Img = game.ReplicatedStorage:FindFirstChild("BarImage"..Type):Clone()
  401. Img.ImageColor3 = Colour
  402. Img.Parent = Parent
  403. end
  404.  
  405. local fengui=it("GuiMain")
  406. fengui.Parent=Player.PlayerGui
  407. fengui.Name="WeaponGUI"
  408. local fenframe=it("Frame")
  409. fenframe.Parent=fengui
  410. fenframe.BackgroundColor3=Color3.new(255,255,255)
  411. fenframe.BackgroundTransparency=1
  412. fenframe.BorderColor3=Color3.new(17,17,17)
  413. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  414. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  415. local fenframe2=it("Frame")
  416. fenframe2.Parent=fengui
  417. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  418. fenframe2.BackgroundTransparency=1
  419. fenframe2.BorderColor3=Color3.new(17,17,17)
  420. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  421. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  422. local fenframe3=it("Frame")
  423. fenframe3.Parent=fengui
  424. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  425. fenframe3.BackgroundTransparency=1
  426. fenframe3.BorderColor3=Color3.new(17,17,17)
  427. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  428. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  429. fenframe3.Name="MoveFrame"
  430. local fenframe4=it("Frame")
  431. fenframe4.Parent=fengui
  432. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  433. fenframe4.BackgroundTransparency=1
  434. fenframe4.BorderColor3=Color3.new(17,17,17)
  435. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  436. fenframe4.Position=UDim2.new(0,0,0.7,0)
  437. local pressedf=false
  438. local fenframe5=it("Frame")
  439. fenframe5.Parent=fengui
  440. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  441. fenframe5.BackgroundTransparency=1
  442. fenframe5.BorderColor3=Color3.new(0,0,0)
  443. fenframe5.Size=UDim2.new(1,0,1,0)
  444. fenframe5.Position=UDim2.new(0,0,0,0)
  445. fenframe5.ZIndex=2
  446. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  447. tellbar.Font="Arial"
  448. tellbar.TextScaled=true
  449. tellbar.TextTransparency=1
  450. tellbar.TextStrokeTransparency=1
  451. tellbar.ZIndex=2
  452. local fnumb=0
  453. --gui(GuiType,parent,text,backtrans,backcol,pos,size)
  454. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  455. --CreateImageBar("2", Color3.new(0,0,0), fenbarmana1)
  456. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  457. --CreateImageBar("1", BrickColor.new(NewCol).Color, fenbarmana2)
  458. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  459. --[[local fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-4,0))
  460. local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("Medium stone grey").Color,UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-2,0))
  461. local fenbarblock3=gui("TextLabel",fenframe,"Armor("..armor..")",1,Color3.new(0,0,0),UDim2.new(-.6,0,.2,0),UDim2.new(.4,0,.2,0))]]
  462. local fenbardamage=gui("TextLabel",fenframe2,"Damage",1,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0),2)
  463. local fenbardef=gui("TextLabel",fenframe2,"Defense",1,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0),2)
  464. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",1,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0),2)
  465. local fenimgdmg=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.23,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793110",Color3.new(170/255,0,0),.35,1)
  466. local fenimgdef=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.46,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793046",Color3.new(0,0,170/255),.35,1)
  467. local fenimgmove=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(1.03,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793172",Color3.new(0,170/255,0),.35,1)
  468. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  469. --CreateImageBar("2", Color3.new(0,0,0), fenbarhp1)
  470. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  471. --CreateImageBar("1", Color3.new(1,0,0), fenbarhp2)
  472. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  473. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  474. --CreateImageBar("2", Color3.new(0,0,0), fenbarstun1)
  475. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  476. --CreateImageBar("1", Color3.new(0.960784,0.803922,0.188235), fenbarstun2)
  477. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  478. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  479. fenbarmove1.ZIndex=2
  480. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  481. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  482. fenbarmove2.ZIndex=2
  483. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  484. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  485. fenbarmove3.ZIndex=2
  486. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  487. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  488. fenbarmove4.ZIndex=2
  489. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  490. local fenbarorb1=gui("TextButton",fenframe2,"Orbs",1,BrickColor.new(NewCol2).Color,UDim2.new(1.26,0,0,0),UDim2.new(.2,0,1,0),2)
  491. local fenimgorb1=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(1.26,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://633090865",BrickColor.new(NewCol2).Color,.35,1)
  492.  
  493.  
  494. Character.Archivable=true
  495. local spectral=Character:Clone()
  496. spectral.Name=""
  497. for _,c in pairs(spectral:children()) do
  498. if c.className=="Model" or c.className=="Script" or c.className=="BodyColors" or c:IsA("Accoutrement") or c.Name=="Stats" then
  499. c.Parent=nil
  500. end
  501. if c.className=="Part" then
  502. NoOutline(c)
  503. c.CanCollide=false
  504. c.Transparency=.8
  505. if c.Name=="HumanoidRootPart" then c.Transparency=1 end
  506. c.BrickColor=BrickColor.new(NewCol)
  507. for _,d in pairs(c:children()) do
  508. if d.className=="Weld" or d.className=="Motor" or d.className=="Motor6D" or d.className=="Decal" then
  509. d.Parent=nil
  510. end
  511. end
  512. end
  513. if c.className=="Humanoid" then
  514. c.Parent=nil
  515. end
  516. end
  517. spectral.Parent=Character
  518. if spectral:findFirstChild("HumanoidRootPart")~=nil then
  519. spectral.HumanoidRootPart.Anchored=true
  520. end
  521. sHead=spectral.Head
  522. sTorso=spectral.Torso
  523. sRootPart=spectral.HumanoidRootPart
  524. sLeftArm=spectral["Left Arm"]
  525. sRightArm=spectral["Right Arm"]
  526. sLeftLeg=spectral["Left Leg"]
  527. sRightLeg=spectral["Right Leg"]
  528. sRW,sLW,sRH,sLH,sRootJoint,sNeck=it("Motor",sTorso),it("Motor",sTorso),it("Motor",sTorso),it("Motor",sTorso),it("Motor",sTorso),it("Motor",sTorso)
  529. sRootJoint.Part0=sRootPart sRootJoint.Part1=sTorso
  530. sRootJoint.C1=cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  531. sNeck.Part0=sTorso sNeck.Part1=sHead
  532. sNeck.C1=necko2
  533. sRW.Part0=sTorso sRW.Part1=sRightArm
  534. sRW.C1=cf(0,0.5,0)*euler(0,0,0)
  535. sLW.Part0=sTorso sLW.Part1=sLeftArm
  536. sLW.C1=cf(0,0.5,0)*euler(0,0,0)
  537. sRH.Part0=sTorso sRH.Part1=sRightLeg
  538. sLH.Part0=sTorso sLH.Part1=sLeftLeg
  539. --[[sHumanoid=it("Humanoid",spectral)
  540. sHumanoid.Name="Nah"
  541. sHumanoid.MaxHealth=0]]
  542. Character.Archivable=false
  543.  
  544. local modelzorz=Instance.new("Model")
  545. modelzorz.Parent=Character
  546. modelzorz.Name="Ghostwalker"
  547. local modelzorz2=Instance.new("Model")
  548. modelzorz2.Parent=Character
  549. modelzorz2.Name="Ghost Claws"
  550.  
  551. local handle=part(3,modelzorz,0,0,TorsoColor,"Handle",vt(0.2,0.2,0.2))
  552. local prt1=part(3,modelzorz,0,0,TorsoColor,"Part01",vt(0.2,0.2,0.2)) prt1.Material="Fabric"
  553. local prt3=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part03",vt(0.2,0.2,0.2))
  554. local prt4=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part04",vt(0.2,0.2,0.2))
  555. local prt9=part(3,modelzorz,.5,0,BrickColor.new(NewCol2),"Part09",vt(0.2,0.2,0.2))
  556. local prt12=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part12",vt(0.2,0.2,0.2))
  557. local prt13=part(3,modelzorz,.3,0,BrickColor.new(NewCol3),"Part13",vt(0.2,0.2,0.2))
  558. local prt16=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part16",vt(0.2,0.2,0.2))
  559. local prt17=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part17",vt(0.2,0.2,0.2))
  560. local prt18=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part18",vt(0.2,0.2,0.2))
  561. local prt19=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part19",vt(0.2,0.2,0.2))
  562. local prt20=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part20",vt(0.2,0.2,0.2))
  563. local prt21=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part21",vt(0.2,0.2,0.2))
  564. local prt22=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part22",vt(0.2,0.2,0.2))
  565. local prt23=part(3,modelzorz,.2,0,BrickColor.new(NewCol2),"Part23",vt(0.2,0.2,0.2))
  566. local prt24=part(3,modelzorz,.2,.4,BrickColor.new(NewCol),"Part24",vt(0.2,0.2,0.2)) prt24.Material="Neon"
  567. local prt25=part(3,modelzorz,.2,.4,BrickColor.new(NewCol),"Part25",vt(0.2,0.2,0.2)) prt25.Material="Neon"
  568. local prt26=part(3,modelzorz,.2,.4,BrickColor.new(NewCol),"Part26",vt(0.2,0.2,0.2)) prt26.Material="Neon"
  569.  
  570. hmsh=mesh("BlockMesh",handle,"","",vt(0,0,0),vt(1,1,1))
  571. msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(1.8,8,1.8))
  572. msh3=mesh("SpecialMesh",prt3,"FileMesh","9756362",vt(0,0,0),vt(.5,.6,.5))
  573. msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(4.8,1.033,1.83))
  574. msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(1.82,2.5,1.33))
  575. msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(4.355,15.85,.5))
  576. msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(.2,15.075,.52))
  577. msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(2.285,1,.5))
  578. msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1,1,.5))
  579. msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(1.4,1,.5))
  580. msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1,4.99,.5))
  581. msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(1,2.98,.5))
  582. msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(1,4.915,.5))
  583. msh22=mesh("SpecialMesh",prt22,"Wedge","nil",vt(0,0,0),vt(.5,1.89,1.61))
  584. msh23=mesh("SpecialMesh",prt23,"Wedge","nil",vt(0,0,0),vt(.5,1.835,1))
  585. msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(4.335,9.77,.49))
  586. msh25=mesh("SpecialMesh",prt25,"Wedge","nil",vt(0,0,0),vt(.49,4.335,2.16))
  587. msh26=mesh("SpecialMesh",prt26,"Wedge","nil",vt(0,0,0),vt(.49,4.335,2.16))
  588.  
  589. local hwld=weld(handle,handle,Torso,euler(0,0,-2.5)*cf(-1.4,-2.3,-.5))
  590. local wld1=weld(prt1,prt1,handle,euler(0,0,0)*cf(0,0,0))
  591. local wld3=weld(prt1,prt3,prt1,euler(0,0,0)*cf(0,.9,0))
  592. local wld4=weld(prt1,prt4,prt1,euler(0,0,0)*cf(0,-.9,0))
  593. local wld9=weld(prt1,prt9,prt4,euler(0,0,0)*cf(0,-.345,0))
  594. local wld12=weld(prt1,prt12,prt4,euler(0,0,0)*cf(0,-1.659,0))
  595. local wld13=weld(prt1,prt13,prt4,euler(0,0,0)*cf(0,-1.931,0))
  596. local wld16=weld(prt1,prt16,prt4,euler(0,0,0)*cf(.205,-3.189,0))
  597. local wld17=weld(prt1,prt17,prt4,euler(0,0,0)*cf(.333,-3.338,0))
  598. local wld18=weld(prt1,prt18,prt4,euler(0,0,.515)*cf(.1649,-3.284,0))
  599. local wld19=weld(prt1,prt19,prt4,euler(0,0,0)*cf(-.338,-3.627,0))
  600. local wld20=weld(prt1,prt20,prt4,euler(0,0,0)*cf(-.203,-3.268,0))
  601. local wld21=weld(prt1,prt21,prt4,euler(0,0,.4347)*cf(-.135,-3.519,0))
  602. local wld22=weld(prt1,prt22,prt4,euler(1.105,-1.57,0)*cf(.016,-3.746,0))
  603. local wld23=weld(prt1,prt23,prt4,euler(0,1.57,0)*cf(-.337,-4.307,0))
  604. local wld24=weld(prt1,prt24,prt4,euler(0,0,0)*cf(0,-4.136,0))
  605. local wld25=weld(prt1,prt25,prt4,euler(0,1.57,0)*cf(-.216,-5.546,0))
  606. local wld26=weld(prt1,prt26,prt4,euler(0,-1.57,0)*cf(.216,-5.546,0))
  607.  
  608. for i=.6,-.65,-.3 do
  609. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part02",vt(0.2,0.2,0.2)) prt2.Material="Fabric"
  610. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,.5,2))
  611. local wld2=weld(prt1,prt2,prt1,euler(math.random(-10,10)/100,0,math.random(-10,10)/100)*cf(0,i,0))
  612. end
  613.  
  614. local dd=1
  615. for i=1,2 do
  616. if i==2 then
  617. dd=-1
  618. end
  619. local prt5=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part05",vt(0.2,0.2,0.2))
  620. msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(2.45,1,1.84))
  621. local wld5=weld(prt1,prt5,prt4,euler(0,0,.765*dd)*cf(-.6*dd,.142,0))
  622. local prt6=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part06",vt(0.2,0.2,0.2))
  623. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1.01,1.01,1.82))
  624. local wld6=weld(prt1,prt6,prt4,euler(0,0,.134*dd)*cf(-.81*dd,.298,0))
  625. local prt7=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part07",vt(0.2,0.2,0.2))
  626. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(1,1,1.85))
  627. local wld7=weld(prt1,prt7,prt4,euler(0,0,-.56*dd)*cf(-.923*dd,.273,0))
  628. local prt8=part(3,modelzorz,.4,0,BrickColor.new(NewCol2),"Part08",vt(0.2,0.2,0.2))
  629. msh8=mesh("SpecialMesh",prt8,"Wedge","nil",vt(0,0,0),vt(1.85,1,1))
  630. if i==1 then
  631. local wld8=weld(prt1,prt8,prt4,euler(-1.01,-1.57,1.57)*cf(-1.092,.167,0))
  632. else
  633. local wld8=weld(prt1,prt8,prt4,euler(-1.01,-1.57,1.57)*euler(3.14,0,3.14)*cf(1.092,.167,0))
  634. end
  635. end
  636.  
  637. for i=1,2 do
  638. dul=1
  639. if i==2 then
  640. dul=-1
  641. end
  642. local prt10=part(3,modelzorz,.5,0,BrickColor.new(NewCol2),"Part10",vt(0.2,0.2,0.2))
  643. msh10=mesh("SpecialMesh",prt10,"Wedge","nil",vt(0,0,0),vt(1.33,2.5,1))
  644. local wld10=weld(prt1,prt10,prt4,euler(0,1.57*dul,0)*cf(-.284*dul,-.345,0))
  645. local prt11=part(3,modelzorz,.5,0,BrickColor.new(NewCol3),"Part11",vt(0.2,0.2,0.2))
  646. msh11=mesh("SpecialMesh",prt11,"Wedge","nil",vt(0,0,0),vt(1.345,1.265,1))
  647. local wld11=weld(prt1,prt11,prt4,euler(.507,1.57*dul,0)*cf(-.176*dul,-.303,0))
  648. local prt14=part(3,modelzorz,.2,0,BrickColor.new(NewCol3),"Part14",vt(0.2,0.2,0.2))
  649. msh14=mesh("SpecialMesh",prt14,"Wedge","nil",vt(0,0,0),vt(.51,4.63,1))
  650. local wld14=weld(prt1,prt14,prt4,euler(0,1.57*dul,0)*cf(-.19*dul,-1.01,0))
  651. local prt15=part(3,modelzorz,.2,0,BrickColor.new(NewCol3),"Part15",vt(0.2,0.2,0.2))
  652. msh15=mesh("SpecialMesh",prt15,"Wedge","nil",vt(0,0,0),vt(.51,9.26,1.25))
  653. local wld15=weld(prt1,prt15,prt4,euler(0,1.57*dul,0)*cf(-.305*dul,-1.0007,0))
  654. for d=1,2 do
  655. tehprt=LeftArm
  656. bab=1
  657. if d==2 then
  658. tehprt=RightArm
  659. bab=-1
  660. end
  661. local prt27=part(3,modelzorz2,0,.2,BrickColor.new(NewCol),"Part27",vt(0.2,0.2,0.2)) prt27.Material="Neon"
  662. msh27=mesh("BlockMesh",prt27,"","",vt(0,0,0),vt(1.24,3.03,1))
  663. local wld27=weld(prt1,prt27,tehprt,euler(0,0,.063*bab)*cf(.436*bab,.785,.278*dul))
  664. local prt28=part(3,modelzorz2,0,.2,BrickColor.new(NewCol),"Part28",vt(0.2,0.2,0.2)) prt28.Material="Neon"
  665. msh28=mesh("BlockMesh",prt28,"","",vt(0,0,0),vt(1.24,2.795,1))
  666. local wld28=weld(prt1,prt28,tehprt,euler(0,0,.319*bab)*cf(.533*bab,1.311,.278*dul))
  667. local prt29=part(3,modelzorz2,0,.2,BrickColor.new(NewCol),"Part29",vt()) prt29.Material="Neon"
  668. msh29=mesh("BlockMesh",prt29,"","",vt(0,0,0),vt(1.24,3.275,1))
  669. local wld29=weld(prt1,prt29,tehprt,euler(0,0,.0621*bab)*cf(.636*bab,1.876,.278*dul))
  670. local prt30=part(3,modelzorz2,0,.2,BrickColor.new(NewCol),"Part30",vt()) prt30.Material="Neon"
  671. msh30=mesh("SpecialMesh",prt30,"Wedge","nil",vt(0,0,0),vt(1.25,2.12,1))
  672. local wld30=weld(prt1,prt30,tehprt,euler(3.14,1.57*bab,.0621*bab)*cf(.669*bab,2.413,.278*dul))
  673. end
  674. end
  675.  
  676. for _,c in pairs(modelzorz:children()) do
  677. table.insert(Weapon,c)
  678. end
  679. for _,c in pairs(prt1:children()) do
  680. if c.className=="Motor" then
  681. table.insert(Welds,c)
  682. end
  683. end
  684. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(0.2,0.2,0.2))
  685. hitbox.Anchored=false
  686. --local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  687. local hitboxCF=cf(0,0,0)
  688.  
  689. hboxpos=Instance.new("BodyPosition",nil)
  690. hboxpos.P=2000
  691. hboxpos.D=100
  692. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  693.  
  694. --[[function hitboxweld()
  695. hbwld.Parent=modelzorz
  696. hbwld.Part0=hitbox
  697. hbwld.Part1=RightArm
  698. end]]
  699.  
  700. if (script.Parent.className~="HopperBin") then
  701. Tool=Instance.new("HopperBin")
  702. Tool.Parent=Backpack
  703. Tool.Name="Ghostwalker"
  704. script.Parent=Tool
  705. end
  706. Bin=Tool
  707. if Bin.Name=="Spectre" then
  708. Bin.Name="Ghostwalker"
  709. end
  710.  
  711. local bodvel=Instance.new("BodyVelocity")
  712. local bg=Instance.new("BodyGyro")
  713.  
  714. so = function(id,par,vol,pit)
  715. local sou = Instance.new("Sound",par or workspace)
  716. sou.Volume=vol
  717. sou.Pitch=pit or 1
  718. sou.SoundId="http://www.roblox.com/asset/?id="..id
  719. coroutine.resume(coroutine.create(function(Sound)
  720. swait()
  721. Sound:play()
  722. end),sou)
  723. game:GetService("Debris"):AddItem(sou,6)
  724. end
  725.  
  726. function clerp(a,b,t)
  727. local qa = {QuaternionFromCFrame(a)}
  728. local qb = {QuaternionFromCFrame(b)}
  729. local ax, ay, az = a.x, a.y, a.z
  730. local bx, by, bz = b.x, b.y, b.z
  731. local _t = 1-t
  732. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  733. end
  734.  
  735. function QuaternionFromCFrame(cf)
  736. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  737. local trace = m00 + m11 + m22
  738. if trace > 0 then
  739. local s = math.sqrt(1 + trace)
  740. local recip = 0.5/s
  741. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  742. else
  743. local i = 0
  744. if m11 > m00 then
  745. i = 1
  746. end
  747. if m22 > (i == 0 and m00 or m11) then
  748. i = 2
  749. end
  750. if i == 0 then
  751. local s = math.sqrt(m00-m11-m22+1)
  752. local recip = 0.5/s
  753. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  754. elseif i == 1 then
  755. local s = math.sqrt(m11-m22-m00+1)
  756. local recip = 0.5/s
  757. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  758. elseif i == 2 then
  759. local s = math.sqrt(m22-m00-m11+1)
  760. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  761. end
  762. end
  763. end
  764.  
  765. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  766. local xs, ys, zs = x + x, y + y, z + z
  767. local wx, wy, wz = w*xs, w*ys, w*zs
  768. local xx = x*xs
  769. local xy = x*ys
  770. local xz = x*zs
  771. local yy = y*ys
  772. local yz = y*zs
  773. local zz = z*zs
  774. 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))
  775. end
  776.  
  777. function QuaternionSlerp(a, b, t)
  778. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  779. local startInterp, finishInterp;
  780. if cosTheta >= 0.0001 then
  781. if (1 - cosTheta) > 0.0001 then
  782. local theta = math.acos(cosTheta)
  783. local invSinTheta = 1/math.sin(theta)
  784. startInterp = math.sin((1-t)*theta)*invSinTheta
  785. finishInterp = math.sin(t*theta)*invSinTheta
  786. else
  787. startInterp = 1-t
  788. finishInterp = t
  789. end
  790. else
  791. if (1+cosTheta) > 0.0001 then
  792. local theta = math.acos(-cosTheta)
  793. local invSinTheta = 1/math.sin(theta)
  794. startInterp = math.sin((t-1)*theta)*invSinTheta
  795. finishInterp = math.sin(t*theta)*invSinTheta
  796. else
  797. startInterp = t-1
  798. finishInterp = t
  799. end
  800. end
  801. 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
  802. end
  803.  
  804. function hideanim()
  805. equipped=false
  806. bladetype="None"
  807. for i=0,1,0.1 do
  808. swait()
  809. if TimeLocked.Value == true then
  810. repeat
  811. game:GetService("RunService").Heartbeat:wait()
  812. until TimeLocked.Value == false or Suppressed.Value == true
  813. end
  814. if i<=.2 then
  815. hwld.C0=clerp(hwld.C0,euler(.3,0,-.8)*cf(0,1.3,0),.3)
  816. wld1.C0=clerp(wld1.C0,euler(0,3.14,0)*cf(0,0,0),.3)
  817. RW.C0=clerp(RW.C0,cf(1.5,1,-.1)*euler(2.7,0,.6)*euler(0,0,0),.3)
  818. else
  819. hwld.C0=clerp(hwld.C0,euler(.3,0,-.8)*cf(0,1.3,0),.3)
  820. wld1.C0=clerp(wld1.C0,euler(0,3.14,0)*cf(0,0,0),.3)
  821. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(-2.7,0,-.2),.2)
  822. end
  823. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.5),.3)
  824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  825. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  826. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.3)
  827. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  828. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  829. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  830. end
  831. hwld.Part1=Torso
  832. hwld.C0=euler(0,0,-2.5)*cf(-1.4,-2.3,-.5)
  833. wld1.C0=euler(0,0,0)*cf(0,0,0)
  834. mdec2.Parent=nil
  835. mdec.Parent=Decrease
  836. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,0,0),.2)
  837. for i=0,1,0.1 do
  838. swait()
  839. if TimeLocked.Value == true then
  840. repeat
  841. game:GetService("RunService").Heartbeat:wait()
  842. until TimeLocked.Value == false or Suppressed.Value == true
  843. end
  844. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  847. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  848. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  849. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  850. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  851. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  852. end
  853. spectral.Parent=nil
  854. end
  855.  
  856. mdec.Parent=Decrease
  857. function equipanim()
  858. equipped=true
  859. spectral.Parent=Character
  860. mdec.Parent=nil
  861. mdec2.Parent=Decrease
  862. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,0,-.2),.4)
  863. for i=0,1,0.2 do
  864. swait()
  865. if TimeLocked.Value == true then
  866. repeat
  867. game:GetService("RunService").Heartbeat:wait()
  868. until TimeLocked.Value == false or Suppressed.Value == true
  869. end
  870. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,-.4),.4)
  871. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.4)
  872. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(-2.7,0,-.2),.4)
  873. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  874. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-.2),.4)
  875. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  876. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.2,.1,0),.4)
  877. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,0)*euler(0,.4,.2),.4)
  878. end
  879. hwld.Part1=RightArm
  880. hwld.C0=euler(.3,0,-.8)*cf(0,1.3,0)
  881. wld1.C0=euler(0,3.14,0)*cf(0,0,0)
  882. for i=0,1,0.05 do
  883. swait()
  884. if TimeLocked.Value == true then
  885. repeat
  886. game:GetService("RunService").Heartbeat:wait()
  887. until TimeLocked.Value == false or Suppressed.Value == true
  888. end
  889. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.4)
  890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.4)
  891. if i<=.2 then
  892. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.2,0,0),.4)
  893. hwld.C0=clerp(hwld.C0,euler(.2,0,-.3)*cf(0,1.3,.2),.3)
  894. RW.C0=clerp(RW.C0,cf(1.5,1,-.1)*euler(2.7,0,.6)*euler(0,0,0),.4)
  895. else
  896. bladetype="Stable"
  897. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.1,.3,0),.4)
  898. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  899. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  900. RW.C0=clerp(RW.C0,cf(1.5,0.4,0)*euler(.2,0,.6)*euler(0,-1.1,0),.4)
  901. end
  902. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  903. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.4)
  904. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  905. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,0)*euler(0,.6,.2),.4)
  906. end
  907. bladetype="Mana"
  908. end
  909.  
  910. tlock = false
  911. TimeLock=function()
  912. so(535381634,RootPart,.5,math.random(145,155)/100 - TimeLocked.Timer.Value*.15)
  913. local b,f,f2
  914. if RootPart:FindFirstChild("TimeLockGui") then
  915. b = RootPart.TimeLockGui
  916. f = b.ImageLabel
  917. f2 = b.ImageLabel2
  918. f2.ImageTransparency=0.25
  919. f2.Size=UDim2.new(1,0,1,0)
  920. f2.Position=UDim2.new(0,0,0,0)
  921. else
  922. b = Instance.new("BillboardGui")
  923. b.Name="TimeLockGui"
  924. b.Size=UDim2.new(4,0,4,0)
  925. b.SizeOffset=Vector2.new(0,1.2)
  926. b.Parent=RootPart
  927. f = Instance.new("ImageLabel")
  928. f.BackgroundTransparency=1
  929. f.Size=UDim2.new(1,0,1,0)
  930. f.ImageColor3=Color3.new(0,1,1)
  931. f.Image="rbxassetid://535799774"
  932. f.Parent=b
  933. f.ImageTransparency=1
  934. f2 = Instance.new("ImageLabel")
  935. f2.Name="ImageLabel2"
  936. f2.BackgroundTransparency=1
  937. f2.Size=UDim2.new(1,0,1,0)
  938. f2.ImageColor3=Color3.new(0,1,1)
  939. f2.Image="rbxassetid://535799774"
  940. f2.Parent=b
  941. f2.ImageTransparency=.25
  942. end
  943.  
  944. local partif2z=it("ParticleEmitter")
  945. partif2z.Color=cs(Color3.new(0,1,1),Color3.new(0.4,1,1))
  946. partif2z.LightEmission=.5
  947. partif2z.Texture="rbxasset://textures/particles/sparkles_main.dds"
  948. sizeseq=ns({nsk(0,8),nsk(1,10)})
  949. transseq=ns({nsk(0,.98),nsk(1,1)})
  950. partif2z.Transparency=transseq
  951. partif2z.Size=sizeseq
  952. partif2z.ZOffset=0
  953. partif2z.LockedToPart=true
  954. partif2z.EmissionDirection="Front"
  955. partif2z.Lifetime=nr(0.9,1.2)
  956. partif2z.Rate=30
  957. partif2z.Rotation=nr(-180,180)
  958. partif2z.RotSpeed=nr(-80,80)
  959. partif2z.Speed=nr(3,6)
  960. partif2z.VelocitySpread=330
  961. partif2z.Parent=RootPart
  962. partif2z.Enabled=true
  963.  
  964. coroutine.resume(coroutine.create(function(p,c,d)
  965. swait()
  966. c:Emit(10)
  967.  
  968. repeat
  969. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  970. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  971. d.ImageTransparency=d.ImageTransparency + wait()*6
  972. p.ImageTransparency=p.ImageTransparency - wait()*7.5
  973. if p.ImageTransparency<0 then
  974. p.ImageTransparency=0
  975. end
  976. until p.ImageTransparency==0 or TimeLocked.Value==false
  977. end),f,partif2z,f2)
  978. repeat
  979. RootPart.Anchored = true
  980. swait()
  981. until TimeLocked.Value == false
  982. coroutine.resume(coroutine.create(function(p,c,d)
  983. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  984. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  985. d.ImageTransparency=d.ImageTransparency + wait()*6
  986. game:GetService("Debris"):AddItem(c,5)
  987. c.Enabled=false
  988. repeat
  989. p.ImageTransparency=p.ImageTransparency + wait()*9
  990. if p.ImageTransparency>1 then
  991. p.ImageTransparency=1
  992. end
  993. until p.ImageTransparency==1 or TimeLocked.Value==true
  994. if TimeLocked.Value==false then
  995. p.Parent:Destroy()
  996. end
  997. end),f,partif2z,f2)
  998. RootPart.Anchored = false
  999. tlock = false
  1000. end
  1001. unst = false
  1002. UnstableAnim=function()
  1003. attack=true
  1004. unst = true
  1005. local rndc=1
  1006. local rnda=math.random(-1,0)
  1007. workspace.damguiFunc:FireServer(Character,"Off balance!","Interrupt")
  1008. removeControl()
  1009. repeat
  1010. swait()
  1011. if TimeLocked.Value == true then
  1012. repeat
  1013. game:GetService("RunService").Heartbeat:wait()
  1014. until TimeLocked.Value == false
  1015. end
  1016. --hwld.C0=clerp(wld1.C0,euler(2,.2,3.14)*cf(0,1,.2),.3)
  1017. Neck.C0=clerp(Neck.C0,necko*euler(.3*rndc,0,0),.3)
  1018. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.3 - math.cos(time()*14)*.04,0.4 - math.cos(time()*14)*.02)*euler(math.rad(90+(25*rndc)),math.rad(180),math.rad(0)),.2)
  1019.  
  1020. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4 - math.cos(time()*14)*.5 - rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
  1021. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1022. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4 + math.cos(time()*14)*.5 + rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
  1023. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1024.  
  1025. RH.C0=clerp(RH.C0,cf(1,-.8 + math.cos(time()*14)*.3,0 - math.sin(time()*14)*.3)*euler(0,1.57,0)*euler(0,-.1,-math.rad(9*rndc) - math.cos(time()*14)*1),.3)
  1026. LH.C0=clerp(LH.C0,cf(-1,-.8 - math.cos(time()*14)*.3,0 + math.sin(time()*14)*.3)*euler(0,-1.57,0)*euler(0,.1,math.rad(9*rndc) - math.cos(time()*14)*1),.3)
  1027. until Stun.Value>=StunT.Value or Stunned.Value==true or UnstableTime.Value <= 0 or Unstable.Value==false or Stagger.Value==true or Suppressed.Value==true
  1028. unst = false
  1029. attack=false
  1030. resumeControl()
  1031. end
  1032. suppress=false
  1033. SuppressedAnim=function()
  1034. workspace.damguiFunc:FireServer(Character,"Suppressed!","Interrupt")
  1035. removeControl()
  1036. repeat
  1037. swait()
  1038. if TimeLocked.Value == true then
  1039. repeat
  1040. game:GetService("RunService").Heartbeat:wait()
  1041. until TimeLocked.Value == false
  1042. end
  1043. if Suppressed:FindFirstChild("AnimOverride") == nil then
  1044. --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
  1045. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1046. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(math.rad(90),math.rad(180),math.rad(0)),.2)
  1047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  1048. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1049. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1050. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1051. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1052. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1053. else
  1054. --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
  1055. Neck.C0=clerp(Neck.C0,Suppressed.AnimOverride.Neck.Value,.3)
  1056. RootJoint.C0=clerp(RootJoint.C0,Suppressed.AnimOverride.RootJoint.Value,.2)
  1057. RW.C0=clerp(RW.C0,Suppressed.AnimOverride.RightShoulderC0.Value,.3)
  1058. RW.C1=clerp(LW.C1,Suppressed.AnimOverride.RightShoulderC1.Value,.3)
  1059. LW.C0=clerp(LW.C0,Suppressed.AnimOverride.LeftShoulderC0.Value,.3)
  1060. LW.C1=clerp(LW.C1,Suppressed.AnimOverride.LeftShoulderC1.Value,.3)
  1061. RH.C0=clerp(RH.C0,Suppressed.AnimOverride.RightHip.Value,.3)
  1062. LH.C0=clerp(LH.C0,Suppressed.AnimOverride.LeftHip.Value,.3)
  1063. end
  1064. until SuppressedTime.Value <= 0 or Suppressed.Value==false
  1065. suppress = false
  1066. resumeControl()
  1067. end
  1068. function StaggerAnim()
  1069. attack=true
  1070. removeControl()
  1071. workspace.damguiFunc:FireServer(Character,"Staggered!","Interrupt")
  1072. for i=1,math.random(2,4) do
  1073. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  1074. end
  1075. for i=0,1,0.35 do
  1076. swait()
  1077. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1078. if TimeLocked.Value == true then
  1079. repeat
  1080. game:GetService("RunService").Heartbeat:wait()
  1081. until TimeLocked.Value == false
  1082. end
  1083. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1084. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  1085. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  1086. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  1087. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  1089. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1090. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  1091. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1092.  
  1093. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1094. break
  1095. end
  1096. end
  1097. for i=0,1,0.2 do
  1098. swait()
  1099. if TimeLocked.Value == true then
  1100. repeat
  1101. game:GetService("RunService").Heartbeat:wait()
  1102. until TimeLocked.Value == false
  1103. end
  1104. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1105. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1106. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  1107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  1108. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  1109. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  1111. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1112. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  1113. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  1114. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1115. break
  1116. end
  1117. end
  1118. for i=0,1,0.1 do
  1119. swait()
  1120. if TimeLocked.Value == true then
  1121. repeat
  1122. game:GetService("RunService").Heartbeat:wait()
  1123. until TimeLocked.Value == false
  1124. end
  1125. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1126. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  1127. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  1128. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  1129. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1130. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  1131. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1132. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  1133. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1134. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1135. break
  1136. end
  1137. end
  1138. for i=1,50 do
  1139. swait()
  1140. if TimeLocked.Value == true then
  1141. repeat
  1142. game:GetService("RunService").Heartbeat:wait()
  1143. until TimeLocked.Value == false
  1144. end
  1145. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1146. break
  1147. end
  1148. end
  1149. resumeControl()
  1150. combo=0
  1151. attack=false
  1152. end
  1153.  
  1154. function StunAnim()
  1155. attack=true
  1156. removeControl()
  1157. Stunned.Value=true
  1158. workspace.damguiFunc:FireServer(Character,"Stunned!","Interrupt")
  1159. local dec=Instance.new("NumberValue",Decrease)
  1160. dec.Name="DecreaseMvmt"
  1161. dec.Value=10
  1162. for i=0,1,0.3 do
  1163. swait()
  1164. if TimeLocked.Value == true then
  1165. repeat
  1166. game:GetService("RunService").Heartbeat:wait()
  1167. until TimeLocked.Value == false
  1168. end
  1169. if Suppressed.Value == true then
  1170. break
  1171. end
  1172. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1173. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  1174. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  1175. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  1176. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1177. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  1178. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1179. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  1180. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  1181. end
  1182. for i=0,1,0.3 do
  1183. swait()
  1184. if TimeLocked.Value == true then
  1185. repeat
  1186. game:GetService("RunService").Heartbeat:wait()
  1187. until TimeLocked.Value == false
  1188. end
  1189. if Suppressed.Value == true then
  1190. break
  1191. end
  1192. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1193. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  1194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  1195. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1196. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1197. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  1198. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1199. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  1200. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  1201. end
  1202. for i=0,1,0.3 do
  1203. swait()
  1204. if TimeLocked.Value == true then
  1205. repeat
  1206. game:GetService("RunService").Heartbeat:wait()
  1207. until TimeLocked.Value == false
  1208. end
  1209. if Suppressed.Value == true then
  1210. break
  1211. end
  1212. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1213. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  1214. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  1215. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1216. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1217. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  1218. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1219. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  1220. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  1221. end
  1222. local gairost=Instance.new("BodyGyro")
  1223. gairost.Parent=RootPart
  1224. gairost.maxTorque=Vector3.new(2000,0,2000)
  1225. gairost.P=2000
  1226. gairost.cframe=cf(0,0,0)
  1227. for i=0,1,0.1 do
  1228. swait()
  1229. if TimeLocked.Value == true then
  1230. repeat
  1231. game:GetService("RunService").Heartbeat:wait()
  1232. until TimeLocked.Value == false
  1233. end
  1234. if Suppressed.Value == true then
  1235. break
  1236. end
  1237. if hitfloor~=nil then
  1238. Torso.Velocity=vt(0,0,0)
  1239. end
  1240. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1241. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1242. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  1243. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  1244. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1245. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  1246. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1247. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  1248. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  1249. end
  1250. for i=1,70 do
  1251. swait()
  1252. if TimeLocked.Value == true then
  1253. repeat
  1254. game:GetService("RunService").Heartbeat:wait()
  1255. until TimeLocked.Value == false
  1256. end
  1257. if Suppressed.Value == true then
  1258. break
  1259. end
  1260. gairost.cframe=RootPart.CFrame
  1261. if hitfloor~=nil then
  1262. Torso.Velocity=vt(0,0,0)
  1263. end
  1264. end
  1265. for i=0,1,0.2 do
  1266. swait()
  1267. if TimeLocked.Value == true then
  1268. repeat
  1269. game:GetService("RunService").Heartbeat:wait()
  1270. until TimeLocked.Value == false
  1271. end
  1272. if Suppressed.Value == true then
  1273. break
  1274. end
  1275. Stun.Value=0
  1276. gairost.cframe=RootPart.CFrame
  1277. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1278. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1279. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  1280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  1281. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1282. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  1283. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1284. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  1285. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  1286. end
  1287. resumeControl()
  1288. gairost.Parent=nil
  1289. dec.Parent=nil
  1290. combo=0
  1291. Stunned.Value=false
  1292. attack=false
  1293. Stun.Value=0
  1294. end
  1295.  
  1296.  
  1297. --[[ idle
  1298. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1299. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  1300. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.3)
  1301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.3)
  1302. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(1,0,-.1)*euler(0,.4,0),.3)
  1303. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(1.4,0,.6)*euler(0,.2,0),.3)
  1304. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.2),.3)
  1305. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.3)
  1306.  
  1307. idle ghost
  1308.  
  1309. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  1310. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0),.3)
  1311. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(1.4,0,.2)*euler(0,1,0),.3)
  1312. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(1.4,0,-.2)*euler(0,-1,0),.3)
  1313. RH.C0=clerp(RH.C0,cf(1,-.4,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  1314. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.5),.3)
  1315. ]]
  1316.  
  1317. function attackone()
  1318. attack=true
  1319. if ghostmode==false then
  1320. for i=0,1,0.15 do
  1321. swait()
  1322. if TimeLocked.Value == true then
  1323. repeat
  1324. game:GetService("RunService").Heartbeat:wait()
  1325. until TimeLocked.Value == false or Suppressed.Value == true
  1326. end
  1327. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1328. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1329. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.6),.3)
  1330. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  1331. RW.C0=clerp(RW.C0,cf(.5,0.5,-.3)*euler(1.6,0,-1)*euler(0,1.4,0),.3)
  1332. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1.6,0,.6)*euler(0,1.4,0),.3)
  1333. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1334. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1335. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1336. break
  1337. end
  1338. end
  1339. so("203691447",prt12,1,1.2)
  1340. hitbox.Parent=modelzorz
  1341. hitbox.Anchored=true
  1342. hitbox.Size=vt(1,1,1)
  1343. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1344. for i=0,1,0.1 do
  1345. swait()
  1346. if TimeLocked.Value == true then
  1347. repeat
  1348. game:GetService("RunService").Heartbeat:wait()
  1349. until TimeLocked.Value == false or Suppressed.Value == true
  1350. end
  1351. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1352. MagniDamage(hitbox,3,0,7,10,"Normal",RootPart,.5,1,6,nil,true)
  1353. hwld.C0=clerp(hwld.C0,euler(2.3,0,0)*cf(0,.8,0),.45)
  1354. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.45)
  1355. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,1),.45)
  1356. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.45)
  1357. RW.C0=clerp(RW.C0,cf(1,0.5,.3)*euler(1.1,0,.8)*euler(0,1,0),.45)
  1358. LW.C0=clerp(LW.C0,cf(.6,0.5,-.5)*euler(1.2,0,1)*euler(0,1.4,0),.45)
  1359. RH.C0=clerp(RH.C0,cf(.9,-.9,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,-.2),.45)
  1360. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(0,.6,0)*euler(0,0,.1),.45)
  1361. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1362. break
  1363. end
  1364. end
  1365. hitbox.Parent=nil
  1366. else
  1367. for i=0,1,0.2 do
  1368. swait()
  1369. if TimeLocked.Value == true then
  1370. repeat
  1371. game:GetService("RunService").Heartbeat:wait()
  1372. until TimeLocked.Value == false or Suppressed.Value == true
  1373. end
  1374. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  1375. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(-.2,0,0),.5)
  1376. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.5,0,.2)*euler(0,1.4,0),.5)
  1377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.5,0,-.2)*euler(0,-1.4,0),.5)
  1378. RH.C0=clerp(RH.C0,cf(.9,-.6,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.3,0,-.2),.5)
  1379. LH.C0=clerp(LH.C0,cf(-.9,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.3,0,.2),.5)
  1380. end
  1381. so("28144425",LeftArm,.6,1.2)
  1382. so("92597369",LeftArm,.6,1.2)
  1383. so("28144425",RightArm,.6,1.2)
  1384. so("92597369",RightArm,.6,1.2)
  1385. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1386. ref.Anchored=true
  1387. game:GetService("Debris"):AddItem(ref,1)
  1388. for i=0,1,0.2 do
  1389. swait()
  1390. if TimeLocked.Value == true then
  1391. repeat
  1392. game:GetService("RunService").Heartbeat:wait()
  1393. until TimeLocked.Value == false or Suppressed.Value == true
  1394. end
  1395. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1396. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,4,nil,true)
  1397. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1398. MagniDamage(ref,4,5,7,0,"Normal",RootPart,.3,1,4,nil,true)
  1399. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  1400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(.1,0,0),.5)
  1401. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.4,0,-.6)*euler(0,1.4,0),.5)
  1402. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(.4,0,.6)*euler(0,-1.4,0),.5)
  1403. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.5)
  1404. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.5)
  1405. end
  1406. ref.Parent=nil
  1407. end
  1408. attack=false
  1409. end
  1410. --[[spawn(function()
  1411. game:GetService("RunService").RenderStepped:connect(function()
  1412. swait()
  1413. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1414. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1415. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.6),.3)
  1416. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.3)
  1417. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(-1.4,0,0),.3)
  1418. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1419. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1420. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1421. end)
  1422. end)]]
  1423. function attacktwo()
  1424. attack=true
  1425. if ghostmode==false then
  1426. for i=0,1,0.15 do
  1427. swait()
  1428. if TimeLocked.Value == true then
  1429. repeat
  1430. game:GetService("RunService").Heartbeat:wait()
  1431. until TimeLocked.Value == false or Suppressed.Value == true
  1432. end
  1433. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1434. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1435. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.2),.3)
  1436. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.3)
  1437. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(-1.4,0,0),.3)
  1438. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1439. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1440. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1441. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1442. break
  1443. end
  1444. end
  1445. so("203691447",prt12,1,1.2)
  1446. hitbox.Parent=modelzorz
  1447. hitbox.Anchored=true
  1448. hitbox.Size=vt(1,1,1)
  1449. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1450. for i=0,1,0.1 do
  1451. swait()
  1452. if TimeLocked.Value == true then
  1453. repeat
  1454. game:GetService("RunService").Heartbeat:wait()
  1455. until TimeLocked.Value == false or Suppressed.Value == true
  1456. end
  1457. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1458. MagniDamage(hitbox,3,0,7,10,"Normal",RootPart,.5,1,6,nil,true)
  1459. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1460. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1461. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-1),.3)
  1462. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.1),.3)
  1463. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(1.4,0,0),.3)
  1464. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1465. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1466. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1467. --[[hwld.C0=clerp(hwld.C0,euler(2.3,0,0)*cf(0,.8,0),.45)
  1468. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.45)
  1469. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,1),.45)
  1470. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.45)
  1471. RW.C0=clerp(RW.C0,cf(1,0.5,.3)*euler(1.1,0,.8)*euler(0,1,0),.45)
  1472. LW.C0=clerp(LW.C0,cf(.6,0.5,-.5)*euler(1.2,0,1)*euler(0,1.4,0),.45)
  1473. RH.C0=clerp(RH.C0,cf(.9,-.9,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,-.2),.45)
  1474. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(0,.6,0)*euler(0,0,.1),.45)]]
  1475. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1476. break
  1477. end
  1478. end
  1479. hitbox.Parent=nil
  1480. else
  1481. for i=0,1,0.2 do
  1482. swait()
  1483. if TimeLocked.Value == true then
  1484. repeat
  1485. game:GetService("RunService").Heartbeat:wait()
  1486. until TimeLocked.Value == false or Suppressed.Value == true
  1487. end
  1488. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.5)*euler(.2,0,0)*euler(0,0,.5),.5)
  1490. RW.C0=clerp(RW.C0,cf(1.4,0.4,.2)*euler(1,0,.2)*euler(0,.6,0),.5)
  1491. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(2,0,-.6)*euler(0,-.8,0),.5)
  1492. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,-.5,0)*euler(-.1,0,.1),.5)
  1493. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.5),.5)
  1494. end
  1495. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1496. ref.Anchored=true
  1497. game:GetService("Debris"):AddItem(ref,1)
  1498. so("28144425",LeftArm,.6,1.4)
  1499. so("92597369",LeftArm,.6,1.4)
  1500. for i=0,1,0.2 do
  1501. swait()
  1502. if TimeLocked.Value == true then
  1503. repeat
  1504. game:GetService("RunService").Heartbeat:wait()
  1505. until TimeLocked.Value == false or Suppressed.Value == true
  1506. end
  1507. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1508. MagniDamage(ref,4,0,6,0,"Normal",RootPart,.3,1,4,nil,true)
  1509. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.2),.5)
  1510. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(-.6,-1,-.4)*euler(.4,0,0)*euler(0,0,-.6),.5)
  1511. RW.C0=clerp(RW.C0,cf(1.4,0.3,.2)*euler(1.2,0,.3)*euler(0,.6,0),.5)
  1512. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.4)*euler(1,0,1)*euler(0,-1,0),.5)
  1513. RH.C0=clerp(RH.C0,cf(1,-.6,-.6)*euler(0,1.57,0)*euler(0,.2,0)*euler(0,0,.3),.5)
  1514. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.6),.5)
  1515. end
  1516. for i=0,1,0.2 do
  1517. swait()
  1518. if TimeLocked.Value == true then
  1519. repeat
  1520. game:GetService("RunService").Heartbeat:wait()
  1521. until TimeLocked.Value == false or Suppressed.Value == true
  1522. end
  1523. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,.5),.5)
  1524. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.5)*euler(.2,0,0)*euler(0,0,-.5),.5)
  1525. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(2,0,.6)*euler(0,.8,0),.5)
  1526. LW.C0=clerp(LW.C0,cf(-1.4,0.4,.2)*euler(1,0,-.2)*euler(0,-.6,0),.5)
  1527. RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.5),.5)
  1528. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,.5,0)*euler(-.1,0,.1),.5)
  1529. end
  1530. so("28144425",RightArm,.6,1.4)
  1531. so("92597369",RightArm,.6,1.4)
  1532. for i=0,1,0.2 do
  1533. swait()
  1534. if TimeLocked.Value == true then
  1535. repeat
  1536. game:GetService("RunService").Heartbeat:wait()
  1537. until TimeLocked.Value == false or Suppressed.Value == true
  1538. end
  1539. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1540. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,8,nil,true)
  1541. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.2),.5)
  1542. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(.6,-1,-.4)*euler(.4,0,0)*euler(0,0,.6),.5)
  1543. RW.C0=clerp(RW.C0,cf(.8,0.5,-.4)*euler(1,0,-1)*euler(0,1,0),.5)
  1544. LW.C0=clerp(LW.C0,cf(-1.4,0.3,.2)*euler(1.2,0,-.3)*euler(0,-.6,0),.5)
  1545. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.6),.5)
  1546. LH.C0=clerp(LH.C0,cf(-1,-.6,-.6)*euler(0,-1.57,0)*euler(0,.2,0)*euler(0,0,.3),.5)
  1547. end
  1548. ref.Parent=nil
  1549. end
  1550. attack=false
  1551. end
  1552.  
  1553. function attackthree()
  1554. attack=true
  1555. if ghostmode==false then
  1556. for i=0,1,0.15 do
  1557. swait()
  1558. if TimeLocked.Value == true then
  1559. repeat
  1560. game:GetService("RunService").Heartbeat:wait()
  1561. until TimeLocked.Value == false or Suppressed.Value == true
  1562. end
  1563. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1564. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*cf(0,.2,0),.3)
  1565. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  1566. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1567. RW.C0=clerp(RW.C0,cf(1,1,-.5)*euler(2.8,0,-.8)*euler(0,0,0),.3)
  1568. LW.C0=clerp(LW.C0,cf(-1,1,-.5)*euler(2.8,0,.8),.3)
  1569. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1570. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1571. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1572. break
  1573. end
  1574. end
  1575. so("203691492",prt12,1,1.2)
  1576. hitbox.Parent=modelzorz
  1577. hitbox.Anchored=true
  1578. hitbox.Size=vt(1,1,1)
  1579. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1580. for i=0,1,0.1 do
  1581. swait()
  1582. if TimeLocked.Value == true then
  1583. repeat
  1584. game:GetService("RunService").Heartbeat:wait()
  1585. until TimeLocked.Value == false or Suppressed.Value == true
  1586. end
  1587. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1588. MagniDamage(hitbox,3,0,7,math.random(5,10),"Normal",RootPart,.5,1,6,nil,true)
  1589. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.45)
  1590. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(.5,0,.5)*cf(0,.2,0),.45)
  1591. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0),.45)
  1592. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1593. RW.C0=clerp(RW.C0,cf(1,0.1,-.5)*euler(.2,0,-.8)*euler(0,0,0),.45)
  1594. LW.C0=clerp(LW.C0,cf(-1,0.1,-.5)*euler(.2,0,.8),.45)
  1595. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.45)
  1596. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.45)
  1597. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1598. break
  1599. end
  1600. end
  1601. hitbox.Parent=nil
  1602. else
  1603. for i=0,1,0.2 do
  1604. swait()
  1605. if TimeLocked.Value == true then
  1606. repeat
  1607. game:GetService("RunService").Heartbeat:wait()
  1608. until TimeLocked.Value == false or Suppressed.Value == true
  1609. end
  1610. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  1611. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.25,0,0),.5)
  1612. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(.8,0,.2)*euler(0,-1.5,0),.5)
  1613. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(.8,0,-.2)*euler(0,1.5,0),.5)
  1614. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1615. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.6),.5)
  1616. end
  1617. so("28144425",LeftArm,.6,1.4)
  1618. so("92597369",LeftArm,.6,1.4)
  1619. so("28144425",RightArm,.6,1.1)
  1620. so("92597369",RightArm,.6,1.1)
  1621. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1622. ref.Anchored=true
  1623. game:GetService("Debris"):AddItem(ref,1)
  1624. for i=0,1,0.07 do
  1625. swait()
  1626. if TimeLocked.Value == true then
  1627. repeat
  1628. game:GetService("RunService").Heartbeat:wait()
  1629. until TimeLocked.Value == false or Suppressed.Value == true
  1630. end
  1631. if i>.3 then
  1632. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.5)
  1633. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.2,0,0),.3)
  1634. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(3.2,0,-.1)*euler(0,1.5,0),.5)
  1635. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(3.2,0,.1)*euler(0,-1.5,0),.5)
  1636. RH.C0=clerp(RH.C0,cf(1,-.8,-.3)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.3),.5)
  1637. LH.C0=clerp(LH.C0,cf(-1,-.8,-.3)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1638. else
  1639. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1640. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1641. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1642. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1643. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  1644. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.1,0,0),.3)
  1645. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(2.6,0,-.1)*euler(0,-1.5,0),.5)
  1646. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(2.6,0,.1)*euler(0,1.5,0),.5)
  1647. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.4),.5)
  1648. LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.4),.5)
  1649. end
  1650. end
  1651. so("28144425",LeftArm,.6,1.2)
  1652. so("92597369",LeftArm,.6,1.2)
  1653. so("28144425",RightArm,.6,1.1)
  1654. so("92597369",RightArm,.6,1.1)
  1655. for i=0,1,0.15 do
  1656. swait()
  1657. if TimeLocked.Value == true then
  1658. repeat
  1659. game:GetService("RunService").Heartbeat:wait()
  1660. until TimeLocked.Value == false or Suppressed.Value == true
  1661. end
  1662. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1663. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1664. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1665. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1666. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  1667. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-1,-.8)*euler(.2,0,0),.6)
  1668. RW.C0=clerp(RW.C0,cf(1.4,0.4,-.1)*euler(.8,0,-.1)*euler(0,1.5,0),.5)
  1669. LW.C0=clerp(LW.C0,cf(-1.4,0.4,-.1)*euler(.8,0,.1)*euler(0,-1.5,0),.5)
  1670. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.05,0,.1),.5)
  1671. LH.C0=clerp(LH.C0,cf(-1,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.05,0,-.1),.5)
  1672. end
  1673. ref.Parent=nil
  1674. end
  1675. attack=false
  1676. end
  1677.  
  1678. --[[function attackthree()
  1679. attack=true
  1680. if ghostmode==false then
  1681. for i=0,1,0.15 do
  1682. swait()
  1683. if TimeLocked.Value == true then
  1684. repeat
  1685. game:GetService("RunService").Heartbeat:wait()
  1686. until TimeLocked.Value == false or Suppressed.Value == true
  1687. end
  1688. hwld.C0=clerp(hwld.C0,euler(1.2,0,0)*cf(0,1,0),.3)
  1689. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  1690. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(.2,0,0),.3)
  1691. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  1692. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.8,0,-.3)*euler(0,-2,0),.3)
  1693. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(.8,0,.4)*euler(0,-2,0),.3)
  1694. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  1695. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  1696. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1697. break
  1698. end
  1699. end
  1700. so("203691467",prt12,.8,1.4)
  1701. hitbox.Parent=modelzorz
  1702. hitbox.Anchored=true
  1703. hitbox.Size=vt(1,1,1)
  1704. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1705. for i=0,1,0.1 do
  1706. swait()
  1707. if TimeLocked.Value == true then
  1708. repeat
  1709. game:GetService("RunService").Heartbeat:wait()
  1710. until TimeLocked.Value == false or Suppressed.Value == true
  1711. end
  1712. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1713. MagniDamage(hitbox,3,0,8,10,"Normal",RootPart,.5,1,5,nil,true)
  1714. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,.8,0),.45)
  1715. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.45)
  1716. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(0,0,0),.45)
  1717. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.45)
  1718. RW.C0=clerp(RW.C0,cf(.4,0.5,-.4)*euler(2.3,0,-.6)*euler(0,-1.8,0),.45)
  1719. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(2.2,0,.4)*euler(0,-2,0),.45)
  1720. RH.C0=clerp(RH.C0,cf(1,-.8,-.1)*euler(0,1.57,0)*euler(0,-.6,0)*euler(-.1,0,-.1),.45)
  1721. LH.C0=clerp(LH.C0,cf(-1,-.9,.1)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,-.1),.45)
  1722. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1723. break
  1724. end
  1725. end
  1726. hitbox.Parent=nil
  1727. else
  1728. for i=0,1,0.2 do
  1729. swait()
  1730. if TimeLocked.Value == true then
  1731. repeat
  1732. game:GetService("RunService").Heartbeat:wait()
  1733. until TimeLocked.Value == false or Suppressed.Value == true
  1734. end
  1735. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  1736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.25,0,0),.5)
  1737. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(.8,0,.2)*euler(0,-1.5,0),.5)
  1738. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(.8,0,-.2)*euler(0,1.5,0),.5)
  1739. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1740. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.6),.5)
  1741. end
  1742. so("28144425",LeftArm,.6,1.4)
  1743. so("92597369",LeftArm,.6,1.4)
  1744. so("28144425",RightArm,.6,1.1)
  1745. so("92597369",RightArm,.6,1.1)
  1746. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1747. ref.Anchored=true
  1748. game:GetService("Debris"):AddItem(ref,1)
  1749. for i=0,1,0.07 do
  1750. swait()
  1751. if TimeLocked.Value == true then
  1752. repeat
  1753. game:GetService("RunService").Heartbeat:wait()
  1754. until TimeLocked.Value == false or Suppressed.Value == true
  1755. end
  1756. if i>.3 then
  1757. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.5)
  1758. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.2,0,0),.3)
  1759. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(3.2,0,-.1)*euler(0,1.5,0),.5)
  1760. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(3.2,0,.1)*euler(0,-1.5,0),.5)
  1761. RH.C0=clerp(RH.C0,cf(1,-.8,-.3)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.3),.5)
  1762. LH.C0=clerp(LH.C0,cf(-1,-.8,-.3)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1763. else
  1764. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1765. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1766. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1767. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1768. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  1769. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.1,0,0),.3)
  1770. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(2.6,0,-.1)*euler(0,-1.5,0),.5)
  1771. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(2.6,0,.1)*euler(0,1.5,0),.5)
  1772. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.4),.5)
  1773. LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.4),.5)
  1774. end
  1775. end
  1776. so("28144425",LeftArm,.6,1.2)
  1777. so("92597369",LeftArm,.6,1.2)
  1778. so("28144425",RightArm,.6,1.1)
  1779. so("92597369",RightArm,.6,1.1)
  1780. for i=0,1,0.15 do
  1781. swait()
  1782. if TimeLocked.Value == true then
  1783. repeat
  1784. game:GetService("RunService").Heartbeat:wait()
  1785. until TimeLocked.Value == false or Suppressed.Value == true
  1786. end
  1787. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1788. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1789. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1790. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1791. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  1792. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-1,-.8)*euler(.2,0,0),.6)
  1793. RW.C0=clerp(RW.C0,cf(1.4,0.4,-.1)*euler(.8,0,-.1)*euler(0,1.5,0),.5)
  1794. LW.C0=clerp(LW.C0,cf(-1.4,0.4,-.1)*euler(.8,0,.1)*euler(0,-1.5,0),.5)
  1795. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.05,0,.1),.5)
  1796. LH.C0=clerp(LH.C0,cf(-1,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.05,0,-.1),.5)
  1797. end
  1798. ref.Parent=nil
  1799. end
  1800. attack=false
  1801. end]]
  1802.  
  1803. function attackfour()
  1804. attack=true
  1805. if ghostmode==false then
  1806. for i=0,1,0.15 do
  1807. swait()
  1808. if TimeLocked.Value == true then
  1809. repeat
  1810. game:GetService("RunService").Heartbeat:wait()
  1811. until TimeLocked.Value == false or Suppressed.Value == true
  1812. end
  1813. hwld.C0=clerp(hwld.C0,euler(1.2,0,0)*cf(0,1,0),.3)
  1814. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  1815. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(.2,0,0),.3)
  1816. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  1817. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.8,0,-.3)*euler(0,-2,0),.3)
  1818. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(.8,0,.4)*euler(0,-2,0),.3)
  1819. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  1820. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  1821. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1822. break
  1823. end
  1824. end
  1825. so("203691467",prt12,.8,1.4)
  1826. hitbox.Parent=modelzorz
  1827. hitbox.Anchored=true
  1828. hitbox.Size=vt(1,1,1)
  1829. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1830. for i=0,1,0.1 do
  1831. swait()
  1832. if TimeLocked.Value == true then
  1833. repeat
  1834. game:GetService("RunService").Heartbeat:wait()
  1835. until TimeLocked.Value == false or Suppressed.Value == true
  1836. end
  1837. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1838. MagniDamage(hitbox,3,0,8,10,"Normal",RootPart,.5,1,5,nil,true)
  1839. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,.8,0),.45)
  1840. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.45)
  1841. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(0,0,0),.45)
  1842. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.45)
  1843. RW.C0=clerp(RW.C0,cf(.4,0.5,-.4)*euler(2.3,0,-.6)*euler(0,-1.8,0),.45)
  1844. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(2.2,0,.4)*euler(0,-2,0),.45)
  1845. RH.C0=clerp(RH.C0,cf(1,-.8,-.1)*euler(0,1.57,0)*euler(0,-.6,0)*euler(-.1,0,-.1),.45)
  1846. LH.C0=clerp(LH.C0,cf(-1,-.9,.1)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,-.1),.45)
  1847. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1848. break
  1849. end
  1850. end
  1851. hitbox.Parent=nil
  1852. else
  1853. for i=0,1,0.2 do
  1854. swait()
  1855. if TimeLocked.Value == true then
  1856. repeat
  1857. game:GetService("RunService").Heartbeat:wait()
  1858. until TimeLocked.Value == false or Suppressed.Value == true
  1859. end
  1860. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1861. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0)*euler(0,0,.8),.5)
  1862. RW.C0=clerp(RW.C0,cf(1.5,0.5,.2)*euler(2,0,1.4)*euler(0,.8,0),.5)
  1863. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1.4,0,.4)*euler(0,-3,0),.5)
  1864. RH.C0=clerp(RH.C0,cf(1.2,-.4,-.4)*euler(0,1.57,0)*euler(0,-.8,0)*euler(-.1,0,.25),.5)
  1865. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(0,-.8,0)*euler(0,0,.5),.5)
  1866. end
  1867. so("28144425",LeftArm,.6,1.2)
  1868. so("92597369",LeftArm,.6,1.2)
  1869. so("28144425",RightArm,.6,1)
  1870. so("92597369",RightArm,.6,1)
  1871. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1872. ref.Anchored=true
  1873. game:GetService("Debris"):AddItem(ref,1)
  1874. cul=0
  1875. for i=0,1,0.1 do
  1876. swait()
  1877. if TimeLocked.Value == true then
  1878. repeat
  1879. game:GetService("RunService").Heartbeat:wait()
  1880. until TimeLocked.Value == false or Suppressed.Value == true
  1881. end
  1882. cul=cul+.8
  1883. if i>.5 then
  1884. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1885. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  1886. RootJoint.C1=clerp(RootJoint.C1,cf(0,0,0,-1,-0,-0,0,0,1,0,1,0),.5)
  1887. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(-.2,0,-.8),.5)
  1888. LW.C0=clerp(LW.C0,cf(-1,0.4,-.4)*euler(1.57,0,-1.57)*euler(0,-3.14,0)*euler(.4,0,.4),.5)
  1889. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  1890. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  1891. else
  1892. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1893. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1894. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1895. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  1896. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1897. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  1898. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)*euler(0,0,-cul)
  1899. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(0,0,0),.5)
  1900. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-3.14,0),.5)
  1901. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  1902. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  1903. end
  1904. end
  1905. ref.Parent=nil
  1906. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  1907. end
  1908. attack=false
  1909. end
  1910.  
  1911. --[[function attackfour()
  1912. attack=true
  1913. if ghostmode==false then
  1914. dtatkfour=true
  1915. local decde=Instance.new("NumberValue",Decrease)
  1916. decde.Name="DecreaseDef"
  1917. decde.Value=-.4
  1918. Spectre()
  1919. if clone~=nil then
  1920. if clone:findFirstChild("Humanoid")~=nil then
  1921. workspace.CurrentCamera.CameraSubject=clone.Humanoid
  1922. end
  1923. end
  1924. Torso.Velocity=RootPart.CFrame.lookVector*100
  1925. for i=0,1,0.12 do
  1926. swait()
  1927. if TimeLocked.Value == true then
  1928. repeat
  1929. game:GetService("RunService").Heartbeat:wait()
  1930. until TimeLocked.Value == false or Suppressed.Value == true
  1931. end
  1932. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  1933. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(-.2,0,0),.5)
  1934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.5,0,.2)*euler(0,1.4,0),.5)
  1935. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.5,0,-.2)*euler(0,-1.4,0),.5)
  1936. RH.C0=clerp(RH.C0,cf(.9,-.6,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.3,0,-.2),.5)
  1937. LH.C0=clerp(LH.C0,cf(-.9,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.3,0,.2),.5)
  1938. end
  1939. so("28144425",LeftArm,.6,1.2)
  1940. so("92597369",LeftArm,.6,1.2)
  1941. so("28144425",RightArm,.6,1.2)
  1942. so("92597369",RightArm,.6,1.2)
  1943. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1944. ref.Anchored=true
  1945. game:GetService("Debris"):AddItem(ref,1)
  1946. for i=0,1,0.1 do
  1947. swait()
  1948. if TimeLocked.Value == true then
  1949. repeat
  1950. game:GetService("RunService").Heartbeat:wait()
  1951. until TimeLocked.Value == false or Suppressed.Value == true
  1952. end
  1953. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1954. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.5,1,8,nil,true)
  1955. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1956. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.5,1,8,nil,true)
  1957. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.4)
  1958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(.1,0,0),.4)
  1959. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.4,0,-.6)*euler(0,1.4,0),.4)
  1960. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(.4,0,.6)*euler(0,-1.4,0),.4)
  1961. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.4)
  1962. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.4)
  1963. end
  1964. ref.Parent=nil
  1965. Spectre()
  1966. dtatkfour=false
  1967. decde.Parent=nil
  1968. workspace.CurrentCamera.CameraSubject=Humanoid
  1969. else
  1970. for i=0,1,0.2 do
  1971. swait()
  1972. if TimeLocked.Value == true then
  1973. repeat
  1974. game:GetService("RunService").Heartbeat:wait()
  1975. until TimeLocked.Value == false or Suppressed.Value == true
  1976. end
  1977. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0)*euler(0,0,.8),.5)
  1979. RW.C0=clerp(RW.C0,cf(1.5,0.5,.2)*euler(2,0,1.4)*euler(0,.8,0),.5)
  1980. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1.4,0,.4)*euler(0,-3,0),.5)
  1981. RH.C0=clerp(RH.C0,cf(1.2,-.4,-.4)*euler(0,1.57,0)*euler(0,-.8,0)*euler(-.1,0,.25),.5)
  1982. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(0,-.8,0)*euler(0,0,.5),.5)
  1983. end
  1984. so("28144425",LeftArm,.6,1.2)
  1985. so("92597369",LeftArm,.6,1.2)
  1986. so("28144425",RightArm,.6,1)
  1987. so("92597369",RightArm,.6,1)
  1988. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1989. ref.Anchored=true
  1990. game:GetService("Debris"):AddItem(ref,1)
  1991. cul=0
  1992. for i=0,1,0.1 do
  1993. swait()
  1994. if TimeLocked.Value == true then
  1995. repeat
  1996. game:GetService("RunService").Heartbeat:wait()
  1997. until TimeLocked.Value == false or Suppressed.Value == true
  1998. end
  1999. cul=cul+.8
  2000. if i>.5 then
  2001. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2002. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2003. RootJoint.C1=clerp(RootJoint.C1,cf(0,0,0,-1,-0,-0,0,0,1,0,1,0),.5)
  2004. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(-.2,0,-.8),.5)
  2005. LW.C0=clerp(LW.C0,cf(-1,0.4,-.4)*euler(1.57,0,-1.57)*euler(0,-3.14,0)*euler(.4,0,.4),.5)
  2006. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2007. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2008. else
  2009. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2010. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2011. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2012. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2013. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2014. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2015. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)*euler(0,0,-cul)
  2016. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(0,0,0),.5)
  2017. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-3.14,0),.5)
  2018. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2019. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2020. end
  2021. end
  2022. ref.Parent=nil
  2023. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  2024. end
  2025. attack=false
  2026. end]]
  2027.  
  2028. function Spectre()
  2029. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2030. if ghostmode==false then
  2031. so("315746833",RootPart,.6,.8)
  2032. passive1.Parent=Decrease
  2033. passive2.Parent=Decrease
  2034. ghostmode=true
  2035. bladetype="None"
  2036. Character.Archivable=true
  2037. clone=Character:Clone()
  2038. clone.Parent=workspace
  2039. d=it("BoolValue",clone)
  2040. d.Name="Clean"
  2041. if clone:findFirstChild("Health")~=nil then clone.Health.Parent=nil end
  2042. if clone:findFirstChild("Ghostwalker")~=nil then clone.Ghostwalker.Parent=nil end
  2043. if clone:findFirstChild("Ghost Claws")~=nil then clone["Ghost Claws"].Parent=nil end
  2044. if clone:findFirstChild("Effects")~=nil then clone["Effects"].Parent=nil end
  2045. if clone:findFirstChild("")~=nil then clone[""].Parent=nil end
  2046. if clone:findFirstChild("Torso")~=nil then
  2047. for _,c in pairs(clone:children()) do
  2048. if c.Name=="DebounceHit" then
  2049. c:Destroy()
  2050. end
  2051. for _,v in pairs(c:children()) do
  2052. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  2053. v.Parent=nil
  2054. end
  2055. end
  2056. end
  2057. cNeck=clone.Torso:findFirstChild("Neck")
  2058. cRW=clone.Torso:findFirstChild("Right Shoulder")
  2059. cLW=clone.Torso:findFirstChild("Left Shoulder")
  2060. cRH=clone.Torso:findFirstChild("Right Hip")
  2061. cLH=clone.Torso:findFirstChild("Left Hip")
  2062. end
  2063. if clone:findFirstChild("HumanoidRootPart")~=nil then
  2064. cRootJoint=clone.HumanoidRootPart:findFirstChild("RootJoint")
  2065. end
  2066. cRightArm=clone:findFirstChild("Right Arm")
  2067. if cRightArm~=nil then
  2068. hwld.Part1=cRightArm
  2069. hwld.C0=euler(1.57,0,0)*cf(0,1,0)
  2070. wld1.C0=euler(0,-1.57,0)*cf(0,0,0)
  2071. end
  2072. if clone:findFirstChild("HumanoidRootPart")~=nil then
  2073. RootPart.CFrame=clone.HumanoidRootPart.CFrame*cf(0,0,-2)
  2074. if ominField~=nil and dtatkfour==false then
  2075. DecreaseStat(clone,"Damage",-.05,200)
  2076. RootPart.CFrame=cf(ominField)*cf(0,4,0)
  2077. newpos=vt(RootPart.Position.X,clone.HumanoidRootPart.Position.Y,RootPart.Position.Z)
  2078. RootPart.CFrame=cf(newpos,clone.HumanoidRootPart.Position)*euler(0,3.14,0)
  2079. end
  2080. end
  2081. Character.Archivable=false
  2082. Humanoid.JumpPower=70
  2083. --spdebounce.Parent=Character
  2084. Humanoid.Name="Spirit"
  2085. NoTarget.Parent=Stats
  2086. oHeadCol=Character["Body Colors"].HeadColor
  2087. oTorsoCol=Character["Body Colors"].TorsoColor
  2088. oLeftArmCol=Character["Body Colors"].LeftArmColor
  2089. oRightArmCol=Character["Body Colors"].RightArmColor
  2090. oLeftLegCol=Character["Body Colors"].LeftLegColor
  2091. oRightLegCol=Character["Body Colors"].RightLegColor
  2092. if face~=nil then face.Parent=nil end
  2093. if Character:FindFirstChild("Shirt Graphic") then Character:FindFirstChild("Shirt Graphic").Parent=nil end
  2094. if Torso:FindFirstChild("roblox") then Torso:FindFirstChild("roblox").Parent=nil end
  2095. --if bodycolors~=nil then bodycolors.Parent=nil end
  2096. --if Character:findFirstChild("Body Colors")~=nil then Character:findFirstChild("Body Colors").Parent=nil end
  2097. if shirt~=nil then shirt.Parent=nil end
  2098. if pants~=nil then pants.Parent=nil end
  2099. Character["Body Colors"].HeadColor=BrickColor.new(NewCol)
  2100. Character["Body Colors"].TorsoColor=BrickColor.new(NewCol)
  2101. Character["Body Colors"].LeftArmColor=BrickColor.new(NewCol)
  2102. Character["Body Colors"].RightArmColor=BrickColor.new(NewCol)
  2103. Character["Body Colors"].LeftLegColor=BrickColor.new(NewCol)
  2104. Character["Body Colors"].RightLegColor=BrickColor.new(NewCol)
  2105. for _,c in pairs(Character:children()) do
  2106. if c.className=="Part" and c.Name~="HumanoidRootPart" then c.BrickColor=BrickColor.new(NewCol) c.Transparency=.4 end
  2107. if c:IsA("Accoutrement") then if c:findFirstChild("Handle")~=nil then c.Handle.Transparency=1 end end
  2108. end
  2109. else
  2110. Humanoid.JumpPower=50
  2111. --spdebounce.Parent=nil
  2112. Humanoid.Name="Humanoid"
  2113. for _,v in pairs(clone:children()) do
  2114. if v:IsA("BasePart") then
  2115. v.CanCollide=false
  2116. end
  2117. end
  2118. NoTarget.Parent=nil
  2119. passive1.Parent=nil
  2120. passive2.Parent=nil
  2121. ghostmode=false
  2122. bladetype="Mana"
  2123. oldpos=nil
  2124. if clone~=nil then
  2125. if clone:findFirstChild("HumanoidRootPart")~=nil then oldpos=clone.HumanoidRootPart.CFrame end
  2126. cRootJoint,cNeck,cRW,cLW,cRH,cLH=nil,nil,nil,nil,nil,nil
  2127. hwld.Parent=handle
  2128. hwld.Part1=RightArm
  2129. hwld.C0=euler(1.57,0,0)*cf(0,1,0)
  2130. wld1.C0=euler(0,-1.57,0)*cf(0,0,0)
  2131. clone.Parent=nil
  2132. clone=nil
  2133. end
  2134. if oldpos~=nil then RootPart.CFrame=oldpos end
  2135. if face~=nil then face.Parent=Head end
  2136. if shirt~=nil then shirt.Parent=Character end
  2137. if pants~=nil then pants.Parent=Character end
  2138. if tshirt then
  2139. tshirt.Parent=Character
  2140. end
  2141. tshirt2.Parent=Torso
  2142. Character["Body Colors"].HeadColor=oHeadCol
  2143. Character["Body Colors"].TorsoColor=oTorsoCol
  2144. Character["Body Colors"].LeftArmColor=oLeftArmCol
  2145. Character["Body Colors"].RightArmColor=oRightArmCol
  2146. Character["Body Colors"].LeftLegColor=oLeftLegCol
  2147. Character["Body Colors"].RightLegColor=oRightLegCol
  2148. for _,c in pairs(Character:children()) do
  2149. if c.className=="Part" and c.Name~="HumanoidRootPart" then c.Transparency=0 end
  2150. if c:IsA("Accoutrement") then if c:findFirstChild("Handle")~=nil then c.Handle.Transparency=0 end end
  2151. end
  2152. Humanoid:ChangeState("GettingUp")
  2153. Neck.C0=necko*euler(.3,0,0)*euler(0,0,0)
  2154. RootJoint.C0=RootCF*cf(0,0,-1.4)*euler(0,0,0)
  2155. RW.C0=cf(1,0.8,-.5)*euler(2,0,-.8)*euler(0,3.14,0)
  2156. LW.C0=cf(-1,0.8,-.5)*euler(2,0,.8)*euler(0,3.14,0)
  2157. RH.C0=cf(1,-.8,-.8)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-1.4)
  2158. LH.C0=cf(-1,.2,-.8)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2)
  2159. RH.C1=RHC1*cf(0,0,0)*euler(0,0,0)
  2160. LH.C1=LHC1*cf(0,0,0)*euler(0,0,0)
  2161. end
  2162. end
  2163.  
  2164. function do1()
  2165. if attack==true then return end
  2166. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2167. if cooldowns[1]>=cooldownmax and mana.Value>=30 and ghostmode==false then
  2168. --if true then
  2169. attack=true
  2170. for i=0,1,0.1 do
  2171. swait()
  2172. if TimeLocked.Value == true then
  2173. repeat
  2174. game:GetService("RunService").Heartbeat:wait()
  2175. until TimeLocked.Value == false or Suppressed.Value == true
  2176. end
  2177. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  2178. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  2179. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.1,0,0),.4)
  2180. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.4)
  2181. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0),.4)
  2182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1)*euler(0,0,0),.4)
  2183. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.4)
  2184. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.4)
  2185. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2186. break
  2187. end --P1
  2188. end
  2189. RecentEnemy.Value=nil
  2190. cooldowns[1]=0
  2191. local dec=Instance.new("NumberValue",Decrease)
  2192. mana.Value=mana.Value-30
  2193. RecentEnemy.Value=nil
  2194. dec.Name="DecreaseMvmt"
  2195. dec.Value=10
  2196. local num=50
  2197. local ceef=LeftArm.Position
  2198. local look=MMouse.Hit.p
  2199. local MouseLook=cf((ceef+look)/2,look)
  2200. local hit=nil
  2201. local Parts={}
  2202. local deb=0
  2203. local thing=0
  2204. --so("33359415",LeftArm,1,2)
  2205. repeat
  2206. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2207. break
  2208. end --P1
  2209. hit,pos=rayCast(ceef,MouseLook.lookVector,4,Character)
  2210. if hit~=nil or RecentEnemy.Value~=nil then
  2211. num=1
  2212. end
  2213. local ref=part(3,workspace,0,1,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  2214. local mag=(ceef-pos).magnitude
  2215. ceef=ceef+(MouseLook.lookVector*4.1)
  2216. local rmsh=mesh("BlockMesh",ref,"","",vt(0,0,0),vt(1,mag*5,1))
  2217. ref.Anchored=true
  2218. ref.CFrame=CFrame.new((ceef+pos)/2,pos)*angles(1.57,0,0)
  2219. MagniDamage(ref,3,0,8,0,"Normal",RootPart,.2,1,0,nil,nil,true)
  2220. --[[local ref2=part(3,ref,0,0,BrickColor.new("Really red"),"Effect",vt())
  2221. local rmsh2=mesh("SpecialMesh",ref2,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(.6,mag*1.5,.6))
  2222. ref2.Anchored=true
  2223. ref2.CFrame=ref.CFrame*euler(0,math.random(-50,50),0)]]
  2224. table.insert(Parts,ref)
  2225. so("315743298",ref,.5,2)
  2226. da=0
  2227. for i=1,#Parts do
  2228. da=da+1
  2229. thing=thing+1
  2230. if thing%99==0 then
  2231. MagicCircle2(BrickColor.new(NewCol),Parts[i].CFrame*cf(math.random(-100,100)/100,0,math.random(-100,100)/100),1,8,1,-.04,8,-.04,.1,-.2)
  2232. end
  2233. end
  2234. for i=1,1 do
  2235. MagicCircle2(BrickColor.new(NewCol),Parts[da].CFrame*cf(math.random(-200,200)/100,0,math.random(-200,200)/100),1,8,1,-.04,8,-.04,.15,-.2)
  2236. MagicCircle2(BrickColor.new(NewCol),Parts[da].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,5,2,-.1,1,-.1,0.13,.8)
  2237. end
  2238. game:GetService("Debris"):AddItem(ref,5)
  2239. num=num-1
  2240. deb=deb+1
  2241. if deb>=2 then
  2242. swait()
  2243. if TimeLocked.Value == true then
  2244. repeat
  2245. game:GetService("RunService").Heartbeat:wait()
  2246. until TimeLocked.Value == false or Suppressed.Value == true
  2247. end
  2248. deb=0
  2249. end
  2250. until num<=0
  2251. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2252. else
  2253. if hit~=nil then
  2254. --Damagefunc(hit,6,8,0,"Normal",RootPart,.2,1,0,nil,nil,true)
  2255. end
  2256. end
  2257. local grabpos=Instance.new("BodyPosition")
  2258. if RecentEnemy.Value~=nil then
  2259. last=0
  2260. for i=1,#Parts do
  2261. last=last+1
  2262. end
  2263. grabpos.position=Parts[last].Position
  2264. if RecentEnemy.Value:findFirstChild("Torso")~=nil then
  2265. grabpos.Parent=RecentEnemy.Value
  2266. hit=RecentEnemy.Value.Torso
  2267. end
  2268. local stats = RecentEnemy.Value:FindFirstChild("Stats")
  2269. if stats then
  2270. if stats:FindFirstChild("Ulting") then
  2271. if stats.Ulting.Value==false then
  2272. stats.Suppressed.Value=true
  2273. workspace.suppFunc:FireServer(stats,true,3)
  2274. end
  2275. end
  2276. end
  2277. local damd=1
  2278. for i=#Parts,1,-1 do
  2279. swait()
  2280. if TimeLocked.Value == true then
  2281. repeat
  2282. game:GetService("RunService").Heartbeat:wait()
  2283. until TimeLocked.Value == false or Suppressed.Value == true
  2284. end
  2285. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2286. break
  2287. end --P1
  2288. if hit~=nil then
  2289. damd=damd*.95
  2290. Damagefunc(hit,4*damd,5*damd,0,"Normal",RootPart,.1,1,0,nil,nil,true)
  2291. end
  2292. last=0
  2293. for i=1,#Parts do
  2294. last=last+1
  2295. thing=thing+1
  2296. if thing%90==0 then
  2297. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2298. ref.Anchored=true
  2299. ref.CFrame=Parts[i].CFrame
  2300. game:GetService("Debris"):AddItem(ref,1)
  2301. so("315743331",ref,.2,2)
  2302. so("315743298",ref,.1,1.5)
  2303. MagicCircle2(BrickColor.new(NewCol),Parts[i].CFrame*cf(math.random(-100,100)/100,0,math.random(-100,100)/100),1,8,1,-.04,8,-.04,.15,-.1)
  2304. end
  2305. end
  2306. for i=1,1 do
  2307. MagicCircle2(BrickColor.new(NewCol),Parts[last].CFrame*cf(math.random(-200,200)/100,0,math.random(-200,200)/100),1,8,1,-.04,8,-.04,.25,-.2)
  2308. MagicCircle(BrickColor.new(NewCol),Parts[last].CFrame,1,1,1,1,1,1,.15,1,effects)
  2309. end
  2310. grabpos.position=Parts[i].Position
  2311. if RecentEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2312. RecentEnemy.Value.HumanoidRootPart.CFrame=cf(Parts[i].Position)
  2313. end
  2314. local stats = RecentEnemy.Value:FindFirstChild("Stats")
  2315. if stats then
  2316. if stats:FindFirstChild("Ulting") then
  2317. if stats.Ulting.Value==false then
  2318. stats.Suppressed.Value=false
  2319. end
  2320. end
  2321. end
  2322. Parts[i].Parent=nil
  2323. table.remove(Parts,i)
  2324. end
  2325. else
  2326. cooldowns[1]=40
  2327. for i=1,#Parts do
  2328. Parts[1].Parent=nil
  2329. table.remove(Parts,1)
  2330. end
  2331. end
  2332. grabpos.Parent=nil
  2333. dec.Parent=nil
  2334. attack=false
  2335. end
  2336. end
  2337.  
  2338. function do2()
  2339. if attack==true then return end
  2340. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2341. if cooldowns[2]>=cooldownmax and mana.Value>=35 and ghostmode==false then
  2342. --if true then
  2343. attack=true
  2344. cooldowns[2]=0
  2345. mana.Value=mana.Value-35
  2346. local MouseLook=cf((RootPart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  2347. local hit,pos = rayCast(RootPart.Position,MouseLook.lookVector,200,Character)
  2348. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2349. ref.Anchored=true
  2350. ref.CFrame=cf(pos)*cf(0,3,0)
  2351. game:GetService("Debris"):AddItem(ref,10)
  2352. hitfloor,posfloor=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2353. ominField=posfloor
  2354. ref.CFrame=cf(ominField)
  2355. so("315743331",ref,1,.8)
  2356. ominup=true
  2357. for i=0,1,0.1 do
  2358. swait()
  2359. if TimeLocked.Value == true then
  2360. repeat
  2361. game:GetService("RunService").Heartbeat:wait()
  2362. until TimeLocked.Value == false or Suppressed.Value == true
  2363. end
  2364. MagicBlock(BrickColor.new(NewCol),LeftArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1,effects)
  2365. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  2366. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  2367. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.1,0,0),.3)
  2368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  2369. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0),.3)
  2370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.6)*euler(0,1.4,0),.3)
  2371. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  2372. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  2373. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2374. break
  2375. end --P1
  2376. end
  2377. for i=0,1,0.1 do
  2378. swait()
  2379. if TimeLocked.Value == true then
  2380. repeat
  2381. game:GetService("RunService").Heartbeat:wait()
  2382. until TimeLocked.Value == false or Suppressed.Value == true
  2383. end
  2384. MagicCircle(BrickColor.new(NewCol),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.1,1,effects)
  2385. hwld.C0=clerp(hwld.C0,euler(.8,0,0)*cf(0,1,0),.3)
  2386. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  2387. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.2)*euler(.1,0,0),.3)
  2388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,-1),.3)
  2389. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0)*euler(-.5,0,0),.3)
  2390. LW.C0=clerp(LW.C0,cf(-1.5,0.4,0)*euler(2,0,-1)*euler(0,1.4,0)*euler(0,0,-1.2),.3)
  2391. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2392. LH.C0=clerp(LH.C0,cf(-1,.2,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,-.1),.3)
  2393. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2394. break
  2395. end --P1
  2396. end
  2397. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2398. else
  2399. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2400. ref2.Anchored=true
  2401. ref2.CFrame=ref.CFrame
  2402. game:GetService("Debris"):AddItem(ref2,1)
  2403. so("315743355",ref2,1,.4)
  2404. so("228343343",ref2,1,.8)
  2405. ref.CFrame=cf(ominField)
  2406. MagicCircle3(BrickColor.new(NewCol),cf(ref.Position),150,40,150,-4,10,-4,.04,1,effects)
  2407. MagniDamage(ref,15,0,12,40,"Knockdown2",ref,0,1,8,nil,nil,true,"Defense",.1,200)
  2408. ominup=false
  2409. swait(10)
  2410. end
  2411. ref.Parent=nil
  2412. attack=false
  2413. end
  2414. end
  2415.  
  2416. function do3()
  2417. if holdc==true then
  2418. holdc=false
  2419. end
  2420. if attack==true then return end
  2421. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2422. if cooldowns[3]>=20 and mana.Value>=5 and ghostmode==false then
  2423. --if true then
  2424. holdc=true
  2425. attack=true
  2426. orbcharge=0
  2427. bladetype="Stable"
  2428. --while holdz==true do
  2429. mdec3.Parent=Decrease
  2430. for i=0,1,0.1 do
  2431. swait()
  2432. if TimeLocked.Value == true then
  2433. repeat
  2434. game:GetService("RunService").Heartbeat:wait()
  2435. until TimeLocked.Value == false or Suppressed.Value == true
  2436. end
  2437. hwld.C0=clerp(hwld.C0,euler(2,-.2,0)*cf(0,1,0),.3)
  2438. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2439. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(-.4,0,0),.3)
  2440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  2441. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(2,0,.4)*euler(0,0,0),.3)
  2442. LW.C0=clerp(LW.C0,cf(.2,0.5,-.5)*euler(1.7,0,1)*euler(0,0,0),.3)
  2443. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  2444. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  2445. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2446. break
  2447. end --P1
  2448. end
  2449. while holdc==true and orb<maxorbs do
  2450. swait()
  2451. if TimeLocked.Value == true then
  2452. repeat
  2453. game:GetService("RunService").Heartbeat:wait()
  2454. until TimeLocked.Value == false or Suppressed.Value == true
  2455. end
  2456. orbcharge=orbcharge+1
  2457. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2458. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul,1,1,1,-.01,5,-.01,.09,1,effects)
  2459. --MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul*euler(1.57,0,0),1,1,1,-.01,10,-.01,.09,1,effects)
  2460. --MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul*euler(0,0,1.57),1,1,1,-.01,10,-.01,.09,1,effects)
  2461. if orbcharge>=15 then
  2462. mana.Value=mana.Value-5
  2463. orb=orb+1
  2464. holdc=false
  2465. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0),15,15,15,-1,-1,-1,.09,1,effects)
  2466. mdec3.Parent=nil
  2467. break
  2468. elseif Stagger.Value==true or Stun.Value>=StunT.Value or Unstable.Value==true or Stun.Value==true or Suppressed.Value==true then
  2469. mdec3.Parent=nil
  2470. break
  2471. end
  2472. end
  2473. if orbcharge<15 and orb>0 and orblimit<maxorbs and mana.Value>=5 then
  2474. cooldowns[3]=cooldowns[3]-20
  2475. mana.Value=mana.Value-5
  2476. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2477. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul,1,1,1,-.01,10,-.01,.09,1,effects)
  2478. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul*euler(1.57,0,0),1,1,1,-.01,10,-.01,.09,1,effects)
  2479. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul*euler(0,0,1.57),1,1,1,-.01,10,-.01,.09,1,effects)
  2480. orb1=part(3,effects,0,1,BrickColor.new("Black"),"Orb",vt(0.2,0.2,0.2))
  2481. owld1=weld(orb1,orb1,RootPart,euler(0,0,0))
  2482. orb2=part(3,orb1,0,.6,BrickColor.new(NewCol),"Orb",vt(0.2,0.2,0.2)) orb2.Material="Neon"
  2483. omsh=mesh("SpecialMesh",orb2,"Sphere","nil",vt(0,0,0),vt(5,5,5))
  2484. owld2=weld(orb2,orb2,orb1,cf(0,0,0))
  2485. val=it("BoolValue",orb1)
  2486. val.Value=false
  2487. orblimit=orblimit+1
  2488. orb=orb-1
  2489. table.insert(Effects,{orb1,"Orb",orb2,owld1,owld2,400,0,cf(0,math.random(400,1200)/100,0),0,euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,math.random(2,5)/100,math.random(10,15)/100,math.random(2,5)/100,val})
  2490. so("183763498",orb1,.4,1)
  2491. end
  2492. bladetype="Mana"
  2493. attack=false
  2494. mdec3.Parent=nil
  2495. end
  2496. end
  2497.  
  2498. function do4()
  2499. if attack==true then return end
  2500. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2501. if cooldowns[4]>=cooldownmax and mana.Value>=40 and ghostmode==false then
  2502. --if true then
  2503. attack=true
  2504. cooldowns[4]=0
  2505. mana.Value=mana.Value-40
  2506. doing4=true
  2507. local decenem=Instance.new("NumberValue",nil)
  2508. decenem.Name="DecreaseMvmt"
  2509. decenem.Value=10
  2510. game:GetService("Debris"):AddItem(decenem,1)
  2511. if PhantomEnemy.Value~=nil then
  2512. if PhantomEnemy.Value:findFirstChild("Stats")~=nil then
  2513. if PhantomEnemy.Value.Stats:findFirstChild("Decrease")~=nil then
  2514. decenem.Parent=PhantomEnemy.Value.Stats.Decrease
  2515. end
  2516. end
  2517. end
  2518. UltVal.Value=true
  2519. for i=0,1,0.1 do
  2520. swait()
  2521. if TimeLocked.Value == true then
  2522. repeat
  2523. game:GetService("RunService").Heartbeat:wait()
  2524. until TimeLocked.Value == false or Suppressed.Value == true
  2525. end
  2526. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2527. break
  2528. end
  2529. if Unstable.Value==true then
  2530. Unstable.Value=false
  2531. Unstable.Timer.Value=0
  2532. end
  2533. if Stagger.Value==true then
  2534. Stagger.Value=false
  2535. end --P2
  2536. PhantomPos=RootPart.CFrame
  2537. if PhantomEnemy.Value~=nil then
  2538. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2539. PhantomPos=PhantomEnemy.Value.HumanoidRootPart.CFrame
  2540. end
  2541. end
  2542. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,1,0),.3)
  2543. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  2544. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.3)
  2545. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,-1),.3)
  2546. RW.C0=clerp(RW.C0,cf(.8,0.5,-.3)*euler(.1,0,.4)*euler(0,1.2,0)*euler(1.2,0,0),.3)
  2547. LW.C0=clerp(LW.C0,cf(-1.2,0.4,-.2)*euler(.8,0,.6)*euler(0,1,0),.3)
  2548. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2549. LH.C0=clerp(LH.C0,cf(-1,.2,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,-.1),.3)
  2550. end
  2551. mov=0
  2552. Portal1={}
  2553. Portal2={}
  2554. for i=0,1,0.1 do
  2555. swait()
  2556. if TimeLocked.Value == true then
  2557. repeat
  2558. game:GetService("RunService").Heartbeat:wait()
  2559. until TimeLocked.Value == false or Suppressed.Value == true
  2560. end
  2561. mov=mov-.5709
  2562. for i=1,#Portal1 do
  2563. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2564. end
  2565. for i=1,#Portal2 do
  2566. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2567. end
  2568. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,1,0),.3)
  2569. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  2570. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.2,0,0),.3)
  2571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,mov)*euler(0,0,.4)*euler(0,0,0),.3)
  2572. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.3)*euler(.1,0,.4)*euler(0,-1.2,0)*euler(.4,0,0),.3)
  2573. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-.6)*euler(0,0,0),.3)
  2574. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2575. LH.C0=clerp(LH.C0,cf(-.8,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.3),.3)
  2576. CF=RootPart.CFrame*euler(0,mov,0)*cf(0,0,-8)
  2577. MagicCircle(BrickColor.new(NewCol2),CF,1,1,1,5,5,5,.1,1,effects)
  2578. table.insert(Portal1,{CF,euler(0,mov,0)*cf(0,0,-8)})
  2579. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2580. ref.Anchored=true
  2581. ref.CFrame=CF
  2582. game:GetService("Debris"):AddItem(ref,1)
  2583. so("183763493",ref,.2,.8)
  2584. PhantomPos=RootPart.CFrame
  2585. if PhantomEnemy.Value~=nil then
  2586. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2587. PhantomPos=PhantomEnemy.Value.HumanoidRootPart.CFrame
  2588. CF2=sRootPart.CFrame*euler(0,mov,0)*cf(0,0,-8)
  2589. MagicCircle(BrickColor.new(NewCol2),CF2,1,1,1,5,5,5,.1,1,effects)
  2590. table.insert(Portal2,{CF2,euler(0,mov,0)*cf(0,0,-8)})
  2591. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2592. ref.Anchored=true
  2593. ref.CFrame=CF2
  2594. game:GetService("Debris"):AddItem(ref,1)
  2595. so("183763493",ref,.2,.8)
  2596. end
  2597. end
  2598. end
  2599. bladetype="Stable"
  2600. mov=0
  2601. for i=0,1,0.1 do
  2602. swait()
  2603. if TimeLocked.Value == true then
  2604. repeat
  2605. game:GetService("RunService").Heartbeat:wait()
  2606. until TimeLocked.Value == false or Suppressed.Value == true
  2607. end
  2608. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2609. break
  2610. end
  2611. if Unstable.Value==true then
  2612. Unstable.Value=false
  2613. Unstable.Timer.Value=0
  2614. end
  2615. if Stagger.Value==true then
  2616. Stagger.Value=false
  2617. end --P2
  2618. for i=1,#Portal1 do
  2619. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2620. end
  2621. for i=1,#Portal2 do
  2622. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2623. end
  2624. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,.8,0),.3)
  2625. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2626. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.3)
  2627. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,0)*euler(0,0,0),.3)
  2628. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,1.57)*euler(0,0,0)*euler(-.6,0,0),.3)
  2629. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-1)*euler(0,0,0),.3)
  2630. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.3)
  2631. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.3)
  2632. end
  2633. for i=0,1,0.1 do
  2634. swait()
  2635. if TimeLocked.Value == true then
  2636. repeat
  2637. game:GetService("RunService").Heartbeat:wait()
  2638. until TimeLocked.Value == false or Suppressed.Value == true
  2639. end
  2640. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2641. break
  2642. end
  2643. if Unstable.Value==true then
  2644. Unstable.Value=false
  2645. Unstable.Timer.Value=0
  2646. end
  2647. if Stagger.Value==true then
  2648. Stagger.Value=false
  2649. end --P2
  2650. for i=1,#Portal1 do
  2651. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2652. end
  2653. for i=1,#Portal2 do
  2654. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2655. end
  2656. hwld.C0=clerp(hwld.C0,euler(1.7,0,0)*cf(0,1,0),.3)
  2657. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2658. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.4,0,0),.3)
  2659. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0)*euler(0,0,0),.3)
  2660. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(2.8,0,.2)*euler(0,1,0)*euler(0,0,0),.3)
  2661. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1)*euler(0,0,0),.3)
  2662. RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.3)
  2663. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.3)
  2664. end
  2665. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame,80,6,80,3,-.3,3,.08,1,effects)
  2666. so("315743350",RootPart,1,.8)
  2667. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2668. ref.Anchored=true
  2669. ref.CFrame=RootPart.CFrame
  2670. game:GetService("Debris"):AddItem(ref,1)
  2671. so("315743350",ref,1,.8)
  2672. local whichportal=false
  2673. if doing4==true then
  2674. whichportal=true
  2675. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame,80,6,80,3,-.3,3,.08,1,effects)
  2676. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2677. ref.Anchored=true
  2678. game:GetService("Debris"):AddItem(ref,1)
  2679. for i=1,#Portal1 do
  2680. ref.CFrame=RootPart.CFrame*Portal1[i][2]
  2681. MagniDamage(ref,5,0,7.5,0,"Normal",RootPart,.1,1,4,nil,nil,true)
  2682. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,10,1,.1,1,effects)
  2683. end
  2684. ref.Parent=nil
  2685. for i=1,#Portal1 do
  2686. table.remove(Portal1,1)
  2687. end
  2688. end
  2689. local dec=Instance.new("NumberValue",Decrease)
  2690. dec.Name="DecreaseMvmt"
  2691. dec.Value=0
  2692. bladetype="None"
  2693. if Rooted.Value==false then
  2694. RootPart.CFrame=sRootPart.CFrame*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)
  2695. end
  2696. doing4=false
  2697. for i=0,1,0.05 do
  2698. swait()
  2699. if TimeLocked.Value == true then
  2700. repeat
  2701. game:GetService("RunService").Heartbeat:wait()
  2702. until TimeLocked.Value == false or Suppressed.Value == true
  2703. end
  2704. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2705. break
  2706. end
  2707. if Unstable.Value==true then
  2708. Unstable.Value=false
  2709. Unstable.Timer.Value=0
  2710. end
  2711. if Stagger.Value==true then
  2712. Stagger.Value=false
  2713. end --P2
  2714. for i=1,#Portal1 do
  2715. if Portal1[i][2]~=nil then
  2716. Portal1[i][2]=Portal1[i][2]*cf(0,0,1)*euler(0,.2,0)
  2717. end
  2718. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2719. end
  2720. for i=1,#Portal2 do
  2721. if Portal2[i][2]~=nil then
  2722. Portal2[i][2]=Portal2[i][2]*cf(0,0,1)*euler(0,.2,0)
  2723. end
  2724. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2725. end
  2726. if i<=.5 then
  2727. hwld.C0=clerp(hwld.C0,euler(1.7,0,0)*cf(0,1,0),.3)
  2728. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*euler(20*i,0,0)*cf(0,0,0),.3)
  2729. else
  2730. hwld.C0=clerp(hwld.C0,euler(-1.57,0,0)*cf(0,1,0),.3)
  2731. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  2732. end
  2733. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(-.3,0,0),.2)
  2734. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.4)*euler(0,0,0),.2)
  2735. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(3.3,0,.4)*euler(0,.4,0)*euler(0,0,0),.2)
  2736. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.6)*euler(0,0,0),.2)
  2737. RH.C0=clerp(RH.C0,cf(1.2,-.8,-.2)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,.1),.2)
  2738. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.2)
  2739. end
  2740. bladetype="Stable"
  2741. for i=0,1,0.3 do
  2742. swait()
  2743. if TimeLocked.Value == true then
  2744. repeat
  2745. game:GetService("RunService").Heartbeat:wait()
  2746. until TimeLocked.Value == false or Suppressed.Value == true
  2747. end
  2748. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2749. break
  2750. end
  2751. if Unstable.Value==true then
  2752. Unstable.Value=false
  2753. Unstable.Timer.Value=0
  2754. end
  2755. if Stagger.Value==true then
  2756. Stagger.Value=false
  2757. end --P2
  2758. for i=1,#Portal1 do
  2759. if Portal1[i][2]~=nil then
  2760. if whichportal==true then
  2761. --Portal1[i][2]=Portal1[i][2]*cf(0,0,-1.4)*euler(0,-.6,0)
  2762. Portal1[i][2]=Portal1[i][2]*cf(0,0,2)*euler(0,.8,0)
  2763. else
  2764. Portal1[i][2]=Portal1[i][2]*cf(0,0,2)*euler(0,.4,0)
  2765. end
  2766. end
  2767. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2768. end
  2769. for i=1,#Portal2 do
  2770. if Portal2[i][2]~=nil then
  2771. if whichportal==true then
  2772. --Portal2[i][2]=Portal2[i][2]*cf(0,0,-1.4)*euler(0,-.6,0)
  2773. Portal2[i][2]=Portal2[i][2]*cf(0,0,2)*euler(0,.8,0)
  2774. else
  2775. Portal2[i][2]=Portal2[i][2]*cf(0,0,2)*euler(0,.4,0)
  2776. end
  2777. end
  2778. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2779. end
  2780. hwld.C0=clerp(hwld.C0,euler(-1.6,0,0)*cf(0,1,0),.4)
  2781. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  2782. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.1,0,0),.4)
  2783. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(0,0,.4)*euler(0,0,0),.4)
  2784. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,.4)*euler(0,0,0)*euler(0,0,0),.4)
  2785. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.2)*euler(0,0,0),.4)
  2786. RH.C0=clerp(RH.C0,cf(1.2,-.6,-.3)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,0),.4)
  2787. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.4)
  2788. end
  2789. numbr=0
  2790. if whichportal==true then
  2791. numbr=#Portal2
  2792. else
  2793. numbr=#Portal1
  2794. end
  2795. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2796. ref.Anchored=true
  2797. game:GetService("Debris"):AddItem(ref,1)
  2798. for i=1,numbr do
  2799. swait()
  2800. if TimeLocked.Value == true then
  2801. repeat
  2802. game:GetService("RunService").Heartbeat:wait()
  2803. until TimeLocked.Value == false or Suppressed.Value == true
  2804. end
  2805. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2806. break
  2807. end
  2808. if Unstable.Value==true then
  2809. Unstable.Value=false
  2810. Unstable.Timer.Value=0
  2811. end
  2812. if Stagger.Value==true then
  2813. Stagger.Value=false
  2814. end --P2
  2815. if whichportal==true then
  2816. for i=1,3 do
  2817. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal2[1][2]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,1,.2,.6,20,.6,.1,1,effects)
  2818. end
  2819. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2820. ref2.Anchored=true
  2821. ref2.CFrame=ref.CFrame
  2822. game:GetService("Debris"):AddItem(ref2,1)
  2823. so("315748999",ref2,.6,.6)
  2824. so("315748949",ref2,.6,.8)
  2825. ref.CFrame=RootPart.CFrame*Portal2[1][2]
  2826. MagniDamage(ref,10,0,6.5,0,"Normal",RootPart,.05,1,4,nil,nil,true,"Defense",.03,300)
  2827. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal2[1][2]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,8,8,8,.1,1,effects)
  2828. table.remove(Portal2,1)
  2829. else
  2830. for i=1,2 do
  2831. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[1][2]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,1,.2,.6,20,.6,.1,1,effects)
  2832. end
  2833. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2834. ref2.Anchored=true
  2835. ref2.CFrame=ref.CFrame
  2836. game:GetService("Debris"):AddItem(ref2,1)
  2837. so("315748999",ref2,.6,.6)
  2838. so("315748949",ref2,.6,.8)
  2839. ref.CFrame=RootPart.CFrame*Portal1[1][2]
  2840. MagniDamage(ref,8,0,6.5,0,"Normal",RootPart,.01,1,3,nil,nil,true,"Defense",.05,300)
  2841. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[1][2]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,8,8,8,.1,1,effects)
  2842. table.remove(Portal1,1)
  2843. end
  2844. for i=1,#Portal1 do
  2845. --[[if Portal1[i][2]~=nil then
  2846. Portal1[i][2]=Portal1[i][2]*euler(0,0,0)*cf(0,0,-1)
  2847. end]]
  2848. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2849. end
  2850. for i=1,#Portal2 do
  2851. --[[if Portal2[i][2]~=nil then
  2852. Portal2[i][2]=Portal2[i][2]*euler(0,0,0)*cf(0,0,-1)
  2853. end]]
  2854. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2855. end
  2856. hwld.C0=clerp(hwld.C0,euler(-1.6,0,0)*cf(0,1,0),.4)
  2857. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  2858. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.1,0,0),.4)
  2859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(0,0,.4)*euler(0,0,0),.4)
  2860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,.4)*euler(0,0,0)*euler(0,0,0),.4)
  2861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.2)*euler(0,0,0),.4)
  2862. RH.C0=clerp(RH.C0,cf(1.2,-.6,-.3)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,0),.4)
  2863. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.4)
  2864. end
  2865. decenem.Parent=nil
  2866. ref.Parent=nil
  2867. bladetype="Mana"
  2868. dec.Parent=nil
  2869. attack=false
  2870. UltVal.Value=false
  2871. end
  2872. end
  2873.  
  2874. function DecreaseStat(Model,Stat,Amount,Duration)
  2875. if Model:findFirstChild("Stats")~=nil then
  2876. if Model.Stats[Stat]~=nil then
  2877. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2878. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2879. dur=Instance.new("NumberValue",d)
  2880. dur.Name="Duration"
  2881. dur.Value=Duration
  2882. game:GetService("Debris"):AddItem(d,20)
  2883. if Stat=="Damage" then
  2884. d.Name="DecreaseAtk"
  2885. elseif Stat=="Defense" then
  2886. d.Name="DecreaseDef"
  2887. elseif Stat=="Movement" then
  2888. d.Name="DecreaseMvmt"
  2889. end
  2890. if Model:findFirstChild("Torso")~=nil then
  2891. display=""
  2892. if Stat=="Damage" then
  2893. if Amount>0 then
  2894. display="-Damage"
  2895. else
  2896. display="+Damage"
  2897. end
  2898. elseif Stat=="Defense" then
  2899. if Amount>0 then
  2900. display="-Defense"
  2901. else
  2902. display="+Defense"
  2903. end
  2904. elseif Stat=="Movement" then
  2905. if Amount>0 then
  2906. display="-Movement"
  2907. else
  2908. display="+Movement"
  2909. end
  2910. end
  2911. workspace.damguiFunc:FireServer(Model,display,"Debuff")
  2912. end
  2913. d.Value=Amount
  2914. end
  2915. end
  2916. end
  2917.  
  2918. function GetDist(Part1,Part2,magni)
  2919. local targ=Part1.Position-Part2.Position
  2920. local mag=targ.magnitude
  2921. if mag<=magni then
  2922. return true
  2923. else
  2924. return false
  2925. end
  2926. end
  2927.  
  2928. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,hitted)
  2929. for _,c in pairs(workspace:children()) do
  2930. local hum=c:findFirstChild("Humanoid")
  2931. if c:findFirstChild("Spirit")~=nil then
  2932. hum=c.Spirit
  2933. end
  2934. if hum~=nil then
  2935. local head=nil
  2936. for _,d in pairs(c:children()) do
  2937. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2938. if d.className=="Model" and ranged~=true then
  2939. head=d:findFirstChild("Hitbox")
  2940. if d.Parent==Character then break end
  2941. if head~=nil then
  2942. local targ=head.Position-Part.Position
  2943. local mag=targ.magnitude
  2944. if mag<=magni and c.Name~=Player.Name then
  2945. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2946. ref.Anchored=true
  2947. ref.CFrame=cf(head.Position)
  2948. game:GetService("Debris"):AddItem(ref,1)
  2949. hitnum=math.random(1,5)
  2950. if hitnum==1 then so("199148971",ref,1,1)
  2951. elseif hitnum==2 then so("199149025",ref,1,1)
  2952. elseif hitnum==3 then so("199149072",ref,1,1)
  2953. elseif hitnum==4 then so("199149109",ref,1,1)
  2954. elseif hitnum==5 then so("199149119",ref,1,1)
  2955. end
  2956. --
  2957. end
  2958. end
  2959. end
  2960. if d.className=="Part" then
  2961. head=d
  2962. if head~=nil then
  2963. local targ=head.Position-Part.Position
  2964. local mag=targ.magnitude
  2965. if mag<=magni and c.Name~=Player.Name then
  2966. if stun==nil then
  2967. stun=math.random(5,10)
  2968. end
  2969. local Rang=nil
  2970. if Ranged==false then
  2971. Rang=true
  2972. end
  2973. local stag=nil
  2974. if shbash==true then
  2975. stag=true
  2976. end
  2977. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,nil,hitted)
  2978. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2979. end
  2980. end
  2981. end
  2982. end
  2983. end
  2984. end
  2985. end
  2986.  
  2987. function MagniBuff(Part,magni,Dec,DecAm,Dur)
  2988. if Player.Neutral==true then
  2989. DecreaseStat(Character,Dec,DecAm,Dur)
  2990. end
  2991. for _,c in pairs(workspace:children()) do
  2992. local hum=c:findFirstChild("Humanoid")
  2993. if hum~=nil then
  2994. local head=c:findFirstChild("Torso")
  2995. if head~=nil then
  2996. local targ=head.Position-Part.Position
  2997. local mag=targ.magnitude
  2998. cando=true
  2999. if mag<=magni then
  3000. if Player.Neutral==false then
  3001. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  3002. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
  3003. else cando=false
  3004. end
  3005. if head.Parent:findFirstChild("Alignment")~=nil then
  3006. if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
  3007. end
  3008. else cando=false
  3009. end
  3010. if cando==true then
  3011. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  3012. end
  3013. end
  3014. end
  3015. end
  3016. end
  3017. end
  3018.  
  3019. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3020. local ignore={Ignore,workspace.CurrentCamera}
  3021. for _,v in pairs(workspace:children()) do
  3022. if v:IsA("BasePart") or v.className=="UnionOperation" then
  3023. if v.Name=="Effect" or v.Name=="Reference" or v.CanCollide==false then
  3024. table.insert(ignore,v)
  3025. end
  3026. elseif v.className=="Model" then
  3027. if v:FindFirstChild("Humanoid") then
  3028. for _,c in pairs(v:children()) do
  3029. if c.className=="Model" or c:IsA("Accoutrement") then
  3030. table.insert(ignore,c)
  3031. end
  3032. end
  3033. end
  3034. end
  3035. end
  3036. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), ignore)
  3037. end
  3038.  
  3039. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  3040. LastPoint=Point
  3041. function effect(Color,Ref,LP,P1,returnn)
  3042. if LP==nil or P1==nil then return end
  3043. local effectsmsh=Instance.new("CylinderMesh")
  3044. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3045. effectsmsh.Name="Mesh"
  3046. local effectsg=Instance.new("Part")
  3047. NoOutline(effectsg)
  3048. effectsg.formFactor=3
  3049. effectsg.CanCollide=false
  3050. effectsg.Name="Eff"
  3051. effectsg.Locked=true
  3052. effectsg.Anchored=true
  3053. effectsg.Size=Vector3.new(0.5,1,0.5)
  3054. effectsg.Parent=workspace
  3055. effectsmsh.Parent=effectsg
  3056. effectsg.BrickColor=BrickColor.new(Color)
  3057. effectsg.Reflectance=Ref
  3058. local point1=P1
  3059. local mg=(LP.p - point1.p).magnitude
  3060. effectsg.Size=Vector3.new(0.5,mg,0.5)
  3061. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  3062. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3063. game:GetService("Debris"):AddItem(effectsg,2)
  3064. if returnn then return effectsg end
  3065. if not returnn then
  3066. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  3067. end
  3068. end
  3069.  
  3070. local function CFrameFromTopBack(at, top, back)
  3071. local right = top:Cross(back)
  3072. return CFrame.new(at.x, at.y, at.z,
  3073. right.x, top.x, back.x,
  3074. right.y, top.y, back.y,
  3075. right.z, top.z, back.z)
  3076. end
  3077.  
  3078. function Triangle(a, b, c)
  3079. local edg1 = (c-a):Dot((b-a).unit)
  3080. local edg2 = (a-b):Dot((c-b).unit)
  3081. local edg3 = (b-c):Dot((a-c).unit)
  3082. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  3083. a, b, c = a, b, c
  3084. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  3085. a, b, c = b, c, a
  3086. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  3087. a, b, c = c, a, b
  3088. else
  3089. assert(false, "unreachable")
  3090. end
  3091.  
  3092. local len1 = (c-a):Dot((b-a).unit)
  3093. local len2 = (b-a).magnitude - len1
  3094. local width = (a + (b-a).unit*len1 - c).magnitude
  3095.  
  3096. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  3097.  
  3098. local list = {}
  3099.  
  3100. if len1 > 0.01 then
  3101. local w1 = Instance.new('WedgePart', m)
  3102. game:GetService("Debris"):AddItem(w1,5)
  3103. w1.Material = "SmoothPlastic"
  3104. w1.FormFactor = 'Custom'
  3105. w1.BrickColor = BrickColor.new("Medium blue")
  3106. w1.Transparency = 0
  3107. w1.Reflectance = 0
  3108. w1.Material = "SmoothPlastic"
  3109. w1.CanCollide = false
  3110. NoOutline(w1)
  3111. local sz = Vector3.new(0.2, width, len1)
  3112. w1.Size = sz
  3113. local sp = Instance.new("SpecialMesh",w1)
  3114. sp.MeshType = "Wedge"
  3115. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  3116. w1:BreakJoints()
  3117. w1.Anchored = true
  3118. w1.Parent = workspace
  3119. w1.Transparency = 0.7
  3120. table.insert(Effects,{w1,"Disappear",.05})
  3121. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  3122. table.insert(list,w1)
  3123. end
  3124.  
  3125. if len2 > 0.01 then
  3126. local w2 = Instance.new('WedgePart', m)
  3127. game:GetService("Debris"):AddItem(w2,5)
  3128. w2.Material = "SmoothPlastic"
  3129. w2.FormFactor = 'Custom'
  3130. w2.BrickColor = BrickColor.new("Medium blue")
  3131. w2.Transparency = 0
  3132. w2.Reflectance = 0
  3133. w2.Material = "SmoothPlastic"
  3134. w2.CanCollide = false
  3135. NoOutline(w2)
  3136. local sz = Vector3.new(0.2, width, len2)
  3137. w2.Size = sz
  3138. local sp = Instance.new("SpecialMesh",w2)
  3139. sp.MeshType = "Wedge"
  3140. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  3141. w2:BreakJoints()
  3142. w2.Anchored = true
  3143. w2.Parent = workspace
  3144. w2.Transparency = 0.7
  3145. table.insert(Effects,{w2,"Disappear",.05})
  3146. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  3147. table.insert(list,w2)
  3148. end
  3149. return unpack(list)
  3150. end
  3151.  
  3152. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3153. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3154. local wld=nil
  3155. prt.CFrame=cframe
  3156. prt.Anchored=true
  3157. --[[if Type~=3 then
  3158. prt.Anchored=true
  3159. else
  3160. prt.Anchored=false
  3161. wld=weld(prt,prt,prt2,cframe)
  3162. end]]
  3163. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3164. game:GetService("Debris"):AddItem(prt,10)
  3165. if Type==1 or Type==nil then
  3166. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  3167. elseif Type==2 then
  3168. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  3169. end
  3170. end
  3171.  
  3172. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3173. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3174. local wld=nil
  3175. prt.CFrame=cframe
  3176. prt.Anchored=true
  3177. --[[if Type~=3 then
  3178. prt.Anchored=true
  3179. else
  3180. prt.Anchored=false
  3181. wld=weld(prt,prt,prt2,cframe)
  3182. end]]
  3183. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3184. game:GetService("Debris"):AddItem(prt,10)
  3185. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3186. end
  3187.  
  3188. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
  3189. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3190. prt.Material="Neon"
  3191. prt.Anchored=true
  3192. prt.CFrame=cframe
  3193. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3194. game:GetService("Debris"):AddItem(prt,10)
  3195. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
  3196. end
  3197.  
  3198. function MagicCircle3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3199. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3200. local wld=nil
  3201. prt.CFrame=cframe
  3202. prt.Anchored=true
  3203. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3204. game:GetService("Debris"):AddItem(prt,10)
  3205. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  3206. end
  3207.  
  3208. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3209. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3210. prt.Anchored=true
  3211. prt.CFrame=cframe*cf(x2,y2,z2)
  3212. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  3213. game:GetService("Debris"):AddItem(prt,10)
  3214. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3215. end
  3216.  
  3217. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3218. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3219. prt.Anchored=true
  3220. prt.CFrame=cframe
  3221. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3222. game:GetService("Debris"):AddItem(prt,10)
  3223. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3224. end
  3225.  
  3226. function MagicFire(brickcolor,cframe,x1,y1,z1,x2,y2,z2,delay,rise)
  3227. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3228. prt.Anchored=true
  3229. prt.CFrame=cframe
  3230. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3231. game:GetService("Debris"):AddItem(prt,10)
  3232. table.insert(Effects,{prt,"Fire",delay,x2,y2,z2,msh,rise})
  3233. end
  3234.  
  3235. function MagicBlockC(brickcolor,cframe,cf2,x1,y1,z1,x3,y3,z3,delay,move,rise,inside)
  3236. local prt=part(3,effects,0,.5,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3237. prt.Anchored=true
  3238. prt.CFrame=cframe
  3239. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3240. game:GetService("Debris"):AddItem(prt,10)
  3241. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,cf2,euler(0,math.random(-50,50),0),math.random(1,2),move,rise,inside})
  3242. end
  3243.  
  3244. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  3245. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3246. prt.Anchored=true
  3247. prt.CFrame=cframe
  3248. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  3249. game:GetService("Debris"):AddItem(prt,10)
  3250. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  3251. end
  3252.  
  3253. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3254. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3255. prt.Anchored=true
  3256. prt.CFrame=cframe
  3257. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  3258. game:GetService("Debris"):AddItem(prt,10)
  3259. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3260. end
  3261.  
  3262. function MagicSpecial(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3263. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3264. prt.Anchored=true
  3265. prt.CFrame=cframe
  3266. local msh=mesh("SpecialMesh",prt,"FileMesh","24388358",vt(0,0,0),vt(x1,y1,z1))
  3267. game:GetService("Debris"):AddItem(prt,10)
  3268. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3269. end
  3270.  
  3271. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  3272. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3273. prt.Anchored=true
  3274. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3275. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3276. local num=math.random(10,50)/1000
  3277. game:GetService("Debris"):AddItem(prt,10)
  3278. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  3279. end
  3280.  
  3281. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound,hittedd)
  3282. if hit.Parent==nil then
  3283. return
  3284. end
  3285. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  3286. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3287. ref.Anchored=true
  3288. ref.CFrame=cf(hit.Position)
  3289. game:GetService("Debris"):AddItem(ref,1)
  3290. hitnum=math.random(1,5)
  3291. if hitnum==1 then so("199148971",ref,1,1)
  3292. elseif hitnum==2 then so("199149025",ref,1,1)
  3293. elseif hitnum==3 then so("199149072",ref,1,1)
  3294. elseif hitnum==4 then so("199149109",ref,1,1)
  3295. elseif hitnum==5 then so("199149119",ref,1,1)
  3296. end
  3297. --
  3298. end
  3299. h=hit.Parent:FindFirstChild("Humanoid")
  3300. if hit.Parent:findFirstChild("Spirit")~=nil then
  3301. h=hit.Parent.Spirit
  3302. end
  3303. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  3304. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3305. --[[if Player.Neutral==false and game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3306. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3307. end]]
  3308. if Player.Neutral==false then
  3309. if hit.Parent:findFirstChild("Alignment")~=nil then
  3310. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  3311. end
  3312. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3313. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3314. end
  3315. end
  3316. if Sound=="Impact" then
  3317. so("200632875",hit,1,1)
  3318. end
  3319. hitted=true
  3320. if Sound=="Shatter" then
  3321. so("199146069",hit,1,1)
  3322. end
  3323. c=Instance.new("ObjectValue")
  3324. c.Name="creator"
  3325. c.Value=game:service("Players").LocalPlayer
  3326. c.Parent=h
  3327. if hittedd==nil then
  3328. RecentEnemy.Value=hit.Parent
  3329. end
  3330. if ghostmode==true then
  3331. PhantomEnemy.Value=hit.Parent
  3332. end
  3333. game:GetService("Debris"):AddItem(c,.5)
  3334. Damage=(maxim*10 + math.floor(math.random(-maxim,maxim)/2))*Atk.Value
  3335. if hittedd~=nil then
  3336. hittedd.Value=true
  3337. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3338. ref.Anchored=true
  3339. ref.CFrame=hit.CFrame
  3340. mana.Value=mana.Value+2
  3341. game:GetService("Debris"):AddItem(ref,1)
  3342. so("315748970",ref,.8,1)
  3343. end
  3344. blocked=false
  3345. enblock=nil
  3346. Stats=hit.Parent:findFirstChild("Stats")
  3347. if Stats~=nil then
  3348. if cataclysm==true then
  3349. dec=Stats:findFirstChild("Decrease")
  3350. if dec~=nil then
  3351. for _,c in pairs(dec:children()) do
  3352. if c.className=="NumberValue" then
  3353. if c.Value<0 and c:findFirstChild("Duration")~=nil then
  3354. c.Parent=nil
  3355. end
  3356. end
  3357. end
  3358. end
  3359. end
  3360. invis=Stats:findFirstChild("Invisibility")
  3361. isinvis=Stats:findFirstChild("IsInvisible")
  3362. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  3363. invis.Value=0
  3364. end
  3365. enblock=Stats:findFirstChild("Block")
  3366. if enblock~=nil then
  3367. if enblock.Value==true then
  3368. blocked=true
  3369. end
  3370. end
  3371. if Stats:findFirstChild("Defense")~=nil then
  3372. local ignoredef=false
  3373. if ghostmode==true then
  3374. local col=nil
  3375. if game.Players:GetPlayerFromCharacter(hit.Parent) then
  3376. col=game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor
  3377. end
  3378. if col then
  3379. for _,c in pairs(game.Teams:children()) do
  3380. if c.TeamColor==col and c.Name=="Juggernaut" then
  3381. ignoredef=false
  3382. else
  3383. ignoredef=true
  3384. end
  3385. end
  3386. end
  3387. end
  3388. if Stats:findFirstChild("Boss")~=nil then
  3389. if Stats.Boss.Value==true then
  3390. ignoredef=false
  3391. end
  3392. end
  3393. if ignoredef==false then
  3394. Damage=Damage/(Stats.Defense.Value)
  3395. else
  3396. local newdef=(Stats.Defense.Value)
  3397. if Stats.Defense.Value>1 then
  3398. newdef=((Stats.Defense.Value-1)/2)+1
  3399. end
  3400. Damage=Damage/newdef
  3401. end
  3402. if Damage<=30 and (ranged==false or ranged==nil) and blocked~=true then
  3403. hitnum=math.random(1,5)
  3404. if hitnum==1 then so("199149321",hit,1,1)
  3405. elseif hitnum==2 then so("199149338",hit,1,1)
  3406. elseif hitnum==3 then so("199149367",hit,1,1)
  3407. elseif hitnum==4 then so("199149409",hit,1,1)
  3408. elseif hitnum==5 then so("199149452",hit,1,1)
  3409. end
  3410. elseif ranged==false or ranged==nil and blocked~=true then
  3411. hitnum=math.random(1,6)
  3412. if hitnum==1 then so("199149137",hit,1,1)
  3413. elseif hitnum==2 then so("199149186",hit,1,1)
  3414. elseif hitnum==3 then so("199149221",hit,1,1)
  3415. elseif hitnum==4 then so("199149235",hit,1,1)
  3416. elseif hitnum==5 then so("199149269",hit,1,1)
  3417. elseif hitnum==6 then so("199149297",hit,1,1)
  3418. end
  3419. end
  3420. if Damage<=30 and staghit==true then
  3421. --
  3422. end
  3423. end
  3424. workspace.stunFunc:FireServer(hit.Parent,incstun,blocked)
  3425. if Stats:findFirstChild("Stagger")~=nil then
  3426. if stagger==true then
  3427. Stats.Stagger.Value=true
  3428. end
  3429. end
  3430. end
  3431. if blocked==true then
  3432. workspace.damguiFunc:FireServer(hit.Parent,"Block","Damage")
  3433. if ranged~=true then
  3434. enblock.Value=false
  3435. Stagger.Value=true
  3436. hitnum=math.random(1,2)
  3437. if hitnum==1 then so("199148933",hit,1,1)
  3438. elseif hitnum==2 then so("199148947",hit,1,1)
  3439. end
  3440. end
  3441. else
  3442. coroutine.resume(coroutine.create(function(Hum,Dam)
  3443. CurrentHealth=Hum.Health
  3444. hit.Parent:TakeDamage(Damage)
  3445. end),h,Damage)
  3446. if ghostmode==true then
  3447. if hit.Parent:FindFirstChild("Humanoid") then
  3448. tehpart=hit.Parent.Torso
  3449. elseif hit.Parent.Name=="Neflhelm" then
  3450. tehpart=hit
  3451. end
  3452. if hit.Parent~=marked then
  3453. if marked then
  3454. if marked:FindFirstChild("Torso") then
  3455. PlayerGui:FindFirstChild("Mark Gui"):Destroy()
  3456. end
  3457. end
  3458. markgui=it("BillboardGui")
  3459. markgui.Parent=PlayerGui
  3460. markgui.Adornee=tehpart
  3461. markgui.Name="Mark Gui"
  3462. markgui.Size=UDim2.new(7,0,7,0)
  3463. markgui.StudsOffset=vt(0,5,0)
  3464. markgui.AlwaysOnTop=true
  3465. markspk=it("ImageLabel")
  3466. markspk.Parent=markgui
  3467. markspk.Name="Phantom Mark"
  3468. markspk.BackgroundTransparency=1
  3469. markspk.Image="rbxassetid://465578157"
  3470. markspk.ImageColor3=Color3.new(255/255,255/255,255/255)
  3471. markspk.Size=UDim2.new(1,0,1,0)
  3472. marked=hit.Parent
  3473. end
  3474. end
  3475. if hittedd~=nil then
  3476. hittedd.Value=true
  3477. if h~=nil and ghostmode==true then
  3478. h.Jump=true
  3479. end
  3480. end
  3481. if ghostmode==false and (ranged==false or ranged==nil) then
  3482. mana.Value=math.floor(mana.Value+(Damage/20))
  3483. end
  3484. workspace.damguiFunc:FireServer(hit.Parent,Damage,"Damage")
  3485. if DecreaseState~=nil then
  3486. if DecreaseState=="Shatter" then
  3487. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  3488. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  3489. else
  3490. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3491. end
  3492. end
  3493. if Type=="Knockdown" then
  3494. hum=hit.Parent.Humanoid
  3495. hum.PlatformStand=true
  3496. coroutine.resume(coroutine.create(function(HHumanoid)
  3497. swait(1)
  3498. HHumanoid.PlatformStand=false
  3499. end),hum)
  3500. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3501. workspace.kbFunc:FireServer(hit,angle*knockback)
  3502. elseif Type=="Shatter" then
  3503. for i=1,10 do
  3504. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  3505. end
  3506. elseif Type=="Knockdown2" then
  3507. hum=h
  3508. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3509. workspace.kbFunc:FireServer(hit,angle*knockback)
  3510. elseif Type=="Normal" then
  3511. local vp
  3512. if KnockbackType==1 then
  3513. vp=Property.CFrame.lookVector*knockback
  3514. elseif KnockbackType==2 then
  3515. vp=Property.CFrame.lookVector*knockback
  3516. end
  3517. workspace.kbFunc:FireServer(hit,vp)
  3518. end
  3519. end
  3520. debounce=Instance.new("BoolValue")
  3521. debounce.Name="DebounceHit"
  3522. debounce.Parent=hit.Parent
  3523. debounce.Value=true
  3524. game:GetService("Debris"):AddItem(debounce,Delay)
  3525. if painbring==true and painboom>=10 then
  3526. painboom=0
  3527. MagicBlock(BrickColor.new("Medium stone grey"),cf(prt6.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,5,5,5,.05,1,workspace)
  3528. MagicBlock(BrickColor.new("Medium stone grey"),cf(prt6.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,.05,1,workspace)
  3529. MagniDamage(prt6,10,0,5,8,"Knockdown2",RootPart,0,1,9,nil,nil,true)
  3530. end
  3531. c=Instance.new("ObjectValue")
  3532. c.Name="creator"
  3533. c.Value=Player
  3534. c.Parent=h
  3535. game:GetService("Debris"):AddItem(c,.5)
  3536. CRIT=false
  3537. end
  3538. end
  3539.  
  3540. showDamage=function(Char,Dealt,Type)
  3541. m=Instance.new("Model")
  3542. m.Name="Effect"
  3543. c=Instance.new("Part")
  3544. c.Transparency=1
  3545. c.Name="Head"
  3546. c.TopSurface=0
  3547. c.BottomSurface=0
  3548. c.formFactor="Plate"
  3549. c.Size=Vector3.new(1,.4,1)
  3550. b=Instance.new("BillboardGui",c)
  3551. b.Size=UDim2.new(5,0,5,0)
  3552. b.AlwaysOnTop=true
  3553. if type(Dealt)=="number" then
  3554. Dealt=math.floor(Dealt)
  3555. end
  3556. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3557. if Type=="Damage" then
  3558. damgui.Font="SourceSans"
  3559. if Dealt=="Block" then
  3560. damgui.TextColor3=BrickColor.new("Bright blue").Color
  3561. elseif Dealt<30 then
  3562. damgui.TextColor3=BrickColor.new("White").Color
  3563. elseif Dealt>=30 and Dealt<200 then
  3564. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  3565. else
  3566. damgui.TextColor3=BrickColor.new("Really red").Color
  3567. damgui.Font="SourceSansBold"
  3568. end
  3569. elseif Type=="Debuff" then
  3570. damgui.TextColor3=BrickColor.new("White").Color
  3571. elseif Type=="Interrupt" then
  3572. damgui.TextColor3=BrickColor.new("New Yeller").Color
  3573. elseif Type=="Heal" then
  3574. damgui.TextColor3=BrickColor.new("Bright green").Color
  3575. end
  3576. --damgui.FontSize="Size48"
  3577. damgui.TextScaled=true
  3578. ms=Instance.new("CylinderMesh")
  3579. ms.Scale=Vector3.new(.8,.8,.8)
  3580. ms.Parent=c
  3581. c.Reflectance=0
  3582. Instance.new("BodyGyro").Parent=c
  3583. c.Parent=m
  3584. if Char:findFirstChild("Head")~=nil then
  3585. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3586. elseif Char.Parent:findFirstChild("Head")~=nil then
  3587. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3588. end
  3589. f=Instance.new("BodyPosition")
  3590. f.P=2000
  3591. f.D=100
  3592. f.maxForce=Vector3.new(545000,545000,545000)
  3593. if Type=="Damage" or Type=="Heal" then
  3594. f.position=c.Position+Vector3.new(0,3,0)
  3595. elseif Type=="Debuff" or Type=="Interrupt" then
  3596. f.position=c.Position+Vector3.new(0,5,0)
  3597. end
  3598. f.Parent=c
  3599. game:GetService("Debris"):AddItem(m,5)
  3600. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3601. c.CanCollide=false
  3602. m.Parent=workspace
  3603. c.CanCollide=false
  3604. end
  3605.  
  3606. combo=0
  3607. function ob1d(mouse)
  3608. if attack==true or equipped==false or Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  3609. hold=true
  3610. if combo==0 then
  3611. combo=1
  3612. attackone()
  3613. elseif combo==1 then
  3614. combo=2
  3615. attacktwo()
  3616. elseif combo==2 then
  3617. combo=3
  3618. attackthree()
  3619. elseif combo==3 then
  3620. combo=0
  3621. attackfour()
  3622. end
  3623. coroutine.resume(coroutine.create(function()
  3624. for i=1,50 do
  3625. if attack==false then
  3626. swait()
  3627. end
  3628. end
  3629. if attack==false then
  3630. combo=0
  3631. end
  3632. end))
  3633. end
  3634.  
  3635. function ob1u(mouse)
  3636. hold = false
  3637. end
  3638.  
  3639. buttonhold = false
  3640.  
  3641. eul=0
  3642. equipped=false
  3643. function key(key)
  3644. if attack==true then return end
  3645. if key=="f" and ghostmode==false then
  3646. pressedf=true
  3647. fnumb=0
  3648. attack=true
  3649. if equipped==false then
  3650. --equipped=true
  3651. RSH=ch.Torso["Right Shoulder"]
  3652. LSH=ch.Torso["Left Shoulder"]
  3653. --
  3654. RSH.Parent=nil
  3655. LSH.Parent=nil
  3656. --
  3657. RW.Name="Right Shoulder"
  3658. RW.Part0=ch.Torso
  3659. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3660. RW.C1=cf(0, 0.5, 0)
  3661. RW.Part1=ch["Right Arm"]
  3662. RW.Parent=ch.Torso
  3663. --
  3664. LW.Name="Left Shoulder"
  3665. LW.Part0=ch.Torso
  3666. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3667. LW.C1=cf(0, 0.5, 0)
  3668. LW.Part1=ch["Left Arm"]
  3669. LW.Parent=ch.Torso
  3670. --
  3671. animate.Disabled=true
  3672. local anime=Humanoid:LoadAnimation(animate.idle.Animation1)
  3673. anime:Play()
  3674. equipanim()
  3675. else
  3676. equipped=false
  3677. hideanim()
  3678. LH.C1=LHC1
  3679. RH.C1=RHC1
  3680. animate.Disabled=false
  3681. swait(0)
  3682. RW.Parent=nil
  3683. LW.Parent=nil
  3684. RSH.Parent=player.Character.Torso
  3685. LSH.Parent=player.Character.Torso
  3686. end
  3687. attack=false
  3688. end
  3689. if equipped==false then return end
  3690. cane=true
  3691. maxmana=30
  3692. if ominField~=nil then
  3693. maxmana=15
  3694. end
  3695. if ghostmode==false and mana.Value<=maxmana then
  3696. cane=false
  3697. end
  3698. if key=="e" and cane==true and canGhost then
  3699. canGhost = false
  3700. delay(0.5, function()
  3701. canGhost = true
  3702. end)
  3703. if ghostmode==true then
  3704. attack=true
  3705. local dec=Instance.new("NumberValue")
  3706. if clone:findFirstChild("Stats")~=nil then
  3707. if clone.Stats:findFirstChild("Decrease")~=nil then
  3708. dec.Parent=clone.Stats.Decrease
  3709. dec.Name="DecreaseMvmt"
  3710. dec.Value=10
  3711. end
  3712. end
  3713. for i=0,1,0.1 do
  3714. swait()
  3715. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  3716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.4,0,0),.3)
  3717. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(.6,0,.1),.3)
  3718. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3719. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(.6,0,-.1),.3)
  3720. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3721. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,-.8)*euler(-.2,0,0),.3)
  3722. LH.C0=clerp(LH.C0,cf(-1,.4,-.5)*euler(0,-1.57,-.2),.3)
  3723. end
  3724. dec.Parent=nil
  3725. attack=false
  3726. end
  3727. Spectre()
  3728. if ghostmode==true then
  3729. drainmana=true
  3730. else
  3731. drainmana=false
  3732. end
  3733. if ghostmode==true and ominField==nil then
  3734. Torso.Velocity=RootPart.CFrame.lookVector*60
  3735. end
  3736. end
  3737. if key=="z" then
  3738. do1()
  3739. end
  3740. if key=="x" then
  3741. do2()
  3742. end
  3743. if key=="c" then
  3744. do3()
  3745. end
  3746. if key=="v" then
  3747. do4()
  3748. end
  3749. end
  3750.  
  3751. function key2(key)
  3752. if key=="c" then
  3753. if holdc==true then
  3754. holdc=false
  3755. end
  3756. end
  3757. end
  3758.  
  3759. function s(mouse)
  3760. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3761. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3762. mouse.KeyDown:connect(key)
  3763. mouse.KeyUp:connect(key2)
  3764.  
  3765. player=Player
  3766. ch=Character
  3767. end
  3768.  
  3769. function ds(mouse)
  3770. end
  3771.  
  3772. Bin.Selected:connect(s)
  3773. Bin.Deselected:connect(ds)
  3774. --print("Spectre loaded.")
  3775.  
  3776. local mananum=0
  3777. local blocknum2=0
  3778. local donum=0
  3779. local stunnum=0
  3780. local staggeranim=false
  3781. local stunanim=false
  3782. local Point=nil
  3783. local LastPoint=nil
  3784. local floornum=0
  3785. local idleheal=0
  3786. --cooldowns[4]
  3787. local walk=0
  3788. local walkforw=true
  3789. local copymove=0
  3790. local sRJCF=it("Weld",spectral)
  3791. local sLWCF=it("Weld",spectral)
  3792. local sRWCF=it("Weld",spectral)
  3793. local sRHCF=it("Weld",spectral)
  3794. local sLHCF=it("Weld",spectral)
  3795. local ominef=0
  3796. local drainmana2=0
  3797. local spectreef=0
  3798. kscri=workspace:WaitForChild("GameScript"):WaitForChild("timerHandler"):clone()
  3799. kscri.Parent=Stats
  3800. kscri.Disabled=false
  3801. while true do
  3802. swait()
  3803.  
  3804. if Unstable.Value==true and unst == false then
  3805. if Stun.Value<StunT.Value and Stagger.Value==false and Stunned.Value==false then
  3806. coroutine.resume(coroutine.create(function()
  3807. unst=true
  3808. while attack==true do
  3809. swait()
  3810. end
  3811. UnstableAnim()
  3812. unst=false
  3813. end))
  3814. else
  3815. Unstable.Value=false
  3816. UnstableTime.Value=0
  3817. end
  3818. end
  3819. if Stagger.Value==true and staggeranim==false then
  3820. if Stunned.Value == false and Stun.Value<StunT.Value and Suppressed.Value==false then
  3821. coroutine.resume(coroutine.create(function()
  3822. staggeranim=true
  3823. while attack==true do
  3824. swait()
  3825. end
  3826. StaggerAnim()
  3827. StaggerHit.Value=false
  3828. Stagger.Value=false
  3829. staggeranim=false
  3830. end))
  3831. else
  3832. Stagger.Value=false
  3833. end
  3834. end
  3835. if Stun.Value>=StunT.Value and stunanim==false then
  3836. if Suppressed.Value==false then
  3837. coroutine.resume(coroutine.create(function()
  3838. stunanim=true
  3839. while attack==true do
  3840. swait()
  3841. end
  3842. StunAnim()
  3843. Stagger.Value=false
  3844. Stun.Value=0
  3845. stunanim=false
  3846. end))
  3847. else
  3848. Stunned.Value=false
  3849. Stun.Value=StunT-1
  3850. end
  3851. end
  3852. if TimeLocked.Value == true then
  3853. if Suppressed.Value == false then
  3854. if tlock == false then
  3855. tlock = true
  3856. coroutine.resume(coroutine.create(TimeLock))
  3857. end
  3858. else
  3859. TimeLocked.Value=false
  3860. TimeLocked.Timer.Value=0
  3861. end
  3862. end
  3863. if Suppressed.Value==true then
  3864. if suppress == false then
  3865. coroutine.resume(coroutine.create(function()
  3866. suppress=true
  3867. while attack==true do
  3868. swait()
  3869. end
  3870. SuppressedAnim()
  3871. suppress=false
  3872. end))
  3873. end
  3874. end
  3875.  
  3876. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true or TimeLocked.Value==true or Suppressed.Value==true or Unstable.Value==true then
  3877. Humanoid.WalkSpeed=0
  3878. else
  3879. Humanoid.WalkSpeed=16*Mvmt.Value
  3880. end
  3881. script.GhostMode.Value = ghostmode
  3882. if Humanoid.Health>0 then
  3883. effects.Parent=workspace
  3884. else
  3885. if imded==nil then
  3886. imded="shoutoutstosimpleflips"
  3887. game:GetService("Debris"):AddItem(effects,4.5)
  3888. end
  3889. end
  3890. drainmana2=drainmana2+1
  3891. if drainmana==true then
  3892. drainmax=4
  3893. if ominField~=nil then
  3894. drainmax=4
  3895. end
  3896. if drainmana2%drainmax==0 then
  3897. mana.Value=mana.Value-1
  3898. if mana.Value<=0 and ghostmode==true and attack==false then
  3899. drainmana=false
  3900. Spectre()
  3901. DecreaseStat(Character,"Movement",.2,100)
  3902. end
  3903. end
  3904. end
  3905. if Humanoid.Health<=0 then
  3906. spectral.Parent=nil
  3907. if clone~=nil then game:GetService("Debris"):AddItem(clone,5) end
  3908. spectral.Parent=nil
  3909. attack=true
  3910. resumeControl()
  3911. modelzorz.Parent=workspace
  3912. game:GetService("Debris"):AddItem(modelzorz,30)
  3913. for i=1,#Weapon do
  3914. Weapon[i].Parent=modelzorz
  3915. Weapon[i].CanCollide=true
  3916. end
  3917. for i=1,#Welds do
  3918. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  3919. Welds[i].Parent=nil
  3920. else
  3921. Welds[i].Parent=prt1
  3922. end
  3923. end
  3924. end
  3925. ominef=ominef+1
  3926. if ominField~=nil then
  3927. hitfloor,posfloor=rayCast(ominField+vt(0,1,0),(CFrame.new(ominField+vt(0,1,0),ominField - Vector3.new(0,1,0))).lookVector,100,effects)
  3928. ominField=posfloor
  3929. if ominup==false then
  3930. MagicBlockC(BrickColor.new(NewCol),cf(ominField),cf(math.random(1500,2000)/100,0,0),10,10,10,-.8,-.8,-.8,.1,math.random(2,20)/100,math.random(60,140)/100,-math.random(100,200)/100)
  3931. else
  3932. MagicBlockC(BrickColor.new(NewCol),cf(ominField),cf(math.random(1500,2000)/100,0,0),20,20,20,-3,-3,-3,.15,math.random(4,25)/100,math.random(300,400)/100,-2)
  3933. end
  3934. if ominef%3==0 then
  3935. MagicCircle(BrickColor.new(NewCol),cf(ominField)*euler(0,math.random(-50,50),0),100,20,80,10,-1,5,.1,1,effects)
  3936. end
  3937. if ominef%50==0 then
  3938. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3939. ref.Anchored=true
  3940. ref.CFrame=cf(ominField)
  3941. game:GetService("Debris"):AddItem(ref,1)
  3942. MagniBuff(ref,20,"Damage",-.05,100)
  3943. ref.Parent=nil
  3944. end
  3945. if cooldowns[2]>=99 then
  3946. ominField=nil
  3947. end
  3948. end
  3949. if bladetype=="None" then
  3950. for _,c in pairs(modelzorz:children()) do
  3951. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  3952. if c.Transparency<1 then
  3953. c.Transparency=c.Transparency+.05
  3954. end
  3955. end
  3956. end
  3957. elseif bladetype=="Stable" then
  3958. for _,c in pairs(modelzorz:children()) do
  3959. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  3960. if c.Transparency>.4 then
  3961. c.Transparency=c.Transparency-.05
  3962. end
  3963. end
  3964. end
  3965. elseif bladetype=="Mana" then
  3966. for _,c in pairs(modelzorz:children()) do
  3967. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  3968. val=(20/mana.Value)
  3969. if val<=.4 then
  3970. val=.4
  3971. end
  3972. if c.Transparency>val then
  3973. c.Transparency=c.Transparency-.02
  3974. elseif c.Transparency<val then
  3975. c.Transparency=c.Transparency+.02
  3976. end
  3977. end
  3978. end
  3979. end
  3980. if ghostmode==false then
  3981. for _,c in pairs(modelzorz2:children()) do
  3982. if c.className=="Part" then
  3983. if c.Transparency<1 then
  3984. c.Transparency=c.Transparency+.1
  3985. end
  3986. end
  3987. end
  3988. else
  3989. if clone~=nil then
  3990. if clone:findFirstChild("Humanoid")~=nil then
  3991. if Humanoid.Health<=clone.Humanoid.Health then
  3992. clone.Humanoid.Health=Humanoid.Health
  3993. end
  3994. Humanoid.Health=clone.Humanoid.Health
  3995. end
  3996. end
  3997. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  3998. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(-.2,0,.2)*cf(0,0,0),.3)
  3999. if cNeck~=nil then cNeck.C0=clerp(cNeck.C0,necko*euler(.3,0,0)*euler(0,0,0),.3) end
  4000. if cRootJoint~=nil then cRootJoint.C0=clerp(cRootJoint.C0,RootCF*cf(0,0,-1.4)*euler(0,0,0),.3) end
  4001. if cRW~=nil then cRW.C0=clerp(cRW.C0,cf(1,0.8,-.5)*euler(2,0,-.8)*euler(0,3.14,0),.3) end
  4002. if cLW~=nil then cLW.C0=clerp(cLW.C0,cf(-1,0.8,-.5)*euler(2,0,.8)*euler(0,3.14,0),.3) end
  4003. if cRH~=nil then cRH.C0=clerp(cRH.C0,cf(1,-.8,-.8)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-1.4),.3) cRH.C1=clerp(cRH.C1,RHC1*cf(0,0,0)*euler(0,0,0),.3) end
  4004. if cLH~=nil then cLH.C0=clerp(cLH.C0,cf(-1,.2,-.8)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2),.3) cLH.C1=clerp(cLH.C1,LHC1*cf(0,0,0)*euler(0,0,0),.3) end
  4005. for _,c in pairs(modelzorz2:children()) do
  4006. if c.className=="Part" then
  4007. if c.Transparency>.2 then
  4008. c.Transparency=c.Transparency-.05
  4009. end
  4010. end
  4011. end
  4012. end
  4013. if equipped==false then
  4014. for _,c in pairs(spectral:children()) do
  4015. if c.className=="Part" then
  4016. if c.Transparency<1 then
  4017. c.Transparency=c.Transparency+.05
  4018. end
  4019. end
  4020. end
  4021. end
  4022. if ghostmode==true then
  4023. copymove=0
  4024. spectreef=spectreef+1
  4025. if clone:findFirstChild("HumanoidRootPart")~=nil then
  4026. if spectreef%3==0 then
  4027. MagicBlockC(BrickColor.new(NewCol),cf(clone.HumanoidRootPart.Position)*cf(0,-2,0),cf(math.random(200,700)/100,0,0),3,3,3,-.2,-.2,-.2,.05,.02,math.random(30,90)/100,-math.random(20,50)/100)
  4028. MagicBlockC(BrickColor.new(NewCol),cf(RootPart.Position)*cf(0,-3,0),cf(math.random(50,100)/100,0,0),2,2,2,-.05,-.05,-.05,.05,.2,math.random(50,120)/100,math.random(40,70)/100)
  4029. end
  4030. end
  4031. for i=1,#oldCFrames do
  4032. table.remove(oldCFrames,1)
  4033. end
  4034. end
  4035. copymove=copymove+1
  4036. if copymove>=10 then
  4037. sRootPart.CFrame=oldCFrames[1][1]
  4038. sNeck.C0=oldCFrames[1][2]
  4039. sRootJoint.C0=oldCFrames[1][3]
  4040. sLW.C0=oldCFrames[1][4]
  4041. sRW.C0=oldCFrames[1][5]
  4042. sLH.C0=oldCFrames[1][6]
  4043. sRH.C0=oldCFrames[1][7]
  4044. sLH.C1=oldCFrames[1][8]
  4045. sRH.C1=oldCFrames[1][9]
  4046. table.remove(oldCFrames,1)
  4047. end
  4048. if PhantomEnemy.Value==nil then
  4049. doing4=false
  4050. end
  4051. if doing4==true then
  4052. if PhantomEnemy.Value~=nil then
  4053. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  4054. table.insert(oldCFrames,{PhantomPos,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4055. else
  4056. table.insert(oldCFrames,{RootPart.CFrame,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4057. end
  4058. end
  4059. else
  4060. table.insert(oldCFrames,{RootPart.CFrame,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4061. end
  4062. if fnumb<21 then
  4063. fnumb=fnumb+1
  4064. if pressedf==false then
  4065. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  4066. tellbar.TextTransparency=tellbar.TextTransparency-.05
  4067. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  4068. else
  4069. if fnumb==20 then
  4070. fenframe5.Parent=nil
  4071. --print("daigui")
  4072. end
  4073. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  4074. tellbar.TextTransparency=tellbar.TextTransparency+.05
  4075. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  4076. end
  4077. end
  4078. if ghostmode==true then
  4079. Stagger.Value=false
  4080. StaggerHit.Value=false
  4081. if Stun.Value>=StunT.Value then
  4082. Stun.Value=99
  4083. end
  4084. end
  4085. local stunnum2=20
  4086. if TimeLocked.Value==false then
  4087. if stunnum>=stunnum2 then
  4088. if Stun.Value>0 then
  4089. Stun.Value=Stun.Value-1
  4090. end
  4091. stunnum=0
  4092. end
  4093. end
  4094. stunnum=stunnum+1
  4095. if donum>=.5 then
  4096. handidle=true
  4097. elseif donum<=0 then
  4098. handidle=false
  4099. end
  4100. if handidle==false then
  4101. donum=donum+0.006
  4102. else
  4103. donum=donum-0.006
  4104. end
  4105. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4106. local velderp=RootPart.Velocity.y
  4107. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4108. if equipped==true then
  4109. if attack==false then
  4110. idle=idle+1
  4111. else
  4112. idle=0
  4113. end
  4114. if TimeLocked.Value==false and Unstable.Value==false and Stagger.Value==false and Stunned.Value==false and Suppressed.Value==false then
  4115. if Anim=="Walk" then
  4116. if walkforw==true then
  4117. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4118. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4119. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4120. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4121. else
  4122. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4123. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4124. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4125. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4126. end
  4127. else
  4128. RH.C1=clerp(RH.C1,RHC1,.2)
  4129. LH.C1=clerp(LH.C1,LHC1,.2)
  4130. end
  4131. if ghostmode==true then
  4132. if equipped==true then
  4133. for _,c in pairs(spectral:children()) do
  4134. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4135. if c.Transparency<1 then
  4136. c.Transparency=c.Transparency+.05
  4137. end
  4138. end
  4139. end
  4140. end
  4141. elseif Anim=="Idle" or attack==true then
  4142. if equipped==true then
  4143. for _,c in pairs(spectral:children()) do
  4144. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4145. nums=.9
  4146. if doing4==true then
  4147. nums=.5
  4148. end
  4149. if c.Transparency<nums then
  4150. c.Transparency=c.Transparency+.02
  4151. elseif c.Transparency>nums then
  4152. c.Transparency=c.Transparency-.02
  4153. end
  4154. end
  4155. end
  4156. end
  4157. else
  4158. if equipped==true then
  4159. for _,c in pairs(spectral:children()) do
  4160. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4161. if c.Transparency<.8 then
  4162. c.Transparency=c.Transparency+.05
  4163. elseif c.Transparency>.8 then
  4164. c.Transparency=c.Transparency-.05
  4165. end
  4166. end
  4167. end
  4168. end
  4169. end
  4170. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4171. Anim="Jump"
  4172. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.3)
  4173. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(0,0,1),.3)
  4174. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(0,0,-1),.3)
  4175. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4176. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4177. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4178. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4179. if attack==false then
  4180. if ghostmode==false then
  4181. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  4182. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4183. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.3)
  4184. RW.C0=clerp(RW.C0,cf(1.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,0),.3)
  4185. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4186. LW.C0=clerp(LW.C0,cf(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,0),.3)
  4187. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4188. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4189. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4190. else
  4191. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  4192. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4193. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.3)
  4194. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.1)*euler(0,0,0),.3)
  4195. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4196. LW.C0=clerp(LW.C0,cf(-1.5,0.4,0)*euler(-.6,0,-.1)*euler(0,0,0),.3)
  4197. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4198. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4199. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4200. end
  4201. end
  4202. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4203. Anim="Fall"
  4204. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.3)
  4205. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(0,0,1),.3)
  4206. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(0,0,-1),.3)
  4207. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4208. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4209. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4210. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4211. if attack==false then
  4212. if ghostmode==false then
  4213. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  4214. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4215. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  4216. RW.C0=clerp(RW.C0,cf(1.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,0),.3)
  4217. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4218. LW.C0=clerp(LW.C0,cf(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,0),.3)
  4219. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4220. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4221. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4222. else
  4223. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  4224. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4225. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  4226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,1)*euler(0,0,0),.3)
  4227. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4228. LW.C0=clerp(LW.C0,cf(-1.5,0.4,0)*euler(.2,0,-1)*euler(0,0,0),.3)
  4229. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4230. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4231. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4232. end
  4233. end
  4234. elseif torvel<1 and hitfloor~=nil then
  4235. Anim="Idle"
  4236. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.2)
  4237. sRWCF.C0=clerp(sRWCF.C0,RW.C0,.2)
  4238. sLWCF.C0=clerp(sLWCF.C0,LW.C0,.2)
  4239. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4240. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4241. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4242. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4243. if attack==false then
  4244. if ghostmode==false then
  4245. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4246. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  4247. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  4248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  4249. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(1+(donum/4),0,-.1-(donum/4))*euler(0,.4,0),.2)
  4250. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4251. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(1.4+(donum/4),0,.6-(donum/4))*euler(0,.2,0),.2)
  4252. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4253. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.2),.2)
  4254. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  4255. else --gost on
  4256. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  4257. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0),.2)
  4258. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(1.4+(donum/4),0,.2+(donum/4))*euler(0,1,0),.2)
  4259. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4260. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(1.4+(donum/4),0,-.2-(donum/4))*euler(0,-1,0),.2)
  4261. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4262. RH.C0=clerp(RH.C0,cf(1,-.4,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.2)
  4263. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.5),.2)
  4264. end
  4265. end
  4266. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  4267. Anim="Walk"
  4268. walk=walk+1
  4269. if walk>=15-(5*Mvmt.Value) then
  4270. walk=0
  4271. if walkforw==true then
  4272. walkforw=false
  4273. elseif walkforw==false then
  4274. walkforw=true
  4275. end
  4276. end
  4277. --sRJCF.C0=clerp(sRJCF.C0,RootCF,.3)
  4278. testpart.Anchored=true
  4279. testpart.CFrame=cf(RootPart.Position-RootPart.Velocity) *cf(0,0,0)
  4280. newpos=vt(RootPart.Position.X+math.random(-500,500)/100,sRootPart.Position.Y,RootPart.Position.Z+math.random(-500,500)/100)
  4281. MoveCF=cf(testpart.Position,newpos)
  4282. local mpos = testpart.CFrame*euler(0,0,0)
  4283. local cff = CFrame.new(mpos.p,newpos) * CFrame.Angles(math.pi/2,0,0)
  4284. local x,y,z = sRootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  4285. sRJCF.C0=clerp(sRJCF.C0,CFrame.Angles(x,y,z)*euler(0,3.14,0)*euler(0,0,0),.3)
  4286. sRHCF.C0=clerp(sRHCF.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4287. sLHCF.C0=clerp(sLHCF.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4288. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4289. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4290. if attack==false then
  4291. if ghostmode==false then
  4292. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4293. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  4294. end
  4295. if ghostmode==false then
  4296. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,.3),.3)
  4297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.3),.3)
  4298. RW.C0=clerp(RW.C0,cf(1.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,0),.3)
  4299. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4300. LW.C0=clerp(LW.C0,cf(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,0),.3)
  4301. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4302. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,.3,0)*euler(0,0,-.1),.3)
  4303. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.3,0)*euler(0,0,.1),.3)
  4304. else
  4305. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  4306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.3)
  4307. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(-.4,0,.8)*euler(0,0,0),.3)
  4308. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4309. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(-.4,0,-.8)*euler(0,0,0),.3)
  4310. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4311. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  4312. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.3)
  4313. end
  4314. end
  4315. elseif torvel>=30 and hitfloor~=nil then
  4316. Anim="Run"
  4317. if equipped==true then
  4318. for _,c in pairs(spectral:children()) do
  4319. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4320. if c.Transparency<.8 then
  4321. c.Transparency=c.Transparency+.05
  4322. elseif c.Transparency>.8 then
  4323. c.Transparency=c.Transparency-.05
  4324. end
  4325. end
  4326. end
  4327. end
  4328. sRJCF.C0=clerp(sRJCF.C0,RootCF,.3)
  4329. sRWCF.C0=clerp(sRWCF.C0,RW.C0,.2)
  4330. sLWCF.C0=clerp(sLWCF.C0,LW.C0,.2)
  4331. sRHCF.C0=clerp(sRHCF.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4332. sLHCF.C0=clerp(sLHCF.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4333. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4334. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4335. if attack==false then
  4336. if ghostmode==false then
  4337. --[[Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  4338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.4)
  4339. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.87,0,-.8)*euler(0,0,0),.4)
  4340. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  4341. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.97,0,.8)*euler(0,0,0),.4)
  4342. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  4343. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.2,0,.2),.4)
  4344. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0,-1.57,0)*euler(-.2,0,-.2),.4)]]
  4345.  
  4346. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  4347. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(-.2,0,.2)*cf(0,0,0),.4)
  4348. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.4)
  4349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.4)*euler(0,0,0),.4)
  4350. RW.C0=clerp(RW.C0,cf(1,0.8,-.5)*euler(2,0,-.8)*euler(0,3.14,0),.4)
  4351. LW.C0=clerp(LW.C0,cf(-1,0.8,-.5)*euler(2,0,.8)*euler(0,3.14,0),.4)
  4352. RH.C0=clerp(RH.C0,cf(1,-.8,-.8)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-1.4),.4)
  4353. LH.C0=clerp(LH.C0,cf(-1,.2,-.8)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2),.4)
  4354.  
  4355.  
  4356. else
  4357. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  4358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.3)
  4359. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(-.4,0,.8)*euler(0,0,0),.3)
  4360. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4361. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(-.4,0,-.8)*euler(0,0,0),.3)
  4362. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4363. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  4364. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.3)
  4365. end
  4366. end
  4367. end
  4368. end
  4369. end
  4370. if #Effects>0 then
  4371. --table.insert(Effects,{prt,"Block1",delay})
  4372. for e=1,#Effects do
  4373. if Effects[e]~=nil then
  4374. --for j=1,#Effects[e] do
  4375. local Thing=Effects[e]
  4376. if Thing~=nil then
  4377. local Part=Thing[1]
  4378. local Mode=Thing[2]
  4379. local Delay=Thing[3]
  4380. local IncX=Thing[4]
  4381. local IncY=Thing[5]
  4382. local IncZ=Thing[6]
  4383. if Thing[2]=="CylinderClang" then
  4384. if Thing[3]<=1 then
  4385. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  4386. Thing[7]=Thing[1].CFrame
  4387. effect("New Yeller",0,Thing[8],Thing[7])
  4388. Thing[8]=Thing[7]
  4389. Thing[3]=Thing[3]+Thing[4]
  4390. else
  4391. Part.Parent=nil
  4392. table.remove(Effects,e)
  4393. end
  4394. --[[Mesh=Thing[7]
  4395. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4396. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  4397. end
  4398. if Thing[2]=="showDamage" then
  4399. if Thing[6]<Thing[5] then
  4400. Thing[6]=Thing[6]+1
  4401. elseif Thing[6]<Thing[7] then
  4402. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  4403. Thing[6]=Thing[6]+1
  4404. elseif Thing[6]<Thing[8] then
  4405. Thing[6]=Thing[6]+1
  4406. elseif Thing[6]<Thing[9] then
  4407. Thing[6]=Thing[6]+1
  4408. Thing[4].position=Thing[4].position+vt(0,.2,0)
  4409. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  4410. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  4411. else
  4412. Thing[1].Parent=nil
  4413. table.remove(Effects,e)
  4414. end
  4415. end
  4416. --table.insert(Effects,{orb1,"Orb",orb2,owld1,owld2,400,0,cf(0,5,0),0,euler(0,0,0),0,math.random(2,5)/100,math.random(4,8)/100,math.random(2,5)/100})
  4417. if Thing[2]=="Orb" then
  4418. Thing[6]=Thing[6]-1
  4419. Thing[7]=Thing[7]+Thing[12]
  4420. Thing[9]=Thing[9]+Thing[13]
  4421. Thing[11]=Thing[11]+Thing[14]
  4422. Thing[4].C0=Thing[10]*euler(0,0,0)
  4423. Thing[5].C0=Thing[8]*euler(Thing[9],Thing[7],Thing[11])*euler(0,0,0)
  4424. --Thing[15] --hitted
  4425. Thing[4].Parent=Thing[1]
  4426. Thing[4].Part0=Thing[1]
  4427. if ghostmode==true then
  4428. if clone~=nil then
  4429. if clone:findFirstChild("HumanoidRootPart")~=nil then
  4430. Thing[4].Part1=clone.HumanoidRootPart
  4431. end
  4432. end
  4433. else
  4434. Thing[4].Part1=RootPart
  4435. end
  4436. if Thing[6]%2==0 then
  4437. if ghostmode==true then
  4438. MagniDamage(Thing[3],3,0,7,50,"Knockdown2",RootPart,0,1,5,nil,nil,true,nil,nil,nil,Thing[15])
  4439. else
  4440. MagniDamage(Thing[3],3,0,7,15,"Knockdown2",RootPart,0,1,5,nil,nil,true,nil,nil,nil,Thing[15])
  4441. end
  4442. end
  4443. if Thing[15].Value==true then
  4444. Thing[6]=0
  4445. MagicCircle(BrickColor.new(NewCol),cf(Thing[3].Position),3,3,3,5,5,5,.1,1,effects)
  4446. end
  4447. if Thing[6]<=0 then
  4448. Thing[1].Parent=nil
  4449. orblimit=orblimit-1
  4450. table.remove(Effects,e)
  4451. end
  4452. end
  4453. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Orb" then
  4454. if Thing[1].Transparency<=1 then
  4455. if Thing[2]=="Block1" then
  4456. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4457. Mesh=Thing[7]
  4458. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4459. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4460. elseif Thing[2]=="Ice" then
  4461. --prt,"Ice",delay,msh,1,.2
  4462. if Thing[6]<=Thing[5] then
  4463. Thing[6]=Thing[6]+.3
  4464. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)
  4465. else
  4466. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4467. end
  4468. elseif Thing[2]=="Block2" then
  4469. Thing[1].CFrame=Thing[1].CFrame
  4470. Mesh=Thing[7]
  4471. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4472. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4473. elseif Thing[2]=="Block3" then
  4474. Thing[9]=Thing[9]*cf(Thing[14],0,0)
  4475. Thing[1].CFrame=Thing[8]*Thing[10]*Thing[9]
  4476. if Thing[11]==1 then
  4477. Thing[10]=Thing[10]*cf(0,Thing[13],0)*euler(0,Thing[12],0)
  4478. else
  4479. Thing[10]=Thing[10]*cf(0,Thing[13],0)*euler(0,-Thing[12],0)
  4480. end
  4481. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4482. Mesh=Thing[7]
  4483. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4484. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4485. elseif Thing[2]=="Fire" then
  4486. Thing[1].CFrame=cf(Thing[1].Position)+vt(0,Thing[8],0)
  4487. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4488. Thing[7].Scale=Thing[7].Scale+vt(Thing[4],Thing[5],Thing[6])
  4489. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4490. elseif Thing[2]=="Cylinder" then
  4491. Mesh=Thing[7]
  4492. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4493. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4494. elseif Thing[2]=="Cylinder2" then
  4495. Mesh=Thing[7]
  4496. if Thing[1].Transparency<=.5 then
  4497. Mesh.Scale=Mesh.Scale+vt(Thing[4]*2,Thing[5]*2,Thing[6]*2)
  4498. else
  4499. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4500. end
  4501. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4502. elseif Thing[2]=="Blood" then
  4503. Mesh=Thing[7]
  4504. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  4505. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4506. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4507. elseif Thing[2]=="Elec" then
  4508. Mesh=Thing[7]
  4509. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  4510. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4511. elseif Thing[2]=="Disappear" then
  4512. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4513. end
  4514. else
  4515. Part.Parent=nil
  4516. table.remove(Effects,e)
  4517. end
  4518. end
  4519. end
  4520. --end
  4521. end
  4522. end
  4523. end
  4524. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  4525. fenbarmana4.Text="Mana("..mana.Value..")"
  4526. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  4527. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  4528. fenbarhp3.Text="("..(math.floor(Humanoid.Health*10)).." / "..(math.floor(Humanoid.MaxHealth*10))..")"
  4529. --fenbarblock2:TweenSize(UDim2.new(.4,0,-4*armor/100,0),nil,1,0.4,true)
  4530. --fenbarblock3.Text="Armor("..math.floor(armor)..")"
  4531. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  4532. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  4533. fenbarmove2.Text=move2
  4534. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  4535. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  4536. if ghostmode==true then
  4537. if clone~=nil then
  4538. if clone:findFirstChild("Stats")~=nil then
  4539. if clone.Stats:findFirstChild("Decrease")~=nil then
  4540. for _,c in pairs(clone.Stats.Decrease:children()) do
  4541. if c:findFirstChild("Duration")~=nil then
  4542. c.Duration.Value=c.Duration.Value-1
  4543. if c.Duration.Value<=0 then
  4544. c.Parent=nil
  4545. end
  4546. end
  4547. if c.Name=="DecreaseAtk" then
  4548. decreaseatk=decreaseatk+c.Value
  4549. elseif c.Name=="DecreaseDef" then
  4550. decreasedef=decreasedef+c.Value
  4551. elseif c.Name=="DecreaseMvmt" then
  4552. decreasemvmt=decreasemvmt+c.Value
  4553. end
  4554. end
  4555. end
  4556. end
  4557. end
  4558. else
  4559. for _,c in pairs(Decrease:children()) do
  4560. if c:findFirstChild("Duration")~=nil then
  4561. c.Duration.Value=c.Duration.Value-1
  4562. if c.Duration.Value<=0 then
  4563. c.Parent=nil
  4564. end
  4565. end
  4566. if c.Name=="DecreaseAtk" then
  4567. decreaseatk=decreaseatk+c.Value
  4568. elseif c.Name=="DecreaseDef" then
  4569. decreasedef=decreasedef+c.Value
  4570. elseif c.Name=="DecreaseMvmt" then
  4571. decreasemvmt=decreasemvmt+c.Value
  4572. end
  4573. end
  4574. end
  4575. Atk.Value=1-decreaseatk
  4576. if Atk.Value<=0 then
  4577. Atk.Value=0
  4578. end
  4579. Def.Value=1-decreasedef
  4580. if Def.Value<=0 then
  4581. Def.Value=0.01
  4582. end
  4583. Mvmt.Value=1-decreasemvmt
  4584. if Mvmt.Value<=0 then
  4585. Mvmt.Value=0
  4586. end
  4587. decreaseatk=0
  4588. decreasedef=0
  4589. decreasemvmt=0
  4590. AtkVal=Atk.Value*100
  4591. AtkVal=math.floor(AtkVal)
  4592. AtkVal=AtkVal/100
  4593. fenbardamage.Text="Damage\
  4594. ("..(AtkVal*100).."%)"
  4595. DefVal=Def.Value*100
  4596. DefVal=math.floor(DefVal)
  4597. DefVal=DefVal/100
  4598. fenbardef.Text="Defense\
  4599. ("..(DefVal*100).."%)"
  4600. MvmtVal=Mvmt.Value*100
  4601. MvmtVal=math.floor(MvmtVal)
  4602. MvmtVal=MvmtVal/100
  4603. if Rooted.Value == true or Suppressed.Value == true or Unstable.Value == true or TimeLocked.Value==true then MvmtVal=0 end
  4604. fenbarmove.Text="Walkspeed\
  4605. ("..(MvmtVal*100).."%)"
  4606. fenbarorb1.Text="Orbs\
  4607. "..orblimit.."/"..maxorbs.." ("..orb..")"
  4608. if Stun.Value>=StunT.Value then
  4609. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  4610. else
  4611. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  4612. end
  4613. fenbarstun3.Text="Stun("..Stun.Value..")"
  4614. if mana.Value>=50 and cooldowns[4]==100 then
  4615. if marked then
  4616. if marked:FindFirstChild("Torso") then
  4617. PlayerGui["Mark Gui"]["Phantom Mark"].Image="rbxassetid://465578226"
  4618. end
  4619. end
  4620. else
  4621. if marked then
  4622. if marked:FindFirstChild("Torso") then
  4623. PlayerGui["Mark Gui"]["Phantom Mark"].Image="rbxassetid://465578157"
  4624. end
  4625. end
  4626. end
  4627. if TimeLocked.Value==false then
  4628. if mana.Value>=100 then
  4629. mana.Value=100
  4630. else
  4631. if mananum<12 then
  4632. mananum=mananum+1
  4633. elseif mananum>=12 then
  4634. mananum=0
  4635. if drainmana==false then
  4636. mana.Value=mana.Value+1
  4637. end
  4638. end
  4639. end
  4640. --[[if cooldown1>=cooldownmax then
  4641. cooldown1=cooldownmax
  4642. else
  4643. cooldown1=cooldown1+cooldownadd1
  4644. end]]
  4645. for i=1,#cooldowns do
  4646. if cooldowns[i]>=cooldownmax then
  4647. cooldowns[i]=cooldownmax
  4648. else
  4649. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  4650. end
  4651. end
  4652. end
  4653. end
  4654.  
  4655. --[[
  4656. Copyrighted (C) Fenrier 2015
  4657. Fixed by methaphone
  4658. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement