memberhero

Spectre5

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