memberhero

Spectre

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