Advertisement
Mitko1223tm

cross sans test

Feb 9th, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 156.97 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,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. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. local s = Instance.new("Sound",char)
  84. s.Name = "BGMusic"
  85. s.SoundId = "http://www.roblox.com/asset/?id=573660225"
  86. s.Pitch = 1
  87. s.Volume = 1
  88. s.Looped = true
  89. wait(0.1)
  90. s:play()
  91.  
  92. p = owner
  93. char = p.Character
  94. torso = char.Torso
  95. neck = char.Torso.Neck
  96. hum = char.Humanoid
  97. hum.MaxHealth = 987654321987654321987654321987654321987654321
  98. wait()
  99. hum.Health =hum.MaxHealth
  100. char.Head.face.Texture = "rbxassetid://515293110"
  101.  
  102. for i,v in pairs(char:children()) do
  103. if v:IsA("Accessory") then
  104. v:Destroy()
  105. end
  106. end
  107.  
  108. ypcall(function()
  109. char.Shirt:Destroy()
  110. char.Pants:Destroy()
  111. shirt = Instance.new("Shirt", char)
  112. shirt.Name = "Shirt"
  113. pants = Instance.new("Pants", char)
  114. pants.Name = "Pants"
  115. char.Shirt.ShirtTemplate = "rbxassetid://519610322"
  116. char.Pants.PantsTemplate = "rbxassetid://515125291"
  117. end)
  118.  
  119. local BC = char["Body Colors"]
  120. BC.HeadColor = BrickColor.new("White")
  121. BC.LeftArmColor = BrickColor.new("White")
  122. BC.LeftLegColor = BrickColor.new("White")
  123. BC.RightArmColor = BrickColor.new("White")
  124. BC.RightLegColor = BrickColor.new("White")
  125. BC.TorsoColor = BrickColor.new("White")
  126.  
  127. CV="Maroon"
  128.  
  129. local txt = Instance.new("BillboardGui", char)
  130. txt.Adornee = char .Head
  131. txt.Name = "_status"
  132. txt.Size = UDim2.new(2, 0, 1.2, 0)
  133. txt.StudsOffset = Vector3.new(-9, 8, 0)
  134. local text = Instance.new("TextLabel", txt)
  135. text.Size = UDim2.new(10, 0, 7, 0)
  136. text.FontSize = "Size24"
  137. text.TextScaled = true
  138. text.TextTransparency = 0
  139. text.BackgroundTransparency = 1
  140. text.TextTransparency = 0
  141. text.TextStrokeTransparency = 0
  142. text.Font = "Bodoni"
  143. text.TextStrokeColor3 = Color3.new(0,0,0)
  144.  
  145. v=Instance.new("Part")
  146. v.Name = "ColorBrick"
  147. v.Parent=p.Character
  148. v.FormFactor="Symmetric"
  149. v.Anchored=true
  150. v.CanCollide=false
  151. v.BottomSurface="Smooth"
  152. v.TopSurface="Smooth"
  153. v.Size=Vector3.new(10,5,3)
  154. v.Transparency=1
  155. v.CFrame=char.Torso.CFrame
  156. v.BrickColor=BrickColor.new(CV)
  157. v.Transparency=1
  158. text.TextColor3 = Color3.new(255,0,0)
  159. v.Shape="Block"
  160. text.Text = "Cross!Sans"
  161.  
  162. Player = game:GetService("Players").LocalPlayer
  163. Character = Player.Character
  164. PlayerGui = Player.PlayerGui
  165. Backpack = Player.Backpack
  166. Torso = Character.Torso
  167. Head = Character.Head
  168. Humanoid = Character.Humanoid
  169. Face = Head.face
  170. LeftArm = Character["Left Arm"]
  171. LeftLeg = Character["Left Leg"]
  172. RightArm = Character["Right Arm"]
  173. RightLeg = Character["Right Leg"]
  174. LS = Torso["Left Shoulder"]
  175. LH = Torso["Left Hip"]
  176. RS = Torso["Right Shoulder"]
  177. RH = Torso["Right Hip"]
  178. Neck = Torso.Neck
  179. it = Instance.new
  180. vt = Vector3.new
  181. cf = CFrame.new
  182. euler = CFrame.fromEulerAnglesXYZ
  183. angles = CFrame.Angles
  184. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  185. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  186. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  187. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  188. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  189. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  190. RootPart = Character.HumanoidRootPart
  191. RootJoint = RootPart.RootJoint
  192. RootCF = euler(-1.57, 0, 3.14)
  193. Reaper = Instance.new("Model")
  194. Reaper.Parent = Player.Character
  195. Reaper.Name = "Reaper"
  196. rh = Instance.new("Part")
  197. rh.Parent = Reaper
  198. rh.Locked = true
  199. rh.CanCollide = false
  200. mesh = Instance.new("SpecialMesh")
  201. rh.formFactor = "Symmetric"
  202. mesh.MeshType = "FileMesh"
  203. mesh.MeshId = "http://www.roblox.com/asset/?id=99856331"
  204. mesh.TextureId = "http://www.roblox.com/asset/?id=34644652"
  205. mesh.Parent = rh
  206. local weld = Instance.new("Weld")
  207. weld.Parent = rh
  208. rh.Transparency = 0
  209. weld.Part0 = rh
  210. weld.Part1 = Player.Character.Head
  211. weld.C0 = CFrame.new(0, 1, 0)*CFrame.Angles(0, 0.85, 0)
  212. Reaper2 = Instance.new("Model")
  213. Reaper2.Parent = Player.Character
  214. Reaper2.Name = "Reaper2"
  215. rh1 = Instance.new("Part")
  216. rh1.Parent = Reaper2
  217. rh1.Locked = true
  218. rh1.CanCollide = false
  219. mesh2 = Instance.new("SpecialMesh")
  220. rh1.formFactor = "Symmetric"
  221. mesh2.MeshType = "FileMesh"
  222. mesh2.MeshId = "http://www.roblox.com/asset/?id=136756097"
  223. mesh2.TextureId = "http://www.roblox.com/asset/?id=4770560"
  224. mesh2.Parent = rh1
  225. local weld2 = Instance.new("Weld")
  226. weld2.Parent = rh1
  227. rh1.Transparency = 0
  228. weld2.Part0 = rh1
  229. weld2.Part1 = Player.Character.Head
  230. weld2.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0)
  231. e1 = Instance.new("Part")
  232. e1.Parent = Reaper
  233. e1.Locked = true
  234. e1.CanCollide = false
  235. e1.formFactor = "Symmetric"
  236. e1.Size = Vector3.new(-3.05,-5.05, -3.05)
  237. e1.Material = "Neon"
  238. e1.BrickColor = BrickColor.new("Smokey grey")
  239. e1.Shape = "Ball"
  240. e1.Transparency = 1
  241. local weld = Instance.new("Weld")
  242. weld.Parent = e1
  243. weld.Part0 = e1
  244. weld.Part1 = Player.Character.Head
  245. weld.C0 = CFrame.new(0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  246. e2 = Instance.new("Part")
  247. e2.Parent = Reaper
  248. e2.Locked = true
  249. e2.CanCollide = false
  250. e2.formFactor = "Symmetric"
  251. e2.Size = Vector3.new(-3.05,-5.05, -3.05)
  252. e2.Material = "Neon"
  253. e2.BrickColor = BrickColor.new("Smokey grey")
  254. e2.Shape = "Ball"
  255. e2.Transparency = 1
  256. local weld = Instance.new("Weld")
  257. weld.Parent = e2
  258. weld.Part0 = e2
  259. weld.Part1 = Player.Character.Head
  260. weld.C0 = CFrame.new(-0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  261. attack = false
  262. attackdebounce = false
  263. MMouse = nil
  264. combo = 0
  265. local hitfloor, posfloor = nil, nil
  266. local idle = 0
  267. local Anim = "Idle"
  268. local Effects = {}
  269. local Weapon = {}
  270. local Welds = {}
  271. local invisible = false
  272. local doing2 = false
  273. local doing4 = false
  274. local Marked = {}
  275. local MarkedGUI = {}
  276. local decreaseatk = 0
  277. local decreasedef = 0
  278. local decreasemvmt = 0
  279. local pursuitnum = 0
  280. local arcorb = false
  281. local move1 = "(Z)\nSoul Taker"
  282. local move2 = "(X)\nGaster Shot"
  283. local move3 = "(C)\nGaster Beam"
  284. local move4 = "(V)\nThe X-Event"
  285. local cooldowns = {}
  286. local cooldown1 = 0
  287. table.insert(cooldowns, cooldown1)
  288. local cooldown2 = 0
  289. table.insert(cooldowns, cooldown2)
  290. local cooldown3 = 0
  291. table.insert(cooldowns, cooldown3)
  292. local cooldown4 = 0
  293. table.insert(cooldowns, cooldown4)
  294. local cooldownsadd = {}
  295. local cooldownadd1 = 100
  296. table.insert(cooldownsadd, cooldownadd1)
  297. local cooldownadd2 = 100
  298. table.insert(cooldownsadd, cooldownadd2)
  299. local cooldownadd3 = 100
  300. table.insert(cooldownsadd, cooldownadd3)
  301. local cooldownadd4 = 100
  302. table.insert(cooldownsadd, cooldownadd4)
  303. local cooldownmax = 100
  304. player = nil
  305. RSH = nil
  306. RW = Instance.new("Motor")
  307. LW = Instance.new("Motor")
  308. RW.Name = "Right Shoulder"
  309. LW.Name = "Left Shoulder"
  310. LH = Torso["Left Hip"]
  311. RH = Torso["Right Hip"]
  312. TorsoColor = Torso.BrickColor
  313. TorsoRed = TorsoColor.Color.r
  314. TorsoGreen = TorsoColor.Color.g
  315. TorsoBlue = TorsoColor.Color.b
  316. NewCol = Color3.new(255, 0, 0)
  317. NewCol2 = Color3.new(255, 0, 0)
  318. if Player:findFirstChild("Color1") ~= nil then
  319. NewCol = Player.Color1.Value
  320. end
  321. if Player:findFirstChild("Color2") ~= nil then
  322. NewCol2 = Player.Color2.Value
  323. end
  324. print(BrickColor.new(NewCol))
  325. local mdec = Instance.new("NumberValue", Decrease)
  326. mdec.Name = "DecreaseDef"
  327. mdec.Value = 0.4
  328. local mdec2 = Instance.new("NumberValue", Decrease)
  329. mdec2.Name = "DecreaseMvmt"
  330. mdec2.Value = 0.1
  331. if Character:findFirstChild("Effects", true) ~= nil then
  332. Character:findFirstChild("Effects", true).Parent = nil
  333. end
  334. local effects = it("Model", Character)
  335. effects.Name = "Effects"
  336. local Animate = Humanoid.Animator
  337. local canjump = true
  338. removeControl = function()
  339. canjump = false
  340. end
  341. resumeControl = function()
  342. canjump = true
  343. end
  344. Player.Character.Humanoid.Changed:connect(function()
  345. if canjump == false then
  346. Player.Character.Humanoid.Jump = false
  347. end
  348. end)
  349. ArtificialHB = Instance.new("BindableEvent", script)
  350. ArtificialHB.Name = "Heartbeat"
  351.  
  352. script:WaitForChild("Heartbeat")
  353.  
  354. frame = 1 / 30
  355. tf = 0
  356. allowframeloss = true
  357. tossremainder = false
  358. lastframe = tick()
  359. script.Heartbeat:Fire()
  360.  
  361. game:GetService("RunService").Heartbeat:connect(function(s, p)
  362. tf = tf + s
  363. if tf >= frame then
  364. if allowframeloss then
  365. script.Heartbeat:Fire()
  366. lastframe = tick()
  367. else
  368. for i = 1, math.floor(tf / frame) do
  369. script.Heartbeat:Fire()
  370. end
  371. lastframe = tick()
  372. end
  373. if tossremainder then
  374. tf = 0
  375. else
  376. tf = tf - frame * math.floor(tf / frame)
  377. end
  378. end
  379. end)
  380.  
  381. function swait(num)
  382. if num == 0 or num == nil then
  383. ArtificialHB.Event:wait()
  384. else
  385. for i = 0, num do
  386. ArtificialHB.Event:wait()
  387. end
  388. end
  389. end
  390. if Character:findFirstChild("Carnufico", true) ~= nil then
  391. Character:findFirstChild("Carnufico", true).Parent = nil
  392. end
  393. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  394. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  395. end
  396. if Character:findFirstChild("Stats", true) ~= nil then
  397. Character:findFirstChild("Stats", true).Parent = nil
  398. end
  399. local Stats = Instance.new("BoolValue")
  400. Stats.Name = "Stats"
  401. Stats.Parent = Character
  402. local Atk = Instance.new("NumberValue")
  403. Atk.Name = "Damage"
  404. Atk.Parent = Stats
  405. Atk.Value = 1
  406. local Def = Instance.new("NumberValue")
  407. Def.Name = "Defense"
  408. Def.Parent = Stats
  409. Def.Value = 1
  410. local Mvmt = Instance.new("NumberValue")
  411. Mvmt.Name = "Movement"
  412. Mvmt.Parent = Stats
  413. Mvmt.Value = 1
  414. local Block = Instance.new("BoolValue")
  415. Block.Name = "Block"
  416. Block.Parent = Stats
  417. Block.Value = false
  418. local Stun = Instance.new("NumberValue")
  419. Stun.Name = "Stun"
  420. Stun.Parent = Stats
  421. Stun.Value = 0
  422. local StunT = Instance.new("NumberValue")
  423. StunT.Name = "StunThreshold"
  424. StunT.Parent = Stats
  425. StunT.Value = 100
  426. local Rooted = Instance.new("BoolValue")
  427. Rooted.Name = "Rooted"
  428. Rooted.Parent = Stats
  429. Rooted.Value = false
  430. local Stunned = Instance.new("BoolValue")
  431. Stunned.Name = "Stunned"
  432. Stunned.Parent = Stats
  433. Stunned.Value = false
  434. local Stagger = Instance.new("BoolValue")
  435. Stagger.Name = "Stagger"
  436. Stagger.Parent = Stats
  437. Stagger.Value = false
  438. local StaggerHit = Instance.new("BoolValue")
  439. StaggerHit.Name = "StaggerHit"
  440. StaggerHit.Parent = Stats
  441. StaggerHit.Value = false
  442. local RecentEnemy = Instance.new("ObjectValue")
  443. RecentEnemy.Name = "RecentEnemy"
  444. RecentEnemy.Parent = Stats
  445. RecentEnemy.Value = nil
  446. local Decrease = Instance.new("BoolValue")
  447. Decrease.Name = "Decrease"
  448. Decrease.Parent = Stats
  449. Decrease.Value = false
  450. local mana = Instance.new("NumberValue")
  451. mana.Name = "Mana"
  452. mana.Parent = Stats
  453. mana.Value = 0
  454. local invisnum = Instance.new("NumberValue")
  455. invisnum.Name = "Pursuit"
  456. invisnum.Parent = Stats
  457. invisnum.Value = 0
  458. local isinvis = Instance.new("BoolValue")
  459. isinvis.Name = "IsInvisible"
  460. isinvis.Parent = Stats
  461. isinvis.Value = false
  462. local passive = Instance.new("NumberValue", Decrease)
  463. passive.Name = "DecreaseAtk"
  464. passive.Value = 0
  465. local passive2 = Instance.new("NumberValue", nil)
  466. passive2.Name = "DecreaseDef"
  467. passive2.Value = 0.2
  468. local passive3 = Instance.new("NumberValue", nil)
  469. passive3.Name = "DecreaseMvmt"
  470. passive3.Value = -0.2
  471. NoOutline = function(Part)
  472. Part.TopSurface = 10
  473. end
  474. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  475. local fp = it("Part")
  476. fp.formFactor = formfactor
  477. fp.Parent = parent
  478. fp.Reflectance = reflectance
  479. fp.Transparency = transparency
  480. fp.CanCollide = false
  481. fp.Locked = true
  482. fp.BrickColor = brickcolor
  483. fp.Name = name
  484. fp.Size = size
  485. fp.Position = Torso.Position
  486. NoOutline(fp)
  487. fp.Material = "SmoothPlastic"
  488. fp:BreakJoints()
  489. return fp
  490. end
  491. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  492. local mesh = it(Mesh)
  493. mesh.Parent = part
  494. if Mesh == "SpecialMesh" then
  495. mesh.MeshType = meshtype
  496. if meshid ~= "nil" then
  497. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  498. end
  499. end
  500. mesh.Offset = offset
  501. mesh.Scale = scale
  502. return mesh
  503. end
  504. weld = function(parent, part0, part1, c0)
  505. local weld = it("Motor")
  506. weld.Parent = parent
  507. weld.Part0 = part0
  508. weld.Part1 = part1
  509. weld.C0 = c0
  510. return weld
  511. end
  512. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  513. local gui = it(GuiType)
  514. gui.Parent = parent
  515. gui.Text = text
  516. gui.BackgroundTransparency = backtrans
  517. gui.BackgroundColor3 = backcol
  518. gui.SizeConstraint = "RelativeXY"
  519. gui.TextXAlignment = "Center"
  520. gui.TextYAlignment = "Center"
  521. gui.Position = pos
  522. gui.Size = size
  523. gui.Font = "Bodoni"
  524. gui.FontSize = "Size14"
  525. gui.TextWrapped = false
  526. gui.TextStrokeTransparency = 0
  527. gui.TextColor = BrickColor.new("White")
  528. return gui
  529. end
  530. local Color1 = Torso.BrickColor
  531. local fengui = it("GuiMain")
  532. fengui.Parent = Player.PlayerGui
  533. fengui.Name = "WeaponGUI"
  534. local fenframe = it("Frame")
  535. fenframe.Parent = fengui
  536. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  537. fenframe.BackgroundTransparency = 1
  538. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  539. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  540. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  541. local fenframe2 = it("Frame")
  542. fenframe2.Parent = fengui
  543. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  544. fenframe2.BackgroundTransparency = 1
  545. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  546. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  547. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  548. local fenframe3 = it("Frame")
  549. fenframe3.Parent = fengui
  550. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  551. fenframe3.BackgroundTransparency = 1
  552. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  553. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  554. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  555. fenframe3.Name = "MoveFrame"
  556. local fenframe4 = it("Frame")
  557. fenframe4.Parent = fengui
  558. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  559. fenframe4.BackgroundTransparency = 1
  560. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  561. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  562. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  563. local pressedf = false
  564. local fenframe5 = it("Frame")
  565. fenframe5.Parent = fengui
  566. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  567. fenframe5.BackgroundTransparency = 1
  568. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  569. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  570. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  571. fenframe5.ZIndex = 2
  572. local tellbar = gui("TextLabel", fenframe5, "Press F if you ready to fight everyone.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  573. tellbar.Font = "Bodoni"
  574. tellbar.TextScaled = true
  575. tellbar.TextTransparency = 1
  576. tellbar.TextStrokeTransparency = 1
  577. tellbar.ZIndex = 2
  578. local fnumb = 0
  579. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  580. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  581. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  582. local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  583. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  584. local fenbarblock3 = gui("TextLabel", fenframe, "Pursuit(" .. invisnum.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  585. local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  586. local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  587. local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  588. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  589. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  590. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  591. local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  592. local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  593. local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  594. local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  595. fenbarmove1.ZIndex = 2
  596. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  597. local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  598. fenbarmove2.ZIndex = 2
  599. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  600. local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  601. fenbarmove3.ZIndex = 2
  602. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  603. local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  604. fenbarmove4.ZIndex = 2
  605. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  606. local testpart = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
  607. testpart.Anchored = true
  608. local scarfp2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
  609. scarfp2.Anchored = true
  610. local modelzorz = Instance.new("Model")
  611. modelzorz.Parent = Character
  612. modelzorz.Name = "Carnufico"
  613. local handle = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Handle", vt())
  614. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part01", vt())
  615. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part02", vt())
  616. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part03", vt())
  617. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part04", vt())
  618. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part05", vt())
  619. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part06", vt())
  620. local prt7 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium stone grey"), "Part07", vt())
  621. local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part07", vt())
  622. local prt9 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium stone grey"), "Part09", vt())
  623. local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part10", vt())
  624. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
  625. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
  626. msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
  627. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  628. msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  629. msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 1))
  630. msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
  631. msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
  632. msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  633. msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  634. local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6))
  635. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  636. local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0))
  637. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
  638. local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1))
  639. local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1))
  640. local wld6 = weld(prt1, prt6, prt3, euler(4.55, 0, 0) * cf(0, -0.2, 0.1))
  641. local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2))
  642. local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2))
  643. local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7))
  644. local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7))
  645. for i = 0, 2.355, 0.785 do
  646. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part04", vt())
  647. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
  648. local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0))
  649. end
  650. oldprt = prt9
  651. oldprt2 = prt10
  652. cff = 0.1
  653. eul = 0.02
  654. siz = 0.99
  655. for i = 1, 6 do
  656. local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really black"), "Part11", vt())
  657. msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  658. local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  659. if i < 4 then
  660. num = 6
  661. if i == 3 then
  662. num = 6.8
  663. end
  664. local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("Black"), "Part12", vt())
  665. msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
  666. local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  667. end
  668. do
  669. do
  670. oldprt = prt11
  671. cff = 0.6
  672. eul = 0.15
  673. siz = siz - 0.1
  674. -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
  675.  
  676. end
  677. end
  678. end
  679. modelzorz.Name = "Chakra Gauntlets"
  680. local rprt1 = part(3, modelzorz, 0, 0, BrickColor.new("Really red"), "Right Part01", vt())
  681. local rprt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part02", vt())
  682. local rprt3 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Right Part03", vt())
  683. local rprt4 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Right Part04", vt())
  684. local rprt5 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Right Part05", vt())
  685. local rprt6 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Right Part06", vt())
  686. d = Instance.new("Decal", rprt5)
  687. d.Face = "Top"
  688. d.Texture = "rbxassetid://333659455"
  689. rgui = Instance.new("BillboardGui")
  690. rgui.Parent = rprt5
  691. rgui.Size = UDim2.new(3, 0, 2.4, 0)
  692. rgui.AlwaysOnTop = false
  693. rimg = Instance.new("ImageLabel")
  694. rimg.Parent = rgui
  695. rimg.BackgroundTransparency = 1
  696. rimg.Size = UDim2.new(1, 0, 1, 0)
  697. rimg.Image = "rbxassetid://200369289"
  698. rimg.ImageColor3 = BrickColor.new(NewCol).Color
  699. local lprt1 = part(3, modelzorz, 0, 0, BrickColor.new("Really red"), "Left Part01", vt())
  700. local lprt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part02", vt())
  701. local lprt3 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Left Part03", vt())
  702. local lprt4 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Left Part04", vt())
  703. local lprt5 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Left Part05", vt())
  704. local lprt6 = part(3, modelzorz, 0.5, 0, BrickColor.new("Really red"), "Left Part06", vt())
  705. d = Instance.new("Decal", lprt5)
  706. d.Face = "Bottom"
  707. d.Texture = "rbxassetid://333659455"
  708. lgui = Instance.new("BillboardGui")
  709. lgui.Parent = lprt5
  710. lgui.Size = UDim2.new(3, 0, 2.4, 0)
  711. lgui.AlwaysOnTop = false
  712. limg = Instance.new("ImageLabel")
  713. limg.Parent = lgui
  714. limg.BackgroundTransparency = 1
  715. limg.Size = UDim2.new(1, 0, 1, 0)
  716. limg.Image = "rbxassetid://200369289"
  717. limg.ImageColor3 = BrickColor.new(NewCol).Color
  718. lgui = Instance.new("BillboardGui")
  719. lgui.Parent = prt3
  720. lgui.Size = UDim2.new(3, 0, 2.4, 3)
  721. lgui.AlwaysOnTop = false
  722. timg = Instance.new("ImageLabel")
  723. timg.Parent = lgui
  724. timg.BackgroundTransparency = 1
  725. timg.Size = UDim2.new(1, 0, 1, 0)
  726. timg.Image = "rbxassetid://200369289"
  727. timg.ImageColor3 = BrickColor.new(NewCol).Color
  728. rimg.Rotation = rimg.Rotation + 2
  729. limgRotation = limg.Rotation + 2
  730. timg.Rotation = timg.Rotation + -2
  731. local rmsh1 = mesh("SpecialMesh", rprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
  732. local rmsh2 = mesh("CylinderMesh", rprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
  733. local rmsh3 = mesh("SpecialMesh", rprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
  734. local rmsh4 = mesh("SpecialMesh", rprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
  735. local rmsh5 = mesh("CylinderMesh", rprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
  736. local rmsh6 = mesh("SpecialMesh", rprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  737. local lmsh1 = mesh("SpecialMesh", lprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
  738. local lmsh2 = mesh("CylinderMesh", lprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
  739. local lmsh3 = mesh("SpecialMesh", lprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
  740. local lmsh4 = mesh("SpecialMesh", lprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
  741. local lmsh5 = mesh("CylinderMesh", lprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
  742. local lmsh6 = mesh("SpecialMesh", lprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  743. local rwld1 = weld(lprt1, rprt1, RightArm, euler(1.57, 0, 0) * cf(0, 0.3, 0))
  744. local rwld2 = weld(rprt1, rprt2, rprt1, euler(0, 0, 1.57) * cf(-0.6, 0, 0))
  745. local rwld3 = weld(rprt1, rprt3, rprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4))
  746. local rwld4 = weld(rprt1, rprt4, rprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2))
  747. local rwld5 = weld(rprt1, rprt5, rprt2, euler(0, 0, 0) * cf(0, 0, 0))
  748. local rwld6 = weld(rprt1, rprt6, rprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45))
  749. local lwld1 = weld(lprt1, lprt1, LeftArm, euler(1.57, 0, 0) * cf(0, 0.3, 0))
  750. local lwld2 = weld(rprt1, lprt2, lprt1, euler(0, 0, 1.57) * cf(0.6, 0, 0))
  751. local lwld3 = weld(rprt1, lprt3, lprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4))
  752. local lwld4 = weld(rprt1, lprt4, lprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2))
  753. local lwld5 = weld(rprt1, lprt5, lprt2, euler(0, 0, 0) * cf(0, 0, 0))
  754. local lwld6 = weld(rprt1, lprt6, lprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45))
  755. for _,c in pairs(modelzorz:children()) do
  756. table.insert(Weapon, c)
  757. end
  758. for _,c in pairs(rprt1:children()) do
  759. if c.className == "Motor" then
  760. table.insert(Welds, c)
  761. end
  762. end
  763. oldprt2 = prt10
  764. cff = 0.1
  765. eul = 0.02
  766. siz = 0.99
  767. for i = 1, 7 do
  768. local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part13", vt())
  769. msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  770. local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  771. oldprt2 = prt13
  772. cff = 0.6
  773. eul = 0.14
  774. siz = siz - 0.1
  775. end
  776. for _,c in pairs(modelzorz:children()) do
  777. table.insert(Weapon, c)
  778. end
  779. for _,c in pairs(prt1:children()) do
  780. if c.className == "Motor" then
  781. table.insert(Welds, c)
  782. end
  783. end
  784. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  785. hitbox.Anchored = false
  786. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  787. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  788. hitbox2.Anchored = true
  789. local hitboxCF = cf(0, 0, 0)
  790. hboxpos = Instance.new("BodyPosition", nil)
  791. hboxpos.P = 2000
  792. hboxpos.D = 100
  793. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  794. hitboxweld = function()
  795. hbwld.Parent = modelzorz
  796. hbwld.Part0 = hitbox
  797. hbwld.Part1 = prt6
  798. end
  799. if script.Parent.className ~= "HopperBin" then
  800. Tool = Instance.new("HopperBin")
  801. Tool.Parent = Backpack
  802. Tool.Name = "Carnufico"
  803. script.Parent = Tool
  804. end
  805. Bin = script.Parent
  806. if Bin.Name == "Renegade: Adjudicator" then
  807. Bin.Name = "Carnufico"
  808. end
  809. local bodvel = Instance.new("BodyVelocity")
  810. local bg = Instance.new("BodyGyro")
  811. so = function(id, par, vol, pit)
  812. local sou = Instance.new("Sound", par or workspace)
  813. sou.Volume = vol
  814. sou.Pitch = pit or 1
  815. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  816. coroutine.resume(coroutine.create(function(Sound)
  817. swait()
  818. Sound:play()
  819. end), sou)
  820. game:GetService("Debris"):AddItem(sou, 6)
  821. end
  822. function clerp(a,b,t)
  823. local qa = {QuaternionFromCFrame(a)}
  824. local qb = {QuaternionFromCFrame(b)}
  825. local ax, ay, az = a.x, a.y, a.z
  826. local bx, by, bz = b.x, b.y, b.z
  827. local _t = 1-t
  828. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  829. end
  830.  
  831. function QuaternionFromCFrame(cf)
  832. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  833. local trace = m00 + m11 + m22
  834. if trace > 0 then
  835. local s = math.sqrt(1 + trace)
  836. local recip = 0.5/s
  837. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  838. else
  839. local i = 0
  840. if m11 > m00 then
  841. i = 1
  842. end
  843. if m22 > (i == 0 and m00 or m11) then
  844. i = 2
  845. end
  846. if i == 0 then
  847. local s = math.sqrt(m00-m11-m22+1)
  848. local recip = 0.5/s
  849. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  850. elseif i == 1 then
  851. local s = math.sqrt(m11-m22-m00+1)
  852. local recip = 0.5/s
  853. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  854. elseif i == 2 then
  855. local s = math.sqrt(m22-m00-m11+1)
  856. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  857. end
  858. end
  859. end
  860.  
  861. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  862. local xs, ys, zs = x + x, y + y, z + z
  863. local wx, wy, wz = w*xs, w*ys, w*zs
  864. local xx = x*xs
  865. local xy = x*ys
  866. local xz = x*zs
  867. local yy = y*ys
  868. local yz = y*zs
  869. local zz = z*zs
  870. 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))
  871. end
  872.  
  873. function QuaternionSlerp(a, b, t)
  874. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  875. local startInterp, finishInterp;
  876. if cosTheta >= 0.0001 then
  877. if (1 - cosTheta) > 0.0001 then
  878. local theta = math.acos(cosTheta)
  879. local invSinTheta = 1/math.sin(theta)
  880. startInterp = math.sin((1-t)*theta)*invSinTheta
  881. finishInterp = math.sin(t*theta)*invSinTheta
  882. else
  883. startInterp = 1-t
  884. finishInterp = t
  885. end
  886. else
  887. if (1+cosTheta) > 0.0001 then
  888. local theta = math.acos(-cosTheta)
  889. local invSinTheta = 1/math.sin(theta)
  890. startInterp = math.sin((t-1)*theta)*invSinTheta
  891. finishInterp = math.sin(t*theta)*invSinTheta
  892. else
  893. startInterp = t-1
  894. finishInterp = t
  895. end
  896. end
  897. 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
  898. end
  899. hideanim = function()
  900. equipped = false
  901. for i = 0, 1, 0.5 do
  902. swait()
  903. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  904. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  905. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  906. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  907. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4)
  908. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  909. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  910. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  911. end
  912. for i = 0, 1, 0.2 do
  913. swait()
  914. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  915. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  916. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  917. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  918. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  919. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  920. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  921. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  922. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  923. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  924. end
  925. mdec2.Parent = nil
  926. handlewld.Part1 = Torso
  927. handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)
  928. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  929. for i = 0, 1, 0.3 do
  930. swait()
  931. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  932. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  933. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  934. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  935. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  936. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  937. end
  938. mdec.Parent = Decrease
  939. end
  940. mdec.Parent = Decrease
  941. equipanim = function()
  942. equipped = true
  943. mdec.Parent = nil
  944. for i = 0, 1, 0.5 do
  945. swait()
  946. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  947. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  948. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4)
  949. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  950. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  951. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  952. end
  953. for i = 0, 1, 0.2 do
  954. swait()
  955. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  956. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  957. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  958. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  959. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  960. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  961. end
  962. mdec2.Parent = Decrease
  963. handlewld.Part1 = RightArm
  964. handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0)
  965. wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4)
  966. end
  967. StaggerAnim = function()
  968. attack = true
  969. removeControl()
  970. if invisible == true then
  971. Clone(0.1)
  972. end
  973. for i = 1, math.random(2, 4) do
  974. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  975. end
  976. for i = 0, 1, 0.35 do
  977. swait()
  978. if Rooted.Value == false then
  979. Torso.Velocity = RootPart.CFrame.lookVector * -40
  980. end
  981. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  982. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  983. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  984. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  985. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  986. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  987. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  988. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  989. end
  990. for i = 0, 1, 0.2 do
  991. swait()
  992. if Rooted.Value == false then
  993. Torso.Velocity = RootPart.CFrame.lookVector * -40
  994. end
  995. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  996. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  997. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  998. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  999. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  1000. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1001. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  1002. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  1003. end
  1004. for i = 0, 1, 0.1 do
  1005. swait()
  1006. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1007. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1008. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  1009. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1010. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1011. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1012. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1013. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1014. end
  1015. for i = 1, 50 do
  1016. swait()
  1017. if StunT.Value <= Stun.Value then
  1018. break
  1019. end
  1020. end
  1021. do
  1022. resumeControl()
  1023. combo = 0
  1024. attack = false
  1025. end
  1026. end
  1027. StaggerHitt = function()
  1028. attack = true
  1029. if invisible == true then
  1030. Clone(0.1)
  1031. end
  1032. for i = 1, math.random(2, 4) do
  1033. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  1034. end
  1035. for i = 0, 1, 0.1 do
  1036. swait()
  1037. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1039. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1040. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1041. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1042. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1043. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1044. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1045. end
  1046. attack = false
  1047. end
  1048. StunAnim = function()
  1049. attack = true
  1050. removeControl()
  1051. Stunned.Value = true
  1052. showDamage(Character, "Stunned", "Interrupt")
  1053. local dec = Instance.new("NumberValue", Decrease)
  1054. dec.Name = "DecreaseMvmt"
  1055. dec.Value = 10
  1056. for i = 0, 1, 0.3 do
  1057. swait()
  1058. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1059. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1060. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1061. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1062. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1063. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1064. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1065. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1066. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1067. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1068. end
  1069. for i = 0, 1, 0.3 do
  1070. swait()
  1071. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1072. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1073. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1074. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1075. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1076. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1077. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  1078. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1079. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1080. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1081. end
  1082. for i = 0, 1, 0.3 do
  1083. swait()
  1084. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1085. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1086. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1087. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1088. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1089. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1090. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1091. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1092. end
  1093. local gairost = Instance.new("BodyGyro")
  1094. gairost.Parent = RootPart
  1095. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1096. gairost.P = 20000
  1097. gairost.cframe = cf(0, 0, 0)
  1098. for i = 0, 1, 0.1 do
  1099. swait()
  1100. if hitfloor ~= nil then
  1101. Torso.Velocity = vt(0, 0, 0)
  1102. end
  1103. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1104. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1105. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1106. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1107. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1108. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1109. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1110. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1111. end
  1112. for i = 1, 70 do
  1113. swait()
  1114. gairost.cframe = RootPart.CFrame
  1115. if hitfloor ~= nil then
  1116. Torso.Velocity = vt(0, 0, 0)
  1117. end
  1118. end
  1119. for i = 0, 1, 0.2 do
  1120. swait()
  1121. Stun.Value = 0
  1122. gairost.cframe = RootPart.CFrame
  1123. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1124. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1125. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1126. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1127. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1128. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1129. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1130. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1131. end
  1132. resumeControl()
  1133. gairost.Parent = nil
  1134. dec.Parent = nil
  1135. Stun.Value = 0
  1136. combo = 0
  1137. Stunned.Value = false
  1138. attack = false
  1139. for i = 1, 10 do
  1140. swait()
  1141. Stun.Value = 0
  1142. end
  1143. end
  1144. attackone = function()
  1145. attack = true
  1146. for i = 0, 1, 0.2 do
  1147. swait()
  1148. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1149. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  1150. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  1151. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  1152. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  1153. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1154. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0, 1.57, 0), 0.5)
  1155. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1156. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  1157. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  1158. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1159. do
  1160. if StaggerHit.Value == true then
  1161. break
  1162. end
  1163. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1164.  
  1165. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  1166.  
  1167. end
  1168. end
  1169. end
  1170. so("92597369", prt6, 1, 0.6)
  1171. hbwld.Parent = nil
  1172. hboxpos.Parent = hitbox
  1173. hitbox.Parent = modelzorz
  1174. hitbox.Size = vt(3, 2, 7)
  1175. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1176. hitbox.CFrame = hitboxCF
  1177. for i = 0, 1, 0.15 do
  1178. swait()
  1179. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1180. hitbox.CFrame = hitboxCF
  1181. MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1182. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1183. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  1184. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1185. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1186. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  1187. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1188. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  1189. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1190. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1191. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1192. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1193. do
  1194. if StaggerHit.Value == true then
  1195. break
  1196. end
  1197. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1198.  
  1199. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_STMT
  1200.  
  1201. end
  1202. end
  1203. end
  1204. hitbox.Parent = modelzorz
  1205. hitbox.Size = vt()
  1206. hitboxweld()
  1207. hboxpos.Parent = nil
  1208. attack = false
  1209. end
  1210. attacktwo = function()
  1211. attack = true
  1212. for i = 0, 1, 0.15 do
  1213. swait()
  1214. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1215. wld1.C0 = clerp(wld1.C0, euler(0, -1.57, 0) * cf(0, 0, 0) * euler(2.5, 0, 0), 0.4)
  1216. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1217. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1218. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.7) * euler(0, 1.8, 0), 0.4)
  1219. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1220. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.5), 0.4)
  1221. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1222. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1223. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1224. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1225. do
  1226. if StaggerHit.Value == true then
  1227. break
  1228. end
  1229. -- DECOMPILER ERROR at PC177: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1230.  
  1231. -- DECOMPILER ERROR at PC177: LeaveBlock: unexpected jumping out IF_STMT
  1232.  
  1233. end
  1234. end
  1235. end
  1236. so("92597369", prt6, 1, 0.8)
  1237. so("92597296", prt6, 1, 1)
  1238. hbwld.Parent = nil
  1239. hboxpos.Parent = hitbox
  1240. hitbox.Parent = modelzorz
  1241. hitbox.Size = vt(1, 2, 7)
  1242. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1243. hitbox.CFrame = hitboxCF
  1244. for i = 0, 1, 0.05 do
  1245. swait()
  1246. if (i >= 0.3 and i <= 0.33) or i >= 0.7 and i <= 0.73 then
  1247. so("92597369", prt6, 1, 0.8)
  1248. so("92597296", prt6, 1, 1)
  1249. end
  1250. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1251. hitbox.CFrame = hitboxCF
  1252. MagniDamage(hitbox, 4, 4, 6, math.random(5, 10), "Normal", RootPart, 0.2, 2, (math.random(2, 5)), nil, true)
  1253. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1254. wld1.C0 = euler(22 * i, -1.57 + 1.7 * i, 0) * euler(0, 0, 0) * cf(0, 0, 0) * euler(2.5 - 0.93 * i, 0, 0)
  1255. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5)
  1256. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
  1257. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0), 0.3)
  1258. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1259. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.3), 0.5)
  1260. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1261. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  1262. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.5)
  1263. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1264. do
  1265. if StaggerHit.Value == true then
  1266. break
  1267. end
  1268. -- DECOMPILER ERROR at PC353: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1269.  
  1270. -- DECOMPILER ERROR at PC353: LeaveBlock: unexpected jumping out IF_STMT
  1271.  
  1272. end
  1273. end
  1274. end
  1275. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1276. ref.Anchored = true
  1277. ref.CFrame = RootPart.CFrame * cf(0, 0.5, -5)
  1278. game:GetService("Debris"):AddItem(ref, 1)
  1279. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 30, 30, 30, 3, 3, 3, 0.05)
  1280. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 60, 60, 60, 6, 6, 6, 0.075)
  1281. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 90, 90, 90, 9, 9, 9, 0.1)
  1282. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 1, 0, 15, 0, 15, 0.05)
  1283. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 2, 2, 2, 4, 4, 4, 0.05)
  1284. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 60, 60, 60, -2, -2, -2, 0.05)
  1285. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 90, 90, 90, -4, -4, -4, 0.05)
  1286. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 120, 120, 120, -6, -6, -6, 0.05)
  1287. MagicWave(BrickColor.new(NewCol), cf(ref.Position), 0, 10, 0, 2.5, 0, 2.5, 0.05)
  1288. hbwld.Parent = nil
  1289. hboxpos.Parent = hitbox
  1290. hitbox.Parent = modelzorz
  1291. hitbox.Size = vt(6, 6, 6)
  1292. hitboxCF = cf(ref.Position)
  1293. hitbox.CFrame = hitboxCF
  1294. so("200633327", ref, 2, 1.2)
  1295. so("183763487", ref, 3, 1)
  1296. so("183763487", ref, 1, 0.75)
  1297. for i = 1, 10 do
  1298. swait()
  1299. hitboxCF = cf(ref.Position)
  1300. hitbox.CFrame = hitboxCF
  1301. MagniDamage(ref, 5, 2, 4, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  1302. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1303. do
  1304. if StaggerHit.Value == true then
  1305. break
  1306. end
  1307. -- DECOMPILER ERROR at PC518: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1308.  
  1309. -- DECOMPILER ERROR at PC518: LeaveBlock: unexpected jumping out IF_STMT
  1310.  
  1311. end
  1312. end
  1313. end
  1314. hitbox.Parent = modelzorz
  1315. hitbox.Size = vt()
  1316. hitboxweld()
  1317. hboxpos.Parent = nil
  1318. attack = false
  1319. end
  1320. attackthree = function()
  1321. attack = true
  1322. for i = 0, 1, 0.2 do
  1323. swait()
  1324. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1325. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  1326. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  1327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  1328. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  1329. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1330. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0.1, 57, 0), 0.5)
  1331. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1332. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  1333. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  1334. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1335. do
  1336. if StaggerHit.Value == true then
  1337. break
  1338. end
  1339. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1340.  
  1341. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  1342.  
  1343. end
  1344. end
  1345. end
  1346. so("92597369", prt6, 1, 0.5)
  1347. hbwld.Parent = nil
  1348. hboxpos.Parent = hitbox
  1349. hitbox.Parent = modelzorz
  1350. hitbox.Size = vt(1, 2, 7)
  1351. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1352. hitbox.CFrame = hitboxCF
  1353. for i = 0, 1, 0.05 do
  1354. swait()
  1355. if i >= 0.7 and i <= 0.73 then
  1356. so("92597369", prt6, 1, 0.5)
  1357. end
  1358. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1359. hitbox.CFrame = hitboxCF
  1360. MagniDamage(hitbox, 4, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1361. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1362. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  1363. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1364. RootJoint.C0 = RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4 - 9.28 * i)
  1365. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  1366. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1367. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  1368. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1369. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1370. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1371. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1372. do
  1373. if StaggerHit.Value == true then
  1374. break
  1375. end
  1376. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1377.  
  1378. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_STMT
  1379.  
  1380. end
  1381. end
  1382. end
  1383. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1384. ref.Anchored = true
  1385. ref.CFrame = RootPart.CFrame * cf(0, 0.5, -5)
  1386. game:GetService("Debris"):AddItem(ref, 1)
  1387. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 60, 60, 60, 3, 3, 3, 0.05)
  1388. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 90, 90, 90, 6, 6, 6, 0.075)
  1389. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 2, 0, 30, 0, 30, 0.05)
  1390. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 4, 4, 4, 6, 6, 6, 0.05)
  1391. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 15, 15, 15, 0.05)
  1392. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 90, 90, 90, -2, -2, -2, 0.05)
  1393. MagicBlock(BrickColor.new(NewCol), cf(ref.Position), 120, 120, 120, -4, -4, -4, 0.05)
  1394. MagicWave(BrickColor.new(NewCol), cf(ref.Position), 0, 10, 0, 5, 0, 5, 0.05)
  1395. hbwld.Parent = nil
  1396. hboxpos.Parent = hitbox
  1397. hitbox.Parent = modelzorz
  1398. hitbox.Size = vt(6, 6, 6)
  1399. hitboxCF = cf(ref.Position)
  1400. hitbox.CFrame = hitboxCF
  1401. so("200633327", ref, 2, 0.75)
  1402. so("183763487", ref, 3, 0.75)
  1403. so("183763487", ref, 2, 0.5)
  1404. for i = 1, 10 do
  1405. swait()
  1406. hitboxCF = cf(ref.Position)
  1407. hitbox.CFrame = hitboxCF
  1408. MagniDamage(ref, 10, 3, 6, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  1409. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1410. do
  1411. if StaggerHit.Value == true then
  1412. break
  1413. end
  1414. -- DECOMPILER ERROR at PC518: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1415.  
  1416. -- DECOMPILER ERROR at PC518: LeaveBlock: unexpected jumping out IF_STMT
  1417.  
  1418. end
  1419. end
  1420. end
  1421. hitbox.Parent = modelzorz
  1422. hitbox.Size = vt()
  1423. hitboxweld()
  1424. hboxpos.Parent = nil
  1425. attack = false
  1426. end
  1427. attackfour = function()
  1428. attack = true
  1429. local dec = Instance.new("NumberValue", Decrease)
  1430. dec.Name = "DecreaseMvmt"
  1431. dec.Value = 10
  1432. for i = 0, 1, 0.2 do
  1433. swait()
  1434. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  1435. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  1436. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  1437. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1438. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  1439. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1440. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  1441. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  1442. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1443. do
  1444. if StaggerHit.Value == true then
  1445. break
  1446. end
  1447. end
  1448. end
  1449. end
  1450. for i = 1, 21, 4 do
  1451. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1452. if StaggerHit.Value == true then
  1453. break
  1454. end
  1455. local rref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1456. rref.Anchored = true
  1457. rref.CFrame = RootPart.CFrame * cf(0, -1.5, -(i * 2))
  1458. so("200633377", rref, 1, 1.4)
  1459. so("183763487", rref, 1, 1)
  1460. game:GetService("Debris"):AddItem(rref, 1)
  1461. hitfloor2 = rayCast(rref.Position, CFrame.new(rref.Position, rref.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1462. if hitfloor2 ~= nil then
  1463. swait()
  1464. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1465. ref.Anchored = true
  1466. ref.CFrame = cf(rref.Position) --(posfloor2)
  1467. game:GetService("Debris"):AddItem(ref, 1)
  1468. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 60, 1, 60, -3, 500, -3, 0.05)
  1469. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 5, 1, 5, 5, 0, 5, 0.05)
  1470. MagicWave(BrickColor.new(NewCol), cf(ref.Position), 0, 1, 0, 2, 0, 2, 0.075)
  1471. MagicWave(BrickColor.new(NewCol), cf(ref.Position), 0, 3, 0, 3, 0, 3, 0.075)
  1472. MagicCircle2(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 0, 0, 0, 0.05, "200367539")
  1473. hbwld.Parent = nil
  1474. hboxpos.Parent = hitbox
  1475. hitbox.Parent = modelzorz
  1476. hitbox.Size = vt(5, 5, 5)
  1477. hitboxCF = cf(ref.Position)
  1478. hitbox.CFrame = hitboxCF
  1479. for i = 1, 2 do
  1480. swait()
  1481. hitboxCF = cf(ref.Position)
  1482. hitbox.CFrame = hitboxCF
  1483. MagniDamage(rref, 9, 5, 7, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  1484. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1485. do
  1486. if StaggerHit.Value == true then
  1487. break
  1488. end
  1489. -- DECOMPILER ERROR at PC386: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1490.  
  1491. -- DECOMPILER ERROR at PC386: LeaveBlock: unexpected jumping out IF_STMT
  1492.  
  1493. end
  1494. end
  1495. end
  1496. hitbox.Parent = modelzorz
  1497. hitbox.Size = vt()
  1498. hitboxweld()
  1499. hboxpos.Parent = nil
  1500. else
  1501. do
  1502. do
  1503. for i = 1, 2 do
  1504. swait()
  1505. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1506. do
  1507. if StaggerHit.Value == true then
  1508. break
  1509. end
  1510. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1511.  
  1512. -- DECOMPILER ERROR at PC420: LeaveBlock: unexpected jumping out IF_STMT
  1513.  
  1514. end
  1515. end
  1516. end
  1517. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out DO_STMT
  1518.  
  1519. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1520.  
  1521. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_STMT
  1522.  
  1523. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1524.  
  1525. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_STMT
  1526.  
  1527. end
  1528. end
  1529. end
  1530. end
  1531. end
  1532. dec.Parent = nil
  1533. attack = false
  1534. end
  1535.  
  1536. Invisibility = function()
  1537. if invisible == false then
  1538. so("2767090", Torso, 1, 1)
  1539. MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
  1540. MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
  1541. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 10, 10, 10, 0.05)
  1542. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 5, 5, 5, 0.05)
  1543. invisnum.Value = invisnum.Value - 10
  1544. for _,c in pairs(Decrease:children()) do
  1545. if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
  1546. c.Parent = nil
  1547. end
  1548. end
  1549. d = Instance.new("NumberValue", Decrease)
  1550. d.Name = "DecreaseAtk"
  1551. d.Value = -5
  1552. dur = Instance.new("NumberValue", d)
  1553. dur.Name = "Duration"
  1554. dur.Value = 420
  1555. display = "+Damage"
  1556. showDamage(Character, display, "Debuff")
  1557. da = Instance.new("BoolValue", d)
  1558. da.Name = "Renegade"
  1559. DecreaseStat(Character, "Defense", 0.1, 80)
  1560. invisible = true
  1561. isinvis.Value = true
  1562. passive3.Parent = Decrease
  1563. else
  1564. invisible = false
  1565. isinvis.Value = false
  1566. passive3.Parent = nil
  1567. end
  1568. end
  1569.  
  1570. Runes = {"rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455", "rbxassetid://333659455"}
  1571. ContentProvider = game:GetService("ContentProvider")
  1572. for _,v in pairs(Runes) do
  1573. ContentProvider:Preload(v)
  1574. end
  1575. do1 = function()
  1576. if attack == true then
  1577. return
  1578. end
  1579. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1580. return
  1581. end
  1582. if cooldownmax <= cooldowns[1] and mana.Value >= 10 then
  1583. attack = true
  1584. cooldowns[1] = 0
  1585. local doinvisatk = false
  1586. if doinvisatk == false then
  1587. for i = 0, 1, 0.1 do
  1588. swait()
  1589. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1590. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1591. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  1592. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3)
  1593. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3)
  1594. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1595. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
  1596. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1597. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3)
  1598. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3)
  1599. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1600. do
  1601. if StaggerHit.Value == true then
  1602. break
  1603. end
  1604. end
  1605. end
  1606. end
  1607. mana.Value = mana.Value - 10
  1608. CF = LeftArm.CFrame * cf(0, -2, 0)
  1609. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1610. ref.Anchored = true
  1611. ref.CFrame = CF
  1612. game:GetService("Debris"):AddItem(ref, 2)
  1613. so("160772554", ref, 1, 0.5)
  1614. so("87767777", ref, 1, 1)
  1615. hbwld.Parent = nil
  1616. hboxpos.Parent = hitbox
  1617. hitbox.Parent = modelzorz
  1618. hitbox.Size = vt(2, 2, 2)
  1619. MagicSkull(BrickColor.new("Really red"), CF * euler(-1.57, 0, 0), 1, 1, 1, 3, 3, 3, 0.05, 0.1)
  1620. MagicCylinder2(BrickColor.new("Really red"), CF, 5, 5, 5, 2, -0.05, 2, 0.02, 0.1)
  1621. MagicCircle(BrickColor.new("Really red"), CF * euler(-1.57, 0, 0), 2, 2, 0.4, 4, 4, 0, 0.025)
  1622. MagicCircle(BrickColor.new("Really red"), CF * euler(-1.57, 0, 0), 100, 100, 0, -2, -2, 10, 0.025)
  1623. MagicCircle(BrickColor.new("Really red"), CF * euler(-1.57, 0, 0), 104, 104, 0, -2, -2, 14, 0.025)
  1624. hitboxCF = CF
  1625. hitbox.CFrame = hitboxCF
  1626. DecreaseStat(Character, "Damage", -0.1, 200)
  1627. for i = 0, 1, 0.05 do
  1628. swait()
  1629. MagicBlock(BrickColor.new("Really black"), CF, 0.5, 0.5, 0.5, 0.2, 0.2, 0.2, 0.05, 3)
  1630. CF = CF * cf(0, -0.4, 0)
  1631. hitboxCF = CF
  1632. hitbox.CFrame = hitboxCF
  1633. hitbox.Size = hitbox.Size + vt(0.6, 0.6, 0.6)
  1634. if i == 0.6 then
  1635. MagniDamage(hitbox, hitbox.Size.Y, 19, 32, math.random(20, 40), "Knockdown2", ref, 1, 2, (math.random(5, 8)), nil, false, true)
  1636. end
  1637. end
  1638. hitbox.Parent = modelzorz
  1639. hitbox.Size = vt()
  1640. hitboxweld()
  1641. hboxpos.Parent = nil
  1642. attack = false
  1643. -- u can choose to miss out the line above me and below me using -- so that it does 2 terrors
  1644. elseif doinvisatk == true then
  1645. for i = 0, 1, 0.2 do
  1646. swait()
  1647. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1648. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(0.8, 1, 0), 0.3)
  1649. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, 0.2), 0.4)
  1650. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, -0.5), 0.4)
  1651. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.4), 0.4)
  1652. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1653. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.4, 0, -0.5), 0.4)
  1654. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1655. RH.C0 = clerp(RH.C0, RHC0 * cf(0.5, 1, 0) * euler(0.5, 0, 0.5), 0.4)
  1656. LH.C0 = clerp(LH.C0, LHC0 * cf(0, 0, 0) * euler(0, 0.5, 0.5), 0.4)
  1657. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1658. do
  1659. if StaggerHit.Value == true then
  1660. break
  1661. end
  1662. end
  1663. end
  1664. end
  1665. mana.Value = mana.Value - 20
  1666. CF = LeftArm.CFrame * cf(0, -1, 0) * euler(2.5, 0, 0)
  1667. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1668. ref.Anchored = true
  1669. ref.CFrame = CF
  1670. game:GetService("Debris"):AddItem(ref, 2)
  1671. so("160772554", ref, 1, 0.6)
  1672. hbwld.Parent = nil
  1673. hboxpos.Parent = hitbox
  1674. hitbox.Parent = modelzorz
  1675. hitbox.Size = vt(2, 2, 2)
  1676. MagicSkull(BrickColor.new("Black"), CF * euler(-1.57, 0, 0), 1, 1, 1, 1.5, 1.5, 1.5, 0.05, 0.1)
  1677. MagicCylinder2(BrickColor.new("Really black"), CF, 5, 5, 5, 3, -0.05, 3, 0.02, 0)
  1678. MagicCircle(BrickColor.new("Really black"), CF * euler(-1.57, 0, 0), 1, 1, 0.2, 5, 5, 0, 0.025)
  1679. MagicCircle(BrickColor.new("Really black"), CF * euler(-1.57, 0, 0), 1, 1, 0, 2, 2, 5, 0.025)
  1680. MagicCircle(BrickColor.new("Really black"), CF * euler(-1.57, 0, 0), 1, 1, 0, 3, 3, 7, 0.025)
  1681. hitboxCF = CF
  1682. hitbox.CFrame = hitboxCF
  1683. for i = 0, 1, 0.05 do
  1684. swait()
  1685. MagicBlock(BrickColor.new("Really black"), CF, 0.5, 0.5, 0.5, 0.2, 0.2, 0.2, 0.05, 3)
  1686. CF = CF * cf(0, -0.2, 0)
  1687. hitboxCF = CF
  1688. hitbox.CFrame = hitboxCF
  1689. hitbox.Size = hitbox.Size + vt(0.8, 0.8, 0.8)
  1690. MagniDamage(hitbox, hitbox.Size.Y, 5, 10, math.random(20, 40), "Knockdown2", ref, 1, 2, (math.random(5, 8)), nil, false, true, "Movement", 0.4, 200)
  1691. end
  1692. hitbox.Parent = modelzorz
  1693. hitbox.Size = vt()
  1694. hitboxweld()
  1695. hboxpos.Parent = nil
  1696. attack = false
  1697. end
  1698. end
  1699. end
  1700. do2 = function()
  1701. if attack == true then
  1702. return
  1703. end
  1704. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1705. return
  1706. end
  1707. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  1708. deb = 0.2
  1709. attack = true
  1710. cooldowns[1] = 100
  1711. mana.Value = mana.Value - 20
  1712. local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
  1713. do
  1714. swait()
  1715. local dec = Instance.new("NumberValue", Decrease)
  1716. dec.Name = "DecreaseMvmt"
  1717. dec.Value = 0.2
  1718. for i = 0, 1, 0.2 do
  1719. swait()
  1720. handlewld.C0 = clerp(handlewld.C0, euler(0.2, 0, -0.2) * cf(0, 1, 0.2), 0.3)
  1721. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -1.4, 0), 0.3)
  1722. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.2, 0, 0), 0.3)
  1723. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.6), 0.3)
  1724. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 0.8), 0.3)
  1725. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1726. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2.8, 0, 0.8), 0.3)
  1727. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1728. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 0.6, -0.3), 0.3)
  1729. LH.C0 = clerp(LH.C0, cf(-0.9, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 0.6, -0.1), 0.3)
  1730. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1731. do
  1732. if StaggerHit.Value == true then
  1733. break
  1734. end
  1735. end
  1736. end
  1737. end
  1738. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  1739. if StaggerHit.Value ~= true then
  1740. swait()
  1741. arcorb = true
  1742. orb.Anchored = true
  1743. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  1744. so("200633529", orb, 1, 0.6)
  1745. do
  1746. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  1747. ogui = Instance.new("BillboardGui")
  1748. ogui.Parent = orb
  1749. ogui.Size = UDim2.new(5, 0, 5, 0)
  1750. oimg = Instance.new("ImageLabel")
  1751. oimg.Parent = ogui
  1752. oimg.BackgroundTransparency = 1
  1753. oimg.Size = UDim2.new(1, 0, 1, 0)
  1754. oimg.Image = Runes[math.random(1, #Runes)]
  1755. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  1756. orbnum = 100
  1757. while arcorb==true do
  1758. if arcorb == true then
  1759. swait()
  1760. end
  1761. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1762. if StaggerHit.Value == true then
  1763. break
  1764. end
  1765. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  1766. MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1767. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  1768. MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 1, -1, -1, 0, 0.1)
  1769. if orbnum < 0 or MMouse == nil then
  1770. arcorb = false
  1771. end
  1772. swait()
  1773. orbnum = orbnum - 1
  1774. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1775. arcorb = false
  1776. break
  1777. end
  1778. end
  1779. end
  1780. if MMouse.Hit.p ~= nil then
  1781. swait()
  1782. local MainPos = orb.Position
  1783. local MainPos2 = MMouse.Hit.p
  1784. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1785. so("200633492", orb, 1, 0.75)
  1786. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1787. local num = 50
  1788. repeat
  1789. swait()
  1790. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1791. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1792. MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1793. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 150, 150, 150, -8, -8, -8, 0.05)
  1794. MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 1, 10, 10, 0, 0.075)
  1795. Pos1 = Pos1 + Look.lookVector * 5
  1796. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1797. if ohit ~= nil then
  1798. num = 0
  1799. end
  1800. num = num - 1
  1801. until num <= 0
  1802. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1803. ref.Anchored = true
  1804. ref.CFrame = cf(orb.Position)
  1805. so("165970126", ref, 10, 0.5)
  1806. so("153832545", ref, 5, 1)
  1807. game:GetService("Debris"):AddItem(ref, 0.5)
  1808. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 160, 160, 160, 120, 120, 120, 0.065)
  1809. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 80, 80, 80, 80, 80, 80, 0.065)
  1810. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 1, 0, 80, 0, 80, 0.025)
  1811. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 20, 20, 20, 0, 0.025)
  1812. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 40, 40, 40, 0, 0.025)
  1813. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 60, 60, 60, 0, 0.025)
  1814. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 20, 20, 20, 0, 0.025)
  1815. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 40, 40, 40, 0, 0.025)
  1816. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 60, 60, 60, 0, 0.025)
  1817. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 20, 20, 20, 0, 0.025)
  1818. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 40, 40, 40, 0, 0.025)
  1819. MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 60, 60, 60, 0, 0.025)
  1820. MagicWave(BrickColor.new(NewCol), cf(ref.Position), 0, 10, 0, 25, 0, 25, 0.05)
  1821. for i = 1, 4 do
  1822. MagicBlock(BrickColor.new(NewCol), cf(ref.Position) * cf(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100), 0, 0, 0, 25, 25, 25, 0.05)
  1823. end
  1824. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 70, 70, 70, 40, 40, 40, 0.065)
  1825. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 1000, 1000, 1000, -50, -50, -50, 0.065)
  1826. MagniDamage(ref, 150, 10, 17, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1827. if isjugg == false then
  1828. end
  1829. orb.Parent = nil
  1830. end
  1831. ), MainPos, MainPos2, MouseLook)
  1832. end
  1833. do
  1834. dec.Parent = nil
  1835. swait()
  1836. attack = false
  1837. end
  1838. end
  1839. end
  1840. end
  1841. end
  1842. end
  1843. end
  1844. do3 = function()
  1845. if attack == true then
  1846. return
  1847. end
  1848. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1849. return
  1850. end
  1851. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  1852. attack = true
  1853. cooldowns[3] = 0
  1854. local doinvisatk = false
  1855. for i = 0, 1, 0.1 do
  1856. swait()
  1857. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  1858. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  1859. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  1860. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1861. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  1862. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1863. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  1864. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  1865. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1866. do
  1867. if StaggerHit.Value == true then
  1868. break
  1869. end
  1870. end
  1871. end
  1872. end
  1873. so("92597369", prt6, 0.6, 1)
  1874. blcf = nil
  1875. scfr = nil
  1876. for i = 0, 1, 0.1 do
  1877. swait()
  1878. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  1879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  1880. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  1881. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1882. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  1883. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1884. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  1885. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  1886. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1887. do
  1888. if StaggerHit.Value == true then
  1889. break
  1890. end
  1891. end
  1892. end
  1893. end
  1894. attack = false
  1895. CF = RootPart.CFrame * cf(0, 0, -30)
  1896. ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1897. ref2.Anchored = true
  1898. ref2.CFrame = CF
  1899. game:GetService("Debris"):AddItem(ref2, 5)
  1900. so("2101137", ref2, 5, 1)
  1901. so("167115397", ref2, 5, 1)
  1902. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1903. if hitfloor2 ~= nil then
  1904. mana.Value = mana.Value - 30
  1905. ref2.CFrame = cf(posfloor2)
  1906. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 5, 800, 0, 0, 0, 0.05)
  1907. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 10, 800, -40, 0, -40, 0.025)
  1908. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 10, 800, -42, 1000, -42, 0.05)
  1909. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 1000, 10, 1000, -62, 1200, -62, 0.05)
  1910. for i = 0, 1, 0.05 do
  1911. swait()
  1912. MagicBlock(BrickColor.new("Bright red"), cf(posfloor2) * cf(math.random(-2000, 2000) / 100, math.random(0, 300) / 100, math.random(-2000, 2000) / 100), 15, 15, 15, -3, -3, -3, 0.1, 1)
  1913. MagicBlock(BrickColor.new("Black"), cf(posfloor2) * cf(math.random(-2000, 2000) / 100, math.random(0, 300) / 100, math.random(-2000, 2000) / 100), 3, 3, 3, 1, 1, 1, 0.1, 3)
  1914. end
  1915. so("165969964", ref2, 10, 0.9)
  1916. so("167115397", ref2, 10, 1)
  1917. so("134854740", ref2, 5, 0.75)
  1918. so("138186576", ref2, 8, 0.75)
  1919. so("87767777", ref2, 10, 1)
  1920. MagniDamage(ref2, 250, 12, 24, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  1921. MagicBlock(BrickColor.new("Really red"), cf(posfloor2), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  1922. MagicBlock(BrickColor.new("Really red"), cf(posfloor2), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  1923. MagicBlock(BrickColor.new("Really red"), cf(posfloor2), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  1924. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 2, 800, 150, 2, 150, 0.05)
  1925. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 2, 800, 100, 4, 100, 0.05)
  1926. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 2, 800, 50, 6, 50, 0.05)
  1927. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 0, 0, 0, 100, 100, 100, 0.05)
  1928. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 0, 0, 0, 200, 200, 200, 0.05)
  1929. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 0, 0, 0, 300, 300, 300, 0.05)
  1930. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 0, 0, 0, 400, 400, 400, 0.05)
  1931. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 800, 2, 800, 4, 350, 4, 0.005)
  1932. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 600, 2, 600, 4, 300, 4, 0.005)
  1933. MagicCircle(BrickColor.new("Really red"), cf(posfloor2), 400, 2, 400, 4, 250, 4, 0.005)
  1934. end
  1935. end
  1936. end
  1937. do4 = function()
  1938. if attack == true then
  1939. return
  1940. end
  1941. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1942. return
  1943. end
  1944. if cooldownmax <= cooldowns[4] and mana.Value >= 50 then
  1945. attack = true
  1946. cooldowns[4] = 0
  1947. mana.Value = mana.Value - 50
  1948. for i = 0, 1, 0.05 do
  1949. swait()
  1950. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.15)
  1951. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 1, 0) * euler(2.2, 0, 0), 0.15)
  1952. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 1), 0.15)
  1953. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.15)
  1954. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.8, 0, 0.5) * euler(0, -1, 0), 0.15)
  1955. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1956. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2.4, 0, 0.8) * euler(0, -1, 0), 0.15)
  1957. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1958. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.15)
  1959. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.15)
  1960. end
  1961. doing4 = true
  1962. so("28144425", prt6, 1, 0.5)
  1963. hbwld.Parent = nil
  1964. hboxpos.Parent = hitbox
  1965. hitbox.Parent = modelzorz
  1966. hitbox.Size = vt(1, 2, 7)
  1967. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1968. hitbox.CFrame = hitboxCF
  1969. blcf = nil
  1970. scfr = nil
  1971. for i = 0, 1, 0.05 do
  1972. swait()
  1973. if i > 0.18 and i <= 0.2 then
  1974. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 10, 10, 10, -0.01, 20, -0.01, 0.01)
  1975. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 0, 0, 10, 50, 10, 0.05)
  1976. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 0, 0, 6, 60, 6, 0.025)
  1977. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 1, 0, 4, 0, 4, 0.015)
  1978. end
  1979. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1980. hitbox.CFrame = hitboxCF
  1981. if i == 0.2 then
  1982. MagniDamage(hitbox, 12, 20, 40, 0, "Knockdown2", RootPart, 1, 1, (math.random(10, 20)), nil, nil, false, nil, nil, nil, true, true)
  1983. end
  1984. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1985. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.2, 0, 0), 0.4)
  1986. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -1), 0.4)
  1987. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.4)
  1988. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, 0, -0.5) * euler(0, -0.5, 0), 0.4)
  1989. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1990. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, 0.6) * euler(0, 1, 0), 0.4)
  1991. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1992. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.4)
  1993. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.4)
  1994. end
  1995. hitbox.Parent = modelzorz
  1996. hitbox.Size = vt()
  1997. hitboxweld()
  1998. hboxpos.Parent = nil
  1999. for i = 0, 1, 0.05 do
  2000. swait()
  2001. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.15)
  2002. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -1, 0) * euler(2.2, 0, 0), 0.15)
  2003. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, -1.3), 0.15)
  2004. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.3), 0.15)
  2005. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.3, 0, -0.5) * euler(0, 1.8, 0), 0.15)
  2006. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.4, 0, 0.4) * euler(0, 1, 0), 0.15)
  2007. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1.3, -0.1), 0.15)
  2008. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1.3, 0.3), 0.15)
  2009. end
  2010. so("28144425", prt6, 1, 0.5)
  2011. hbwld.Parent = nil
  2012. hboxpos.Parent = hitbox
  2013. hitbox.Parent = modelzorz
  2014. hitbox.Size = vt(1, 2, 7)
  2015. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2016. hitbox.CFrame = hitboxCF
  2017. blcf = nil
  2018. scfr = nil
  2019. daa = 0
  2020. for i = 0, 1, 0.05 do
  2021. swait()
  2022. daa = daa + 1
  2023. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2024. hitbox.CFrame = hitboxCF
  2025. if daa == 4 then
  2026. print("rekt")
  2027. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 10, 10, 10, -0.1, 20, -0.1, 0.01)
  2028. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 0, 0, 10, 50, 10, 0.05)
  2029. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 0, 0, 6, 60, 6, 0.025)
  2030. MagicCircle(BrickColor.new("Really red"), hitbox2.CFrame * euler(1.57, 0, 0), 0, 1, 0, 4, 0, 4, 0.015)
  2031. end
  2032. if i == 0.05 then
  2033. MagniDamage(hitbox, 12, 20, 40, math.random(30, 50), "Knockdown2", RootPart, 1, 1, (math.random(10, 20)), nil, nil, false, nil, nil, nil, true, true)
  2034. end
  2035. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.35)
  2036. wld1.C0 = clerp(wld1.C0, euler(0, -0.5, 0) * cf(0, -2, 0) * euler(2.2, 0, 0), 0.35)
  2037. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 1.3), 0.35)
  2038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.3), 0.35)
  2039. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 2.5, 0), 0.35)
  2040. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.4, 0, 0.4) * euler(0, 0, 0), 0.35)
  2041. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.35)
  2042. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.35)
  2043. end
  2044. swait(10)
  2045. doing4 = false
  2046. attack = false
  2047. end
  2048. end
  2049. DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
  2050. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2051. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2052. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2053. dur = Instance.new("NumberValue", d)
  2054. dur.Name = "Duration"
  2055. dur.Value = Duration
  2056. game:GetService("Debris"):AddItem(d, 20)
  2057. if Stat == "Damage" then
  2058. d.Name = "DecreaseAtk"
  2059. else
  2060. if Stat == "Defense" then
  2061. d.Name = "DecreaseDef"
  2062. else
  2063. if Stat == "Movement" then
  2064. d.Name = "DecreaseMvmt"
  2065. end
  2066. end
  2067. end
  2068. if Model:findFirstChild("Torso") ~= nil then
  2069. display = ""
  2070. if Stat == "Damage" then
  2071. if Amount > 0 then
  2072. display = "-Damage"
  2073. else
  2074. display = "+Damage"
  2075. end
  2076. else
  2077. if Stat == "Defense" then
  2078. if Amount > 0 then
  2079. display = "-Defense"
  2080. else
  2081. display = "+Defense"
  2082. end
  2083. else
  2084. if Stat == "Movement" then
  2085. if Amount > 0 then
  2086. display = "-Movement"
  2087. else
  2088. display = "+Movement"
  2089. end
  2090. end
  2091. end
  2092. end
  2093. if cangui ~= true then
  2094. showDamage(Model, display, "Debuff")
  2095. end
  2096. end
  2097. d.Value = Amount
  2098. end
  2099. end
  2100. GetDist = function(Part1, Part2, magni)
  2101. local targ = Part1.Position - Part2.Position
  2102. local mag = targ.magnitude
  2103. if mag <= magni then
  2104. return true
  2105. else
  2106. return false
  2107. end
  2108. end
  2109. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2110. for _,c in pairs(workspace:children()) do
  2111. local hum = c:findFirstChild("Humanoid")
  2112. if hum ~= nil then
  2113. local head = nil
  2114. for _,d in pairs(c:children()) do
  2115. if d.className == "Model" and ranged ~= true then
  2116. head = d:findFirstChild("Hitbox")
  2117. if d.Parent == Character then
  2118. break
  2119. end
  2120. if head ~= nil then
  2121. local targ = head.Position - Part.Position
  2122. local mag = targ.magnitude
  2123. if mag <= magni and c.Name ~= Player.Name then
  2124. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2125. ref.Anchored = true
  2126. ref.CFrame = cf(head.Position)
  2127. game:GetService("Debris"):AddItem(ref, 1)
  2128. hitnum = math.random(1, 5)
  2129. if hitnum == 1 then
  2130. so("199148971", ref, 1, 1)
  2131. else
  2132. if hitnum == 2 then
  2133. so("199149025", ref, 1, 1)
  2134. else
  2135. if hitnum == 3 then
  2136. so("199149072", ref, 1, 1)
  2137. else
  2138. if hitnum == 4 then
  2139. so("199149109", ref, 1, 1)
  2140. else
  2141. if hitnum == 5 then
  2142. so("199149119", ref, 1, 1)
  2143. end
  2144. end
  2145. end
  2146. end
  2147. end
  2148. StaggerHit.Value = true
  2149. end
  2150. end
  2151. end
  2152. do
  2153. if d.className == "Part" and d.Name=="Torso" then
  2154. head = d
  2155. if head ~= nil then
  2156. local targ = head.Position - Part.Position
  2157. local mag = targ.magnitude
  2158. if mag <= magni and c.Name ~= Player.Name then
  2159. if stun == nil then
  2160. stun = math.random(5, 10)
  2161. end
  2162. local Rang = nil
  2163. if Ranged == false then
  2164. Rang = true
  2165. end
  2166. local stag = nil
  2167. if shbash == true then
  2168. stag = true
  2169. end
  2170. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2171. end
  2172. end
  2173. end
  2174. do
  2175. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2176.  
  2177. end
  2178. end
  2179. end
  2180. end
  2181. end
  2182. end
  2183. rayCast = function(Pos, Dir, Max, Ignore)
  2184. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2185. end
  2186. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2187. LastPoint = Point
  2188. effect = function(Color, Ref, LP, P1, returnn)
  2189. if LP == nil or P1 == nil then
  2190. return
  2191. end
  2192. local effectsmsh = Instance.new("CylinderMesh")
  2193. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2194. effectsmsh.Name = "Mesh"
  2195. local effectsg = Instance.new("Part")
  2196. NoOutline(effectsg)
  2197. effectsg.formFactor = 3
  2198. effectsg.CanCollide = false
  2199. effectsg.Name = "Eff"
  2200. effectsg.Locked = true
  2201. effectsg.Anchored = true
  2202. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2203. effectsg.Parent = workspace
  2204. effectsmsh.Parent = effectsg
  2205. effectsg.BrickColor = BrickColor.new(Color)
  2206. effectsg.Reflectance = Ref
  2207. local point1 = P1
  2208. local mg = (LP.p - point1.p).magnitude
  2209. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2210. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2211. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2212. game:GetService("Debris"):AddItem(effectsg, 2)
  2213. if returnn then
  2214. return effectsg
  2215. end
  2216. if not returnn then
  2217. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2218. end
  2219. end
  2220. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  2221. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2222. prt.Anchored = true
  2223. prt.CFrame = cframe
  2224. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2225. game:GetService("Debris"):AddItem(prt, 10)
  2226. if Type == 1 or Type == nil then
  2227. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2228. else
  2229. if Type == 2 then
  2230. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2231. else
  2232. if Type == 3 then
  2233. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  2234. end
  2235. end
  2236. end
  2237. end
  2238. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2239. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2240. prt.Anchored = true
  2241. prt.CFrame = cframe
  2242. msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
  2243. game:GetService("Debris"):AddItem(prt, 10)
  2244. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  2245. end
  2246. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2247. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2248. prt.Anchored = true
  2249. prt.CFrame = cframe
  2250. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2251. game:GetService("Debris"):AddItem(prt, 10)
  2252. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2253. end
  2254. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2255. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2256. prt.Anchored = true
  2257. prt.CFrame = cframe * cf(x2, y2, z2)
  2258. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2259. game:GetService("Debris"):AddItem(prt, 10)
  2260. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2261. end
  2262. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2263. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2264. prt.Anchored = true
  2265. prt.CFrame = cframe
  2266. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2267. game:GetService("Debris"):AddItem(prt, 10)
  2268. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2269. end
  2270. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2271. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2272. prt.Anchored = true
  2273. prt.CFrame = cframe
  2274. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2275. game:GetService("Debris"):AddItem(prt, 10)
  2276. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2277. end
  2278. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2279. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2280. prt.Anchored = true
  2281. prt.CFrame = cframe
  2282. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2283. game:GetService("Debris"):AddItem(prt, 10)
  2284. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  2285. end
  2286. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2287. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2288. prt.Anchored = true
  2289. prt.CFrame = cframe
  2290. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2291. game:GetService("Debris"):AddItem(prt, 10)
  2292. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2293. end
  2294. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2295. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2296. prt.Anchored = true
  2297. prt.CFrame = cframe
  2298. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2299. game:GetService("Debris"):AddItem(prt, 10)
  2300. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2301. end
  2302. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2303. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2304. prt.Anchored = true
  2305. prt.CFrame = cframe
  2306. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2307. game:GetService("Debris"):AddItem(prt, 10)
  2308. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2309. end
  2310. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  2311. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2312. prt.Anchored = true
  2313. prt.CFrame = cframe
  2314. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2315. game:GetService("Debris"):AddItem(prt, 10)
  2316. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  2317. end
  2318. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  2319. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2320. prt.Anchored = true
  2321. prt.CFrame = cframe
  2322. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2323. d = Instance.new("Decal")
  2324. d.Parent = prt
  2325. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2326. d.Face = "Top"
  2327. d = Instance.new("Decal")
  2328. d.Parent = prt
  2329. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2330. d.Face = "Bottom"
  2331. game:GetService("Debris"):AddItem(prt, 10)
  2332. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  2333. end
  2334. ElecEffect = function(cff, x, y, z)
  2335. local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
  2336. prt.Anchored = true
  2337. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2338. prt.CFrame = cf(prt.Position)
  2339. game:GetService("Debris"):AddItem(prt, 10)
  2340. xval = math.random() / 3
  2341. yval = math.random() / 3
  2342. zval = math.random() / 3
  2343. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2344. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  2345. end
  2346. CloneBody = function()
  2347. for _,v in pairs(Torso.Parent:children()) do
  2348. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2349. local c = part(3, workspace, 0, 0.5, BrickColor.new("Really black"), "Effect", v.Size)
  2350. c.Anchored = true
  2351. c.CFrame = v.CFrame
  2352. game:GetService("Debris"):AddItem(c, 5)
  2353. if v.Name == "Head" then
  2354. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2355. end
  2356. table.insert(Effects, {c, "Disappear", 0.05})
  2357. end
  2358. end
  2359. end
  2360. Clone = function(duration)
  2361. for _,v in pairs(Torso.Parent:children()) do
  2362. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2363. local c = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Effect", v.Size)
  2364. c.Anchored = true
  2365. c.CFrame = v.CFrame
  2366. game:GetService("Debris"):AddItem(c, 5)
  2367. if v.Name == "Head" then
  2368. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2369. end
  2370. table.insert(Effects, {c, "Disappear", duration})
  2371. else
  2372. do
  2373. do
  2374. if v.className == "Hat" then
  2375. n = v.Handle:clone()
  2376. n:BreakJoints()
  2377. n.archivable = true
  2378. n.Anchored = true
  2379. n.CanCollide = false
  2380. n.Name = "Effect"
  2381. n.BrickColor = BrickColor.new("Really black")
  2382. n.Parent = workspace
  2383. n.CFrame = v.Handle.CFrame
  2384. n.Transparency = 1
  2385. n:BreakJoints()
  2386. table.insert(Effects, {n, "Disappear", duration})
  2387. end
  2388. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
  2389.  
  2390. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2391.  
  2392. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
  2393.  
  2394. end
  2395. end
  2396. end
  2397. end
  2398. for _,v in pairs(modelzorz:children()) do
  2399. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  2400. n = v:clone()
  2401. for _,b in pairs(n:children()) do
  2402. if b.className == "Motor" then
  2403. b.Parent = nil
  2404. end
  2405. end
  2406. n.archivable = true
  2407. n.Anchored = true
  2408. n.CanCollide = false
  2409. n.Name = "Effect"
  2410. n.BrickColor = BrickColor.new("Really black")
  2411. n.Parent = workspace
  2412. n.CFrame = v.CFrame
  2413. n.Transparency = 0
  2414. n:BreakJoints()
  2415. table.insert(Effects, {n, "Disappear", duration})
  2416. end
  2417. end
  2418. end
  2419. Cloak = function()
  2420. so("2767090", Torso, 1, 1)
  2421. Face.Parent = nil
  2422. Clone(0.02)
  2423. for _,v in pairs(Torso.Parent:children()) do
  2424. do
  2425. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2426. coroutine.resume(coroutine.create(function()
  2427. for i = 0, 1, 0.1 do
  2428. wait()
  2429. v.Transparency = v.Transparency + 0.1
  2430. end
  2431. v.Transparency = 1
  2432. end))
  2433. end
  2434. if v.className == "Hat" then
  2435. do
  2436. hatp = v.Handle
  2437. coroutine.resume(coroutine.create(function(derp)
  2438. for i = 0, 1, 0.1 do
  2439. wait()
  2440. derp.Transparency = derp.Transparency + 0.1
  2441. end
  2442. derp.Transparency = 1
  2443. end), hatp)
  2444. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2445.  
  2446. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
  2447.  
  2448. end
  2449. end
  2450. end
  2451. end
  2452. for _,v in pairs(modelzorz:children()) do
  2453. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  2454. coroutine.resume(coroutine.create(function()
  2455. for i = 0, 1, 0.1 do
  2456. wait()
  2457. v.Transparency = v.Transparency + 0.1
  2458. end
  2459. v.Transparency = 1
  2460. end))
  2461. end
  2462. end
  2463. end
  2464. UnCloak = function()
  2465. so("2767090", Torso, 1, 1.1)
  2466. Face.Parent = Head
  2467. for _,v in pairs(Torso.Parent:children()) do
  2468. do
  2469. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2470. coroutine.resume(coroutine.create(function()
  2471. for i = 0, 1, 0.1 do
  2472. wait()
  2473. v.Transparency = v.Transparency - 0.1
  2474. end
  2475. v.Transparency = 0
  2476. end))
  2477. end
  2478. if v.className == "Hat" then
  2479. do
  2480. hatp = v.Handle
  2481. coroutine.resume(coroutine.create(function(derp)
  2482. for i = 0, 1, 0.1 do
  2483. wait()
  2484. derp.Transparency = derp.Transparency - 0.1
  2485. end
  2486. derp.Transparency = 1
  2487. end), hatp)
  2488. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2489.  
  2490. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
  2491.  
  2492. end
  2493. end
  2494. end
  2495. end
  2496. for _,v in pairs(modelzorz:children()) do
  2497. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  2498. coroutine.resume(coroutine.create(function()
  2499. for i = 0, 1, 0.1 do
  2500. wait()
  2501. v.Transparency = v.Transparency - 0.1
  2502. end
  2503. for i = 0, 1, 0.3 do
  2504. wait()
  2505. v.Transparency = 0
  2506. end
  2507. end))
  2508. end
  2509. end
  2510. end
  2511. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2512. if hit.Parent == nil then
  2513. return
  2514. end
  2515. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2516. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2517. ref.Anchored = true
  2518. ref.CFrame = cf(hit.Position)
  2519. game:GetService("Debris"):AddItem(ref, 1)
  2520. hitnum = math.random(1, 5)
  2521. if hitnum == 1 then
  2522. so("199148971", ref, 1, 1)
  2523. else
  2524. if hitnum == 2 then
  2525. so("199149025", ref, 1, 1)
  2526. else
  2527. if hitnum == 3 then
  2528. so("199149072", ref, 1, 1)
  2529. else
  2530. if hitnum == 4 then
  2531. so("199149109", ref, 1, 1)
  2532. else
  2533. if hitnum == 5 then
  2534. so("199149119", ref, 1, 1)
  2535. end
  2536. end
  2537. end
  2538. end
  2539. end
  2540. StaggerHit.Value = true
  2541. end
  2542. h = hit.Parent:FindFirstChild("Humanoid")
  2543. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2544. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2545. return
  2546. end
  2547. if Player.Neutral == false then
  2548. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2549. return
  2550. end
  2551. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2552. return
  2553. end
  2554. end
  2555. c = Instance.new("ObjectValue")
  2556. c.Name = "creator"
  2557. c.Value = game:service("Players").LocalPlayer
  2558. c.Parent = h
  2559. RecentEnemy.Value = hit.Parent
  2560. game:GetService("Debris"):AddItem(c, 0.5)
  2561. if doing4 == false then
  2562. minim = minim * Atk.Value
  2563. maxim = maxim * Atk.Value
  2564. end
  2565. Damage = 0
  2566. if minim == maxim then
  2567. Damage = maxim
  2568. else
  2569. Damage = math.random(minim, maxim)
  2570. end
  2571. blocked = false
  2572. enblock = nil
  2573. Stats = hit.Parent:findFirstChild("Stats")
  2574. if Stats == nil then
  2575. Character.Stats:Clone().Parent=hit.Parent
  2576. end
  2577. if Stats ~= nil then
  2578. Stats.Defense.Value=1
  2579. invis = Stats:findFirstChild("Invisibility")
  2580. if (ranged == false or ranged == nil) and invis ~= nil then
  2581. invis.Value = 0
  2582. end
  2583. enblock = Stats:findFirstChild("Block")
  2584. if enblock ~= nil and enblock.Value == true then
  2585. blocked = true
  2586. end
  2587. if Stats:findFirstChild("Defense") ~= nil then
  2588. if doing2 ~= true and doing4 ~= true then
  2589. local divide = Stats.Defense.Value
  2590. Damage = Damage / divide
  2591. end
  2592. do
  2593. Damage = Damage
  2594. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2595. hitnum = math.random(1, 5)
  2596. if hitnum == 1 then
  2597. so("199149321", hit, 1, 1)
  2598. else
  2599. if hitnum == 2 then
  2600. so("199149338", hit, 1, 1)
  2601. else
  2602. if hitnum == 3 then
  2603. so("199149367", hit, 1, 1)
  2604. else
  2605. if hitnum == 4 then
  2606. so("199149409", hit, 1, 1)
  2607. else
  2608. if hitnum == 5 then
  2609. so("199149452", hit, 1, 1)
  2610. end
  2611. end
  2612. end
  2613. end
  2614. end
  2615. else
  2616. if ranged == false or ranged == nil and blocked ~= true then
  2617. hitnum = math.random(1, 6)
  2618. if hitnum == 1 then
  2619. so("199149137", hit, 1, 1)
  2620. else
  2621. if hitnum == 2 then
  2622. so("199149186", hit, 1, 1)
  2623. else
  2624. if hitnum == 3 then
  2625. so("199149221", hit, 1, 1)
  2626. else
  2627. if hitnum == 4 then
  2628. so("199149235", hit, 1, 1)
  2629. else
  2630. if hitnum == 5 then
  2631. so("199149269", hit, 1, 1)
  2632. else
  2633. if hitnum == 6 then
  2634. so("199149297", hit, 1, 1)
  2635. end
  2636. end
  2637. end
  2638. end
  2639. end
  2640. end
  2641. end
  2642. end
  2643. if Damage <= 3 and staghit == true and ranged ~= true then
  2644. StaggerHit.Value = true
  2645. end
  2646. if Stats:findFirstChild("Stun") ~= nil then
  2647. if blocked == true then
  2648. incstun = incstun / 2
  2649. end
  2650. if Stats.Stun.Value < Stats.StunThreshold.Value then
  2651. Stats.Stun.Value = Stats.Stun.Value + incstun
  2652. end
  2653. end
  2654. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2655. Stats.Stagger.Value = true
  2656. end
  2657. if blocked == true then
  2658. showDamage(hit.Parent, "Block", "Damage")
  2659. if ranged ~= true then
  2660. enblock.Value = false
  2661. Stagger.Value = true
  2662. hitnum = math.random(1, 2)
  2663. if hitnum == 1 then
  2664. so("199148933", hit, 1, 1)
  2665. else
  2666. if hitnum == 2 then
  2667. so("199148947", hit, 1, 1)
  2668. end
  2669. end
  2670. end
  2671. else
  2672. Damage = math.floor(Damage)
  2673. if hit.Parent:findFirstChild("Mark") == nil then
  2674. d = it("BoolValue", hit.Parent)
  2675. d.Name = "Mark"
  2676. b = it("NumberValue", d)
  2677. b.Name = "MarkTime"
  2678. b.Value = 200
  2679. v = it("NumberValue", d)
  2680. v.Name = "MarkValue"
  2681. v.Value = 0
  2682. if doing4 == true then
  2683. v.Value = 10
  2684. end
  2685. sz = it("NumberValue", d)
  2686. sz.Name = "MarkSize"
  2687. sz.Value = 5
  2688. st = it("StringValue", d)
  2689. st.Name = "MarkType"
  2690. st.Value = "Adjudicator"
  2691. local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
  2692. if tehpart == nil then
  2693. tehpart = hit.Parent:findFirstChild("Torso")
  2694. end
  2695. if hit.Parent.Name == "Neflhelm" then
  2696. tehpart = hit
  2697. end
  2698. if tehpart ~= nil then
  2699. markgui = it("BillboardGui", tehpart)
  2700. markgui.Name = "Mark Gui"
  2701. markgui.Size = UDim2.new(7, 0, 7, 0)
  2702. markgui.StudsOffset = vt(0, 10, 0)
  2703. markgui.AlwaysOnTop = true
  2704. markscy = it("ImageLabel", markgui)
  2705. markscy.Name = "Scythe"
  2706. markscy.BackgroundTransparency = 1
  2707. markscy.Image = "rbxassetid://278007861"
  2708. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2709. markscy.Size = UDim2.new(1, 0, 1, 0)
  2710. table.insert(MarkedGUI, {markgui, markscy})
  2711. end
  2712. table.insert(Marked, {d, b, v, sz})
  2713. else
  2714. mark = hit.Parent:findFirstChild("Mark")
  2715. if mark:findFirstChild("MarkTime") ~= nil then
  2716. mark.MarkTime.Value = 700
  2717. end
  2718. if mark:findFirstChild("MarkValue") ~= nil then
  2719. if mark.MarkValue.Value >= 10 then
  2720. if mark:findFirstChild("MarkTime") ~= nil then
  2721. mark.MarkTime.Value = 400
  2722. end
  2723. if mark.MarkType.Value == "Classic" then
  2724. mark.Parent = nil
  2725. Damage = Damage * 2
  2726. print("double damage")
  2727. if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  2728. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2729. ref.Anchored = true
  2730. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  2731. game:GetService("Debris"):AddItem(ref, 5)
  2732. local nr = NumberRange.new
  2733. local ns = NumberSequence.new
  2734. local cs = ColorSequence.new
  2735. local parti = it("ParticleEmitter")
  2736. parti.Color = cs(NewCol, Color3.new(0, 0, 0))
  2737. parti.LightEmission = 0
  2738. parti.Size = ns(10)
  2739. parti.Texture = "http://www.roblox.com/asset/?id=243660364"
  2740. transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2741. parti.Transparency = transseq
  2742. parti.ZOffset = 1
  2743. parti.Acceleration = vt(0, 0, 0)
  2744. parti.Lifetime = nr(1)
  2745. parti.Rate = 20
  2746. parti.Rotation = nr(0, 360)
  2747. parti.Speed = nr(0)
  2748. parti.VelocitySpread = 0
  2749. parti.Parent = ref
  2750. parti.Enabled = true
  2751. table.insert(Effects, {parti, "PartiEmi", 20})
  2752. markscy = it("ImageLabel", markgui)
  2753. markscy.Name = "Scythe"
  2754. markscy.BackgroundTransparency = 1
  2755. markscy.Image = "rbxassetid://258927926"
  2756. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2757. markscy.Size = UDim2.new(1, 0, 1, 0)
  2758. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  2759. end
  2760. elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  2761. da = math.random(1, 4)
  2762. inc = 1
  2763. if doing2 == true then
  2764. inc = 2
  2765. end
  2766. if da == 1 then
  2767. DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
  2768. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  2769. else
  2770. if da == 2 then
  2771. DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
  2772. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  2773. else
  2774. if da == 3 then
  2775. DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
  2776. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  2777. else
  2778. if da == 4 then
  2779. DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
  2780. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  2781. end
  2782. end
  2783. end
  2784. end
  2785. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2786. ref.Anchored = true
  2787. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  2788. game:GetService("Debris"):AddItem(ref, 5)
  2789. markgui = it("BillboardGui", ref)
  2790. markgui.Name = "Mark Gui"
  2791. markgui.Size = UDim2.new(7, 0, 7, 0)
  2792. markgui.StudsOffset = vt(0, 10, 0)
  2793. markgui.AlwaysOnTop = true
  2794. markscy = it("ImageLabel", markgui)
  2795. markscy.Name = "Scythe"
  2796. markscy.BackgroundTransparency = 1
  2797. markscy.Image = "rbxassetid://278007453"
  2798. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2799. markscy.Size = UDim2.new(1, 0, 1, 0)
  2800. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  2801. end
  2802. elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
  2803. mark.MarkValue.Value = 10
  2804. else
  2805. mark.MarkValue.Value = mark.MarkValue.Value + 1
  2806. end
  2807. end
  2808. if mark:findFirstChild("MarkSize") ~= nil then
  2809. mark.MarkSize.Value = 5
  2810. end
  2811. coroutine.resume(coroutine.create(function(Hum, Dam)
  2812. hit.Parent.Humanoid:TakeDamage(Damage)
  2813. end), h, Damage)
  2814. pursuitnum = 0
  2815. if isinvis.Value == false then
  2816. invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
  2817. end
  2818. showDamage(hit.Parent, Damage, "Damage")
  2819. if DecreaseState ~= nil then
  2820. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2821. end
  2822. if Type == "NormalDecreaseMvmt1" then
  2823. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  2824. end
  2825. if Type == "Knockdown" then
  2826. hum = hit.Parent.Humanoid
  2827. hum.PlatformStand = true
  2828. coroutine.resume(coroutine.create(function(HHumanoid)
  2829. swait(1)
  2830. HHumanoid.PlatformStand = false
  2831. end), hum)
  2832. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2833. local bodvol = Instance.new("BodyVelocity")
  2834. bodvol.velocity = angle * knockback
  2835. bodvol.P = 500
  2836. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  2837. bodvol.Parent = hit
  2838. rl = Instance.new("BodyAngularVelocity")
  2839. rl.P = 3000
  2840. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2841. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2842. rl.Parent = hit
  2843. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2844. game:GetService("Debris"):AddItem(rl, 0.5)
  2845. else
  2846. do
  2847. if Type == "Knockdown2" then
  2848. hum = hit.Parent.Humanoid
  2849. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2850. local bodvol = Instance.new("BodyVelocity")
  2851. bodvol.velocity = angle * knockback
  2852. bodvol.P = 500
  2853. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  2854. bodvol.Parent = hit
  2855. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2856. else
  2857. do
  2858. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  2859. vp = Instance.new("BodyVelocity")
  2860. vp.P = 500
  2861. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2862. if KnockbackType == 1 then
  2863. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2864. else
  2865. if KnockbackType == 2 then
  2866. vp.velocity = Property.CFrame.lookVector * knockback
  2867. end
  2868. end
  2869. game:GetService("Debris"):AddItem(vp, 0.5)
  2870. if knockback > 0 then
  2871. vp.Parent = hit.Parent.Torso
  2872. end
  2873. end
  2874. debounce = Instance.new("BoolValue")
  2875. debounce.Name = "DebounceHit"
  2876. debounce.Parent = hit.Parent
  2877. debounce.Value = true
  2878. game:GetService("Debris"):AddItem(debounce, Delay)
  2879. c = Instance.new("ObjectValue")
  2880. c.Name = "creator"
  2881. c.Value = Player
  2882. c.Parent = h
  2883. game:GetService("Debris"):AddItem(c, 0.5)
  2884. CRIT = false
  2885. end
  2886. end
  2887. end
  2888. end
  2889. end
  2890. end
  2891. end
  2892. end
  2893. end
  2894. end
  2895. end
  2896. -- end
  2897. --end
  2898. --end
  2899. --end
  2900. --end
  2901. showDamage = function(Char, Dealt, Type)
  2902. m = Instance.new("Model")
  2903. m.Name = "Effect"
  2904. c = Instance.new("Part")
  2905. c.Transparency = 1
  2906. c.Name = "Head"
  2907. c.TopSurface = 0
  2908. c.BottomSurface = 0
  2909. c.formFactor = "Plate"
  2910. c.Size = Vector3.new(1, 0.4, 1)
  2911. b = Instance.new("BillboardGui", c)
  2912. b.Size = UDim2.new(5, 0, 5, 0)
  2913. b.AlwaysOnTop = true
  2914. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2915. if Type == "Damage" then
  2916. damgui.Font = "Bodoni"
  2917. if Dealt == "Block" then
  2918. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2919. else
  2920. if Dealt < 3 then
  2921. damgui.TextColor3 = BrickColor.new("White").Color
  2922. else
  2923. if Dealt >= 3 and Dealt < 20 then
  2924. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  2925. else
  2926. damgui.TextColor3 = BrickColor.new("Really red").Color
  2927. damgui.Font = "Bodoni"
  2928. end
  2929. end
  2930. end
  2931. else
  2932. if Type == "Debuff" then
  2933. damgui.TextColor3 = BrickColor.new("White").Color
  2934. else
  2935. if Type == "Interrupt" then
  2936. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2937. end
  2938. end
  2939. end
  2940. damgui.TextScaled = true
  2941. ms = Instance.new("CylinderMesh")
  2942. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2943. ms.Parent = c
  2944. c.Reflectance = 0
  2945. Instance.new("BodyGyro").Parent = c
  2946. c.Parent = m
  2947. if Char:findFirstChild("Head") ~= nil then
  2948. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2949. else
  2950. if Char.Parent:findFirstChild("Head") ~= nil then
  2951. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2952. end
  2953. end
  2954. f = Instance.new("BodyPosition")
  2955. f.P = 2000
  2956. f.D = 100
  2957. f.maxForce = Vector3.new(545000, 545000, 545000)
  2958. if Type == "Damage" then
  2959. f.position = c.Position + Vector3.new(0, 3, 0)
  2960. else
  2961. if Type == "Debuff" or Type == "Interrupt" then
  2962. f.position = c.Position + Vector3.new(0, 5, 0)
  2963. end
  2964. end
  2965. f.Parent = c
  2966. game:GetService("Debris"):AddItem(m, 5)
  2967. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2968. c.CanCollide = false
  2969. m.Parent = workspace
  2970. c.CanCollide = false
  2971. end
  2972. combo = 0
  2973.  
  2974. ob1d = function(mouse)
  2975. if arcorb == true then
  2976. arcorb = false
  2977. end
  2978. if attack == true or equipped == false then
  2979. return
  2980. end
  2981. deb = 0.5
  2982. hold = true
  2983. if combo == 0 then
  2984. combo = 1
  2985. attackone()
  2986. else
  2987. if combo == 1 then
  2988. combo = 2
  2989. attacktwo()
  2990. else
  2991. if combo == 2 then
  2992. combo = 3
  2993. attackthree()
  2994. else
  2995. if combo == 3 then
  2996. combo = 0
  2997. attackfour()
  2998. end
  2999. end
  3000. end
  3001. end
  3002. coroutine.resume(coroutine.create(function()
  3003. for i = 1, 50 do
  3004. if attack == false then
  3005. swait()
  3006. end
  3007. end
  3008. if attack == false then
  3009. combo = 0
  3010. end
  3011. end))
  3012. end
  3013. ob1u = function(mouse)
  3014. hold = false
  3015. end
  3016. buttonhold = false
  3017. fenbarmove1.MouseButton1Click:connect(do1)
  3018. fenbarmove2.MouseButton1Click:connect(do2)
  3019. fenbarmove3.MouseButton1Click:connect(do3)
  3020. fenbarmove4.MouseButton1Click:connect(do4)
  3021. eul = 0
  3022. equipped = false
  3023. key = function(key)
  3024. if attack == true then
  3025. return
  3026. end
  3027. if key == "f" then
  3028. pressedf = true
  3029. fnumb = 0
  3030. attack = true
  3031. if equipped == false then
  3032. equipped = true
  3033. RSH = ch.Torso["Right Shoulder"]
  3034. LSH = ch.Torso["Left Shoulder"]
  3035. RSH.Parent = nil
  3036. LSH.Parent = nil
  3037. RW.Name = "Right Shoulder"
  3038. RW.Part0 = ch.Torso
  3039. RW.C0 = cf(1.5, 0.5, 0)
  3040. RW.C1 = cf(0, 0.5, 0)
  3041. RW.Part1 = ch["Right Arm"]
  3042. RW.Parent = ch.Torso
  3043. LW.Name = "Left Shoulder"
  3044. LW.Part0 = ch.Torso
  3045. LW.C0 = cf(-1.5, 0.5, 0)
  3046. LW.C1 = cf(0, 0.5, 0)
  3047. LW.Part1 = ch["Left Arm"]
  3048. LW.Parent = ch.Torso
  3049. Animate.Parent = nil
  3050. equipanim()
  3051. else
  3052. equipped = false
  3053. hideanim()
  3054. LH.C1 = LHC1
  3055. RH.C1 = RHC1
  3056. Animate.Parent = Humanoid
  3057. swait(0)
  3058. RW.Parent = nil
  3059. LW.Parent = nil
  3060. RSH.Parent = player.Character.Torso
  3061. LSH.Parent = player.Character.Torso
  3062. end
  3063. attack = false
  3064. end
  3065. if equipped == false then
  3066. return
  3067. end
  3068. if key == "e" and invisnum.Value > 5 then
  3069. Invisibility()
  3070. end
  3071. if key == "z" then
  3072. do1()
  3073. end
  3074. if key == "x" then
  3075. do2()
  3076. end
  3077. if key == "c" then
  3078. do3()
  3079. end
  3080. if key == "v" then
  3081. do4()
  3082. end
  3083. end
  3084. key2 = function(key)
  3085. end
  3086. s = function(mouse)
  3087. mouse.Button1Down:connect(function()
  3088. ob1d(mouse)
  3089. end)
  3090. mouse.Button1Up:connect(function()
  3091. ob1u(mouse)
  3092. end)
  3093. mouse.KeyDown:connect(key)
  3094. mouse.KeyUp:connect(key2)
  3095. player = Player
  3096. ch = Character
  3097. MMouse = mouse
  3098. end
  3099. ds = function(mouse)
  3100. end
  3101. Bin.Selected:connect(s)
  3102. Bin.Deselected:connect(ds)
  3103. print("Renegade loaded.")
  3104. local mananum = 0
  3105. local donum = 0
  3106. local stunnum = 0
  3107. local staggeranim = false
  3108. local stunanim = false
  3109. local Point, LastPoint = nil, nil
  3110. local passivenum = 100
  3111. local pnum2 = 0
  3112. local walk = 0
  3113. local walkforw = true
  3114. local addpassive = 0
  3115. local gashnum = 0
  3116. while true do
  3117. swait()
  3118. if Humanoid.Health <= 0 then
  3119. attack = true
  3120. for i = 1, #Marked do
  3121. if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
  3122. MarkedGUI[i][1].Parent = nil
  3123. end
  3124. table.remove(MarkedGUI, i)
  3125. table.remove(Marked, i)
  3126. end
  3127. resumeControl()
  3128. modelzorz.Parent = workspace
  3129. game:GetService("Debris"):AddItem(modelzorz, 30)
  3130. for i = 1, #Weapon do
  3131. Weapon[i].Parent = modelzorz
  3132. Weapon[i].CanCollide = true
  3133. end
  3134. for i = 1, #Welds do
  3135. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3136. Welds[i].Parent = nil
  3137. else
  3138. Welds[i].Parent = prt1
  3139. end
  3140. end
  3141. end
  3142. do
  3143. if fnumb < 21 then
  3144. fnumb = fnumb + 1
  3145. if pressedf == false then
  3146. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3147. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3148. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3149. else
  3150. if fnumb == 20 then
  3151. fenframe5.Parent = nil
  3152. print("daigui")
  3153. end
  3154. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3155. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3156. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3157. end
  3158. end
  3159. rimg.Rotation = rimg.Rotation + 2
  3160. limg.Rotation = limg.Rotation + 2
  3161. timg.Rotation = rimg.Rotation + -2
  3162. if hbwld.Parent == nil then
  3163. hitbox2.Name = "Hitbox2"
  3164. else
  3165. hitbox2.Name = "Hitbox2"
  3166. end
  3167. if hbwld.Parent == nil then
  3168. hitbox2.Name = "Hitbox"
  3169. else
  3170. hitbox2.Name = "Hitbox2"
  3171. end
  3172. if doing2 == true then
  3173. gashnum = gashnum + 1
  3174. if (gashnum) % 10 == 0 then
  3175. if 0 < mana.Value then
  3176. mana.Value = mana.Value - -2
  3177. else
  3178. do2()
  3179. end
  3180. end
  3181. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 2, 2, 2, 0.05)
  3182. MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
  3183. MagicBlock(BrickColor.new("Really black"), prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) * cf(0, math.random(-100, 100) / 100, math.random(-200, 200) / 100), 0, 0, 0, 1, 1, 1, 1, 1)
  3184. end
  3185. hitbox2.Parent = hitbox.Parent
  3186. hitbox2.Size = hitbox.Size
  3187. hitbox2.CFrame = hitboxCF
  3188. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3189. hitbox.Transparency = 1
  3190. hitbox2.Transparency = 1
  3191. for i = 1, #Marked do
  3192. if Marked[i] ~= nil then
  3193. if Marked[i][1].Parent == nil then
  3194. MarkedGUI[i][1].Parent = nil
  3195. table.remove(MarkedGUI, i)
  3196. table.remove(Marked, i)
  3197. else
  3198. if MarkedGUI[i][1].Parent ~= nil then
  3199. MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
  3200. if 0 < Marked[i][4].Value then
  3201. Marked[i][4].Value = Marked[i][4].Value - 1
  3202. end
  3203. if MarkedGUI[i][2].Parent ~= nil then
  3204. if Marked[i][3].Value == 0 then
  3205. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3206. else
  3207. if Marked[i][3].Value == 1 then
  3208. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3209. else
  3210. if Marked[i][3].Value == 2 then
  3211. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3212. else
  3213. if Marked[i][3].Value == 3 then
  3214. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3215. else
  3216. if Marked[i][3].Value == 4 then
  3217. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3218. else
  3219. if Marked[i][3].Value == 5 then
  3220. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3221. else
  3222. if Marked[i][3].Value == 6 then
  3223. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3224. else
  3225. if Marked[i][3].Value == 7 then
  3226. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3227. else
  3228. if Marked[i][3].Value == 8 then
  3229. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3230. else
  3231. if Marked[i][3].Value == 9 then
  3232. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3233. else
  3234. if Marked[i][3].Value == 10 then
  3235. MarkedGUI[i][2].Image = "rbxassetid://333659455"
  3236. end
  3237. end
  3238. end
  3239. end
  3240. end
  3241. end
  3242. end
  3243. end
  3244. end
  3245. end
  3246. end
  3247. end
  3248. end
  3249. if Marked[i][2] ~= nil then
  3250. Marked[i][2].Value = Marked[i][2].Value - 1
  3251. if Marked[i][2].Value <= 0 then
  3252. Marked[i][1].Parent = nil
  3253. MarkedGUI[i][1].Parent = nil
  3254. table.remove(MarkedGUI, i)
  3255. table.remove(Marked, i)
  3256. end
  3257. end
  3258. end
  3259. end
  3260. end
  3261. scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
  3262. scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
  3263. scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
  3264. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
  3265. if invisible == true then
  3266. addpassive = addpassive + 1
  3267. for i = 1, 1 do
  3268. MagicCircle2(BrickColor.new("Black"), scarfp2.CFrame * euler(0, 0, math.rad(180)) * cf(math.random(-300, 300) / 100, math.random(-200, 200) / 100, math.random(-300, 300) / 100), 1.5, 10, 1.5, -0.2, 1, -0.2, 0.2)
  3269. end
  3270. if 50 <= addpassive then
  3271. addpassive = 0
  3272. for _,c in pairs(workspace:children()) do
  3273. local hum = (c:findFirstChild("Humanoid"))
  3274. if hum ~= nil then
  3275. local head = nil
  3276. for _,d in pairs(c:children()) do
  3277. if d.Name == "HumanoidRootPart" then
  3278. local targ = d.Position - RootPart.Position
  3279. local mag = targ.magnitude
  3280. if mag <= 60 and c.Name ~= Player.Name then
  3281. mark = d.Parent:findFirstChild("Mark")
  3282. if mark ~= nil then
  3283. if (mark:findFirstChild("MarkTime")) ~= nil then
  3284. mark.MarkTime.Value = 500
  3285. end
  3286. if (mark:findFirstChild("MarkValue")) ~= nil then
  3287. if (mark:findFirstChild("MarkSize")) ~= nil then
  3288. mark.MarkSize.Value = 5
  3289. end
  3290. if mark.MarkValue.Value < 10 then
  3291. mark.MarkValue.Value = mark.MarkValue.Value + 1
  3292. end
  3293. end
  3294. end
  3295. end
  3296. end
  3297. end
  3298. end
  3299. end
  3300. end
  3301. end
  3302. do
  3303. pursuitnum = pursuitnum + 1
  3304. if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
  3305. invisnum.Value = invisnum.Value - 1
  3306. passivenum = 0
  3307. end
  3308. if 8 <= passivenum and invisible == true then
  3309. invisnum.Value = invisnum.Value - 1
  3310. pursuitnum = 0
  3311. passivenum = 0
  3312. end
  3313. if 100 <= invisnum.Value then
  3314. invisnum.Value = 100
  3315. end
  3316. if invisible == true and invisnum.Value <= 0 then
  3317. Invisibility()
  3318. end
  3319. passivenum = passivenum + 1
  3320. if Stagger.Value == true and staggeranim == false then
  3321. coroutine.resume(coroutine.create(function()
  3322. staggeranim = true
  3323. while attack == true do
  3324. swait()
  3325. end
  3326. StaggerAnim()
  3327. StaggerHit.Value = false
  3328. Stagger.Value = false
  3329. staggeranim = false
  3330. end))
  3331. end
  3332. if StaggerHit.Value == true and staggeranim == false then
  3333. coroutine.resume(coroutine.create(function()
  3334. staggeranim = true
  3335. while attack == true do
  3336. swait()
  3337. end
  3338. StaggerHitt()
  3339. StaggerHit.Value = false
  3340. Stagger.Value = false
  3341. staggeranim = false
  3342. end))
  3343. end
  3344. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3345. Humanoid.WalkSpeed = 0
  3346. else
  3347. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3348. end
  3349. if StunT.Value <= Stun.Value and stunanim == false then
  3350. coroutine.resume(coroutine.create(function()
  3351. stunanim = true
  3352. while attack == true do
  3353. swait()
  3354. end
  3355. StunAnim()
  3356. Stun.Value = 0
  3357. stunanim = false
  3358. end))
  3359. end
  3360. local stunnum2 = 30
  3361. if stunnum2 <= stunnum then
  3362. if 0 < Stun.Value then
  3363. Stun.Value = Stun.Value - 1
  3364. end
  3365. stunnum = 0
  3366. end
  3367. stunnum = stunnum + 1
  3368. if 0.5 <= donum then
  3369. handidle = true
  3370. else
  3371. if donum <= 0 then
  3372. handidle = false
  3373. end
  3374. end
  3375. if handidle == false then
  3376. donum = donum + 0.003
  3377. else
  3378. donum = donum - 0.003
  3379. end
  3380. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3381. local velderp = RootPart.Velocity.y
  3382. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3383. if equipped == true then
  3384. if attack == false then
  3385. idle = idle + 1
  3386. else
  3387. idle = 0
  3388. end
  3389. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3390. if walkforw == true then
  3391. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3392. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3393. else
  3394. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3395. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3396. end
  3397. else
  3398. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3399. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3400. end
  3401. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3402. Anim = "Jump"
  3403. if attack == false then
  3404. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  3405. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  3406. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3407. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3408. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
  3409. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3410. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  3411. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3412. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3413. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3414. end
  3415. else
  3416. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3417. Anim = "Fall"
  3418. if attack == false then
  3419. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  3420. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  3421. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3422. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3423. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
  3424. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3425. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
  3426. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3427. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3428. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3429. end
  3430. else
  3431. if torvel < 1 and hitfloor ~= nil then
  3432. Anim = "Idle"
  3433. if attack == false then
  3434. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  3435. wld1.C0 = clerp(wld1.C0, euler(0, -0.4 - (donum) / 2, 0) * cf(0, -2, 0) * euler(1, 0, 0), 0.2)
  3436. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.15)
  3437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.15)
  3438. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.3 - (donum) / 4, 0, 0.5 - (donum) / 4), 0.15)
  3439. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3440. LW.C0 = clerp(LW.C0, cf(-1.3 - (donum) / 3, 0.5, -0.4 + (donum) / 3) * euler(0.7 + (donum) / 6, 0, 0.4 + (donum) / 6) * euler(0, -1.57, 0), 0.15)
  3441. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3442. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0.2), 0.15)
  3443. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.15)
  3444. end
  3445. else
  3446. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3447. Anim = "Walk"
  3448. walk = walk + 1
  3449. if 15 - 5 * Mvmt.Value <= walk then
  3450. walk = 0
  3451. if walkforw == true then
  3452. walkforw = false
  3453. else
  3454. if walkforw == false then
  3455. walkforw = true
  3456. end
  3457. end
  3458. end
  3459. if attack == false then
  3460. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  3461. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  3462. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  3463. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3464. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  3465. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3466. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  3467. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3468. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3469. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3470. end
  3471. else
  3472. if 30 <= torvel and hitfloor ~= nil then
  3473. Anim = "Walk"
  3474. walk = walk + 1
  3475. if 15 - 5 * Mvmt.Value <= walk then
  3476. walk = 0
  3477. if walkforw == true then
  3478. walkforw = false
  3479. else
  3480. if walkforw == false then
  3481. walkforw = true
  3482. end
  3483. end
  3484. end
  3485. if attack == false then
  3486. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  3487. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  3488. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  3489. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3490. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  3491. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3492. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  3493. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3494. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3495. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3496. end
  3497. end
  3498. end
  3499. end
  3500. end
  3501. end
  3502. end
  3503. if 0 < #Effects then
  3504. for e = 1, #Effects do
  3505. if Effects[e] ~= nil then
  3506. local Thing = Effects[e]
  3507. if Thing ~= nil then
  3508. local Part = Thing[1]
  3509. local Mode = Thing[2]
  3510. local Delay = Thing[3]
  3511. local IncX = Thing[4]
  3512. local IncY = Thing[5]
  3513. local IncZ = Thing[6]
  3514. if Thing[2] == "CylinderClang" then
  3515. if Thing[3] <= 1 then
  3516. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3517. Thing[7] = Thing[1].CFrame
  3518. effect("New Yeller", 0, Thing[8], Thing[7])
  3519. Thing[8] = Thing[7]
  3520. Thing[3] = Thing[3] + Thing[4]
  3521. else
  3522. Part.Parent = nil
  3523. table.remove(Effects, e)
  3524. end
  3525. end
  3526. if Thing[2] == "showDamage" then
  3527. if Thing[6] < Thing[5] then
  3528. Thing[6] = Thing[6] + 1
  3529. else
  3530. if Thing[6] < Thing[7] then
  3531. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3532. Thing[6] = Thing[6] + 1
  3533. else
  3534. if Thing[6] < Thing[8] then
  3535. Thing[6] = Thing[6] + 1
  3536. else
  3537. if Thing[6] < Thing[9] then
  3538. Thing[6] = Thing[6] + 1
  3539. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3540. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3541. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3542. else
  3543. Thing[1].Parent = nil
  3544. table.remove(Effects, e)
  3545. end
  3546. end
  3547. end
  3548. end
  3549. end
  3550. if Thing[2] == "PartiEmi" then
  3551. Thing[3] = Thing[3] - 1
  3552. if Thing[3] <= 0 then
  3553. Thing[1].Enabled = false
  3554. table.remove(Effects, e)
  3555. end
  3556. end
  3557. if Thing[2] == "AdjuEff" then
  3558. if 0 < Thing[3] then
  3559. Thing[3] = Thing[3] - 1
  3560. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  3561. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  3562. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  3563. else
  3564. Thing[1].Parent = nil
  3565. table.remove(Effects, e)
  3566. end
  3567. end
  3568. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
  3569. if Thing[1].Transparency <= 1 then
  3570. if Thing[2] == "Block1" then
  3571. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3572. Mesh = Thing[7]
  3573. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3574. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3575. else
  3576. if Thing[2] == "Block2" then
  3577. Thing[1].CFrame = Thing[1].CFrame
  3578. Mesh = Thing[7]
  3579. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3580. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3581. else
  3582. if Thing[2] == "Block3" then
  3583. Thing[9] = Thing[9] + 0.5
  3584. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  3585. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3586. Mesh = Thing[7]
  3587. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3588. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3589. else
  3590. if Thing[2] == "Skull" then
  3591. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  3592. Mesh = Thing[7]
  3593. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3594. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3595. else
  3596. if Thing[2] == "Cylinder" then
  3597. Mesh = Thing[7]
  3598. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3599. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3600. else
  3601. if Thing[2] == "Cylinder2" then
  3602. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3603. Mesh = Thing[7]
  3604. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3605. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3606. else
  3607. if Thing[2] == "Blood" then
  3608. Mesh = Thing[7]
  3609. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3610. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3611. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3612. else
  3613. if Thing[2] == "Elec" then
  3614. Mesh = Thing[10]
  3615. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3616. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3617. else
  3618. if Thing[2] == "Disappear" then
  3619. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3620. end
  3621. end
  3622. end
  3623. end
  3624. end
  3625. end
  3626. end
  3627. end
  3628. end
  3629. else
  3630. Part.Parent = nil
  3631. table.remove(Effects, e)
  3632. end
  3633. end
  3634. end
  3635. end
  3636. end
  3637. end
  3638. do
  3639. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3640. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3641. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3642. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3643. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3644. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
  3645. fenbarblock3.Text = "Power(" .. invisnum.Value .. ")"
  3646. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3647. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3648. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3649. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3650. for _,c in pairs(Decrease:children()) do
  3651. if (c:findFirstChild("Duration")) ~= nil then
  3652. c.Duration.Value = c.Duration.Value - 1
  3653. if c.Duration.Value <= 0 then
  3654. c.Parent = nil
  3655. end
  3656. end
  3657. if c.Name == "DecreaseAtk" then
  3658. decreaseatk = decreaseatk + c.Value
  3659. else
  3660. if c.Name == "DecreaseDef" then
  3661. decreasedef = decreasedef + c.Value
  3662. else
  3663. if c.Name == "DecreaseMvmt" then
  3664. decreasemvmt = decreasemvmt + c.Value
  3665. end
  3666. end
  3667. end
  3668. end
  3669. Atk.Value = 1 - (decreaseatk)
  3670. if Atk.Value <= 0 then
  3671. Atk.Value = 0
  3672. end
  3673. Def.Value = 1 - (decreasedef)
  3674. if Def.Value <= 0 then
  3675. Def.Value = 0.01
  3676. end
  3677. Mvmt.Value = 1 - (decreasemvmt)
  3678. if Mvmt.Value <= 0 then
  3679. Mvmt.Value = 0
  3680. end
  3681. decreaseatk = 0
  3682. decreasedef = 0
  3683. decreasemvmt = 0
  3684. AtkVal = Atk.Value * 100
  3685. AtkVal = math.floor(AtkVal)
  3686. AtkVal = AtkVal / 100
  3687. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3688. DefVal = Def.Value * 100
  3689. DefVal = math.floor(DefVal)
  3690. DefVal = DefVal / 100
  3691. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3692. MvmtVal = Mvmt.Value * 100
  3693. MvmtVal = math.floor(MvmtVal)
  3694. MvmtVal = MvmtVal / 100
  3695. if Rooted.Value == true then
  3696. MvmtVal = 0
  3697. end
  3698. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3699. if StunT.Value <= Stun.Value then
  3700. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3701. else
  3702. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3703. end
  3704. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3705. if 100 <= mana.Value then
  3706. mana.Value = 100
  3707. else
  3708. if mananum <= 12 then
  3709. mananum = mananum + 1
  3710. else
  3711. mananum = 0
  3712. mana.Value = mana.Value + 100
  3713. end
  3714. end
  3715. for i = 1, #cooldowns do
  3716. if cooldownmax <= cooldowns[i] then
  3717. cooldowns[i] = cooldownmax
  3718. else
  3719. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3720. end
  3721. end
  3722. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3723.  
  3724. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3725.  
  3726. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3727.  
  3728. end
  3729. end
  3730. end
  3731. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement