memberhero

Spectre8

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