memberhero

Spectre6

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