memberhero

Spectre3

Oct 17th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 181.51 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. if (script.Parent.className~="HopperBin") then
  1043. Tool=Instance.new("HopperBin")
  1044. Tool.Parent=Backpack
  1045. Tool.Name="Ghostwalker"
  1046. script.Parent=Tool
  1047. end
  1048. Bin=script.Parent
  1049. if Bin.Name=="Spectre" then
  1050. Bin.Name="Ghostwalker"
  1051. end
  1052.  
  1053. local bodvel=Instance.new("BodyVelocity")
  1054. local bg=Instance.new("BodyGyro")
  1055.  
  1056. so = function(id,par,vol,pit)
  1057. local sou = Instance.new("Sound",par or workspace)
  1058. sou.Volume=vol
  1059. sou.Pitch=pit or 1
  1060. sou.SoundId="http://www.roblox.com/asset/?id="..id
  1061. coroutine.resume(coroutine.create(function(Sound)
  1062. swait()
  1063. Sound:play()
  1064. end),sou)
  1065. game:GetService("Debris"):AddItem(sou,6)
  1066. end
  1067.  
  1068. function clerp(a,b,t)
  1069. local qa = {QuaternionFromCFrame(a)}
  1070. local qb = {QuaternionFromCFrame(b)}
  1071. local ax, ay, az = a.x, a.y, a.z
  1072. local bx, by, bz = b.x, b.y, b.z
  1073. local _t = 1-t
  1074. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1075. end
  1076.  
  1077. function QuaternionFromCFrame(cf)
  1078. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1079. local trace = m00 + m11 + m22
  1080. if trace > 0 then
  1081. local s = math.sqrt(1 + trace)
  1082. local recip = 0.5/s
  1083. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1084. else
  1085. local i = 0
  1086. if m11 > m00 then
  1087. i = 1
  1088. end
  1089. if m22 > (i == 0 and m00 or m11) then
  1090. i = 2
  1091. end
  1092. if i == 0 then
  1093. local s = math.sqrt(m00-m11-m22+1)
  1094. local recip = 0.5/s
  1095. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1096. elseif i == 1 then
  1097. local s = math.sqrt(m11-m22-m00+1)
  1098. local recip = 0.5/s
  1099. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1100. elseif i == 2 then
  1101. local s = math.sqrt(m22-m00-m11+1)
  1102. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1103. end
  1104. end
  1105. end
  1106.  
  1107. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1108. local xs, ys, zs = x + x, y + y, z + z
  1109. local wx, wy, wz = w*xs, w*ys, w*zs
  1110. local xx = x*xs
  1111. local xy = x*ys
  1112. local xz = x*zs
  1113. local yy = y*ys
  1114. local yz = y*zs
  1115. local zz = z*zs
  1116. 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))
  1117. end
  1118.  
  1119. function QuaternionSlerp(a, b, t)
  1120. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1121. local startInterp, finishInterp;
  1122. if cosTheta >= 0.0001 then
  1123. if (1 - cosTheta) > 0.0001 then
  1124. local theta = math.acos(cosTheta)
  1125. local invSinTheta = 1/math.sin(theta)
  1126. startInterp = math.sin((1-t)*theta)*invSinTheta
  1127. finishInterp = math.sin(t*theta)*invSinTheta
  1128. else
  1129. startInterp = 1-t
  1130. finishInterp = t
  1131. end
  1132. else
  1133. if (1+cosTheta) > 0.0001 then
  1134. local theta = math.acos(-cosTheta)
  1135. local invSinTheta = 1/math.sin(theta)
  1136. startInterp = math.sin((t-1)*theta)*invSinTheta
  1137. finishInterp = math.sin(t*theta)*invSinTheta
  1138. else
  1139. startInterp = t-1
  1140. finishInterp = t
  1141. end
  1142. end
  1143. 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
  1144. end
  1145.  
  1146. function hideanim()
  1147. equipped=false
  1148. bladetype="None"
  1149. for i=0,1,0.1 do
  1150. swait()
  1151. if TimeLocked.Value == true then
  1152. repeat
  1153. game:GetService("RunService").Heartbeat:wait()
  1154. until TimeLocked.Value == false or Suppressed.Value == true
  1155. end
  1156. if i<=.2 then
  1157. hwld.C0=clerp(hwld.C0,euler(.3,0,-.8)*cf(0,1.3,0),.3)
  1158. wld1.C0=clerp(wld1.C0,euler(0,3.14,0)*cf(0,0,0),.3)
  1159. RW.C0=clerp(RW.C0,cf(1.5,1,-.1)*euler(2.7,0,.6)*euler(0,0,0),.3)
  1160. else
  1161. hwld.C0=clerp(hwld.C0,euler(.3,0,-.8)*cf(0,1.3,0),.3)
  1162. wld1.C0=clerp(wld1.C0,euler(0,3.14,0)*cf(0,0,0),.3)
  1163. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(-2.7,0,-.2),.2)
  1164. end
  1165. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.5),.3)
  1166. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1167. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1168. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.3)
  1169. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1170. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1171. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1172. end
  1173. hwld.Part1=Torso
  1174. hwld.C0=euler(0,0,-2.5)*cf(-1.4,-2.3,-.5)
  1175. wld1.C0=euler(0,0,0)*cf(0,0,0)
  1176. mdec2.Parent=nil
  1177. mdec.Parent=Decrease
  1178. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,0,0),.2)
  1179. for i=0,1,0.1 do
  1180. swait()
  1181. if TimeLocked.Value == true then
  1182. repeat
  1183. game:GetService("RunService").Heartbeat:wait()
  1184. until TimeLocked.Value == false or Suppressed.Value == true
  1185. end
  1186. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  1187. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  1189. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1190. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1191. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1192. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1193. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1194. end
  1195. spectral.Parent=nil
  1196. end
  1197.  
  1198. mdec.Parent=Decrease
  1199. function equipanim()
  1200. equipped=true
  1201. spectral.Parent=Character
  1202. mdec.Parent=nil
  1203. mdec2.Parent=Decrease
  1204. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,0,-.2),.4)
  1205. for i=0,1,0.2 do
  1206. swait()
  1207. if TimeLocked.Value == true then
  1208. repeat
  1209. game:GetService("RunService").Heartbeat:wait()
  1210. until TimeLocked.Value == false or Suppressed.Value == true
  1211. end
  1212. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,-.4),.4)
  1213. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.4)
  1214. RW.C0=clerp(RW.C0,cf(1.5,0.6,0)*euler(-2.7,0,-.2),.4)
  1215. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1216. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-.2),.4)
  1217. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1218. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.2,.1,0),.4)
  1219. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,0)*euler(0,.4,.2),.4)
  1220. end
  1221. hwld.Part1=RightArm
  1222. hwld.C0=euler(.3,0,-.8)*cf(0,1.3,0)
  1223. wld1.C0=euler(0,3.14,0)*cf(0,0,0)
  1224. for i=0,1,0.05 do
  1225. swait()
  1226. if TimeLocked.Value == true then
  1227. repeat
  1228. game:GetService("RunService").Heartbeat:wait()
  1229. until TimeLocked.Value == false or Suppressed.Value == true
  1230. end
  1231. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.4)
  1232. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.4)
  1233. if i<=.2 then
  1234. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.2,0,0),.4)
  1235. hwld.C0=clerp(hwld.C0,euler(.2,0,-.3)*cf(0,1.3,.2),.3)
  1236. RW.C0=clerp(RW.C0,cf(1.5,1,-.1)*euler(2.7,0,.6)*euler(0,0,0),.4)
  1237. else
  1238. bladetype="Stable"
  1239. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(-.1,.3,0),.4)
  1240. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1241. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  1242. RW.C0=clerp(RW.C0,cf(1.5,0.4,0)*euler(.2,0,.6)*euler(0,-1.1,0),.4)
  1243. end
  1244. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1245. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.4)
  1246. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1247. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,0)*euler(0,.6,.2),.4)
  1248. end
  1249. bladetype="Mana"
  1250. end
  1251.  
  1252. tlock = false
  1253. TimeLock=function()
  1254. so(535381634,RootPart,.5,math.random(145,155)/100 - TimeLocked.Timer.Value*.15)
  1255. local b,f,f2
  1256. if RootPart:FindFirstChild("TimeLockGui") then
  1257. b = RootPart.TimeLockGui
  1258. f = b.ImageLabel
  1259. f2 = b.ImageLabel2
  1260. f2.ImageTransparency=0.25
  1261. f2.Size=UDim2.new(1,0,1,0)
  1262. f2.Position=UDim2.new(0,0,0,0)
  1263. else
  1264. b = Instance.new("BillboardGui")
  1265. b.Name="TimeLockGui"
  1266. b.Size=UDim2.new(4,0,4,0)
  1267. b.SizeOffset=Vector2.new(0,1.2)
  1268. b.Parent=RootPart
  1269. f = Instance.new("ImageLabel")
  1270. f.BackgroundTransparency=1
  1271. f.Size=UDim2.new(1,0,1,0)
  1272. f.ImageColor3=Color3.new(0,1,1)
  1273. f.Image="rbxassetid://535799774"
  1274. f.Parent=b
  1275. f.ImageTransparency=1
  1276. f2 = Instance.new("ImageLabel")
  1277. f2.Name="ImageLabel2"
  1278. f2.BackgroundTransparency=1
  1279. f2.Size=UDim2.new(1,0,1,0)
  1280. f2.ImageColor3=Color3.new(0,1,1)
  1281. f2.Image="rbxassetid://535799774"
  1282. f2.Parent=b
  1283. f2.ImageTransparency=.25
  1284. end
  1285.  
  1286. local partif2z=it("ParticleEmitter")
  1287. partif2z.Color=cs(Color3.new(0,1,1),Color3.new(0.4,1,1))
  1288. partif2z.LightEmission=.5
  1289. partif2z.Texture="rbxasset://textures/particles/sparkles_main.dds"
  1290. sizeseq=ns({nsk(0,8),nsk(1,10)})
  1291. transseq=ns({nsk(0,.98),nsk(1,1)})
  1292. partif2z.Transparency=transseq
  1293. partif2z.Size=sizeseq
  1294. partif2z.ZOffset=0
  1295. partif2z.LockedToPart=true
  1296. partif2z.EmissionDirection="Front"
  1297. partif2z.Lifetime=nr(0.9,1.2)
  1298. partif2z.Rate=30
  1299. partif2z.Rotation=nr(-180,180)
  1300. partif2z.RotSpeed=nr(-80,80)
  1301. partif2z.Speed=nr(3,6)
  1302. partif2z.VelocitySpread=330
  1303. partif2z.Parent=RootPart
  1304. partif2z.Enabled=true
  1305.  
  1306. coroutine.resume(coroutine.create(function(p,c,d)
  1307. swait()
  1308. c:Emit(10)
  1309.  
  1310. repeat
  1311. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  1312. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  1313. d.ImageTransparency=d.ImageTransparency + wait()*6
  1314. p.ImageTransparency=p.ImageTransparency - wait()*7.5
  1315. if p.ImageTransparency<0 then
  1316. p.ImageTransparency=0
  1317. end
  1318. until p.ImageTransparency==0 or TimeLocked.Value==false
  1319. end),f,partif2z,f2)
  1320. repeat
  1321. RootPart.Anchored = true
  1322. swait()
  1323. until TimeLocked.Value == false
  1324. coroutine.resume(coroutine.create(function(p,c,d)
  1325. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  1326. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  1327. d.ImageTransparency=d.ImageTransparency + wait()*6
  1328. game:GetService("Debris"):AddItem(c,5)
  1329. c.Enabled=false
  1330. repeat
  1331. p.ImageTransparency=p.ImageTransparency + wait()*9
  1332. if p.ImageTransparency>1 then
  1333. p.ImageTransparency=1
  1334. end
  1335. until p.ImageTransparency==1 or TimeLocked.Value==true
  1336. if TimeLocked.Value==false then
  1337. p.Parent:Destroy()
  1338. end
  1339. end),f,partif2z,f2)
  1340. RootPart.Anchored = false
  1341. tlock = false
  1342. end
  1343. unst = false
  1344. UnstableAnim=function()
  1345. attack=true
  1346. unst = true
  1347. local rndc=1
  1348. local rnda=math.random(-1,0)
  1349. damguiFunc(Character,"Off balance!","Interrupt")
  1350. removeControl()
  1351. repeat
  1352. swait()
  1353. if TimeLocked.Value == true then
  1354. repeat
  1355. game:GetService("RunService").Heartbeat:wait()
  1356. until TimeLocked.Value == false
  1357. end
  1358. --hwld.C0=clerp(wld1.C0,euler(2,.2,3.14)*cf(0,1,.2),.3)
  1359. Neck.C0=clerp(Neck.C0,necko*euler(.3*rndc,0,0),.3)
  1360. 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)
  1361.  
  1362. 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)
  1363. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1364. 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)
  1365. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1366.  
  1367. 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)
  1368. 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)
  1369. 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
  1370. unst = false
  1371. attack=false
  1372. resumeControl()
  1373. end
  1374. suppress=false
  1375. SuppressedAnim=function()
  1376. damguiFunc(Character,"Suppressed!","Interrupt")
  1377. removeControl()
  1378. repeat
  1379. swait()
  1380. if TimeLocked.Value == true then
  1381. repeat
  1382. game:GetService("RunService").Heartbeat:wait()
  1383. until TimeLocked.Value == false
  1384. end
  1385. if Suppressed:FindFirstChild("AnimOverride") == nil then
  1386. --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
  1387. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1388. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(math.rad(90),math.rad(180),math.rad(0)),.2)
  1389. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  1390. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1391. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1392. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1393. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1394. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1395. else
  1396. --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
  1397. Neck.C0=clerp(Neck.C0,Suppressed.AnimOverride.Neck.Value,.3)
  1398. RootJoint.C0=clerp(RootJoint.C0,Suppressed.AnimOverride.RootJoint.Value,.2)
  1399. RW.C0=clerp(RW.C0,Suppressed.AnimOverride.RightShoulderC0.Value,.3)
  1400. RW.C1=clerp(LW.C1,Suppressed.AnimOverride.RightShoulderC1.Value,.3)
  1401. LW.C0=clerp(LW.C0,Suppressed.AnimOverride.LeftShoulderC0.Value,.3)
  1402. LW.C1=clerp(LW.C1,Suppressed.AnimOverride.LeftShoulderC1.Value,.3)
  1403. RH.C0=clerp(RH.C0,Suppressed.AnimOverride.RightHip.Value,.3)
  1404. LH.C0=clerp(LH.C0,Suppressed.AnimOverride.LeftHip.Value,.3)
  1405. end
  1406. until SuppressedTime.Value <= 0 or Suppressed.Value==false
  1407. suppress = false
  1408. resumeControl()
  1409. end
  1410. function StaggerAnim()
  1411. attack=true
  1412. removeControl()
  1413. damguiFunc(Character,"Staggered!","Interrupt")
  1414. for i=1,math.random(2,4) do
  1415. 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)
  1416. end
  1417. for i=0,1,0.35 do
  1418. swait()
  1419. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1420. if TimeLocked.Value == true then
  1421. repeat
  1422. game:GetService("RunService").Heartbeat:wait()
  1423. until TimeLocked.Value == false
  1424. end
  1425. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1426. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  1427. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  1428. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  1429. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1430. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  1431. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1432. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  1433. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1434.  
  1435. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1436. break
  1437. end
  1438. end
  1439. for i=0,1,0.2 do
  1440. swait()
  1441. if TimeLocked.Value == true then
  1442. repeat
  1443. game:GetService("RunService").Heartbeat:wait()
  1444. until TimeLocked.Value == false
  1445. end
  1446. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1447. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1448. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  1449. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  1450. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  1451. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1452. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  1453. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1454. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  1455. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  1456. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1457. break
  1458. end
  1459. end
  1460. for i=0,1,0.1 do
  1461. swait()
  1462. if TimeLocked.Value == true then
  1463. repeat
  1464. game:GetService("RunService").Heartbeat:wait()
  1465. until TimeLocked.Value == false
  1466. end
  1467. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1468. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  1469. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  1470. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  1471. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1472. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  1473. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1474. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  1475. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1476. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1477. break
  1478. end
  1479. end
  1480. for i=1,50 do
  1481. swait()
  1482. if TimeLocked.Value == true then
  1483. repeat
  1484. game:GetService("RunService").Heartbeat:wait()
  1485. until TimeLocked.Value == false
  1486. end
  1487. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  1488. break
  1489. end
  1490. end
  1491. resumeControl()
  1492. combo=0
  1493. attack=false
  1494. end
  1495.  
  1496. function StunAnim()
  1497. attack=true
  1498. removeControl()
  1499. Stunned.Value=true
  1500. damguiFunc(Character,"Stunned!","Interrupt")
  1501. local dec=Instance.new("NumberValue",Decrease)
  1502. dec.Name="DecreaseMvmt"
  1503. dec.Value=10
  1504. for i=0,1,0.3 do
  1505. swait()
  1506. if TimeLocked.Value == true then
  1507. repeat
  1508. game:GetService("RunService").Heartbeat:wait()
  1509. until TimeLocked.Value == false
  1510. end
  1511. if Suppressed.Value == true then
  1512. break
  1513. end
  1514. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1515. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  1516. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  1517. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  1518. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1519. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  1520. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1521. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  1522. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  1523. end
  1524. for i=0,1,0.3 do
  1525. swait()
  1526. if TimeLocked.Value == true then
  1527. repeat
  1528. game:GetService("RunService").Heartbeat:wait()
  1529. until TimeLocked.Value == false
  1530. end
  1531. if Suppressed.Value == true then
  1532. break
  1533. end
  1534. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1535. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  1536. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  1537. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1538. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1539. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  1540. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1541. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  1542. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  1543. end
  1544. for i=0,1,0.3 do
  1545. swait()
  1546. if TimeLocked.Value == true then
  1547. repeat
  1548. game:GetService("RunService").Heartbeat:wait()
  1549. until TimeLocked.Value == false
  1550. end
  1551. if Suppressed.Value == true then
  1552. break
  1553. end
  1554. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1555. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  1556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  1557. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1558. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  1560. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1561. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  1562. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  1563. end
  1564. local gairost=Instance.new("BodyGyro")
  1565. gairost.Parent=RootPart
  1566. gairost.maxTorque=Vector3.new(2000,0,2000)
  1567. gairost.P=2000
  1568. gairost.cframe=cf(0,0,0)
  1569. for i=0,1,0.1 do
  1570. swait()
  1571. if TimeLocked.Value == true then
  1572. repeat
  1573. game:GetService("RunService").Heartbeat:wait()
  1574. until TimeLocked.Value == false
  1575. end
  1576. if Suppressed.Value == true then
  1577. break
  1578. end
  1579. if hitfloor~=nil then
  1580. Torso.Velocity=vt(0,0,0)
  1581. end
  1582. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1583. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1584. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  1585. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  1586. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1587. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  1588. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1589. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  1590. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  1591. end
  1592. for i=1,70 do
  1593. swait()
  1594. if TimeLocked.Value == true then
  1595. repeat
  1596. game:GetService("RunService").Heartbeat:wait()
  1597. until TimeLocked.Value == false
  1598. end
  1599. if Suppressed.Value == true then
  1600. break
  1601. end
  1602. gairost.cframe=RootPart.CFrame
  1603. if hitfloor~=nil then
  1604. Torso.Velocity=vt(0,0,0)
  1605. end
  1606. end
  1607. for i=0,1,0.2 do
  1608. swait()
  1609. if TimeLocked.Value == true then
  1610. repeat
  1611. game:GetService("RunService").Heartbeat:wait()
  1612. until TimeLocked.Value == false
  1613. end
  1614. if Suppressed.Value == true then
  1615. break
  1616. end
  1617. Stun.Value=0
  1618. gairost.cframe=RootPart.CFrame
  1619. --wld1.C0=clerp(wld1.C0,euler(1.57,0,3.14)*cf(0,1,.2),.3)
  1620. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1621. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  1622. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  1623. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1624. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  1625. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1626. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  1627. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  1628. end
  1629. resumeControl()
  1630. gairost.Parent=nil
  1631. dec.Parent=nil
  1632. combo=0
  1633. Stunned.Value=false
  1634. attack=false
  1635. Stun.Value=0
  1636. end
  1637.  
  1638.  
  1639. --[[ idle
  1640. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1641. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  1642. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.3)
  1643. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.3)
  1644. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(1,0,-.1)*euler(0,.4,0),.3)
  1645. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(1.4,0,.6)*euler(0,.2,0),.3)
  1646. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.2),.3)
  1647. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.3)
  1648.  
  1649. idle ghost
  1650.  
  1651. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  1652. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0),.3)
  1653. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(1.4,0,.2)*euler(0,1,0),.3)
  1654. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(1.4,0,-.2)*euler(0,-1,0),.3)
  1655. RH.C0=clerp(RH.C0,cf(1,-.4,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  1656. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.5),.3)
  1657. ]]
  1658.  
  1659. function attackone()
  1660. attack=true
  1661. if ghostmode==false then
  1662. for i=0,1,0.15 do
  1663. swait()
  1664. if TimeLocked.Value == true then
  1665. repeat
  1666. game:GetService("RunService").Heartbeat:wait()
  1667. until TimeLocked.Value == false or Suppressed.Value == true
  1668. end
  1669. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1670. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1671. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.6),.3)
  1672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  1673. RW.C0=clerp(RW.C0,cf(.5,0.5,-.3)*euler(1.6,0,-1)*euler(0,1.4,0),.3)
  1674. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1.6,0,.6)*euler(0,1.4,0),.3)
  1675. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1676. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1677. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1678. break
  1679. end
  1680. end
  1681. so("203691447",prt12,1,1.2)
  1682. hitbox.Parent=modelzorz
  1683. hitbox.Anchored=true
  1684. hitbox.Size=vt(1,1,1)
  1685. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1686. for i=0,1,0.1 do
  1687. swait()
  1688. if TimeLocked.Value == true then
  1689. repeat
  1690. game:GetService("RunService").Heartbeat:wait()
  1691. until TimeLocked.Value == false or Suppressed.Value == true
  1692. end
  1693. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1694. MagniDamage(hitbox,3,0,7,10,"Normal",RootPart,.5,1,6,nil,true)
  1695. hwld.C0=clerp(hwld.C0,euler(2.3,0,0)*cf(0,.8,0),.45)
  1696. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.45)
  1697. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,1),.45)
  1698. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.45)
  1699. RW.C0=clerp(RW.C0,cf(1,0.5,.3)*euler(1.1,0,.8)*euler(0,1,0),.45)
  1700. LW.C0=clerp(LW.C0,cf(.6,0.5,-.5)*euler(1.2,0,1)*euler(0,1.4,0),.45)
  1701. RH.C0=clerp(RH.C0,cf(.9,-.9,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,-.2),.45)
  1702. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(0,.6,0)*euler(0,0,.1),.45)
  1703. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1704. break
  1705. end
  1706. end
  1707. hitbox.Parent=nil
  1708. else
  1709. for i=0,1,0.2 do
  1710. swait()
  1711. if TimeLocked.Value == true then
  1712. repeat
  1713. game:GetService("RunService").Heartbeat:wait()
  1714. until TimeLocked.Value == false or Suppressed.Value == true
  1715. end
  1716. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  1717. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(-.2,0,0),.5)
  1718. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.5,0,.2)*euler(0,1.4,0),.5)
  1719. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.5,0,-.2)*euler(0,-1.4,0),.5)
  1720. RH.C0=clerp(RH.C0,cf(.9,-.6,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.3,0,-.2),.5)
  1721. LH.C0=clerp(LH.C0,cf(-.9,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.3,0,.2),.5)
  1722. end
  1723. so("28144425",LeftArm,.6,1.2)
  1724. so("92597369",LeftArm,.6,1.2)
  1725. so("28144425",RightArm,.6,1.2)
  1726. so("92597369",RightArm,.6,1.2)
  1727. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1728. ref.Anchored=true
  1729. game:GetService("Debris"):AddItem(ref,1)
  1730. for i=0,1,0.2 do
  1731. swait()
  1732. if TimeLocked.Value == true then
  1733. repeat
  1734. game:GetService("RunService").Heartbeat:wait()
  1735. until TimeLocked.Value == false or Suppressed.Value == true
  1736. end
  1737. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1738. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,4,nil,true)
  1739. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1740. MagniDamage(ref,4,5,7,0,"Normal",RootPart,.3,1,4,nil,true)
  1741. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  1742. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(.1,0,0),.5)
  1743. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.4,0,-.6)*euler(0,1.4,0),.5)
  1744. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(.4,0,.6)*euler(0,-1.4,0),.5)
  1745. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.5)
  1746. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.5)
  1747. end
  1748. ref.Parent=nil
  1749. end
  1750. attack=false
  1751. end
  1752. --[[spawn(function()
  1753. game:GetService("RunService").RenderStepped:connect(function()
  1754. swait()
  1755. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1756. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1757. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.6),.3)
  1758. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.3)
  1759. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(-1.4,0,0),.3)
  1760. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1761. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1762. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1763. end)
  1764. end)]]
  1765. function attacktwo()
  1766. attack=true
  1767. if ghostmode==false then
  1768. for i=0,1,0.15 do
  1769. swait()
  1770. if TimeLocked.Value == true then
  1771. repeat
  1772. game:GetService("RunService").Heartbeat:wait()
  1773. until TimeLocked.Value == false or Suppressed.Value == true
  1774. end
  1775. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1776. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1777. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.2),.3)
  1778. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.4),.3)
  1779. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(-1.4,0,0),.3)
  1780. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1781. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1782. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1783. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1784. break
  1785. end
  1786. end
  1787. so("203691447",prt12,1,1.2)
  1788. hitbox.Parent=modelzorz
  1789. hitbox.Anchored=true
  1790. hitbox.Size=vt(1,1,1)
  1791. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1792. for i=0,1,0.1 do
  1793. swait()
  1794. if TimeLocked.Value == true then
  1795. repeat
  1796. game:GetService("RunService").Heartbeat:wait()
  1797. until TimeLocked.Value == false or Suppressed.Value == true
  1798. end
  1799. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1800. MagniDamage(hitbox,3,0,7,10,"Normal",RootPart,.5,1,6,nil,true)
  1801. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1802. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  1803. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-1),.3)
  1804. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.1),.3)
  1805. RW.C0=clerp(RW.C0,cf(1.7,0.5,-.3)*euler(0,0,1)*euler(1.4,0,0),.3)
  1806. LW.C0=clerp(LW.C0,cf(-1.3,0.3,-.1)*euler(1,0,.6)*euler(0,0,0),.3)
  1807. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  1808. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  1809. --[[hwld.C0=clerp(hwld.C0,euler(2.3,0,0)*cf(0,.8,0),.45)
  1810. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.45)
  1811. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,1),.45)
  1812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.45)
  1813. RW.C0=clerp(RW.C0,cf(1,0.5,.3)*euler(1.1,0,.8)*euler(0,1,0),.45)
  1814. LW.C0=clerp(LW.C0,cf(.6,0.5,-.5)*euler(1.2,0,1)*euler(0,1.4,0),.45)
  1815. RH.C0=clerp(RH.C0,cf(.9,-.9,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,-.2),.45)
  1816. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(0,.6,0)*euler(0,0,.1),.45)]]
  1817. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1818. break
  1819. end
  1820. end
  1821. hitbox.Parent=nil
  1822. else
  1823. for i=0,1,0.2 do
  1824. swait()
  1825. if TimeLocked.Value == true then
  1826. repeat
  1827. game:GetService("RunService").Heartbeat:wait()
  1828. until TimeLocked.Value == false or Suppressed.Value == true
  1829. end
  1830. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  1831. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.5)*euler(.2,0,0)*euler(0,0,.5),.5)
  1832. RW.C0=clerp(RW.C0,cf(1.4,0.4,.2)*euler(1,0,.2)*euler(0,.6,0),.5)
  1833. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(2,0,-.6)*euler(0,-.8,0),.5)
  1834. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,-.5,0)*euler(-.1,0,.1),.5)
  1835. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.5),.5)
  1836. end
  1837. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1838. ref.Anchored=true
  1839. game:GetService("Debris"):AddItem(ref,1)
  1840. so("28144425",LeftArm,.6,1.4)
  1841. so("92597369",LeftArm,.6,1.4)
  1842. for i=0,1,0.2 do
  1843. swait()
  1844. if TimeLocked.Value == true then
  1845. repeat
  1846. game:GetService("RunService").Heartbeat:wait()
  1847. until TimeLocked.Value == false or Suppressed.Value == true
  1848. end
  1849. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1850. MagniDamage(ref,4,0,6,0,"Normal",RootPart,.3,1,4,nil,true)
  1851. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.2),.5)
  1852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(-.6,-1,-.4)*euler(.4,0,0)*euler(0,0,-.6),.5)
  1853. RW.C0=clerp(RW.C0,cf(1.4,0.3,.2)*euler(1.2,0,.3)*euler(0,.6,0),.5)
  1854. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.4)*euler(1,0,1)*euler(0,-1,0),.5)
  1855. RH.C0=clerp(RH.C0,cf(1,-.6,-.6)*euler(0,1.57,0)*euler(0,.2,0)*euler(0,0,.3),.5)
  1856. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.6),.5)
  1857. end
  1858. for i=0,1,0.2 do
  1859. swait()
  1860. if TimeLocked.Value == true then
  1861. repeat
  1862. game:GetService("RunService").Heartbeat:wait()
  1863. until TimeLocked.Value == false or Suppressed.Value == true
  1864. end
  1865. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,.5),.5)
  1866. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,.5)*euler(.2,0,0)*euler(0,0,-.5),.5)
  1867. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(2,0,.6)*euler(0,.8,0),.5)
  1868. LW.C0=clerp(LW.C0,cf(-1.4,0.4,.2)*euler(1,0,-.2)*euler(0,-.6,0),.5)
  1869. RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.5),.5)
  1870. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,.5,0)*euler(-.1,0,.1),.5)
  1871. end
  1872. so("28144425",RightArm,.6,1.4)
  1873. so("92597369",RightArm,.6,1.4)
  1874. for i=0,1,0.2 do
  1875. swait()
  1876. if TimeLocked.Value == true then
  1877. repeat
  1878. game:GetService("RunService").Heartbeat:wait()
  1879. until TimeLocked.Value == false or Suppressed.Value == true
  1880. end
  1881. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1882. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,8,nil,true)
  1883. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.2),.5)
  1884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(.6,-1,-.4)*euler(.4,0,0)*euler(0,0,.6),.5)
  1885. RW.C0=clerp(RW.C0,cf(.8,0.5,-.4)*euler(1,0,-1)*euler(0,1,0),.5)
  1886. LW.C0=clerp(LW.C0,cf(-1.4,0.3,.2)*euler(1.2,0,-.3)*euler(0,-.6,0),.5)
  1887. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.6),.5)
  1888. LH.C0=clerp(LH.C0,cf(-1,-.6,-.6)*euler(0,-1.57,0)*euler(0,.2,0)*euler(0,0,.3),.5)
  1889. end
  1890. ref.Parent=nil
  1891. end
  1892. attack=false
  1893. end
  1894.  
  1895. function attackthree()
  1896. attack=true
  1897. if ghostmode==false then
  1898. for i=0,1,0.15 do
  1899. swait()
  1900. if TimeLocked.Value == true then
  1901. repeat
  1902. game:GetService("RunService").Heartbeat:wait()
  1903. until TimeLocked.Value == false or Suppressed.Value == true
  1904. end
  1905. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1906. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*cf(0,.2,0),.3)
  1907. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  1908. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1909. RW.C0=clerp(RW.C0,cf(1,1,-.5)*euler(2.8,0,-.8)*euler(0,0,0),.3)
  1910. LW.C0=clerp(LW.C0,cf(-1,1,-.5)*euler(2.8,0,.8),.3)
  1911. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1912. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1913. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1914. break
  1915. end
  1916. end
  1917. so("203691492",prt12,1,1.2)
  1918. hitbox.Parent=modelzorz
  1919. hitbox.Anchored=true
  1920. hitbox.Size=vt(1,1,1)
  1921. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  1922. for i=0,1,0.1 do
  1923. swait()
  1924. if TimeLocked.Value == true then
  1925. repeat
  1926. game:GetService("RunService").Heartbeat:wait()
  1927. until TimeLocked.Value == false or Suppressed.Value == true
  1928. end
  1929. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  1930. MagniDamage(hitbox,3,0,7,math.random(5,10),"Normal",RootPart,.5,1,6,nil,true)
  1931. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.45)
  1932. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(.5,0,.5)*cf(0,.2,0),.45)
  1933. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0),.45)
  1934. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1935. RW.C0=clerp(RW.C0,cf(1,0.1,-.5)*euler(.2,0,-.8)*euler(0,0,0),.45)
  1936. LW.C0=clerp(LW.C0,cf(-1,0.1,-.5)*euler(.2,0,.8),.45)
  1937. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.45)
  1938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.45)
  1939. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1940. break
  1941. end
  1942. end
  1943. hitbox.Parent=nil
  1944. else
  1945. for i=0,1,0.2 do
  1946. swait()
  1947. if TimeLocked.Value == true then
  1948. repeat
  1949. game:GetService("RunService").Heartbeat:wait()
  1950. until TimeLocked.Value == false or Suppressed.Value == true
  1951. end
  1952. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  1953. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.25,0,0),.5)
  1954. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(.8,0,.2)*euler(0,-1.5,0),.5)
  1955. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(.8,0,-.2)*euler(0,1.5,0),.5)
  1956. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1957. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.6),.5)
  1958. end
  1959. so("28144425",LeftArm,.6,1.4)
  1960. so("92597369",LeftArm,.6,1.4)
  1961. so("28144425",RightArm,.6,1.1)
  1962. so("92597369",RightArm,.6,1.1)
  1963. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1964. ref.Anchored=true
  1965. game:GetService("Debris"):AddItem(ref,1)
  1966. for i=0,1,0.07 do
  1967. swait()
  1968. if TimeLocked.Value == true then
  1969. repeat
  1970. game:GetService("RunService").Heartbeat:wait()
  1971. until TimeLocked.Value == false or Suppressed.Value == true
  1972. end
  1973. if i>.3 then
  1974. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.5)
  1975. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.2,0,0),.3)
  1976. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(3.2,0,-.1)*euler(0,1.5,0),.5)
  1977. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(3.2,0,.1)*euler(0,-1.5,0),.5)
  1978. RH.C0=clerp(RH.C0,cf(1,-.8,-.3)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.3),.5)
  1979. LH.C0=clerp(LH.C0,cf(-1,-.8,-.3)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  1980. else
  1981. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  1982. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1983. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  1984. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  1985. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  1986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.1,0,0),.3)
  1987. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(2.6,0,-.1)*euler(0,-1.5,0),.5)
  1988. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(2.6,0,.1)*euler(0,1.5,0),.5)
  1989. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.4),.5)
  1990. LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.4),.5)
  1991. end
  1992. end
  1993. so("28144425",LeftArm,.6,1.2)
  1994. so("92597369",LeftArm,.6,1.2)
  1995. so("28144425",RightArm,.6,1.1)
  1996. so("92597369",RightArm,.6,1.1)
  1997. for i=0,1,0.15 do
  1998. swait()
  1999. if TimeLocked.Value == true then
  2000. repeat
  2001. game:GetService("RunService").Heartbeat:wait()
  2002. until TimeLocked.Value == false or Suppressed.Value == true
  2003. end
  2004. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2005. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2006. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2007. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2008. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  2009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-1,-.8)*euler(.2,0,0),.6)
  2010. RW.C0=clerp(RW.C0,cf(1.4,0.4,-.1)*euler(.8,0,-.1)*euler(0,1.5,0),.5)
  2011. LW.C0=clerp(LW.C0,cf(-1.4,0.4,-.1)*euler(.8,0,.1)*euler(0,-1.5,0),.5)
  2012. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.05,0,.1),.5)
  2013. LH.C0=clerp(LH.C0,cf(-1,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.05,0,-.1),.5)
  2014. end
  2015. ref.Parent=nil
  2016. end
  2017. attack=false
  2018. end
  2019.  
  2020. --[[function attackthree()
  2021. attack=true
  2022. if ghostmode==false then
  2023. for i=0,1,0.15 do
  2024. swait()
  2025. if TimeLocked.Value == true then
  2026. repeat
  2027. game:GetService("RunService").Heartbeat:wait()
  2028. until TimeLocked.Value == false or Suppressed.Value == true
  2029. end
  2030. hwld.C0=clerp(hwld.C0,euler(1.2,0,0)*cf(0,1,0),.3)
  2031. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2032. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(.2,0,0),.3)
  2033. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  2034. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.8,0,-.3)*euler(0,-2,0),.3)
  2035. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(.8,0,.4)*euler(0,-2,0),.3)
  2036. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  2037. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  2038. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2039. break
  2040. end
  2041. end
  2042. so("203691467",prt12,.8,1.4)
  2043. hitbox.Parent=modelzorz
  2044. hitbox.Anchored=true
  2045. hitbox.Size=vt(1,1,1)
  2046. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  2047. for i=0,1,0.1 do
  2048. swait()
  2049. if TimeLocked.Value == true then
  2050. repeat
  2051. game:GetService("RunService").Heartbeat:wait()
  2052. until TimeLocked.Value == false or Suppressed.Value == true
  2053. end
  2054. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  2055. MagniDamage(hitbox,3,0,8,10,"Normal",RootPart,.5,1,5,nil,true)
  2056. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,.8,0),.45)
  2057. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.45)
  2058. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(0,0,0),.45)
  2059. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.45)
  2060. RW.C0=clerp(RW.C0,cf(.4,0.5,-.4)*euler(2.3,0,-.6)*euler(0,-1.8,0),.45)
  2061. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(2.2,0,.4)*euler(0,-2,0),.45)
  2062. RH.C0=clerp(RH.C0,cf(1,-.8,-.1)*euler(0,1.57,0)*euler(0,-.6,0)*euler(-.1,0,-.1),.45)
  2063. LH.C0=clerp(LH.C0,cf(-1,-.9,.1)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,-.1),.45)
  2064. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2065. break
  2066. end
  2067. end
  2068. hitbox.Parent=nil
  2069. else
  2070. for i=0,1,0.2 do
  2071. swait()
  2072. if TimeLocked.Value == true then
  2073. repeat
  2074. game:GetService("RunService").Heartbeat:wait()
  2075. until TimeLocked.Value == false or Suppressed.Value == true
  2076. end
  2077. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.5)
  2078. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.25,0,0),.5)
  2079. RW.C0=clerp(RW.C0,cf(1.4,0.5,.2)*euler(.8,0,.2)*euler(0,-1.5,0),.5)
  2080. LW.C0=clerp(LW.C0,cf(-1.4,0.5,.2)*euler(.8,0,-.2)*euler(0,1.5,0),.5)
  2081. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  2082. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.6),.5)
  2083. end
  2084. so("28144425",LeftArm,.6,1.4)
  2085. so("92597369",LeftArm,.6,1.4)
  2086. so("28144425",RightArm,.6,1.1)
  2087. so("92597369",RightArm,.6,1.1)
  2088. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2089. ref.Anchored=true
  2090. game:GetService("Debris"):AddItem(ref,1)
  2091. for i=0,1,0.07 do
  2092. swait()
  2093. if TimeLocked.Value == true then
  2094. repeat
  2095. game:GetService("RunService").Heartbeat:wait()
  2096. until TimeLocked.Value == false or Suppressed.Value == true
  2097. end
  2098. if i>.3 then
  2099. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.5)
  2100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.2,0,0),.3)
  2101. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(3.2,0,-.1)*euler(0,1.5,0),.5)
  2102. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(3.2,0,.1)*euler(0,-1.5,0),.5)
  2103. RH.C0=clerp(RH.C0,cf(1,-.8,-.3)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.3),.5)
  2104. LH.C0=clerp(LH.C0,cf(-1,-.8,-.3)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.5)
  2105. else
  2106. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2107. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  2108. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2109. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.3,1,4,nil,true)
  2110. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  2111. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.6)*euler(-.1,0,0),.3)
  2112. RW.C0=clerp(RW.C0,cf(1.4,0.6,-.1)*euler(2.6,0,-.1)*euler(0,-1.5,0),.5)
  2113. LW.C0=clerp(LW.C0,cf(-1.4,0.6,-.1)*euler(2.6,0,.1)*euler(0,1.5,0),.5)
  2114. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.4),.5)
  2115. LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.4),.5)
  2116. end
  2117. end
  2118. so("28144425",LeftArm,.6,1.2)
  2119. so("92597369",LeftArm,.6,1.2)
  2120. so("28144425",RightArm,.6,1.1)
  2121. so("92597369",RightArm,.6,1.1)
  2122. for i=0,1,0.15 do
  2123. swait()
  2124. if TimeLocked.Value == true then
  2125. repeat
  2126. game:GetService("RunService").Heartbeat:wait()
  2127. until TimeLocked.Value == false or Suppressed.Value == true
  2128. end
  2129. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2130. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2131. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2132. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2133. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  2134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-1,-.8)*euler(.2,0,0),.6)
  2135. RW.C0=clerp(RW.C0,cf(1.4,0.4,-.1)*euler(.8,0,-.1)*euler(0,1.5,0),.5)
  2136. LW.C0=clerp(LW.C0,cf(-1.4,0.4,-.1)*euler(.8,0,.1)*euler(0,-1.5,0),.5)
  2137. RH.C0=clerp(RH.C0,cf(1,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.05,0,.1),.5)
  2138. LH.C0=clerp(LH.C0,cf(-1,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.05,0,-.1),.5)
  2139. end
  2140. ref.Parent=nil
  2141. end
  2142. attack=false
  2143. end]]
  2144.  
  2145. function attackfour()
  2146. attack=true
  2147. if ghostmode==false then
  2148. for i=0,1,0.15 do
  2149. swait()
  2150. if TimeLocked.Value == true then
  2151. repeat
  2152. game:GetService("RunService").Heartbeat:wait()
  2153. until TimeLocked.Value == false or Suppressed.Value == true
  2154. end
  2155. hwld.C0=clerp(hwld.C0,euler(1.2,0,0)*cf(0,1,0),.3)
  2156. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2157. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(.2,0,0),.3)
  2158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  2159. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.8,0,-.3)*euler(0,-2,0),.3)
  2160. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(.8,0,.4)*euler(0,-2,0),.3)
  2161. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  2162. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  2163. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2164. break
  2165. end
  2166. end
  2167. so("203691467",prt12,.8,1.4)
  2168. hitbox.Parent=modelzorz
  2169. hitbox.Anchored=true
  2170. hitbox.Size=vt(1,1,1)
  2171. hitbox.CFrame=prt12.CFrame*cf(0,1,0)
  2172. for i=0,1,0.1 do
  2173. swait()
  2174. if TimeLocked.Value == true then
  2175. repeat
  2176. game:GetService("RunService").Heartbeat:wait()
  2177. until TimeLocked.Value == false or Suppressed.Value == true
  2178. end
  2179. hitbox.CFrame=prt12.CFrame*cf(0,1.5,0)
  2180. MagniDamage(hitbox,3,0,8,10,"Normal",RootPart,.5,1,5,nil,true)
  2181. hwld.C0=clerp(hwld.C0,euler(2.5,0,0)*cf(0,.8,0),.45)
  2182. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.45)
  2183. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(0,0,0),.45)
  2184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.45)
  2185. RW.C0=clerp(RW.C0,cf(.4,0.5,-.4)*euler(2.3,0,-.6)*euler(0,-1.8,0),.45)
  2186. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(2.2,0,.4)*euler(0,-2,0),.45)
  2187. RH.C0=clerp(RH.C0,cf(1,-.8,-.1)*euler(0,1.57,0)*euler(0,-.6,0)*euler(-.1,0,-.1),.45)
  2188. LH.C0=clerp(LH.C0,cf(-1,-.9,.1)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,-.1),.45)
  2189. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2190. break
  2191. end
  2192. end
  2193. hitbox.Parent=nil
  2194. else
  2195. for i=0,1,0.2 do
  2196. swait()
  2197. if TimeLocked.Value == true then
  2198. repeat
  2199. game:GetService("RunService").Heartbeat:wait()
  2200. until TimeLocked.Value == false or Suppressed.Value == true
  2201. end
  2202. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2203. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0)*euler(0,0,.8),.5)
  2204. RW.C0=clerp(RW.C0,cf(1.5,0.5,.2)*euler(2,0,1.4)*euler(0,.8,0),.5)
  2205. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1.4,0,.4)*euler(0,-3,0),.5)
  2206. RH.C0=clerp(RH.C0,cf(1.2,-.4,-.4)*euler(0,1.57,0)*euler(0,-.8,0)*euler(-.1,0,.25),.5)
  2207. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(0,-.8,0)*euler(0,0,.5),.5)
  2208. end
  2209. so("28144425",LeftArm,.6,1.2)
  2210. so("92597369",LeftArm,.6,1.2)
  2211. so("28144425",RightArm,.6,1)
  2212. so("92597369",RightArm,.6,1)
  2213. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2214. ref.Anchored=true
  2215. game:GetService("Debris"):AddItem(ref,1)
  2216. cul=0
  2217. for i=0,1,0.1 do
  2218. swait()
  2219. if TimeLocked.Value == true then
  2220. repeat
  2221. game:GetService("RunService").Heartbeat:wait()
  2222. until TimeLocked.Value == false or Suppressed.Value == true
  2223. end
  2224. cul=cul+.8
  2225. if i>.5 then
  2226. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2227. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2228. RootJoint.C1=clerp(RootJoint.C1,cf(0,0,0,-1,-0,-0,0,0,1,0,1,0),.5)
  2229. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(-.2,0,-.8),.5)
  2230. 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)
  2231. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2232. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2233. else
  2234. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2235. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2236. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2237. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2238. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2239. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2240. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)*euler(0,0,-cul)
  2241. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(0,0,0),.5)
  2242. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-3.14,0),.5)
  2243. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2244. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2245. end
  2246. end
  2247. ref.Parent=nil
  2248. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  2249. end
  2250. attack=false
  2251. end
  2252.  
  2253. --[[function attackfour()
  2254. attack=true
  2255. if ghostmode==false then
  2256. dtatkfour=true
  2257. local decde=Instance.new("NumberValue",Decrease)
  2258. decde.Name="DecreaseDef"
  2259. decde.Value=-.4
  2260. Spectre()
  2261. if clone~=nil then
  2262. if clone:findFirstChild("Humanoid")~=nil then
  2263. workspace.CurrentCamera.CameraSubject=clone.Humanoid
  2264. end
  2265. end
  2266. Torso.Velocity=RootPart.CFrame.lookVector*100
  2267. for i=0,1,0.12 do
  2268. swait()
  2269. if TimeLocked.Value == true then
  2270. repeat
  2271. game:GetService("RunService").Heartbeat:wait()
  2272. until TimeLocked.Value == false or Suppressed.Value == true
  2273. end
  2274. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,0),.5)
  2275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(-.2,0,0),.5)
  2276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.5,0,.2)*euler(0,1.4,0),.5)
  2277. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.5,0,-.2)*euler(0,-1.4,0),.5)
  2278. RH.C0=clerp(RH.C0,cf(.9,-.6,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.3,0,-.2),.5)
  2279. LH.C0=clerp(LH.C0,cf(-.9,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.3,0,.2),.5)
  2280. end
  2281. so("28144425",LeftArm,.6,1.2)
  2282. so("92597369",LeftArm,.6,1.2)
  2283. so("28144425",RightArm,.6,1.2)
  2284. so("92597369",RightArm,.6,1.2)
  2285. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2286. ref.Anchored=true
  2287. game:GetService("Debris"):AddItem(ref,1)
  2288. for i=0,1,0.1 do
  2289. swait()
  2290. if TimeLocked.Value == true then
  2291. repeat
  2292. game:GetService("RunService").Heartbeat:wait()
  2293. until TimeLocked.Value == false or Suppressed.Value == true
  2294. end
  2295. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2296. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.5,1,8,nil,true)
  2297. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2298. MagniDamage(ref,4,0,8,0,"Normal",RootPart,.5,1,8,nil,true)
  2299. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.4)
  2300. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(.1,0,0),.4)
  2301. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(.4,0,-.6)*euler(0,1.4,0),.4)
  2302. LW.C0=clerp(LW.C0,cf(-1,0.5,-.3)*euler(.4,0,.6)*euler(0,-1.4,0),.4)
  2303. RH.C0=clerp(RH.C0,cf(1,-.2,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.4)
  2304. LH.C0=clerp(LH.C0,cf(-1,-.2,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.4)
  2305. end
  2306. ref.Parent=nil
  2307. Spectre()
  2308. dtatkfour=false
  2309. decde.Parent=nil
  2310. workspace.CurrentCamera.CameraSubject=Humanoid
  2311. else
  2312. for i=0,1,0.2 do
  2313. swait()
  2314. if TimeLocked.Value == true then
  2315. repeat
  2316. game:GetService("RunService").Heartbeat:wait()
  2317. until TimeLocked.Value == false or Suppressed.Value == true
  2318. end
  2319. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0)*euler(0,0,.8),.5)
  2321. RW.C0=clerp(RW.C0,cf(1.5,0.5,.2)*euler(2,0,1.4)*euler(0,.8,0),.5)
  2322. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1.4,0,.4)*euler(0,-3,0),.5)
  2323. RH.C0=clerp(RH.C0,cf(1.2,-.4,-.4)*euler(0,1.57,0)*euler(0,-.8,0)*euler(-.1,0,.25),.5)
  2324. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(0,-.8,0)*euler(0,0,.5),.5)
  2325. end
  2326. so("28144425",LeftArm,.6,1.2)
  2327. so("92597369",LeftArm,.6,1.2)
  2328. so("28144425",RightArm,.6,1)
  2329. so("92597369",RightArm,.6,1)
  2330. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2331. ref.Anchored=true
  2332. game:GetService("Debris"):AddItem(ref,1)
  2333. cul=0
  2334. for i=0,1,0.1 do
  2335. swait()
  2336. if TimeLocked.Value == true then
  2337. repeat
  2338. game:GetService("RunService").Heartbeat:wait()
  2339. until TimeLocked.Value == false or Suppressed.Value == true
  2340. end
  2341. cul=cul+.8
  2342. if i>.5 then
  2343. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2344. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2345. RootJoint.C1=clerp(RootJoint.C1,cf(0,0,0,-1,-0,-0,0,0,1,0,1,0),.5)
  2346. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(-.2,0,-.8),.5)
  2347. 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)
  2348. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2349. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2350. else
  2351. ref.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  2352. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2353. ref.CFrame=RightArm.CFrame*cf(0,-1.5,0)
  2354. MagniDamage(ref,4,0,7,0,"Normal",RootPart,.3,1,5,nil,true)
  2355. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.5)
  2356. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0)*euler(0,0,0),.5)
  2357. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)*euler(0,0,-cul)
  2358. RW.C0=clerp(RW.C0,cf(1.5,0.5,.0)*euler(1.57,0,1.57)*euler(0,0,0),.5)
  2359. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-3.14,0),.5)
  2360. RH.C0=clerp(RH.C0,cf(1.1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.2),.5)
  2361. LH.C0=clerp(LH.C0,cf(-1.1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.5)
  2362. end
  2363. end
  2364. ref.Parent=nil
  2365. RootJoint.C1=cf(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  2366. end
  2367. attack=false
  2368. end]]
  2369.  
  2370. function Spectre()
  2371. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2372. if ghostmode==false then
  2373. so("315746833",RootPart,.6,.8)
  2374. passive1.Parent=Decrease
  2375. passive2.Parent=Decrease
  2376. ghostmode=true
  2377. bladetype="None"
  2378. Character.Archivable=true
  2379. clone=Character:Clone()
  2380. clone.Parent=workspace
  2381. d=it("BoolValue",clone)
  2382. d.Name="Clean"
  2383. if clone:findFirstChild("Health")~=nil then clone.Health.Parent=nil end
  2384. if clone:findFirstChild("Ghostwalker")~=nil then clone.Ghostwalker.Parent=nil end
  2385. if clone:findFirstChild("Ghost Claws")~=nil then clone["Ghost Claws"].Parent=nil end
  2386. if clone:findFirstChild("Effects")~=nil then clone["Effects"].Parent=nil end
  2387. if clone:findFirstChild("")~=nil then clone[""].Parent=nil end
  2388. if clone:findFirstChild("Torso")~=nil then
  2389. for _,c in pairs(clone:children()) do
  2390. if c.Name=="DebounceHit" then
  2391. c:Destroy()
  2392. end
  2393. for _,v in pairs(c:children()) do
  2394. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  2395. v.Parent=nil
  2396. end
  2397. end
  2398. end
  2399. cNeck=clone.Torso:findFirstChild("Neck")
  2400. cRW=clone.Torso:findFirstChild("Right Shoulder")
  2401. cLW=clone.Torso:findFirstChild("Left Shoulder")
  2402. cRH=clone.Torso:findFirstChild("Right Hip")
  2403. cLH=clone.Torso:findFirstChild("Left Hip")
  2404. end
  2405. if clone:findFirstChild("HumanoidRootPart")~=nil then
  2406. cRootJoint=clone.HumanoidRootPart:findFirstChild("RootJoint")
  2407. end
  2408. cRightArm=clone:findFirstChild("Right Arm")
  2409. if cRightArm~=nil then
  2410. hwld.Part1=cRightArm
  2411. hwld.C0=euler(1.57,0,0)*cf(0,1,0)
  2412. wld1.C0=euler(0,-1.57,0)*cf(0,0,0)
  2413. end
  2414. if clone:findFirstChild("HumanoidRootPart")~=nil then
  2415. RootPart.CFrame=clone.HumanoidRootPart.CFrame*cf(0,0,-2)
  2416. if ominField~=nil and dtatkfour==false then
  2417. DecreaseStat(clone,"Damage",-.05,200)
  2418. RootPart.CFrame=cf(ominField)*cf(0,4,0)
  2419. newpos=vt(RootPart.Position.X,clone.HumanoidRootPart.Position.Y,RootPart.Position.Z)
  2420. RootPart.CFrame=cf(newpos,clone.HumanoidRootPart.Position)*euler(0,3.14,0)
  2421. end
  2422. end
  2423. Character.Archivable=false
  2424. Humanoid.JumpPower=70
  2425. --spdebounce.Parent=Character
  2426. Humanoid.Name="Spirit"
  2427. NoTarget.Parent=Stats
  2428. oHeadCol=Character["Body Colors"].HeadColor
  2429. oTorsoCol=Character["Body Colors"].TorsoColor
  2430. oLeftArmCol=Character["Body Colors"].LeftArmColor
  2431. oRightArmCol=Character["Body Colors"].RightArmColor
  2432. oLeftLegCol=Character["Body Colors"].LeftLegColor
  2433. oRightLegCol=Character["Body Colors"].RightLegColor
  2434. if face~=nil then face.Parent=nil end
  2435. if Character:FindFirstChild("Shirt Graphic") then Character:FindFirstChild("Shirt Graphic").Parent=nil end
  2436. if Torso:FindFirstChild("roblox") then Torso:FindFirstChild("roblox").Parent=nil end
  2437. --if bodycolors~=nil then bodycolors.Parent=nil end
  2438. --if Character:findFirstChild("Body Colors")~=nil then Character:findFirstChild("Body Colors").Parent=nil end
  2439. if shirt~=nil then shirt.Parent=nil end
  2440. if pants~=nil then pants.Parent=nil end
  2441. Character["Body Colors"].HeadColor=BrickColor.new(NewCol)
  2442. Character["Body Colors"].TorsoColor=BrickColor.new(NewCol)
  2443. Character["Body Colors"].LeftArmColor=BrickColor.new(NewCol)
  2444. Character["Body Colors"].RightArmColor=BrickColor.new(NewCol)
  2445. Character["Body Colors"].LeftLegColor=BrickColor.new(NewCol)
  2446. Character["Body Colors"].RightLegColor=BrickColor.new(NewCol)
  2447. for _,c in pairs(Character:children()) do
  2448. if c.className=="Part" and c.Name~="HumanoidRootPart" then c.BrickColor=BrickColor.new(NewCol) c.Transparency=.4 end
  2449. if c:IsA("Accoutrement") then if c:findFirstChild("Handle")~=nil then c.Handle.Transparency=1 end end
  2450. end
  2451. else
  2452. Humanoid.JumpPower=50
  2453. --spdebounce.Parent=nil
  2454. Humanoid.Name="Humanoid"
  2455. for _,v in pairs(clone:children()) do
  2456. if v:IsA("BasePart") then
  2457. v.CanCollide=false
  2458. end
  2459. end
  2460. NoTarget.Parent=nil
  2461. passive1.Parent=nil
  2462. passive2.Parent=nil
  2463. ghostmode=false
  2464. bladetype="Mana"
  2465. oldpos=nil
  2466. if clone~=nil then
  2467. if clone:findFirstChild("HumanoidRootPart")~=nil then oldpos=clone.HumanoidRootPart.CFrame end
  2468. cRootJoint,cNeck,cRW,cLW,cRH,cLH=nil,nil,nil,nil,nil,nil
  2469. hwld.Parent=handle
  2470. hwld.Part1=RightArm
  2471. hwld.C0=euler(1.57,0,0)*cf(0,1,0)
  2472. wld1.C0=euler(0,-1.57,0)*cf(0,0,0)
  2473. clone.Parent=nil
  2474. clone=nil
  2475. end
  2476. if oldpos~=nil then RootPart.CFrame=oldpos end
  2477. if face~=nil then face.Parent=Head end
  2478. if shirt~=nil then shirt.Parent=Character end
  2479. if pants~=nil then pants.Parent=Character end
  2480. if tshirt then
  2481. tshirt.Parent=Character
  2482. end
  2483. tshirt2.Parent=Torso
  2484. Character["Body Colors"].HeadColor=oHeadCol
  2485. Character["Body Colors"].TorsoColor=oTorsoCol
  2486. Character["Body Colors"].LeftArmColor=oLeftArmCol
  2487. Character["Body Colors"].RightArmColor=oRightArmCol
  2488. Character["Body Colors"].LeftLegColor=oLeftLegCol
  2489. Character["Body Colors"].RightLegColor=oRightLegCol
  2490. for _,c in pairs(Character:children()) do
  2491. if c.className=="Part" and c.Name~="HumanoidRootPart" then c.Transparency=0 end
  2492. if c:IsA("Accoutrement") then if c:findFirstChild("Handle")~=nil then c.Handle.Transparency=0 end end
  2493. end
  2494. Humanoid:ChangeState("GettingUp")
  2495. Neck.C0=necko*euler(.3,0,0)*euler(0,0,0)
  2496. RootJoint.C0=RootCF*cf(0,0,-1.4)*euler(0,0,0)
  2497. RW.C0=cf(1,0.8,-.5)*euler(2,0,-.8)*euler(0,3.14,0)
  2498. LW.C0=cf(-1,0.8,-.5)*euler(2,0,.8)*euler(0,3.14,0)
  2499. RH.C0=cf(1,-.8,-.8)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-1.4)
  2500. LH.C0=cf(-1,.2,-.8)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2)
  2501. RH.C1=RHC1*cf(0,0,0)*euler(0,0,0)
  2502. LH.C1=LHC1*cf(0,0,0)*euler(0,0,0)
  2503. end
  2504. end
  2505.  
  2506. function do1()
  2507. if attack==true then return end
  2508. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2509. if cooldowns[1]>=cooldownmax and mana.Value>=30 and ghostmode==false then
  2510. --if true then
  2511. attack=true
  2512. for i=0,1,0.1 do
  2513. swait()
  2514. if TimeLocked.Value == true then
  2515. repeat
  2516. game:GetService("RunService").Heartbeat:wait()
  2517. until TimeLocked.Value == false or Suppressed.Value == true
  2518. end
  2519. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  2520. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  2521. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.1,0,0),.4)
  2522. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.4)
  2523. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0),.4)
  2524. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1)*euler(0,0,0),.4)
  2525. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.4)
  2526. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.4)
  2527. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2528. break
  2529. end --P1
  2530. end
  2531. RecentEnemy.Value=nil
  2532. cooldowns[1]=0
  2533. local dec=Instance.new("NumberValue",Decrease)
  2534. mana.Value=mana.Value-30
  2535. RecentEnemy.Value=nil
  2536. dec.Name="DecreaseMvmt"
  2537. dec.Value=10
  2538. local num=50
  2539. local ceef=LeftArm.Position
  2540. local look=MMouse.Hit.p
  2541. local MouseLook=cf((ceef+look)/2,look)
  2542. local hit=nil
  2543. local Parts={}
  2544. local deb=0
  2545. local thing=0
  2546. --so("33359415",LeftArm,1,2)
  2547. repeat
  2548. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2549. break
  2550. end --P1
  2551. hit,pos=rayCast(ceef,MouseLook.lookVector,4,Character)
  2552. if hit~=nil or RecentEnemy.Value~=nil then
  2553. num=1
  2554. end
  2555. local ref=part(3,workspace,0,1,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  2556. local mag=(ceef-pos).magnitude
  2557. ceef=ceef+(MouseLook.lookVector*4.1)
  2558. local rmsh=mesh("BlockMesh",ref,"","",vt(0,0,0),vt(1,mag*5,1))
  2559. ref.Anchored=true
  2560. ref.CFrame=CFrame.new((ceef+pos)/2,pos)*angles(1.57,0,0)
  2561. MagniDamage(ref,3,0,8,0,"Normal",RootPart,.2,1,0,nil,nil,true)
  2562. --[[local ref2=part(3,ref,0,0,BrickColor.new("Really red"),"Effect",vt())
  2563. local rmsh2=mesh("SpecialMesh",ref2,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(.6,mag*1.5,.6))
  2564. ref2.Anchored=true
  2565. ref2.CFrame=ref.CFrame*euler(0,math.random(-50,50),0)]]
  2566. table.insert(Parts,ref)
  2567. so("315743298",ref,.5,2)
  2568. da=0
  2569. for i=1,#Parts do
  2570. da=da+1
  2571. thing=thing+1
  2572. if thing%99==0 then
  2573. 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)
  2574. end
  2575. end
  2576. for i=1,1 do
  2577. 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)
  2578. 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)
  2579. end
  2580. game:GetService("Debris"):AddItem(ref,5)
  2581. num=num-1
  2582. deb=deb+1
  2583. if deb>=2 then
  2584. swait()
  2585. if TimeLocked.Value == true then
  2586. repeat
  2587. game:GetService("RunService").Heartbeat:wait()
  2588. until TimeLocked.Value == false or Suppressed.Value == true
  2589. end
  2590. deb=0
  2591. end
  2592. until num<=0
  2593. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2594. else
  2595. if hit~=nil then
  2596. --Damagefunc(hit,6,8,0,"Normal",RootPart,.2,1,0,nil,nil,true)
  2597. end
  2598. end
  2599. local grabpos=Instance.new("BodyPosition")
  2600. if RecentEnemy.Value~=nil then
  2601. last=0
  2602. for i=1,#Parts do
  2603. last=last+1
  2604. end
  2605. grabpos.position=Parts[last].Position
  2606. if RecentEnemy.Value:findFirstChild("Torso")~=nil then
  2607. grabpos.Parent=RecentEnemy.Value
  2608. hit=RecentEnemy.Value.Torso
  2609. end
  2610. local stats = RecentEnemy.Value:FindFirstChild("Stats")
  2611. if stats then
  2612. if stats:FindFirstChild("Ulting") then
  2613. if stats.Ulting.Value==false then
  2614. stats.Suppressed.Value=true
  2615. workspace.suppFunc:FireServer(stats,true,3)
  2616. end
  2617. end
  2618. end
  2619. local damd=1
  2620. for i=#Parts,1,-1 do
  2621. swait()
  2622. if TimeLocked.Value == true then
  2623. repeat
  2624. game:GetService("RunService").Heartbeat:wait()
  2625. until TimeLocked.Value == false or Suppressed.Value == true
  2626. end
  2627. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2628. break
  2629. end --P1
  2630. if hit~=nil then
  2631. damd=damd*.95
  2632. Damagefunc(hit,4*damd,5*damd,0,"Normal",RootPart,.1,1,0,nil,nil,true)
  2633. end
  2634. last=0
  2635. for i=1,#Parts do
  2636. last=last+1
  2637. thing=thing+1
  2638. if thing%90==0 then
  2639. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2640. ref.Anchored=true
  2641. ref.CFrame=Parts[i].CFrame
  2642. game:GetService("Debris"):AddItem(ref,1)
  2643. so("315743331",ref,.2,2)
  2644. so("315743298",ref,.1,1.5)
  2645. 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)
  2646. end
  2647. end
  2648. for i=1,1 do
  2649. 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)
  2650. MagicCircle(BrickColor.new(NewCol),Parts[last].CFrame,1,1,1,1,1,1,.15,1,effects)
  2651. end
  2652. grabpos.position=Parts[i].Position
  2653. if RecentEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2654. RecentEnemy.Value.HumanoidRootPart.CFrame=cf(Parts[i].Position)
  2655. end
  2656. local stats = RecentEnemy.Value:FindFirstChild("Stats")
  2657. if stats then
  2658. if stats:FindFirstChild("Ulting") then
  2659. if stats.Ulting.Value==false then
  2660. stats.Suppressed.Value=false
  2661. end
  2662. end
  2663. end
  2664. Parts[i].Parent=nil
  2665. table.remove(Parts,i)
  2666. end
  2667. else
  2668. cooldowns[1]=40
  2669. for i=1,#Parts do
  2670. Parts[1].Parent=nil
  2671. table.remove(Parts,1)
  2672. end
  2673. end
  2674. grabpos.Parent=nil
  2675. dec.Parent=nil
  2676. attack=false
  2677. end
  2678. end
  2679.  
  2680. function do2()
  2681. if attack==true then return end
  2682. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2683. if cooldowns[2]>=cooldownmax and mana.Value>=35 and ghostmode==false then
  2684. --if true then
  2685. attack=true
  2686. cooldowns[2]=0
  2687. mana.Value=mana.Value-35
  2688. local MouseLook=cf((RootPart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  2689. local hit,pos = rayCast(RootPart.Position,MouseLook.lookVector,200,Character)
  2690. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2691. ref.Anchored=true
  2692. ref.CFrame=cf(pos)*cf(0,3,0)
  2693. game:GetService("Debris"):AddItem(ref,10)
  2694. hitfloor,posfloor=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2695. ominField=posfloor
  2696. ref.CFrame=cf(ominField)
  2697. so("315743331",ref,1,.8)
  2698. ominup=true
  2699. for i=0,1,0.1 do
  2700. swait()
  2701. if TimeLocked.Value == true then
  2702. repeat
  2703. game:GetService("RunService").Heartbeat:wait()
  2704. until TimeLocked.Value == false or Suppressed.Value == true
  2705. end
  2706. MagicBlock(BrickColor.new(NewCol),LeftArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1,effects)
  2707. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  2708. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  2709. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.1,0,0),.3)
  2710. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  2711. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0),.3)
  2712. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.6)*euler(0,1.4,0),.3)
  2713. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.1),.3)
  2714. LH.C0=clerp(LH.C0,cf(-1,-.8,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,.1),.3)
  2715. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2716. break
  2717. end --P1
  2718. end
  2719. for i=0,1,0.1 do
  2720. swait()
  2721. if TimeLocked.Value == true then
  2722. repeat
  2723. game:GetService("RunService").Heartbeat:wait()
  2724. until TimeLocked.Value == false or Suppressed.Value == true
  2725. end
  2726. MagicCircle(BrickColor.new(NewCol),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.1,1,effects)
  2727. hwld.C0=clerp(hwld.C0,euler(.8,0,0)*cf(0,1,0),.3)
  2728. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  2729. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.2)*euler(.1,0,0),.3)
  2730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,-1),.3)
  2731. RW.C0=clerp(RW.C0,cf(1.4,0.5,-.1)*euler(.2,0,.4)*euler(0,1,0)*euler(-.5,0,0),.3)
  2732. 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)
  2733. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2734. LH.C0=clerp(LH.C0,cf(-1,.2,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,-.1),.3)
  2735. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2736. break
  2737. end --P1
  2738. end
  2739. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2740. else
  2741. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2742. ref2.Anchored=true
  2743. ref2.CFrame=ref.CFrame
  2744. game:GetService("Debris"):AddItem(ref2,1)
  2745. so("315743355",ref2,1,.4)
  2746. so("228343343",ref2,1,.8)
  2747. ref.CFrame=cf(ominField)
  2748. MagicCircle3(BrickColor.new(NewCol),cf(ref.Position),150,40,150,-4,10,-4,.04,1,effects)
  2749. MagniDamage(ref,15,0,12,40,"Knockdown2",ref,0,1,8,nil,nil,true,"Defense",.1,200)
  2750. ominup=false
  2751. swait(10)
  2752. end
  2753. ref.Parent=nil
  2754. attack=false
  2755. end
  2756. end
  2757.  
  2758. function do3()
  2759. if holdc==true then
  2760. holdc=false
  2761. end
  2762. if attack==true then return end
  2763. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2764. if cooldowns[3]>=20 and mana.Value>=5 and ghostmode==false then
  2765. --if true then
  2766. holdc=true
  2767. attack=true
  2768. orbcharge=0
  2769. bladetype="Stable"
  2770. --while holdz==true do
  2771. mdec3.Parent=Decrease
  2772. for i=0,1,0.1 do
  2773. swait()
  2774. if TimeLocked.Value == true then
  2775. repeat
  2776. game:GetService("RunService").Heartbeat:wait()
  2777. until TimeLocked.Value == false or Suppressed.Value == true
  2778. end
  2779. hwld.C0=clerp(hwld.C0,euler(2,-.2,0)*cf(0,1,0),.3)
  2780. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2781. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(-.4,0,0),.3)
  2782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  2783. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(2,0,.4)*euler(0,0,0),.3)
  2784. LW.C0=clerp(LW.C0,cf(.2,0.5,-.5)*euler(1.7,0,1)*euler(0,0,0),.3)
  2785. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*euler(0,1.57,0)*euler(0,-.6,0)*euler(0,0,-.1),.3)
  2786. LH.C0=clerp(LH.C0,cf(-1.1,-.8,0)*euler(0,-1.57,0)*euler(0,-.2,0)*euler(0,0,.2),.3)
  2787. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2788. break
  2789. end --P1
  2790. end
  2791. while holdc==true and orb<maxorbs do
  2792. swait()
  2793. if TimeLocked.Value == true then
  2794. repeat
  2795. game:GetService("RunService").Heartbeat:wait()
  2796. until TimeLocked.Value == false or Suppressed.Value == true
  2797. end
  2798. orbcharge=orbcharge+1
  2799. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2800. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul,1,1,1,-.01,5,-.01,.09,1,effects)
  2801. --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)
  2802. --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)
  2803. if orbcharge>=15 then
  2804. mana.Value=mana.Value-5
  2805. orb=orb+1
  2806. holdc=false
  2807. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0),15,15,15,-1,-1,-1,.09,1,effects)
  2808. mdec3.Parent=nil
  2809. break
  2810. elseif Stagger.Value==true or Stun.Value>=StunT.Value or Unstable.Value==true or Stun.Value==true or Suppressed.Value==true then
  2811. mdec3.Parent=nil
  2812. break
  2813. end
  2814. end
  2815. if orbcharge<15 and orb>0 and orblimit<maxorbs and mana.Value>=5 then
  2816. cooldowns[3]=cooldowns[3]-20
  2817. mana.Value=mana.Value-5
  2818. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2819. MagicCircle(BrickColor.new(NewCol2),prt24.CFrame*cf(0,1,0)*eul,1,1,1,-.01,10,-.01,.09,1,effects)
  2820. 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)
  2821. 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)
  2822. orb1=part(3,effects,0,1,BrickColor.new("Black"),"Orb",vt(0.2,0.2,0.2))
  2823. owld1=weld(orb1,orb1,RootPart,euler(0,0,0))
  2824. orb2=part(3,orb1,0,.6,BrickColor.new(NewCol),"Orb",vt(0.2,0.2,0.2)) orb2.Material="Neon"
  2825. omsh=mesh("SpecialMesh",orb2,"Sphere","nil",vt(0,0,0),vt(5,5,5))
  2826. owld2=weld(orb2,orb2,orb1,cf(0,0,0))
  2827. val=it("BoolValue",orb1)
  2828. val.Value=false
  2829. orblimit=orblimit+1
  2830. orb=orb-1
  2831. 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})
  2832. so("183763498",orb1,.4,1)
  2833. end
  2834. bladetype="Mana"
  2835. attack=false
  2836. mdec3.Parent=nil
  2837. end
  2838. end
  2839.  
  2840. function do4()
  2841. if attack==true then return end
  2842. if Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2843. if cooldowns[4]>=cooldownmax and mana.Value>=40 and ghostmode==false then
  2844. --if true then
  2845. attack=true
  2846. cooldowns[4]=0
  2847. mana.Value=mana.Value-40
  2848. doing4=true
  2849. local decenem=Instance.new("NumberValue",nil)
  2850. decenem.Name="DecreaseMvmt"
  2851. decenem.Value=10
  2852. game:GetService("Debris"):AddItem(decenem,1)
  2853. if PhantomEnemy.Value~=nil then
  2854. if PhantomEnemy.Value:findFirstChild("Stats")~=nil then
  2855. if PhantomEnemy.Value.Stats:findFirstChild("Decrease")~=nil then
  2856. decenem.Parent=PhantomEnemy.Value.Stats.Decrease
  2857. end
  2858. end
  2859. end
  2860. UltVal.Value=true
  2861. for i=0,1,0.1 do
  2862. swait()
  2863. if TimeLocked.Value == true then
  2864. repeat
  2865. game:GetService("RunService").Heartbeat:wait()
  2866. until TimeLocked.Value == false or Suppressed.Value == true
  2867. end
  2868. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2869. break
  2870. end
  2871. if Unstable.Value==true then
  2872. Unstable.Value=false
  2873. Unstable.Timer.Value=0
  2874. end
  2875. if Stagger.Value==true then
  2876. Stagger.Value=false
  2877. end --P2
  2878. PhantomPos=RootPart.CFrame
  2879. if PhantomEnemy.Value~=nil then
  2880. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2881. PhantomPos=PhantomEnemy.Value.HumanoidRootPart.CFrame
  2882. end
  2883. end
  2884. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,1,0),.3)
  2885. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  2886. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.3)
  2887. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,-1),.3)
  2888. 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)
  2889. LW.C0=clerp(LW.C0,cf(-1.2,0.4,-.2)*euler(.8,0,.6)*euler(0,1,0),.3)
  2890. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2891. LH.C0=clerp(LH.C0,cf(-1,.2,.1)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.2,0,-.1),.3)
  2892. end
  2893. mov=0
  2894. Portal1={}
  2895. Portal2={}
  2896. for i=0,1,0.1 do
  2897. swait()
  2898. if TimeLocked.Value == true then
  2899. repeat
  2900. game:GetService("RunService").Heartbeat:wait()
  2901. until TimeLocked.Value == false or Suppressed.Value == true
  2902. end
  2903. mov=mov-.5709
  2904. for i=1,#Portal1 do
  2905. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2906. end
  2907. for i=1,#Portal2 do
  2908. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2909. end
  2910. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,1,0),.3)
  2911. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  2912. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.2,0,0),.3)
  2913. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,mov)*euler(0,0,.4)*euler(0,0,0),.3)
  2914. 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)
  2915. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-.6)*euler(0,0,0),.3)
  2916. RH.C0=clerp(RH.C0,cf(.8,-.3,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.3),.3)
  2917. LH.C0=clerp(LH.C0,cf(-.8,-.3,-.6)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.2,0,.3),.3)
  2918. CF=RootPart.CFrame*euler(0,mov,0)*cf(0,0,-8)
  2919. MagicCircle(BrickColor.new(NewCol2),CF,1,1,1,5,5,5,.1,1,effects)
  2920. table.insert(Portal1,{CF,euler(0,mov,0)*cf(0,0,-8)})
  2921. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2922. ref.Anchored=true
  2923. ref.CFrame=CF
  2924. game:GetService("Debris"):AddItem(ref,1)
  2925. so("183763493",ref,.2,.8)
  2926. PhantomPos=RootPart.CFrame
  2927. if PhantomEnemy.Value~=nil then
  2928. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  2929. PhantomPos=PhantomEnemy.Value.HumanoidRootPart.CFrame
  2930. CF2=sRootPart.CFrame*euler(0,mov,0)*cf(0,0,-8)
  2931. MagicCircle(BrickColor.new(NewCol2),CF2,1,1,1,5,5,5,.1,1,effects)
  2932. table.insert(Portal2,{CF2,euler(0,mov,0)*cf(0,0,-8)})
  2933. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2934. ref.Anchored=true
  2935. ref.CFrame=CF2
  2936. game:GetService("Debris"):AddItem(ref,1)
  2937. so("183763493",ref,.2,.8)
  2938. end
  2939. end
  2940. end
  2941. bladetype="Stable"
  2942. mov=0
  2943. for i=0,1,0.1 do
  2944. swait()
  2945. if TimeLocked.Value == true then
  2946. repeat
  2947. game:GetService("RunService").Heartbeat:wait()
  2948. until TimeLocked.Value == false or Suppressed.Value == true
  2949. end
  2950. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2951. break
  2952. end
  2953. if Unstable.Value==true then
  2954. Unstable.Value=false
  2955. Unstable.Timer.Value=0
  2956. end
  2957. if Stagger.Value==true then
  2958. Stagger.Value=false
  2959. end --P2
  2960. for i=1,#Portal1 do
  2961. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2962. end
  2963. for i=1,#Portal2 do
  2964. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2965. end
  2966. hwld.C0=clerp(hwld.C0,euler(2.4,0,0)*cf(0,.8,0),.3)
  2967. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  2968. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.3)
  2969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,0)*euler(0,0,0),.3)
  2970. 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)
  2971. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-1)*euler(0,0,0),.3)
  2972. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.3)
  2973. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.3)
  2974. end
  2975. for i=0,1,0.1 do
  2976. swait()
  2977. if TimeLocked.Value == true then
  2978. repeat
  2979. game:GetService("RunService").Heartbeat:wait()
  2980. until TimeLocked.Value == false or Suppressed.Value == true
  2981. end
  2982. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2983. break
  2984. end
  2985. if Unstable.Value==true then
  2986. Unstable.Value=false
  2987. Unstable.Timer.Value=0
  2988. end
  2989. if Stagger.Value==true then
  2990. Stagger.Value=false
  2991. end --P2
  2992. for i=1,#Portal1 do
  2993. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  2994. end
  2995. for i=1,#Portal2 do
  2996. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  2997. end
  2998. hwld.C0=clerp(hwld.C0,euler(1.7,0,0)*cf(0,1,0),.3)
  2999. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,.3,0),.3)
  3000. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.4,0,0),.3)
  3001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0)*euler(0,0,0),.3)
  3002. 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)
  3003. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1)*euler(0,0,0),.3)
  3004. RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.3)
  3005. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,-.1),.3)
  3006. end
  3007. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame,80,6,80,3,-.3,3,.08,1,effects)
  3008. so("315743350",RootPart,1,.8)
  3009. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3010. ref.Anchored=true
  3011. ref.CFrame=RootPart.CFrame
  3012. game:GetService("Debris"):AddItem(ref,1)
  3013. so("315743350",ref,1,.8)
  3014. local whichportal=false
  3015. if doing4==true then
  3016. whichportal=true
  3017. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame,80,6,80,3,-.3,3,.08,1,effects)
  3018. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3019. ref.Anchored=true
  3020. game:GetService("Debris"):AddItem(ref,1)
  3021. for i=1,#Portal1 do
  3022. ref.CFrame=RootPart.CFrame*Portal1[i][2]
  3023. MagniDamage(ref,5,0,7.5,0,"Normal",RootPart,.1,1,4,nil,nil,true)
  3024. 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)
  3025. end
  3026. ref.Parent=nil
  3027. for i=1,#Portal1 do
  3028. table.remove(Portal1,1)
  3029. end
  3030. end
  3031. local dec=Instance.new("NumberValue",Decrease)
  3032. dec.Name="DecreaseMvmt"
  3033. dec.Value=0
  3034. bladetype="None"
  3035. if Rooted.Value==false then
  3036. RootPart.CFrame=sRootPart.CFrame*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)
  3037. end
  3038. doing4=false
  3039. for i=0,1,0.05 do
  3040. swait()
  3041. if TimeLocked.Value == true then
  3042. repeat
  3043. game:GetService("RunService").Heartbeat:wait()
  3044. until TimeLocked.Value == false or Suppressed.Value == true
  3045. end
  3046. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  3047. break
  3048. end
  3049. if Unstable.Value==true then
  3050. Unstable.Value=false
  3051. Unstable.Timer.Value=0
  3052. end
  3053. if Stagger.Value==true then
  3054. Stagger.Value=false
  3055. end --P2
  3056. for i=1,#Portal1 do
  3057. if Portal1[i][2]~=nil then
  3058. Portal1[i][2]=Portal1[i][2]*cf(0,0,1)*euler(0,.2,0)
  3059. end
  3060. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  3061. end
  3062. for i=1,#Portal2 do
  3063. if Portal2[i][2]~=nil then
  3064. Portal2[i][2]=Portal2[i][2]*cf(0,0,1)*euler(0,.2,0)
  3065. end
  3066. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  3067. end
  3068. if i<=.5 then
  3069. hwld.C0=clerp(hwld.C0,euler(1.7,0,0)*cf(0,1,0),.3)
  3070. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*euler(20*i,0,0)*cf(0,0,0),.3)
  3071. else
  3072. hwld.C0=clerp(hwld.C0,euler(-1.57,0,0)*cf(0,1,0),.3)
  3073. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  3074. end
  3075. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(-.3,0,0),.2)
  3076. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.4)*euler(0,0,0),.2)
  3077. 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)
  3078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.6)*euler(0,0,0),.2)
  3079. RH.C0=clerp(RH.C0,cf(1.2,-.8,-.2)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,.1),.2)
  3080. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.1),.2)
  3081. end
  3082. bladetype="Stable"
  3083. for i=0,1,0.3 do
  3084. swait()
  3085. if TimeLocked.Value == true then
  3086. repeat
  3087. game:GetService("RunService").Heartbeat:wait()
  3088. until TimeLocked.Value == false or Suppressed.Value == true
  3089. end
  3090. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  3091. break
  3092. end
  3093. if Unstable.Value==true then
  3094. Unstable.Value=false
  3095. Unstable.Timer.Value=0
  3096. end
  3097. if Stagger.Value==true then
  3098. Stagger.Value=false
  3099. end --P2
  3100. for i=1,#Portal1 do
  3101. if Portal1[i][2]~=nil then
  3102. if whichportal==true then
  3103. --Portal1[i][2]=Portal1[i][2]*cf(0,0,-1.4)*euler(0,-.6,0)
  3104. Portal1[i][2]=Portal1[i][2]*cf(0,0,2)*euler(0,.8,0)
  3105. else
  3106. Portal1[i][2]=Portal1[i][2]*cf(0,0,2)*euler(0,.4,0)
  3107. end
  3108. end
  3109. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  3110. end
  3111. for i=1,#Portal2 do
  3112. if Portal2[i][2]~=nil then
  3113. if whichportal==true then
  3114. --Portal2[i][2]=Portal2[i][2]*cf(0,0,-1.4)*euler(0,-.6,0)
  3115. Portal2[i][2]=Portal2[i][2]*cf(0,0,2)*euler(0,.8,0)
  3116. else
  3117. Portal2[i][2]=Portal2[i][2]*cf(0,0,2)*euler(0,.4,0)
  3118. end
  3119. end
  3120. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  3121. end
  3122. hwld.C0=clerp(hwld.C0,euler(-1.6,0,0)*cf(0,1,0),.4)
  3123. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  3124. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.1,0,0),.4)
  3125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(0,0,.4)*euler(0,0,0),.4)
  3126. 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)
  3127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.2)*euler(0,0,0),.4)
  3128. RH.C0=clerp(RH.C0,cf(1.2,-.6,-.3)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,0),.4)
  3129. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.4)
  3130. end
  3131. numbr=0
  3132. if whichportal==true then
  3133. numbr=#Portal2
  3134. else
  3135. numbr=#Portal1
  3136. end
  3137. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3138. ref.Anchored=true
  3139. game:GetService("Debris"):AddItem(ref,1)
  3140. for i=1,numbr do
  3141. swait()
  3142. if TimeLocked.Value == true then
  3143. repeat
  3144. game:GetService("RunService").Heartbeat:wait()
  3145. until TimeLocked.Value == false or Suppressed.Value == true
  3146. end
  3147. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  3148. break
  3149. end
  3150. if Unstable.Value==true then
  3151. Unstable.Value=false
  3152. Unstable.Timer.Value=0
  3153. end
  3154. if Stagger.Value==true then
  3155. Stagger.Value=false
  3156. end --P2
  3157. if whichportal==true then
  3158. for i=1,3 do
  3159. 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)
  3160. end
  3161. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3162. ref2.Anchored=true
  3163. ref2.CFrame=ref.CFrame
  3164. game:GetService("Debris"):AddItem(ref2,1)
  3165. so("315748999",ref2,.6,.6)
  3166. so("315748949",ref2,.6,.8)
  3167. ref.CFrame=RootPart.CFrame*Portal2[1][2]
  3168. MagniDamage(ref,10,0,6.5,0,"Normal",RootPart,.05,1,4,nil,nil,true,"Defense",.03,300)
  3169. 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)
  3170. table.remove(Portal2,1)
  3171. else
  3172. for i=1,2 do
  3173. 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)
  3174. end
  3175. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3176. ref2.Anchored=true
  3177. ref2.CFrame=ref.CFrame
  3178. game:GetService("Debris"):AddItem(ref2,1)
  3179. so("315748999",ref2,.6,.6)
  3180. so("315748949",ref2,.6,.8)
  3181. ref.CFrame=RootPart.CFrame*Portal1[1][2]
  3182. MagniDamage(ref,8,0,6.5,0,"Normal",RootPart,.01,1,3,nil,nil,true,"Defense",.05,300)
  3183. 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)
  3184. table.remove(Portal1,1)
  3185. end
  3186. for i=1,#Portal1 do
  3187. --[[if Portal1[i][2]~=nil then
  3188. Portal1[i][2]=Portal1[i][2]*euler(0,0,0)*cf(0,0,-1)
  3189. end]]
  3190. MagicCircle(BrickColor.new(NewCol2),RootPart.CFrame*Portal1[i][2],1,1,1,2,2,2,.2,1,effects)
  3191. end
  3192. for i=1,#Portal2 do
  3193. --[[if Portal2[i][2]~=nil then
  3194. Portal2[i][2]=Portal2[i][2]*euler(0,0,0)*cf(0,0,-1)
  3195. end]]
  3196. MagicCircle(BrickColor.new(NewCol2),sRootPart.CFrame*Portal2[i][2],1,1,1,2,2,2,.2,1,effects)
  3197. end
  3198. hwld.C0=clerp(hwld.C0,euler(-1.6,0,0)*cf(0,1,0),.4)
  3199. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.4)
  3200. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(.1,0,0),.4)
  3201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(0,0,.4)*euler(0,0,0),.4)
  3202. 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)
  3203. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.2)*euler(0,0,0),.4)
  3204. RH.C0=clerp(RH.C0,cf(1.2,-.6,-.3)*euler(0,1.57,0)*euler(0,-.4,0)*euler(-.1,0,0),.4)
  3205. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.2),.4)
  3206. end
  3207. decenem.Parent=nil
  3208. ref.Parent=nil
  3209. bladetype="Mana"
  3210. dec.Parent=nil
  3211. attack=false
  3212. UltVal.Value=false
  3213. end
  3214. end
  3215.  
  3216. function DecreaseStat(Model,Stat,Amount,Duration)
  3217. if Model:findFirstChild("Stats")~=nil then
  3218. if Model.Stats[Stat]~=nil then
  3219. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  3220. d=Instance.new("NumberValue",Model.Stats.Decrease)
  3221. dur=Instance.new("NumberValue",d)
  3222. dur.Name="Duration"
  3223. dur.Value=Duration
  3224. game:GetService("Debris"):AddItem(d,20)
  3225. if Stat=="Damage" then
  3226. d.Name="DecreaseAtk"
  3227. elseif Stat=="Defense" then
  3228. d.Name="DecreaseDef"
  3229. elseif Stat=="Movement" then
  3230. d.Name="DecreaseMvmt"
  3231. end
  3232. if Model:findFirstChild("Torso")~=nil then
  3233. display=""
  3234. if Stat=="Damage" then
  3235. if Amount>0 then
  3236. display="-Damage"
  3237. else
  3238. display="+Damage"
  3239. end
  3240. elseif Stat=="Defense" then
  3241. if Amount>0 then
  3242. display="-Defense"
  3243. else
  3244. display="+Defense"
  3245. end
  3246. elseif Stat=="Movement" then
  3247. if Amount>0 then
  3248. display="-Movement"
  3249. else
  3250. display="+Movement"
  3251. end
  3252. end
  3253. damguiFunc(Model,display,"Debuff")
  3254. end
  3255. d.Value=Amount
  3256. end
  3257. end
  3258. end
  3259.  
  3260. function GetDist(Part1,Part2,magni)
  3261. local targ=Part1.Position-Part2.Position
  3262. local mag=targ.magnitude
  3263. if mag<=magni then
  3264. return true
  3265. else
  3266. return false
  3267. end
  3268. end
  3269.  
  3270. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,hitted)
  3271. for _,c in pairs(workspace:children()) do
  3272. local hum=c:findFirstChild("Humanoid")
  3273. if c:findFirstChild("Spirit")~=nil then
  3274. hum=c.Spirit
  3275. end
  3276. if hum~=nil then
  3277. local head=nil
  3278. for _,d in pairs(c:children()) do
  3279. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  3280. if d.className=="Model" and ranged~=true then
  3281. head=d:findFirstChild("Hitbox")
  3282. if d.Parent==Character then break end
  3283. if head~=nil then
  3284. local targ=head.Position-Part.Position
  3285. local mag=targ.magnitude
  3286. if mag<=magni and c.Name~=Player.Name then
  3287. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3288. ref.Anchored=true
  3289. ref.CFrame=cf(head.Position)
  3290. game:GetService("Debris"):AddItem(ref,1)
  3291. hitnum=math.random(1,5)
  3292. if hitnum==1 then so("199148971",ref,1,1)
  3293. elseif hitnum==2 then so("199149025",ref,1,1)
  3294. elseif hitnum==3 then so("199149072",ref,1,1)
  3295. elseif hitnum==4 then so("199149109",ref,1,1)
  3296. elseif hitnum==5 then so("199149119",ref,1,1)
  3297. end
  3298. --
  3299. end
  3300. end
  3301. end
  3302. if d.className=="Part" then
  3303. head=d
  3304. if head~=nil then
  3305. local targ=head.Position-Part.Position
  3306. local mag=targ.magnitude
  3307. if mag<=magni and c.Name~=Player.Name then
  3308. if stun==nil then
  3309. stun=math.random(5,10)
  3310. end
  3311. local Rang=nil
  3312. if Ranged==false then
  3313. Rang=true
  3314. end
  3315. local stag=nil
  3316. if shbash==true then
  3317. stag=true
  3318. end
  3319. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,nil,hitted)
  3320. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  3321. end
  3322. end
  3323. end
  3324. end
  3325. end
  3326. end
  3327. end
  3328.  
  3329. function MagniBuff(Part,magni,Dec,DecAm,Dur)
  3330. if Player.Neutral==true then
  3331. DecreaseStat(Character,Dec,DecAm,Dur)
  3332. end
  3333. for _,c in pairs(workspace:children()) do
  3334. local hum=c:findFirstChild("Humanoid")
  3335. if hum~=nil then
  3336. local head=c:findFirstChild("Torso")
  3337. if head~=nil then
  3338. local targ=head.Position-Part.Position
  3339. local mag=targ.magnitude
  3340. cando=true
  3341. if mag<=magni then
  3342. if Player.Neutral==false then
  3343. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  3344. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
  3345. else cando=false
  3346. end
  3347. if head.Parent:findFirstChild("Alignment")~=nil then
  3348. if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
  3349. end
  3350. else cando=false
  3351. end
  3352. if cando==true then
  3353. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  3354. end
  3355. end
  3356. end
  3357. end
  3358. end
  3359. end
  3360.  
  3361. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3362. local ignore={Ignore,workspace.NoTarget,workspace.CurrentCamera}
  3363. for _,v in pairs(workspace:children()) do
  3364. if v:IsA("BasePart") or v.className=="UnionOperation" then
  3365. if v.Name=="Effect" or v.Name=="Reference" or v.CanCollide==false then
  3366. table.insert(ignore,v)
  3367. end
  3368. elseif v.className=="Model" then
  3369. if v:FindFirstChild("Humanoid") then
  3370. for _,c in pairs(v:children()) do
  3371. if c.className=="Model" or c:IsA("Accoutrement") then
  3372. table.insert(ignore,c)
  3373. end
  3374. end
  3375. end
  3376. end
  3377. end
  3378. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), ignore)
  3379. end
  3380.  
  3381. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  3382. LastPoint=Point
  3383. function effect(Color,Ref,LP,P1,returnn)
  3384. if LP==nil or P1==nil then return end
  3385. local effectsmsh=Instance.new("CylinderMesh")
  3386. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3387. effectsmsh.Name="Mesh"
  3388. local effectsg=Instance.new("Part")
  3389. NoOutline(effectsg)
  3390. effectsg.formFactor=3
  3391. effectsg.CanCollide=false
  3392. effectsg.Name="Eff"
  3393. effectsg.Locked=true
  3394. effectsg.Anchored=true
  3395. effectsg.Size=Vector3.new(0.5,1,0.5)
  3396. effectsg.Parent=workspace
  3397. effectsmsh.Parent=effectsg
  3398. effectsg.BrickColor=BrickColor.new(Color)
  3399. effectsg.Reflectance=Ref
  3400. local point1=P1
  3401. local mg=(LP.p - point1.p).magnitude
  3402. effectsg.Size=Vector3.new(0.5,mg,0.5)
  3403. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  3404. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3405. game:GetService("Debris"):AddItem(effectsg,2)
  3406. if returnn then return effectsg end
  3407. if not returnn then
  3408. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  3409. end
  3410. end
  3411.  
  3412. local function CFrameFromTopBack(at, top, back)
  3413. local right = top:Cross(back)
  3414. return CFrame.new(at.x, at.y, at.z,
  3415. right.x, top.x, back.x,
  3416. right.y, top.y, back.y,
  3417. right.z, top.z, back.z)
  3418. end
  3419.  
  3420. function Triangle(a, b, c)
  3421. local edg1 = (c-a):Dot((b-a).unit)
  3422. local edg2 = (a-b):Dot((c-b).unit)
  3423. local edg3 = (b-c):Dot((a-c).unit)
  3424. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  3425. a, b, c = a, b, c
  3426. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  3427. a, b, c = b, c, a
  3428. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  3429. a, b, c = c, a, b
  3430. else
  3431. assert(false, "unreachable")
  3432. end
  3433.  
  3434. local len1 = (c-a):Dot((b-a).unit)
  3435. local len2 = (b-a).magnitude - len1
  3436. local width = (a + (b-a).unit*len1 - c).magnitude
  3437.  
  3438. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  3439.  
  3440. local list = {}
  3441.  
  3442. if len1 > 0.01 then
  3443. local w1 = Instance.new('WedgePart', m)
  3444. game:GetService("Debris"):AddItem(w1,5)
  3445. w1.Material = "SmoothPlastic"
  3446. w1.FormFactor = 'Custom'
  3447. w1.BrickColor = BrickColor.new("Medium blue")
  3448. w1.Transparency = 0
  3449. w1.Reflectance = 0
  3450. w1.Material = "SmoothPlastic"
  3451. w1.CanCollide = false
  3452. NoOutline(w1)
  3453. local sz = Vector3.new(0.2, width, len1)
  3454. w1.Size = sz
  3455. local sp = Instance.new("SpecialMesh",w1)
  3456. sp.MeshType = "Wedge"
  3457. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  3458. w1:BreakJoints()
  3459. w1.Anchored = true
  3460. w1.Parent = workspace
  3461. w1.Transparency = 0.7
  3462. table.insert(Effects,{w1,"Disappear",.05})
  3463. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  3464. table.insert(list,w1)
  3465. end
  3466.  
  3467. if len2 > 0.01 then
  3468. local w2 = Instance.new('WedgePart', m)
  3469. game:GetService("Debris"):AddItem(w2,5)
  3470. w2.Material = "SmoothPlastic"
  3471. w2.FormFactor = 'Custom'
  3472. w2.BrickColor = BrickColor.new("Medium blue")
  3473. w2.Transparency = 0
  3474. w2.Reflectance = 0
  3475. w2.Material = "SmoothPlastic"
  3476. w2.CanCollide = false
  3477. NoOutline(w2)
  3478. local sz = Vector3.new(0.2, width, len2)
  3479. w2.Size = sz
  3480. local sp = Instance.new("SpecialMesh",w2)
  3481. sp.MeshType = "Wedge"
  3482. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  3483. w2:BreakJoints()
  3484. w2.Anchored = true
  3485. w2.Parent = workspace
  3486. w2.Transparency = 0.7
  3487. table.insert(Effects,{w2,"Disappear",.05})
  3488. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  3489. table.insert(list,w2)
  3490. end
  3491. return unpack(list)
  3492. end
  3493.  
  3494. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3495. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3496. local wld=nil
  3497. prt.CFrame=cframe
  3498. prt.Anchored=true
  3499. --[[if Type~=3 then
  3500. prt.Anchored=true
  3501. else
  3502. prt.Anchored=false
  3503. wld=weld(prt,prt,prt2,cframe)
  3504. end]]
  3505. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3506. game:GetService("Debris"):AddItem(prt,10)
  3507. if Type==1 or Type==nil then
  3508. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  3509. elseif Type==2 then
  3510. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  3511. end
  3512. end
  3513.  
  3514. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3515. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3516. local wld=nil
  3517. prt.CFrame=cframe
  3518. prt.Anchored=true
  3519. --[[if Type~=3 then
  3520. prt.Anchored=true
  3521. else
  3522. prt.Anchored=false
  3523. wld=weld(prt,prt,prt2,cframe)
  3524. end]]
  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,"Cylinder",delay,x3,y3,z3,msh})
  3528. end
  3529.  
  3530. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
  3531. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3532. prt.Material="Neon"
  3533. prt.Anchored=true
  3534. prt.CFrame=cframe
  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,"Blood",delay,x3,y3,z3,msh,push})
  3538. end
  3539.  
  3540. function MagicCircle3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3541. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3542. local wld=nil
  3543. prt.CFrame=cframe
  3544. prt.Anchored=true
  3545. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3546. game:GetService("Debris"):AddItem(prt,10)
  3547. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  3548. end
  3549.  
  3550. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3551. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3552. prt.Anchored=true
  3553. prt.CFrame=cframe*cf(x2,y2,z2)
  3554. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  3555. game:GetService("Debris"):AddItem(prt,10)
  3556. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3557. end
  3558.  
  3559. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3560. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3561. prt.Anchored=true
  3562. prt.CFrame=cframe
  3563. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3564. game:GetService("Debris"):AddItem(prt,10)
  3565. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3566. end
  3567.  
  3568. function MagicFire(brickcolor,cframe,x1,y1,z1,x2,y2,z2,delay,rise)
  3569. local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3570. prt.Anchored=true
  3571. prt.CFrame=cframe
  3572. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3573. game:GetService("Debris"):AddItem(prt,10)
  3574. table.insert(Effects,{prt,"Fire",delay,x2,y2,z2,msh,rise})
  3575. end
  3576.  
  3577. function MagicBlockC(brickcolor,cframe,cf2,x1,y1,z1,x3,y3,z3,delay,move,rise,inside)
  3578. local prt=part(3,effects,0,.5,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3579. prt.Anchored=true
  3580. prt.CFrame=cframe
  3581. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3582. game:GetService("Debris"):AddItem(prt,10)
  3583. 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})
  3584. end
  3585.  
  3586. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  3587. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3588. prt.Anchored=true
  3589. prt.CFrame=cframe
  3590. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  3591. game:GetService("Debris"):AddItem(prt,10)
  3592. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  3593. end
  3594.  
  3595. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3596. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3597. prt.Anchored=true
  3598. prt.CFrame=cframe
  3599. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  3600. game:GetService("Debris"):AddItem(prt,10)
  3601. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3602. end
  3603.  
  3604. function MagicSpecial(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3605. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3606. prt.Anchored=true
  3607. prt.CFrame=cframe
  3608. local msh=mesh("SpecialMesh",prt,"FileMesh","24388358",vt(0,0,0),vt(x1,y1,z1))
  3609. game:GetService("Debris"):AddItem(prt,10)
  3610. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3611. end
  3612.  
  3613. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  3614. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3615. prt.Anchored=true
  3616. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3617. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3618. local num=math.random(10,50)/1000
  3619. game:GetService("Debris"):AddItem(prt,10)
  3620. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  3621. end
  3622.  
  3623. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound,hittedd)
  3624. if hit.Parent==nil then
  3625. return
  3626. end
  3627. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  3628. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3629. ref.Anchored=true
  3630. ref.CFrame=cf(hit.Position)
  3631. game:GetService("Debris"):AddItem(ref,1)
  3632. hitnum=math.random(1,5)
  3633. if hitnum==1 then so("199148971",ref,1,1)
  3634. elseif hitnum==2 then so("199149025",ref,1,1)
  3635. elseif hitnum==3 then so("199149072",ref,1,1)
  3636. elseif hitnum==4 then so("199149109",ref,1,1)
  3637. elseif hitnum==5 then so("199149119",ref,1,1)
  3638. end
  3639. --
  3640. end
  3641. h=hit.Parent:FindFirstChild("Humanoid")
  3642. if hit.Parent:findFirstChild("Spirit")~=nil then
  3643. h=hit.Parent.Spirit
  3644. end
  3645. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  3646. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3647. --[[if Player.Neutral==false and game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3648. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3649. end]]
  3650. if Player.Neutral==false then
  3651. if hit.Parent:findFirstChild("Alignment")~=nil then
  3652. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  3653. end
  3654. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3655. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3656. end
  3657. end
  3658. if Sound=="Impact" then
  3659. so("200632875",hit,1,1)
  3660. end
  3661. hitted=true
  3662. if Sound=="Shatter" then
  3663. so("199146069",hit,1,1)
  3664. end
  3665. c=Instance.new("ObjectValue")
  3666. c.Name="creator"
  3667. c.Value=game:service("Players").LocalPlayer
  3668. c.Parent=h
  3669. if hittedd==nil then
  3670. RecentEnemy.Value=hit.Parent
  3671. end
  3672. if ghostmode==true then
  3673. PhantomEnemy.Value=hit.Parent
  3674. end
  3675. game:GetService("Debris"):AddItem(c,.5)
  3676. Damage=(maxim*10 + math.floor(math.random(-maxim,maxim)/2))*Atk.Value
  3677. if hittedd~=nil then
  3678. hittedd.Value=true
  3679. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3680. ref.Anchored=true
  3681. ref.CFrame=hit.CFrame
  3682. mana.Value=mana.Value+2
  3683. game:GetService("Debris"):AddItem(ref,1)
  3684. so("315748970",ref,.8,1)
  3685. end
  3686. blocked=false
  3687. enblock=nil
  3688. Stats=hit.Parent:findFirstChild("Stats")
  3689. if Stats~=nil then
  3690. if cataclysm==true then
  3691. dec=Stats:findFirstChild("Decrease")
  3692. if dec~=nil then
  3693. for _,c in pairs(dec:children()) do
  3694. if c.className=="NumberValue" then
  3695. if c.Value<0 and c:findFirstChild("Duration")~=nil then
  3696. c.Parent=nil
  3697. end
  3698. end
  3699. end
  3700. end
  3701. end
  3702. invis=Stats:findFirstChild("Invisibility")
  3703. isinvis=Stats:findFirstChild("IsInvisible")
  3704. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  3705. invis.Value=0
  3706. end
  3707. enblock=Stats:findFirstChild("Block")
  3708. if enblock~=nil then
  3709. if enblock.Value==true then
  3710. blocked=true
  3711. end
  3712. end
  3713. if Stats:findFirstChild("Defense")~=nil then
  3714. local ignoredef=false
  3715. if ghostmode==true then
  3716. local col=nil
  3717. if game.Players:GetPlayerFromCharacter(hit.Parent) then
  3718. col=game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor
  3719. end
  3720. if col then
  3721. for _,c in pairs(game.Teams:children()) do
  3722. if c.TeamColor==col and c.Name=="Juggernaut" then
  3723. ignoredef=false
  3724. else
  3725. ignoredef=true
  3726. end
  3727. end
  3728. end
  3729. end
  3730. if Stats:findFirstChild("Boss")~=nil then
  3731. if Stats.Boss.Value==true then
  3732. ignoredef=false
  3733. end
  3734. end
  3735. if ignoredef==false then
  3736. Damage=Damage/(Stats.Defense.Value)
  3737. else
  3738. local newdef=(Stats.Defense.Value)
  3739. if Stats.Defense.Value>1 then
  3740. newdef=((Stats.Defense.Value-1)/2)+1
  3741. end
  3742. Damage=Damage/newdef
  3743. end
  3744. if Damage<=30 and (ranged==false or ranged==nil) and blocked~=true then
  3745. hitnum=math.random(1,5)
  3746. if hitnum==1 then so("199149321",hit,1,1)
  3747. elseif hitnum==2 then so("199149338",hit,1,1)
  3748. elseif hitnum==3 then so("199149367",hit,1,1)
  3749. elseif hitnum==4 then so("199149409",hit,1,1)
  3750. elseif hitnum==5 then so("199149452",hit,1,1)
  3751. end
  3752. elseif ranged==false or ranged==nil and blocked~=true then
  3753. hitnum=math.random(1,6)
  3754. if hitnum==1 then so("199149137",hit,1,1)
  3755. elseif hitnum==2 then so("199149186",hit,1,1)
  3756. elseif hitnum==3 then so("199149221",hit,1,1)
  3757. elseif hitnum==4 then so("199149235",hit,1,1)
  3758. elseif hitnum==5 then so("199149269",hit,1,1)
  3759. elseif hitnum==6 then so("199149297",hit,1,1)
  3760. end
  3761. end
  3762. if Damage<=30 and staghit==true then
  3763. --
  3764. end
  3765. end
  3766. workspace.stunFunc:FireServer(hit.Parent,incstun,blocked)
  3767. if Stats:findFirstChild("Stagger")~=nil then
  3768. if stagger==true then
  3769. Stats.Stagger.Value=true
  3770. end
  3771. end
  3772. end
  3773. if blocked==true then
  3774. damguiFunc(hit.Parent,"Block","Damage")
  3775. if ranged~=true then
  3776. enblock.Value=false
  3777. Stagger.Value=true
  3778. hitnum=math.random(1,2)
  3779. if hitnum==1 then so("199148933",hit,1,1)
  3780. elseif hitnum==2 then so("199148947",hit,1,1)
  3781. end
  3782. end
  3783. else
  3784. coroutine.resume(coroutine.create(function(Hum,Dam)
  3785. CurrentHealth=Hum.Health
  3786. damageFunc:Invoke(h,Damage/10)
  3787. end),h,Damage)
  3788. if ghostmode==true then
  3789. if hit.Parent:FindFirstChild("Humanoid") then
  3790. tehpart=hit.Parent.Torso
  3791. elseif hit.Parent.Name=="Neflhelm" then
  3792. tehpart=hit
  3793. end
  3794. if hit.Parent~=marked then
  3795. if marked then
  3796. if marked:FindFirstChild("Torso") then
  3797. PlayerGui:FindFirstChild("Mark Gui"):Destroy()
  3798. end
  3799. end
  3800. markgui=it("BillboardGui")
  3801. markgui.Parent=PlayerGui
  3802. markgui.Adornee=tehpart
  3803. markgui.Name="Mark Gui"
  3804. markgui.Size=UDim2.new(7,0,7,0)
  3805. markgui.StudsOffset=vt(0,5,0)
  3806. markgui.AlwaysOnTop=true
  3807. markspk=it("ImageLabel")
  3808. markspk.Parent=markgui
  3809. markspk.Name="Phantom Mark"
  3810. markspk.BackgroundTransparency=1
  3811. markspk.Image="rbxassetid://465578157"
  3812. markspk.ImageColor3=Color3.new(255/255,255/255,255/255)
  3813. markspk.Size=UDim2.new(1,0,1,0)
  3814. marked=hit.Parent
  3815. end
  3816. end
  3817. if hittedd~=nil then
  3818. hittedd.Value=true
  3819. if h~=nil and ghostmode==true then
  3820. h.Jump=true
  3821. end
  3822. end
  3823. if ghostmode==false and (ranged==false or ranged==nil) then
  3824. mana.Value=math.floor(mana.Value+(Damage/20))
  3825. end
  3826. damguiFunc(hit.Parent,Damage,"Damage")
  3827. if DecreaseState~=nil then
  3828. if DecreaseState=="Shatter" then
  3829. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  3830. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  3831. else
  3832. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3833. end
  3834. end
  3835. if Type=="Knockdown" then
  3836. hum=hit.Parent.Humanoid
  3837. hum.PlatformStand=true
  3838. coroutine.resume(coroutine.create(function(HHumanoid)
  3839. swait(1)
  3840. HHumanoid.PlatformStand=false
  3841. end),hum)
  3842. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3843. workspace.kbFunc:FireServer(hit,angle*knockback)
  3844. elseif Type=="Shatter" then
  3845. for i=1,10 do
  3846. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  3847. end
  3848. elseif Type=="Knockdown2" then
  3849. hum=h
  3850. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3851. workspace.kbFunc:FireServer(hit,angle*knockback)
  3852. elseif Type=="Normal" then
  3853. local vp
  3854. if KnockbackType==1 then
  3855. vp=Property.CFrame.lookVector*knockback
  3856. elseif KnockbackType==2 then
  3857. vp=Property.CFrame.lookVector*knockback
  3858. end
  3859. workspace.kbFunc:FireServer(hit,vp)
  3860. end
  3861. end
  3862. debounce=Instance.new("BoolValue")
  3863. debounce.Name="DebounceHit"
  3864. debounce.Parent=hit.Parent
  3865. debounce.Value=true
  3866. game:GetService("Debris"):AddItem(debounce,Delay)
  3867. if painbring==true and painboom>=10 then
  3868. painboom=0
  3869. 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)
  3870. 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)
  3871. MagniDamage(prt6,10,0,5,8,"Knockdown2",RootPart,0,1,9,nil,nil,true)
  3872. end
  3873. c=Instance.new("ObjectValue")
  3874. c.Name="creator"
  3875. c.Value=Player
  3876. c.Parent=h
  3877. game:GetService("Debris"):AddItem(c,.5)
  3878. CRIT=false
  3879. end
  3880. end
  3881.  
  3882. showDamage=function(Char,Dealt,Type)
  3883. m=Instance.new("Model")
  3884. m.Name="Effect"
  3885. c=Instance.new("Part")
  3886. c.Transparency=1
  3887. c.Name="Head"
  3888. c.TopSurface=0
  3889. c.BottomSurface=0
  3890. c.formFactor="Plate"
  3891. c.Size=Vector3.new(1,.4,1)
  3892. b=Instance.new("BillboardGui",c)
  3893. b.Size=UDim2.new(5,0,5,0)
  3894. b.AlwaysOnTop=true
  3895. if type(Dealt)=="number" then
  3896. Dealt=math.floor(Dealt)
  3897. end
  3898. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3899. if Type=="Damage" then
  3900. damgui.Font="SourceSans"
  3901. if Dealt=="Block" then
  3902. damgui.TextColor3=BrickColor.new("Bright blue").Color
  3903. elseif Dealt<30 then
  3904. damgui.TextColor3=BrickColor.new("White").Color
  3905. elseif Dealt>=30 and Dealt<200 then
  3906. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  3907. else
  3908. damgui.TextColor3=BrickColor.new("Really red").Color
  3909. damgui.Font="SourceSansBold"
  3910. end
  3911. elseif Type=="Debuff" then
  3912. damgui.TextColor3=BrickColor.new("White").Color
  3913. elseif Type=="Interrupt" then
  3914. damgui.TextColor3=BrickColor.new("New Yeller").Color
  3915. elseif Type=="Heal" then
  3916. damgui.TextColor3=BrickColor.new("Bright green").Color
  3917. end
  3918. --damgui.FontSize="Size48"
  3919. damgui.TextScaled=true
  3920. ms=Instance.new("CylinderMesh")
  3921. ms.Scale=Vector3.new(.8,.8,.8)
  3922. ms.Parent=c
  3923. c.Reflectance=0
  3924. Instance.new("BodyGyro").Parent=c
  3925. c.Parent=m
  3926. if Char:findFirstChild("Head")~=nil then
  3927. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3928. elseif Char.Parent:findFirstChild("Head")~=nil then
  3929. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3930. end
  3931. f=Instance.new("BodyPosition")
  3932. f.P=2000
  3933. f.D=100
  3934. f.maxForce=Vector3.new(545000,545000,545000)
  3935. if Type=="Damage" or Type=="Heal" then
  3936. f.position=c.Position+Vector3.new(0,3,0)
  3937. elseif Type=="Debuff" or Type=="Interrupt" then
  3938. f.position=c.Position+Vector3.new(0,5,0)
  3939. end
  3940. f.Parent=c
  3941. game:GetService("Debris"):AddItem(m,5)
  3942. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3943. c.CanCollide=false
  3944. m.Parent=workspace
  3945. c.CanCollide=false
  3946. end
  3947.  
  3948. combo=0
  3949. function ob1d(mouse)
  3950. 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
  3951. hold=true
  3952. if combo==0 then
  3953. combo=1
  3954. attackone()
  3955. elseif combo==1 then
  3956. combo=2
  3957. attacktwo()
  3958. elseif combo==2 then
  3959. combo=3
  3960. attackthree()
  3961. elseif combo==3 then
  3962. combo=0
  3963. attackfour()
  3964. end
  3965. coroutine.resume(coroutine.create(function()
  3966. for i=1,50 do
  3967. if attack==false then
  3968. swait()
  3969. end
  3970. end
  3971. if attack==false then
  3972. combo=0
  3973. end
  3974. end))
  3975. end
  3976.  
  3977. function ob1u(mouse)
  3978. hold = false
  3979. end
  3980.  
  3981. buttonhold = false
  3982.  
  3983. eul=0
  3984. equipped=false
  3985. function key(key)
  3986. if attack==true then return end
  3987. if key=="f" and ghostmode==false then
  3988. pressedf=true
  3989. fnumb=0
  3990. attack=true
  3991. if equipped==false then
  3992. --equipped=true
  3993. RSH=ch.Torso["Right Shoulder"]
  3994. LSH=ch.Torso["Left Shoulder"]
  3995. --
  3996. RSH.Parent=nil
  3997. LSH.Parent=nil
  3998. --
  3999. RW.Name="Right Shoulder"
  4000. RW.Part0=ch.Torso
  4001. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  4002. RW.C1=cf(0, 0.5, 0)
  4003. RW.Part1=ch["Right Arm"]
  4004. RW.Parent=ch.Torso
  4005. --
  4006. LW.Name="Left Shoulder"
  4007. LW.Part0=ch.Torso
  4008. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4009. LW.C1=cf(0, 0.5, 0)
  4010. LW.Part1=ch["Left Arm"]
  4011. LW.Parent=ch.Torso
  4012. --
  4013. animate.Disabled=true
  4014. local anime=Humanoid:LoadAnimation(animate.idle.Animation1)
  4015. anime:Play()
  4016. equipanim()
  4017. else
  4018. equipped=false
  4019. hideanim()
  4020. LH.C1=LHC1
  4021. RH.C1=RHC1
  4022. animate.Disabled=false
  4023. swait(0)
  4024. RW.Parent=nil
  4025. LW.Parent=nil
  4026. RSH.Parent=player.Character.Torso
  4027. LSH.Parent=player.Character.Torso
  4028. end
  4029. attack=false
  4030. end
  4031. if equipped==false then return end
  4032. cane=true
  4033. maxmana=30
  4034. if ominField~=nil then
  4035. maxmana=15
  4036. end
  4037. if ghostmode==false and mana.Value<=maxmana then
  4038. cane=false
  4039. end
  4040. if key=="e" and cane==true and canGhost then
  4041. canGhost = false
  4042. delay(0.5, function()
  4043. canGhost = true
  4044. end)
  4045. if ghostmode==true then
  4046. attack=true
  4047. local dec=Instance.new("NumberValue")
  4048. if clone:findFirstChild("Stats")~=nil then
  4049. if clone.Stats:findFirstChild("Decrease")~=nil then
  4050. dec.Parent=clone.Stats.Decrease
  4051. dec.Name="DecreaseMvmt"
  4052. dec.Value=10
  4053. end
  4054. end
  4055. for i=0,1,0.1 do
  4056. swait()
  4057. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  4058. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.4,0,0),.3)
  4059. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(.6,0,.1),.3)
  4060. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4061. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(.6,0,-.1),.3)
  4062. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4063. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,-.8)*euler(-.2,0,0),.3)
  4064. LH.C0=clerp(LH.C0,cf(-1,.4,-.5)*euler(0,-1.57,-.2),.3)
  4065. end
  4066. dec.Parent=nil
  4067. attack=false
  4068. end
  4069. Spectre()
  4070. if ghostmode==true then
  4071. drainmana=true
  4072. else
  4073. drainmana=false
  4074. end
  4075. if ghostmode==true and ominField==nil then
  4076. Torso.Velocity=RootPart.CFrame.lookVector*60
  4077. end
  4078. end
  4079. if key=="z" then
  4080. do1()
  4081. end
  4082. if key=="x" then
  4083. do2()
  4084. end
  4085. if key=="c" then
  4086. do3()
  4087. end
  4088. if key=="v" then
  4089. do4()
  4090. end
  4091. end
  4092.  
  4093. function key2(key)
  4094. if key=="c" then
  4095. if holdc==true then
  4096. holdc=false
  4097. end
  4098. end
  4099. end
  4100.  
  4101.  
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107. function ds(mouse)
  4108. end
  4109.  
  4110. mouse.KeyDown:Connect(function(k)
  4111. key(k)
  4112. end)
  4113. mouse.Button1Down:Connect(function()
  4114. ob1d()
  4115. end)
  4116. mouse.Button1Up:Connect(function()
  4117. ob1u()
  4118. end)
  4119. mouse.KeyUp:Connect(function(k)
  4120. key2(k)
  4121. end)
  4122. player=Player
  4123. ch=Character
  4124. --print("Spectre loaded.")
  4125.  
  4126. local mananum=0
  4127. local blocknum2=0
  4128. local donum=0
  4129. local stunnum=0
  4130. local staggeranim=false
  4131. local stunanim=false
  4132. local Point=nil
  4133. local LastPoint=nil
  4134. local floornum=0
  4135. local idleheal=0
  4136. --cooldowns[4]
  4137. local walk=0
  4138. local walkforw=true
  4139. local copymove=0
  4140. local sRJCF=it("Weld",spectral)
  4141. local sLWCF=it("Weld",spectral)
  4142. local sRWCF=it("Weld",spectral)
  4143. local sRHCF=it("Weld",spectral)
  4144. local sLHCF=it("Weld",spectral)
  4145. local ominef=0
  4146. local drainmana2=0
  4147. local spectreef=0
  4148. kscri=workspace:WaitForChild("GameScript"):WaitForChild("timerHandler"):clone()
  4149. kscri.Parent=Stats
  4150. kscri.Disabled=false
  4151. while true do
  4152. swait()
  4153.  
  4154. if Unstable.Value==true and unst == false then
  4155. if Stun.Value<StunT.Value and Stagger.Value==false and Stunned.Value==false then
  4156. coroutine.resume(coroutine.create(function()
  4157. unst=true
  4158. while attack==true do
  4159. swait()
  4160. end
  4161. UnstableAnim()
  4162. unst=false
  4163. end))
  4164. else
  4165. Unstable.Value=false
  4166. UnstableTime.Value=0
  4167. end
  4168. end
  4169. if Stagger.Value==true and staggeranim==false then
  4170. if Stunned.Value == false and Stun.Value<StunT.Value and Suppressed.Value==false then
  4171. coroutine.resume(coroutine.create(function()
  4172. staggeranim=true
  4173. while attack==true do
  4174. swait()
  4175. end
  4176. StaggerAnim()
  4177. StaggerHit.Value=false
  4178. Stagger.Value=false
  4179. staggeranim=false
  4180. end))
  4181. else
  4182. Stagger.Value=false
  4183. end
  4184. end
  4185. if Stun.Value>=StunT.Value and stunanim==false then
  4186. if Suppressed.Value==false then
  4187. coroutine.resume(coroutine.create(function()
  4188. stunanim=true
  4189. while attack==true do
  4190. swait()
  4191. end
  4192. StunAnim()
  4193. Stagger.Value=false
  4194. Stun.Value=0
  4195. stunanim=false
  4196. end))
  4197. else
  4198. Stunned.Value=false
  4199. Stun.Value=StunT-1
  4200. end
  4201. end
  4202. if TimeLocked.Value == true then
  4203. if Suppressed.Value == false then
  4204. if tlock == false then
  4205. tlock = true
  4206. coroutine.resume(coroutine.create(TimeLock))
  4207. end
  4208. else
  4209. TimeLocked.Value=false
  4210. TimeLocked.Timer.Value=0
  4211. end
  4212. end
  4213. if Suppressed.Value==true then
  4214. if suppress == false then
  4215. coroutine.resume(coroutine.create(function()
  4216. suppress=true
  4217. while attack==true do
  4218. swait()
  4219. end
  4220. SuppressedAnim()
  4221. suppress=false
  4222. end))
  4223. end
  4224. end
  4225.  
  4226. 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
  4227. Humanoid.WalkSpeed=0
  4228. else
  4229. Humanoid.WalkSpeed=16*Mvmt.Value
  4230. end
  4231. script.GhostMode.Value = ghostmode
  4232. if Humanoid.Health>0 then
  4233. effects.Parent=workspace.NoTarget
  4234. else
  4235. if imded==nil then
  4236. imded="shoutoutstosimpleflips"
  4237. game:GetService("Debris"):AddItem(effects,4.5)
  4238. end
  4239. end
  4240. drainmana2=drainmana2+1
  4241. if drainmana==true then
  4242. drainmax=4
  4243. if ominField~=nil then
  4244. drainmax=4
  4245. end
  4246. if drainmana2%drainmax==0 then
  4247. mana.Value=mana.Value-1
  4248. if mana.Value<=0 and ghostmode==true and attack==false then
  4249. drainmana=false
  4250. Spectre()
  4251. DecreaseStat(Character,"Movement",.2,100)
  4252. end
  4253. end
  4254. end
  4255. if Humanoid.Health<=0 then
  4256. spectral.Parent=nil
  4257. if clone~=nil then game:GetService("Debris"):AddItem(clone,5) end
  4258. spectral.Parent=nil
  4259. attack=true
  4260. resumeControl()
  4261. modelzorz.Parent=workspace
  4262. game:GetService("Debris"):AddItem(modelzorz,30)
  4263. for i=1,#Weapon do
  4264. Weapon[i].Parent=modelzorz
  4265. Weapon[i].CanCollide=true
  4266. end
  4267. for i=1,#Welds do
  4268. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  4269. Welds[i].Parent=nil
  4270. else
  4271. Welds[i].Parent=prt1
  4272. end
  4273. end
  4274. end
  4275. ominef=ominef+1
  4276. if ominField~=nil then
  4277. hitfloor,posfloor=rayCast(ominField+vt(0,1,0),(CFrame.new(ominField+vt(0,1,0),ominField - Vector3.new(0,1,0))).lookVector,100,effects)
  4278. ominField=posfloor
  4279. if ominup==false then
  4280. 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)
  4281. else
  4282. 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)
  4283. end
  4284. if ominef%3==0 then
  4285. MagicCircle(BrickColor.new(NewCol),cf(ominField)*euler(0,math.random(-50,50),0),100,20,80,10,-1,5,.1,1,effects)
  4286. end
  4287. if ominef%50==0 then
  4288. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  4289. ref.Anchored=true
  4290. ref.CFrame=cf(ominField)
  4291. game:GetService("Debris"):AddItem(ref,1)
  4292. MagniBuff(ref,20,"Damage",-.05,100)
  4293. ref.Parent=nil
  4294. end
  4295. if cooldowns[2]>=99 then
  4296. ominField=nil
  4297. end
  4298. end
  4299. if bladetype=="None" then
  4300. for _,c in pairs(modelzorz:children()) do
  4301. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  4302. if c.Transparency<1 then
  4303. c.Transparency=c.Transparency+.05
  4304. end
  4305. end
  4306. end
  4307. elseif bladetype=="Stable" then
  4308. for _,c in pairs(modelzorz:children()) do
  4309. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  4310. if c.Transparency>.4 then
  4311. c.Transparency=c.Transparency-.05
  4312. end
  4313. end
  4314. end
  4315. elseif bladetype=="Mana" then
  4316. for _,c in pairs(modelzorz:children()) do
  4317. if c.className=="Part" and (c.Name=="Part24" or c.Name=="Part25" or c.Name=="Part26") then
  4318. val=(20/mana.Value)
  4319. if val<=.4 then
  4320. val=.4
  4321. end
  4322. if c.Transparency>val then
  4323. c.Transparency=c.Transparency-.02
  4324. elseif c.Transparency<val then
  4325. c.Transparency=c.Transparency+.02
  4326. end
  4327. end
  4328. end
  4329. end
  4330. if ghostmode==false then
  4331. for _,c in pairs(modelzorz2:children()) do
  4332. if c.className=="Part" then
  4333. if c.Transparency<1 then
  4334. c.Transparency=c.Transparency+.1
  4335. end
  4336. end
  4337. end
  4338. else
  4339. if clone~=nil then
  4340. if clone:findFirstChild("Humanoid")~=nil then
  4341. if Humanoid.Health<=clone.Humanoid.Health then
  4342. clone.Humanoid.Health=Humanoid.Health
  4343. end
  4344. Humanoid.Health=clone.Humanoid.Health
  4345. end
  4346. end
  4347. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4348. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(-.2,0,.2)*cf(0,0,0),.3)
  4349. if cNeck~=nil then cNeck.C0=clerp(cNeck.C0,necko*euler(.3,0,0)*euler(0,0,0),.3) end
  4350. if cRootJoint~=nil then cRootJoint.C0=clerp(cRootJoint.C0,RootCF*cf(0,0,-1.4)*euler(0,0,0),.3) end
  4351. 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
  4352. 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
  4353. 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
  4354. 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
  4355. for _,c in pairs(modelzorz2:children()) do
  4356. if c.className=="Part" then
  4357. if c.Transparency>.2 then
  4358. c.Transparency=c.Transparency-.05
  4359. end
  4360. end
  4361. end
  4362. end
  4363. if equipped==false then
  4364. for _,c in pairs(spectral:children()) do
  4365. if c.className=="Part" then
  4366. if c.Transparency<1 then
  4367. c.Transparency=c.Transparency+.05
  4368. end
  4369. end
  4370. end
  4371. end
  4372. if ghostmode==true then
  4373. copymove=0
  4374. spectreef=spectreef+1
  4375. if clone:findFirstChild("HumanoidRootPart")~=nil then
  4376. if spectreef%3==0 then
  4377. 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)
  4378. 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)
  4379. end
  4380. end
  4381. for i=1,#oldCFrames do
  4382. table.remove(oldCFrames,1)
  4383. end
  4384. end
  4385. copymove=copymove+1
  4386. if copymove>=10 then
  4387. sRootPart.CFrame=oldCFrames[1][1]
  4388. sNeck.C0=oldCFrames[1][2]
  4389. sRootJoint.C0=oldCFrames[1][3]
  4390. sLW.C0=oldCFrames[1][4]
  4391. sRW.C0=oldCFrames[1][5]
  4392. sLH.C0=oldCFrames[1][6]
  4393. sRH.C0=oldCFrames[1][7]
  4394. sLH.C1=oldCFrames[1][8]
  4395. sRH.C1=oldCFrames[1][9]
  4396. table.remove(oldCFrames,1)
  4397. end
  4398. if PhantomEnemy.Value==nil then
  4399. doing4=false
  4400. end
  4401. if doing4==true then
  4402. if PhantomEnemy.Value~=nil then
  4403. if PhantomEnemy.Value:findFirstChild("HumanoidRootPart")~=nil then
  4404. table.insert(oldCFrames,{PhantomPos,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4405. else
  4406. table.insert(oldCFrames,{RootPart.CFrame,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4407. end
  4408. end
  4409. else
  4410. table.insert(oldCFrames,{RootPart.CFrame,Neck.C0,sRJCF.C0,sLWCF.C0,sRWCF.C0,sLHCF.C0,sRHCF.C0,sLHCF.C1,sRHCF.C1})
  4411. end
  4412. if fnumb<21 then
  4413. fnumb=fnumb+1
  4414. if pressedf==false then
  4415. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  4416. tellbar.TextTransparency=tellbar.TextTransparency-.05
  4417. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  4418. else
  4419. if fnumb==20 then
  4420. fenframe5.Parent=nil
  4421. --print("daigui")
  4422. end
  4423. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  4424. tellbar.TextTransparency=tellbar.TextTransparency+.05
  4425. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  4426. end
  4427. end
  4428. if ghostmode==true then
  4429. Stagger.Value=false
  4430. StaggerHit.Value=false
  4431. if Stun.Value>=StunT.Value then
  4432. Stun.Value=99
  4433. end
  4434. end
  4435. local stunnum2=20
  4436. if TimeLocked.Value==false then
  4437. if stunnum>=stunnum2 then
  4438. if Stun.Value>0 then
  4439. Stun.Value=Stun.Value-1
  4440. end
  4441. stunnum=0
  4442. end
  4443. end
  4444. stunnum=stunnum+1
  4445. if donum>=.5 then
  4446. handidle=true
  4447. elseif donum<=0 then
  4448. handidle=false
  4449. end
  4450. if handidle==false then
  4451. donum=donum+0.006
  4452. else
  4453. donum=donum-0.006
  4454. end
  4455. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4456. local velderp=RootPart.Velocity.y
  4457. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4458. if equipped==true then
  4459. if attack==false then
  4460. idle=idle+1
  4461. else
  4462. idle=0
  4463. end
  4464. if TimeLocked.Value==false and Unstable.Value==false and Stagger.Value==false and Stunned.Value==false and Suppressed.Value==false then
  4465. if Anim=="Walk" then
  4466. if walkforw==true then
  4467. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4468. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4469. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4470. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4471. else
  4472. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4473. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4474. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4475. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4476. end
  4477. else
  4478. RH.C1=clerp(RH.C1,RHC1,.2)
  4479. LH.C1=clerp(LH.C1,LHC1,.2)
  4480. end
  4481. if ghostmode==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. if c.Transparency<1 then
  4486. c.Transparency=c.Transparency+.05
  4487. end
  4488. end
  4489. end
  4490. end
  4491. elseif Anim=="Idle" or attack==true then
  4492. if equipped==true then
  4493. for _,c in pairs(spectral:children()) do
  4494. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4495. nums=.9
  4496. if doing4==true then
  4497. nums=.5
  4498. end
  4499. if c.Transparency<nums then
  4500. c.Transparency=c.Transparency+.02
  4501. elseif c.Transparency>nums then
  4502. c.Transparency=c.Transparency-.02
  4503. end
  4504. end
  4505. end
  4506. end
  4507. else
  4508. if equipped==true then
  4509. for _,c in pairs(spectral:children()) do
  4510. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4511. if c.Transparency<.8 then
  4512. c.Transparency=c.Transparency+.05
  4513. elseif c.Transparency>.8 then
  4514. c.Transparency=c.Transparency-.05
  4515. end
  4516. end
  4517. end
  4518. end
  4519. end
  4520. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4521. Anim="Jump"
  4522. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.3)
  4523. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(0,0,1),.3)
  4524. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(0,0,-1),.3)
  4525. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4526. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4527. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4528. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4529. if attack==false then
  4530. if ghostmode==false then
  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.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,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(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,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. else
  4541. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  4542. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4543. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.3)
  4544. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.1)*euler(0,0,0),.3)
  4545. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4546. LW.C0=clerp(LW.C0,cf(-1.5,0.4,0)*euler(-.6,0,-.1)*euler(0,0,0),.3)
  4547. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4548. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4549. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4550. end
  4551. end
  4552. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4553. Anim="Fall"
  4554. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.3)
  4555. sRWCF.C0=clerp(sRWCF.C0,cf(1.5,0.5,0)*euler(0,0,1),.3)
  4556. sLWCF.C0=clerp(sLWCF.C0,cf(-1.5,0.5,0)*euler(0,0,-1),.3)
  4557. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4558. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4559. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4560. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4561. if attack==false then
  4562. if ghostmode==false then
  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.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,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(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,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. else
  4573. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  4574. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  4575. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  4576. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,1)*euler(0,0,0),.3)
  4577. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4578. LW.C0=clerp(LW.C0,cf(-1.5,0.4,0)*euler(.2,0,-1)*euler(0,0,0),.3)
  4579. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4580. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4581. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4582. end
  4583. end
  4584. elseif torvel<1 and hitfloor~=nil then
  4585. Anim="Idle"
  4586. sRJCF.C0=clerp(sRJCF.C0,RootJoint.C0,.2)
  4587. sRWCF.C0=clerp(sRWCF.C0,RW.C0,.2)
  4588. sLWCF.C0=clerp(sLWCF.C0,LW.C0,.2)
  4589. sRHCF.C0=clerp(sRHCF.C0,RH.C0,.3)
  4590. sLHCF.C0=clerp(sLHCF.C0,LH.C0,.3)
  4591. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4592. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4593. if attack==false then
  4594. if ghostmode==false then
  4595. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4596. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,-.3,0),.3)
  4597. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  4598. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  4599. RW.C0=clerp(RW.C0,cf(1,0.5,-.3)*euler(1+(donum/4),0,-.1-(donum/4))*euler(0,.4,0),.2)
  4600. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4601. LW.C0=clerp(LW.C0,cf(-.4,0.5,-.5)*euler(1.4+(donum/4),0,.6-(donum/4))*euler(0,.2,0),.2)
  4602. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4603. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,0,0)*euler(-.2,0,-.2),.2)
  4604. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  4605. else --gost on
  4606. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  4607. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0),.2)
  4608. 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)
  4609. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4610. 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)
  4611. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4612. RH.C0=clerp(RH.C0,cf(1,-.4,-.6)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.2)
  4613. LH.C0=clerp(LH.C0,cf(-1,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.5),.2)
  4614. end
  4615. end
  4616. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  4617. Anim="Walk"
  4618. walk=walk+1
  4619. if walk>=15-(5*Mvmt.Value) then
  4620. walk=0
  4621. if walkforw==true then
  4622. walkforw=false
  4623. elseif walkforw==false then
  4624. walkforw=true
  4625. end
  4626. end
  4627. --sRJCF.C0=clerp(sRJCF.C0,RootCF,.3)
  4628. testpart.Anchored=true
  4629. testpart.CFrame=cf(RootPart.Position-RootPart.Velocity) *cf(0,0,0)
  4630. newpos=vt(RootPart.Position.X+math.random(-500,500)/100,sRootPart.Position.Y,RootPart.Position.Z+math.random(-500,500)/100)
  4631. MoveCF=cf(testpart.Position,newpos)
  4632. local mpos = testpart.CFrame*euler(0,0,0)
  4633. local cff = CFrame.new(mpos.p,newpos) * CFrame.Angles(math.pi/2,0,0)
  4634. local x,y,z = sRootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  4635. sRJCF.C0=clerp(sRJCF.C0,CFrame.Angles(x,y,z)*euler(0,3.14,0)*euler(0,0,0),.3)
  4636. sRHCF.C0=clerp(sRHCF.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4637. sLHCF.C0=clerp(sLHCF.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4638. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4639. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4640. if attack==false then
  4641. if ghostmode==false then
  4642. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4643. wld1.C0=clerp(wld1.C0,euler(0,-1.57,0)*cf(0,0,0),.3)
  4644. end
  4645. if ghostmode==false then
  4646. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,.3),.3)
  4647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.3),.3)
  4648. RW.C0=clerp(RW.C0,cf(1.4,0.5,.1)*euler(.3,0,.1)*euler(0,.8,0),.3)
  4649. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4650. LW.C0=clerp(LW.C0,cf(-.4,0.4,-.5)*euler(.6,0,.8)*euler(0,-1.8,0),.3)
  4651. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4652. RH.C0=clerp(RH.C0,cf(1,-.9,0)*euler(0,1.57,0)*euler(0,.3,0)*euler(0,0,-.1),.3)
  4653. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.1)*euler(0,-1.57,0)*euler(0,.3,0)*euler(0,0,.1),.3)
  4654. else
  4655. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  4656. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.3)
  4657. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(-.4,0,.8)*euler(0,0,0),.3)
  4658. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4659. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(-.4,0,-.8)*euler(0,0,0),.3)
  4660. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4661. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  4662. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.3)
  4663. end
  4664. end
  4665. elseif torvel>=30 and hitfloor~=nil then
  4666. Anim="Run"
  4667. if equipped==true then
  4668. for _,c in pairs(spectral:children()) do
  4669. if c.className=="Part" and c.Name~="HumanoidRootPart" then
  4670. if c.Transparency<.8 then
  4671. c.Transparency=c.Transparency+.05
  4672. elseif c.Transparency>.8 then
  4673. c.Transparency=c.Transparency-.05
  4674. end
  4675. end
  4676. end
  4677. end
  4678. sRJCF.C0=clerp(sRJCF.C0,RootCF,.3)
  4679. sRWCF.C0=clerp(sRWCF.C0,RW.C0,.2)
  4680. sLWCF.C0=clerp(sLWCF.C0,LW.C0,.2)
  4681. sRHCF.C0=clerp(sRHCF.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4682. sLHCF.C0=clerp(sLHCF.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4683. sRHCF.C1=clerp(sRHCF.C1,RH.C1,.3)
  4684. sLHCF.C1=clerp(sLHCF.C1,LH.C1,.3)
  4685. if attack==false then
  4686. if ghostmode==false then
  4687. --[[Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  4688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.4)
  4689. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.87,0,-.8)*euler(0,0,0),.4)
  4690. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  4691. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.97,0,.8)*euler(0,0,0),.4)
  4692. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  4693. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.2,0,.2),.4)
  4694. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0,-1.57,0)*euler(-.2,0,-.2),.4)]]
  4695.  
  4696. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  4697. wld1.C0=clerp(wld1.C0,euler(0,-1.57+.8,0)*euler(-.2,0,.2)*cf(0,0,0),.4)
  4698. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.4)
  4699. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.4)*euler(0,0,0),.4)
  4700. RW.C0=clerp(RW.C0,cf(1,0.8,-.5)*euler(2,0,-.8)*euler(0,3.14,0),.4)
  4701. LW.C0=clerp(LW.C0,cf(-1,0.8,-.5)*euler(2,0,.8)*euler(0,3.14,0),.4)
  4702. RH.C0=clerp(RH.C0,cf(1,-.8,-.8)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-1.4),.4)
  4703. LH.C0=clerp(LH.C0,cf(-1,.2,-.8)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2),.4)
  4704.  
  4705.  
  4706. else
  4707. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  4708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.3,0,0),.3)
  4709. RW.C0=clerp(RW.C0,cf(1.4,0.5,0)*euler(-.4,0,.8)*euler(0,0,0),.3)
  4710. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4711. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0)*euler(-.4,0,-.8)*euler(0,0,0),.3)
  4712. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4713. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(-.1,0,.25),.3)
  4714. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(0,0,0)*euler(-.1,0,.3),.3)
  4715. end
  4716. end
  4717. end
  4718. end
  4719. end
  4720. if #Effects>0 then
  4721. --table.insert(Effects,{prt,"Block1",delay})
  4722. for e=1,#Effects do
  4723. if Effects[e]~=nil then
  4724. --for j=1,#Effects[e] do
  4725. local Thing=Effects[e]
  4726. if Thing~=nil then
  4727. local Part=Thing[1]
  4728. local Mode=Thing[2]
  4729. local Delay=Thing[3]
  4730. local IncX=Thing[4]
  4731. local IncY=Thing[5]
  4732. local IncZ=Thing[6]
  4733. if Thing[2]=="CylinderClang" then
  4734. if Thing[3]<=1 then
  4735. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  4736. Thing[7]=Thing[1].CFrame
  4737. effect("New Yeller",0,Thing[8],Thing[7])
  4738. Thing[8]=Thing[7]
  4739. Thing[3]=Thing[3]+Thing[4]
  4740. else
  4741. Part.Parent=nil
  4742. table.remove(Effects,e)
  4743. end
  4744. --[[Mesh=Thing[7]
  4745. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4746. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  4747. end
  4748. if Thing[2]=="showDamage" then
  4749. if Thing[6]<Thing[5] then
  4750. Thing[6]=Thing[6]+1
  4751. elseif Thing[6]<Thing[7] then
  4752. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  4753. Thing[6]=Thing[6]+1
  4754. elseif Thing[6]<Thing[8] then
  4755. Thing[6]=Thing[6]+1
  4756. elseif Thing[6]<Thing[9] then
  4757. Thing[6]=Thing[6]+1
  4758. Thing[4].position=Thing[4].position+vt(0,.2,0)
  4759. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  4760. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  4761. else
  4762. Thing[1].Parent=nil
  4763. table.remove(Effects,e)
  4764. end
  4765. end
  4766. --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})
  4767. if Thing[2]=="Orb" then
  4768. Thing[6]=Thing[6]-1
  4769. Thing[7]=Thing[7]+Thing[12]
  4770. Thing[9]=Thing[9]+Thing[13]
  4771. Thing[11]=Thing[11]+Thing[14]
  4772. Thing[4].C0=Thing[10]*euler(0,0,0)
  4773. Thing[5].C0=Thing[8]*euler(Thing[9],Thing[7],Thing[11])*euler(0,0,0)
  4774. --Thing[15] --hitted
  4775. Thing[4].Parent=Thing[1]
  4776. Thing[4].Part0=Thing[1]
  4777. if ghostmode==true then
  4778. if clone~=nil then
  4779. if clone:findFirstChild("HumanoidRootPart")~=nil then
  4780. Thing[4].Part1=clone.HumanoidRootPart
  4781. end
  4782. end
  4783. else
  4784. Thing[4].Part1=RootPart
  4785. end
  4786. if Thing[6]%2==0 then
  4787. if ghostmode==true then
  4788. MagniDamage(Thing[3],3,0,7,50,"Knockdown2",RootPart,0,1,5,nil,nil,true,nil,nil,nil,Thing[15])
  4789. else
  4790. MagniDamage(Thing[3],3,0,7,15,"Knockdown2",RootPart,0,1,5,nil,nil,true,nil,nil,nil,Thing[15])
  4791. end
  4792. end
  4793. if Thing[15].Value==true then
  4794. Thing[6]=0
  4795. MagicCircle(BrickColor.new(NewCol),cf(Thing[3].Position),3,3,3,5,5,5,.1,1,effects)
  4796. end
  4797. if Thing[6]<=0 then
  4798. Thing[1].Parent=nil
  4799. orblimit=orblimit-1
  4800. table.remove(Effects,e)
  4801. end
  4802. end
  4803. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Orb" then
  4804. if Thing[1].Transparency<=1 then
  4805. if Thing[2]=="Block1" then
  4806. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4807. Mesh=Thing[7]
  4808. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4809. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4810. elseif Thing[2]=="Ice" then
  4811. --prt,"Ice",delay,msh,1,.2
  4812. if Thing[6]<=Thing[5] then
  4813. Thing[6]=Thing[6]+.3
  4814. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)
  4815. else
  4816. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4817. end
  4818. elseif Thing[2]=="Block2" then
  4819. Thing[1].CFrame=Thing[1].CFrame
  4820. Mesh=Thing[7]
  4821. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4822. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4823. elseif Thing[2]=="Block3" then
  4824. Thing[9]=Thing[9]*cf(Thing[14],0,0)
  4825. Thing[1].CFrame=Thing[8]*Thing[10]*Thing[9]
  4826. if Thing[11]==1 then
  4827. Thing[10]=Thing[10]*cf(0,Thing[13],0)*euler(0,Thing[12],0)
  4828. else
  4829. Thing[10]=Thing[10]*cf(0,Thing[13],0)*euler(0,-Thing[12],0)
  4830. end
  4831. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4832. Mesh=Thing[7]
  4833. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4834. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4835. elseif Thing[2]=="Fire" then
  4836. Thing[1].CFrame=cf(Thing[1].Position)+vt(0,Thing[8],0)
  4837. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4838. Thing[7].Scale=Thing[7].Scale+vt(Thing[4],Thing[5],Thing[6])
  4839. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4840. elseif Thing[2]=="Cylinder" then
  4841. Mesh=Thing[7]
  4842. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4843. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4844. elseif Thing[2]=="Cylinder2" then
  4845. Mesh=Thing[7]
  4846. if Thing[1].Transparency<=.5 then
  4847. Mesh.Scale=Mesh.Scale+vt(Thing[4]*2,Thing[5]*2,Thing[6]*2)
  4848. else
  4849. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4850. end
  4851. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4852. elseif Thing[2]=="Blood" then
  4853. Mesh=Thing[7]
  4854. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  4855. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4856. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4857. elseif Thing[2]=="Elec" then
  4858. Mesh=Thing[7]
  4859. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  4860. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4861. elseif Thing[2]=="Disappear" then
  4862. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4863. end
  4864. else
  4865. Part.Parent=nil
  4866. table.remove(Effects,e)
  4867. end
  4868. end
  4869. end
  4870. --end
  4871. end
  4872. end
  4873. end
  4874. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  4875. fenbarmana4.Text="Mana("..mana.Value..")"
  4876. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  4877. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  4878. fenbarhp3.Text="("..(math.floor(Humanoid.Health*10)).." / "..(math.floor(Humanoid.MaxHealth*10))..")"
  4879. --fenbarblock2:TweenSize(UDim2.new(.4,0,-4*armor/100,0),nil,1,0.4,true)
  4880. --fenbarblock3.Text="Armor("..math.floor(armor)..")"
  4881. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  4882. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  4883. fenbarmove2.Text=move2
  4884. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  4885. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  4886. if ghostmode==true then
  4887. if clone~=nil then
  4888. if clone:findFirstChild("Stats")~=nil then
  4889. if clone.Stats:findFirstChild("Decrease")~=nil then
  4890. for _,c in pairs(clone.Stats.Decrease:children()) do
  4891. if c:findFirstChild("Duration")~=nil then
  4892. c.Duration.Value=c.Duration.Value-1
  4893. if c.Duration.Value<=0 then
  4894. c.Parent=nil
  4895. end
  4896. end
  4897. if c.Name=="DecreaseAtk" then
  4898. decreaseatk=decreaseatk+c.Value
  4899. elseif c.Name=="DecreaseDef" then
  4900. decreasedef=decreasedef+c.Value
  4901. elseif c.Name=="DecreaseMvmt" then
  4902. decreasemvmt=decreasemvmt+c.Value
  4903. end
  4904. end
  4905. end
  4906. end
  4907. end
  4908. else
  4909. for _,c in pairs(Decrease:children()) do
  4910. if c:findFirstChild("Duration")~=nil then
  4911. c.Duration.Value=c.Duration.Value-1
  4912. if c.Duration.Value<=0 then
  4913. c.Parent=nil
  4914. end
  4915. end
  4916. if c.Name=="DecreaseAtk" then
  4917. decreaseatk=decreaseatk+c.Value
  4918. elseif c.Name=="DecreaseDef" then
  4919. decreasedef=decreasedef+c.Value
  4920. elseif c.Name=="DecreaseMvmt" then
  4921. decreasemvmt=decreasemvmt+c.Value
  4922. end
  4923. end
  4924. end
  4925. Atk.Value=1-decreaseatk
  4926. if Atk.Value<=0 then
  4927. Atk.Value=0
  4928. end
  4929. Def.Value=1-decreasedef
  4930. if Def.Value<=0 then
  4931. Def.Value=0.01
  4932. end
  4933. Mvmt.Value=1-decreasemvmt
  4934. if Mvmt.Value<=0 then
  4935. Mvmt.Value=0
  4936. end
  4937. decreaseatk=0
  4938. decreasedef=0
  4939. decreasemvmt=0
  4940. AtkVal=Atk.Value*100
  4941. AtkVal=math.floor(AtkVal)
  4942. AtkVal=AtkVal/100
  4943. fenbardamage.Text="Damage\
  4944. ("..(AtkVal*100).."%)"
  4945. DefVal=Def.Value*100
  4946. DefVal=math.floor(DefVal)
  4947. DefVal=DefVal/100
  4948. fenbardef.Text="Defense\
  4949. ("..(DefVal*100).."%)"
  4950. MvmtVal=Mvmt.Value*100
  4951. MvmtVal=math.floor(MvmtVal)
  4952. MvmtVal=MvmtVal/100
  4953. if Rooted.Value == true or Suppressed.Value == true or Unstable.Value == true or TimeLocked.Value==true then MvmtVal=0 end
  4954. fenbarmove.Text="Walkspeed\
  4955. ("..(MvmtVal*100).."%)"
  4956. fenbarorb1.Text="Orbs\
  4957. "..orblimit.."/"..maxorbs.." ("..orb..")"
  4958. if Stun.Value>=StunT.Value then
  4959. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  4960. else
  4961. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  4962. end
  4963. fenbarstun3.Text="Stun("..Stun.Value..")"
  4964. if mana.Value>=50 and cooldowns[4]==100 then
  4965. if marked then
  4966. if marked:FindFirstChild("Torso") then
  4967. PlayerGui["Mark Gui"]["Phantom Mark"].Image="rbxassetid://465578226"
  4968. end
  4969. end
  4970. else
  4971. if marked then
  4972. if marked:FindFirstChild("Torso") then
  4973. PlayerGui["Mark Gui"]["Phantom Mark"].Image="rbxassetid://465578157"
  4974. end
  4975. end
  4976. end
  4977. if TimeLocked.Value==false then
  4978. if mana.Value>=100 then
  4979. mana.Value=100
  4980. else
  4981. if mananum<12 then
  4982. mananum=mananum+1
  4983. elseif mananum>=12 then
  4984. mananum=0
  4985. if drainmana==false then
  4986. mana.Value=mana.Value+1
  4987. end
  4988. end
  4989. end
  4990. --[[if cooldown1>=cooldownmax then
  4991. cooldown1=cooldownmax
  4992. else
  4993. cooldown1=cooldown1+cooldownadd1
  4994. end]]
  4995. for i=1,#cooldowns do
  4996. if cooldowns[i]>=cooldownmax then
  4997. cooldowns[i]=cooldownmax
  4998. else
  4999. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  5000. end
  5001. end
  5002. end
  5003. end
  5004.  
  5005.  
Add Comment
Please, Sign In to add comment