memberhero

Spectre4

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