Advertisement
Darkraiii7

Untitled

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