memberhero

Spectre 2

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