-----------------

XT-74

Apr 29th, 2020
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.81 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. wait(0.5)
  153. Player = game:GetService("Players").LocalPlayer
  154. Character = Player.Character
  155. PlayerGui = Player.PlayerGui
  156. Backpack = Player.Backpack
  157. Torso = Character.Torso
  158. Head = Character.Head
  159. Humanoid = Character.Humanoid
  160. LeftArm = Character["Left Arm"]
  161. LeftLeg = Character["Left Leg"]
  162. RightArm = Character["Right Arm"]
  163. RightLeg = Character["Right Leg"]
  164. LS = Torso["Left Shoulder"]
  165. LH = Torso["Left Hip"]
  166. RS = Torso["Right Shoulder"]
  167. RH = Torso["Right Hip"]
  168. Neck = Torso.Neck
  169. it = Instance.new
  170. vt = Vector3.new
  171. cf = CFrame.new
  172. euler = CFrame.fromEulerAnglesXYZ
  173. angles = CFrame.Angles
  174. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  175. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  176. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  177. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  178. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  179. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  180. RootPart = Character.HumanoidRootPart
  181. RootJoint = RootPart.RootJoint
  182. RootCF = euler(-1.57, 0, 3.14)
  183. attack = false
  184. attackdebounce = false
  185. isblarghing = false
  186. MMouse = nil
  187. combo = 0
  188. combospeed = 0
  189. Fly = false
  190. stop = false
  191. local Run = false
  192. local hitfloor, posfloor = nil, nil
  193. local idle = 0
  194. local Effects = {}
  195. local Weapon = {}
  196. local Welds = {}
  197. local decreaseatk = 0
  198. local decreasedef = 0.5
  199. local decreasemvmt = 0
  200. local Mode = "Defensive"
  201. local GuardStance = false
  202. local Target = nil
  203. local manualguardend = false
  204. local equipped = false
  205. local Charge = 0
  206. local Charging = false
  207. local prop = Instance.new("RocketPropulsion")
  208. local move1 = "(Z)\nShoot"
  209. local move2 = "(X)\nImpale"
  210. local move3 = "(C)\nForcefield"
  211. local move4 = "(V)\nOverdrive"
  212. local cooldowns = {}
  213. local cooldown1 = 0
  214. table.insert(cooldowns, cooldown1)
  215. local cooldown2 = 0
  216. table.insert(cooldowns, cooldown2)
  217. local cooldown3 = 0
  218. table.insert(cooldowns, cooldown3)
  219. local cooldown4 = 0
  220. table.insert(cooldowns, cooldown4)
  221. local cooldown5 = 0
  222. table.insert(cooldowns, cooldown5)
  223. local cooldownsadd = {}
  224. local cooldownadd1 = 0.1
  225. table.insert(cooldownsadd, cooldownadd1)
  226. local cooldownadd2 = 0.08
  227. table.insert(cooldownsadd, cooldownadd2)
  228. local cooldownadd3 = 0.05
  229. table.insert(cooldownsadd, cooldownadd3)
  230. local cooldownadd4 = 0.03
  231. table.insert(cooldownsadd, cooldownadd4)
  232. local cooldownadd5 = 0.03
  233. table.insert(cooldownsadd, cooldownadd5)
  234. local cooldownmax = 150
  235. player = nil
  236. RSH = nil
  237. RW = Instance.new("Motor")
  238. LW = Instance.new("Motor")
  239. RW.Name = "Right Shoulder"
  240. LW.Name = "Left Shoulder"
  241. LH = Torso["Left Hip"]
  242. RH = Torso["Right Hip"]
  243. TorsoColor = Torso.BrickColor
  244. TorsoRed = TorsoColor.Color.r
  245. TorsoGreen = TorsoColor.Color.g
  246.  
  247. NewCol = "Bright blue"
  248. local Flight = 500
  249.  
  250.  
  251. print(BrickColor.new(NewCol))
  252.  
  253. local mdec2 = Instance.new("NumberValue", Decrease)
  254. mdec2.Name = "DecreaseMvmt"
  255. mdec2.Value = 0.1
  256. local Animate = Humanoid.Animator
  257. local canjump = true
  258. removeControl = function()
  259. canjump = false
  260. end
  261. resumeControl = function()
  262. canjump = true
  263. end
  264.  
  265. so = function(id, par, vol, pit)
  266. local sou = Instance.new("Sound", par or workspace)
  267. sou.Volume = vol
  268. sou.Pitch = pit or 1
  269. if id == "RandSlash" then
  270. num = math.random(1, 4)
  271. if num == 1 then
  272. id = "200633108"
  273. else
  274. if num == 2 then
  275. id = "200633148"
  276. else
  277. if num == 3 then
  278. id = "200633196"
  279. else
  280. if num == 4 then
  281. id = "200633281"
  282. end
  283. end
  284. end
  285. end
  286. end
  287. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  288.  
  289. coroutine.resume(coroutine.create(function(Sound)
  290. swait()
  291. Sound:play()
  292. end), sou)
  293. game:GetService("Debris"):AddItem(sou, 6)
  294. end
  295. Player.Character.Humanoid.Changed:connect(function()
  296. if canjump == false then
  297. Player.Character.Humanoid.Jump = false
  298. end
  299.  
  300. end)
  301.  
  302. swait = function(num)
  303. if num == 0 or num == nil then
  304. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  305. else
  306. for i = 0, num do
  307. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  308. end
  309. end
  310. end
  311. ArtificialHB = Instance.new("BindableEvent", script)
  312. ArtificialHB.Name = "Heartbeat"
  313.  
  314. script:WaitForChild("Heartbeat")
  315.  
  316. frame = 1 / 40
  317. tf = 0
  318. allowframeloss = true
  319. tossremainder = false
  320. lastframe = tick()
  321. script.Heartbeat:Fire()
  322.  
  323. game:GetService("RunService").Heartbeat:connect(function(s, p)
  324. tf = tf + s
  325. if tf >= frame then
  326. if allowframeloss then
  327. script.Heartbeat:Fire()
  328. lastframe = tick()
  329. else
  330. for i = 1, math.floor(tf / frame) do
  331. script.Heartbeat:Fire()
  332. end
  333. lastframe = tick()
  334. end
  335. if tossremainder then
  336. tf = 0
  337. else
  338. tf = tf - frame * math.floor(tf / frame)
  339. end
  340. end
  341. end)
  342. function swait(num)
  343. if num == 0 or num == nil then
  344. ArtificialHB.Event:wait()
  345. else
  346. for i = 0, num do
  347. ArtificialHB.Event:wait()
  348. end
  349. end
  350. end
  351. local Stats = Instance.new("BoolValue")
  352. Stats.Name = "Stats"
  353. Stats.Parent = Character
  354. local Atk = Instance.new("NumberValue")
  355. Atk.Name = "Damage"
  356. Atk.Parent = Stats
  357. Atk.Value = 1
  358. local Def = Instance.new("NumberValue")
  359. Def.Name = "Defense"
  360. Def.Parent = Stats
  361. Def.Value = 1
  362. local Mvmt = Instance.new("NumberValue")
  363. Mvmt.Name = "Movement"
  364. Mvmt.Parent = Stats
  365. Mvmt.Value = 1
  366. local Stun = Instance.new("NumberValue")
  367. Stun.Name = "Stun"
  368. Stun.Parent = Stats
  369. Stun.Value = 0
  370. local StunT = Instance.new("NumberValue")
  371. StunT.Name = "StunThreshold"
  372. StunT.Parent = Stats
  373. StunT.Value = 100
  374. local Rooted = Instance.new("BoolValue")
  375. Rooted.Name = "Rooted"
  376. Rooted.Parent = Stats
  377. Rooted.Value = false
  378. local Stunned = Instance.new("BoolValue")
  379. Stunned.Name = "Stunned"
  380. Stunned.Parent = Stats
  381. Stunned.Value = false
  382. local Stagger = Instance.new("BoolValue")
  383. Stagger.Name = "Stagger"
  384. Stagger.Parent = Stats
  385. Stagger.Value = false
  386. local StaggerHit = Instance.new("BoolValue")
  387. StaggerHit.Name = "StaggerHit"
  388. StaggerHit.Parent = Stats
  389. StaggerHit.Value = false
  390. local RecentEnemy = Instance.new("ObjectValue")
  391. RecentEnemy.Name = "RecentEnemy"
  392. RecentEnemy.Parent = Stats
  393. RecentEnemy.Value = nil
  394. local Decrease = Instance.new("BoolValue")
  395. Decrease.Name = "Decrease"
  396. Decrease.Parent = Stats
  397. Decrease.Value = false
  398. local passive = Instance.new("NumberValue", Decrease)
  399. passive.Name = "DecreaseMvmt"
  400. passive.Value = 0.1
  401. local passive2 = Instance.new("NumberValue", Decrease)
  402. passive2.Name = "DecreaseDef"
  403. passive2.Value = 0
  404. local mana = Instance.new("NumberValue")
  405. mana.Name = "Mana"
  406. mana.Parent = Stats
  407. mana.Value = 0
  408. NoOutline = function(Part)
  409. Part.TopSurface = 10
  410. end
  411. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size, material, anchor)
  412. local fp = it("Part")
  413. fp.formFactor = formfactor
  414. fp.Parent = parent
  415. fp.Reflectance = reflectance
  416. fp.Transparency = transparency
  417. fp.CanCollide = false
  418. fp.Locked = true
  419. fp.BrickColor = brickcolor
  420. fp.Name = name
  421. fp.Material = "SmoothPlastic"
  422. fp.Size = size
  423. fp.Position = Torso.Position
  424. NoOutline(fp)
  425. if material then
  426. fp.Material = material
  427. end
  428. if anchor then
  429. fp.Anchored = anchor
  430. end
  431. fp:BreakJoints()
  432. return fp
  433. end
  434. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  435. local mesh = it(Mesh)
  436. mesh.Parent = part
  437. if Mesh == "SpecialMesh" then
  438. mesh.MeshType = meshtype
  439. if meshid ~= "nil" then
  440. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  441. end
  442. end
  443. mesh.Offset = offset
  444. mesh.Scale = scale
  445. return mesh
  446. end
  447. weld = function(parent, part0, part1, c0)
  448. local weld = it("Motor")
  449. weld.Parent = parent
  450. weld.Part0 = part0
  451. weld.Part1 = part1
  452. weld.C0 = c0
  453. return weld
  454. end
  455. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  456. local gui = it(GuiType)
  457. gui.Parent = parent
  458. gui.Text = text
  459. gui.BackgroundTransparency = backtrans
  460. gui.BackgroundColor3 = backcol
  461. gui.SizeConstraint = "RelativeXY"
  462. gui.TextXAlignment = "Center"
  463. gui.TextYAlignment = "Center"
  464. gui.Position = pos
  465. gui.Size = size
  466. gui.Font = "SourceSans"
  467. gui.FontSize = "Size14"
  468. gui.TextWrapped = false
  469. gui.TextStrokeTransparency = 0
  470. gui.TextColor = BrickColor.new("White")
  471. return gui
  472. end
  473.  
  474.  
  475. DecreaseStat = function(Model, Stat, Amount, Duration)
  476. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  477. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  478. d = Instance.new("NumberValue", Model.Stats.Decrease)
  479. dur = Instance.new("NumberValue", d)
  480. dur.Name = "Duration"
  481. dur.Value = Duration
  482. game:GetService("Debris"):AddItem(d, 20)
  483. if Stat == "Damage" then
  484. d.Name = "DecreaseAtk"
  485. else
  486. if Stat == "Defense" then
  487. d.Name = "DecreaseDef"
  488. else
  489. if Stat == "Movement" then
  490. d.Name = "DecreaseMvmt"
  491. end
  492. end
  493. end
  494. if Model:findFirstChild("Torso") ~= nil then
  495. display = ""
  496. if Stat == "Damage" then
  497. if Amount > 0 then
  498. display = "-Damage"
  499. else
  500. display = "+Damage"
  501. end
  502. else
  503. if Stat == "Defense" then
  504. if Amount > 0 then
  505. display = "-Defense"
  506. else
  507. display = "+Defense"
  508. end
  509. else
  510. if Stat == "Movement" then
  511. if Amount > 0 then
  512. display = "-Movement"
  513. else
  514. display = "+Movement"
  515. end
  516. end
  517. end
  518. end
  519. showDamage(Model, display, "Debuff")
  520. end
  521. d.Value = Amount
  522. end
  523. end
  524. GetDist = function(Part1, Part2, magni)
  525. local targ = Part1.Position - Part2.Position
  526. local mag = targ.magnitude
  527. if mag <= magni then
  528. return true
  529. else
  530. return false
  531. end
  532. end
  533.  
  534.  
  535. function clerp(a,b,t)
  536. local qa = {QuaternionFromCFrame(a)}
  537. local qb = {QuaternionFromCFrame(b)}
  538. local ax, ay, az = a.x, a.y, a.z
  539. local bx, by, bz = b.x, b.y, b.z
  540. local _t = 1-t
  541. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  542. end
  543.  
  544. function QuaternionFromCFrame(cf)
  545. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  546. local trace = m00 + m11 + m22
  547. if trace > 0 then
  548. local s = math.sqrt(1 + trace)
  549. local recip = 0.5/s
  550. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  551. else
  552. local i = 0
  553. if m11 > m00 then
  554. i = 1
  555. end
  556. if m22 > (i == 0 and m00 or m11) then
  557. i = 2
  558. end
  559. if i == 0 then
  560. local s = math.sqrt(m00-m11-m22+1)
  561. local recip = 0.5/s
  562. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  563. elseif i == 1 then
  564. local s = math.sqrt(m11-m22-m00+1)
  565. local recip = 0.5/s
  566. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  567. elseif i == 2 then
  568. local s = math.sqrt(m22-m00-m11+1)
  569. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  570. end
  571. end
  572. end
  573.  
  574. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  575. local xs, ys, zs = x + x, y + y, z + z
  576. local wx, wy, wz = w*xs, w*ys, w*zs
  577. local xx = x*xs
  578. local xy = x*ys
  579. local xz = x*zs
  580. local yy = y*ys
  581. local yz = y*zs
  582. local zz = z*zs
  583. 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))
  584. end
  585.  
  586. function QuaternionSlerp(a, b, t)
  587. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  588. local startInterp, finishInterp;
  589. if cosTheta >= 0.0001 then
  590. if (1 - cosTheta) > 0.0001 then
  591. local theta = math.acos(cosTheta)
  592. local invSinTheta = 1/math.sin(theta)
  593. startInterp = math.sin((1-t)*theta)*invSinTheta
  594. finishInterp = math.sin(t*theta)*invSinTheta
  595. else
  596. startInterp = 1-t
  597. finishInterp = t
  598. end
  599. else
  600. if (1+cosTheta) > 0.0001 then
  601. local theta = math.acos(-cosTheta)
  602. local invSinTheta = 1/math.sin(theta)
  603. startInterp = math.sin((t-1)*theta)*invSinTheta
  604. finishInterp = math.sin(t*theta)*invSinTheta
  605. else
  606. startInterp = t-1
  607. finishInterp = t
  608. end
  609. end
  610. 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
  611. end
  612. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  613. for _,c in pairs(workspace:children()) do
  614. local hum = c:findFirstChild("Humanoid")
  615. if hum ~= nil then
  616. local head = nil
  617. for _,d in pairs(c:children()) do
  618. if d.className == "Model" and ranged ~= true then
  619. head = d:findFirstChild("Hitbox")
  620. if d.Parent == Character then
  621. break
  622. end
  623. if head ~= nil then
  624. local targ = head.Position - Part.Position
  625. local mag = targ.magnitude
  626. if mag <= magni and c.Name ~= Player.Name then
  627. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  628. ref.Anchored = true
  629. ref.CFrame = cf(head.Position)
  630. game:GetService("Debris"):AddItem(ref, 1)
  631. hitnum = math.random(1, 5)
  632. if hitnum == 1 then
  633. so("199148971", ref, 1, 1)
  634. else
  635. if hitnum == 2 then
  636. so("199149025", ref, 1, 1)
  637. else
  638. if hitnum == 3 then
  639. so("199149072", ref, 1, 1)
  640. else
  641. if hitnum == 4 then
  642. so("199149109", ref, 1, 1)
  643. else
  644. if hitnum == 5 then
  645. so("199149119", ref, 1, 1)
  646. end
  647. end
  648. end
  649. end
  650. end
  651. StaggerHit.Value = true
  652. end
  653. end
  654. end
  655. do
  656. if d.className == "Part" then
  657. head = d
  658. if head ~= nil then
  659. local targ = head.Position - Part.Position
  660. local mag = targ.magnitude
  661. if mag <= magni and c.Name ~= Player.Name then
  662. if stun == nil then
  663. stun = math.random(5, 10)
  664. end
  665. local Rang = nil
  666. if Ranged == false then
  667. Rang = true
  668. end
  669. local stag = nil
  670. if shbash == true then
  671. stag = true
  672. end
  673. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  674. end
  675. end
  676. end
  677. do
  678.  
  679. end
  680. end
  681. end
  682. end
  683. end
  684. end
  685. MagniBuff = function(Part, magni, Dec, DecAm, Dur, others)
  686. if Player.Neutral == true then
  687. DecreaseStat(Character, Dec, DecAm / 2, Dur)
  688. end
  689. for _,c in pairs(workspace:children()) do
  690. local hum = c:findFirstChild("Humanoid")
  691. if hum ~= nil then
  692. local head = c:findFirstChild("Torso")
  693. if head ~= nil then
  694. local targ = head.Position - Part.Position
  695. local mag = targ.magnitude
  696.  
  697. if others == nil and mag <= magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  698. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  699. end
  700. end
  701. end
  702. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and mag <= magni and head.Parent ~= Character and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  703. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  704. end
  705. end
  706. end
  707. rayCast = function(Pos, Dir, Max, Ignore)
  708. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  709. end
  710. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  711. LastPoint = Point
  712. effect = function(Color, Ref, LP, P1, returnn)
  713. if LP == nil or P1 == nil then
  714. return
  715. end
  716. local Effectsmsh = Instance.new("CylinderMesh")
  717. Effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  718. Effectsmsh.Name = "Mesh"
  719. local Effectsg = Instance.new("Part")
  720. NoOutline(Effectsg)
  721. Effectsg.formFactor = 3
  722. Effectsg.CanCollide = false
  723. Effectsg.Name = "Eff"
  724. Effectsg.Locked = true
  725. Effectsg.Anchored = true
  726. Effectsg.Size = Vector3.new(0.5, 1, 0.5)
  727. Effectsg.Parent = workspace
  728. Effectsmsh.Parent = Effectsg
  729. Effectsg.BrickColor = BrickColor.new(Color)
  730. Effectsg.Reflectance = Ref
  731. local point1 = P1
  732. local mg = point1.p.magnitude
  733. Effectsg.Size = Vector3.new(0.5, mg, 0.5)
  734. Effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  735. Effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  736. game:GetService("Debris"):AddItem(Effectsg, 2)
  737. if returnn then
  738. return Effectsg
  739. end
  740. if not returnn then
  741. table.insert(Effects, {Effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  742. end
  743. end
  744. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  745. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  746. prt.Anchored = true
  747. prt.CFrame = cframe
  748. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  749. game:GetService("Debris"):AddItem(prt, 10)
  750. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  751. return prt
  752. end
  753. MagicSpike = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  754. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. local msh = mesh("SpecialMesh", prt, "FileMesh", "1033714", vt(0, 0, 0), vt(x1, y1, z1))
  758. game:GetService("Debris"):AddItem(prt, 10)
  759. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  760. end
  761. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  762. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  763. prt.Anchored = true
  764. prt.CFrame = cframe
  765. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  766. game:GetService("Debris"):AddItem(prt, 10)
  767.  
  768. if Type == 1 or Type == nil then
  769. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  770. else
  771. if Type == 2 then
  772. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  773. end
  774. end
  775. return prt
  776. end
  777. MagicCloud = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  778. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  779. prt.Anchored = true
  780. prt.CFrame = cframe
  781. local msh = mesh("SpecialMesh", prt, "FileMesh", "1095708", vt(0, 0, 0), vt(x1, y1, z1))
  782. game:GetService("Debris"):AddItem(prt, 10)
  783. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  784. end
  785. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  786. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  787. prt.Anchored = true
  788. prt.Material = material
  789. prt.CFrame = cframe
  790. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  791. game:GetService("Debris"):AddItem(prt, 10)
  792. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  793. end
  794. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  795. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  796. prt.Anchored = true
  797. prt.CFrame = cframe * cf(x2, y2, z2)
  798. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  799. game:GetService("Debris"):AddItem(prt, 10)
  800. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  801. end
  802.  
  803. MagicOrb = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay, pos2)
  804. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  805.  
  806. prt.Material = material
  807. prt.CFrame = cframe
  808. bp = Instance.new("BodyPosition", prt)
  809. bp.Position = pos2
  810. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  811. coroutine.resume(coroutine.create(function()
  812. while prt.Parent == workspace do
  813. wait()
  814. MagicRing(BrickColor.new("Bright yellow"), cf(prt.Position) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)), 0.1, 1, 0.1, 0.1, 1, 0.1, 0.05)
  815. end
  816.  
  817. MagicCircle(BrickColor.new("Bright yellow"), "Neon", prt.CFrame, x1, y1, z1, x3, y3, z3, 0.05)
  818.  
  819. end))
  820. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  821. table.insert(Effects, {prt, "Cylinder", delay, 0, 0, 0, msh})
  822. return prt
  823. end
  824.  
  825. MagicOrb2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay, pos2)
  826. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  827.  
  828. prt.Material = material
  829. prt.CFrame = cframe
  830. bp = Instance.new("BodyPosition", prt)
  831. bp.Position = pos2
  832. bp.MaxForce = Vector3.new(1000,1000,1000)
  833. coroutine.resume(coroutine.create(function()
  834. while prt.Parent == workspace do
  835. wait()
  836. MagicRing(BrickColor.new("Bright yellow"), cf(prt.Position) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)), 0.1, 1, 0.1, 0.1, 1, 0.1, 0.05)
  837. end
  838.  
  839. MagicCircle(BrickColor.new("Bright yellow"), "Neon", prt.CFrame, x1, y1, z1, x3, y3, z3, 0.05)
  840.  
  841. end))
  842. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  843. table.insert(Effects, {prt, "Cylinder", delay, 0, 0, 0, msh})
  844. return prt
  845. end
  846.  
  847.  
  848. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  849. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  850. prt.Anchored = true
  851. prt.CFrame = cframe
  852. prt.Material = material
  853. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  854. game:GetService("Debris"):AddItem(prt, 10)
  855. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  856. end
  857. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  858. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  859. prt.Anchored = true
  860. prt.CFrame = cframe
  861. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  862. game:GetService("Debris"):AddItem(prt, 10)
  863. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  864. end
  865. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  866. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  867. prt.Anchored = true
  868. prt.CFrame = cframe
  869. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  870. game:GetService("Debris"):AddItem(prt, 10)
  871. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  872. end
  873. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  874. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  875. prt.Anchored = true
  876. prt.CFrame = cframe
  877. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  878. game:GetService("Debris"):AddItem(prt, 10)
  879. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  880. end
  881.  
  882.  
  883.  
  884.  
  885. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  886. if hit.Parent == nil then
  887. return
  888. end
  889. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  890. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  891. ref.Anchored = true
  892. ref.CFrame = cf(hit.Position)
  893. game:GetService("Debris"):AddItem(ref, 1)
  894. hitnum = math.random(1, 5)
  895. if hitnum == 1 then
  896. so("199148971", ref, 1, 1)
  897. else
  898. if hitnum == 2 then
  899. so("199149025", ref, 1, 1)
  900. else
  901. if hitnum == 3 then
  902. so("199149072", ref, 1, 1)
  903. else
  904. if hitnum == 4 then
  905. so("199149109", ref, 1, 1)
  906. else
  907. if hitnum == 5 then
  908. so("199149119", ref, 1, 1)
  909. end
  910. end
  911. end
  912. end
  913. end
  914. StaggerHit.Value = true
  915. end
  916. h = hit.Parent:FindFirstChild("Humanoid")
  917. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  918. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  919. return
  920. end
  921. if Player.Neutral == false then
  922. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  923. return
  924. end
  925. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  926. return
  927. end
  928. end
  929. c = Instance.new("ObjectValue")
  930. c.Name = "creator"
  931. c.Value = game:service("Players").LocalPlayer
  932. c.Parent = h
  933. RecentEnemy.Value = hit.Parent
  934. game:GetService("Debris"):AddItem(c, 0.5)
  935. minim = minim * Atk.Value
  936. maxim = maxim * Atk.Value
  937. Damage = 0
  938. if minim == maxim then
  939. Damage = maxim
  940. else
  941. Damage = math.random(minim, maxim)
  942. end
  943. blocked = false
  944. enblock = nil
  945. Stats = hit.Parent:findFirstChild("Stats")
  946. if Stats ~= nil then
  947. invis = Stats:findFirstChild("Invisibility")
  948. isinvis = Stats:findFirstChild("IsInvisible")
  949. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  950. invis.Value = 0
  951. end
  952. enblock = Stats:findFirstChild("Block")
  953. if enblock ~= nil and enblock.Value == true then
  954. blocked = true
  955. end
  956. if Stats:findFirstChild("Defense") ~= nil then
  957. Damage = Damage / Stats.Defense.Value
  958. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  959. hitnum = math.random(1, 5)
  960. if hitnum == 1 then
  961. so("199149321", hit, 1, 1)
  962. else
  963. if hitnum == 2 then
  964. so("199149338", hit, 1, 1)
  965. else
  966. if hitnum == 3 then
  967. so("199149367", hit, 1, 1)
  968. else
  969. if hitnum == 4 then
  970. so("199149409", hit, 1, 1)
  971. else
  972. if hitnum == 5 then
  973. so("199149452", hit, 1, 1)
  974. end
  975. end
  976. end
  977. end
  978. end
  979. else
  980. if ranged == false or ranged == nil and blocked ~= true then
  981. hitnum = math.random(1, 6)
  982. if hitnum == 1 then
  983. so("199149137", hit, 1, 1)
  984. else
  985. if hitnum == 2 then
  986. so("199149186", hit, 1, 1)
  987. else
  988. if hitnum == 3 then
  989. so("199149221", hit, 1, 1)
  990. else
  991. if hitnum == 4 then
  992. so("199149235", hit, 1, 1)
  993. else
  994. if hitnum == 5 then
  995. so("199149269", hit, 1, 1)
  996. else
  997. if hitnum == 6 then
  998. so("199149297", hit, 1, 1)
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. if Damage <= 3 and staghit == true and ranged ~= true then
  1008. StaggerHit.Value = true
  1009. end
  1010. end
  1011. if Stats:findFirstChild("Stun") ~= nil then
  1012. if blocked == true then
  1013. incstun = incstun / 2
  1014. end
  1015. if Stats.Stun.Value < Stats.StunThreshold.Value then
  1016. Stats.Stun.Value = Stats.Stun.Value + incstun
  1017. end
  1018. end
  1019. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  1020. Stats.Stagger.Value = true
  1021. end
  1022. end
  1023. if blocked == true then
  1024. showDamage(hit.Parent, "Block", "Damage")
  1025. if ranged ~= true then
  1026. enblock.Value = false
  1027. Stagger.Value = true
  1028. hitnum = math.random(1, 2)
  1029. if hitnum == 1 then
  1030. so("199148933", hit, 1, 1)
  1031. else
  1032. if hitnum == 2 then
  1033. so("199148947", hit, 1, 1)
  1034. end
  1035. end
  1036. end
  1037. else
  1038. Damage = math.floor(Damage)
  1039. coroutine.resume(coroutine.create(function(Hum, Dam)
  1040. hit.Parent.Humanoid:TakeDamage(Damage)
  1041. end), h, Damage)
  1042. if Type ~= "Magic" then
  1043. showDamage(hit.Parent, Damage, "Damage")
  1044. end
  1045. if Type == "Magic" then
  1046. showDamage(hit.Parent, Damage, "Magic")
  1047. end
  1048. if DecreaseState ~= nil then
  1049. if DecreaseState == "Temporal" then
  1050. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  1051. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  1052. else
  1053. if DecreaseState == "Temporal2" then
  1054. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  1055. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  1056. else
  1057. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  1058. end
  1059. end
  1060. end
  1061. if Type == "NormalDecreaseMvmt1" then
  1062. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  1063. end
  1064. if Type == "Knockdown" then
  1065. hum = hit.Parent.Humanoid
  1066. hum.PlatformStand = true
  1067. coroutine.resume(coroutine.create(function(HHumanoid)
  1068. swait(1)
  1069. HHumanoid.PlatformStand = false
  1070. end), hum)
  1071. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1072. local bodvol = Instance.new("BodyVelocity")
  1073. bodvol.velocity = angle * knockback
  1074. bodvol.P = 5000
  1075. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1076. bodvol.Parent = hit
  1077. rl = Instance.new("BodyAngularVelocity")
  1078. rl.P = 3000
  1079. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1080. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1081. rl.Parent = hit
  1082. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1083. game:GetService("Debris"):AddItem(rl, 0.5)
  1084. else
  1085. do
  1086. if Type == "Knockdown2" then
  1087. hum = hit.Parent.Humanoid
  1088. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1089. local bodvol = Instance.new("BodyVelocity")
  1090. bodvol.velocity = angle * knockback
  1091. bodvol.P = 5000
  1092. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1093. bodvol.Parent = hit
  1094. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1095. else
  1096. do
  1097. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  1098. vp = Instance.new("BodyVelocity")
  1099. vp.P = 500
  1100. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1101. if KnockbackType == 1 then
  1102. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1103. else
  1104. if KnockbackType == 2 then
  1105. vp.velocity = Property.CFrame.lookVector * knockback
  1106. end
  1107. end
  1108. game:GetService("Debris"):AddItem(vp, 0.5)
  1109. if knockback > 0 then
  1110. vp.Parent = hit.Parent.Torso
  1111. end
  1112. end
  1113. debounce = Instance.new("BoolValue")
  1114. debounce.Name = "DebounceHit"
  1115. debounce.Parent = hit.Parent
  1116. debounce.Value = true
  1117. game:GetService("Debris"):AddItem(debounce, Delay)
  1118. c = Instance.new("ObjectValue")
  1119. c.Name = "creator"
  1120. c.Value = Player
  1121. c.Parent = h
  1122. game:GetService("Debris"):AddItem(c, 0.5)
  1123. CRIT = false
  1124. end
  1125. end
  1126. end
  1127. end
  1128. end
  1129. end
  1130. end
  1131. showDamage = function(Char, Dealt, Type)
  1132. m = Instance.new("Model")
  1133. m.Name = "Effect"
  1134. c = Instance.new("Part")
  1135. c.Transparency = 1
  1136. c.Name = "Head"
  1137. c.TopSurface = 0
  1138. c.BottomSurface = 0
  1139. c.formFactor = "Plate"
  1140. c.Size = Vector3.new(1, 0.4, 1)
  1141. b = Instance.new("BillboardGui", c)
  1142. b.Size = UDim2.new(5, 0, 5, 0)
  1143. b.AlwaysOnTop = true
  1144. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1145. if Type == "Damage" then
  1146. damgui.Font = "SourceSans"
  1147. if Dealt == "Block" then
  1148. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  1149. else
  1150. if Dealt < 3 then
  1151. damgui.TextColor3 = BrickColor.new("White").Color
  1152. else
  1153. if Dealt >= 3 and Dealt < 20 then
  1154. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  1155. else
  1156. damgui.TextColor3 = BrickColor.new("Really red").Color
  1157. damgui.Font = "SourceSansBold"
  1158. end
  1159. end
  1160. end
  1161. else
  1162. if Type == "Debuff" then
  1163. damgui.TextColor3 = BrickColor.new("White").Color
  1164. else
  1165. if Type == "Interrupt" then
  1166. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  1167. end
  1168. end
  1169. end
  1170. damgui.TextScaled = true
  1171. ms = Instance.new("CylinderMesh")
  1172. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1173. ms.Parent = c
  1174. c.Reflectance = 0
  1175. Instance.new("BodyGyro").Parent = c
  1176. c.Parent = m
  1177. if Char:findFirstChild("Head") ~= nil then
  1178. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1179. else
  1180. if Char.Parent:findFirstChild("Head") ~= nil then
  1181. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1182. end
  1183. end
  1184. f = Instance.new("BodyPosition")
  1185. f.P = 2000
  1186. f.D = 100
  1187. f.maxForce = Vector3.new(545000, 545000, 545000)
  1188. if Type == "Damage" then
  1189. f.position = c.Position + Vector3.new(0, 3, 0)
  1190. else
  1191. if Type == "Debuff" or Type == "Interrupt" then
  1192. f.position = c.Position + Vector3.new(0, 5, 0)
  1193. end
  1194. end
  1195. f.Parent = c
  1196. game:GetService("Debris"):AddItem(m, 5)
  1197. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  1198. c.CanCollide = false
  1199. m.Parent = workspace
  1200. c.CanCollide = false
  1201. end
  1202.  
  1203. StunAnim = function()
  1204. attack = true
  1205. removeControl()
  1206. Stunned.Value = true
  1207. showDamage(Character, "Stunned", "Interrupt")
  1208. local dec = Instance.new("NumberValue", Decrease)
  1209. dec.Name = "DecreaseMvmt"
  1210. dec.Value = 2.6
  1211. for i = 0, 1, 0.3 do
  1212. swait()
  1213. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1214. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1215. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1216. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1217. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1218. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1219. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1220. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1221. end
  1222. for i = 0, 1, 0.3 do
  1223. swait()
  1224.  
  1225. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1226. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1227. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1228. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1229. 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)
  1230. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1231. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1232. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1233. end
  1234. for i = 0, 1, 0.3 do
  1235. swait()
  1236.  
  1237. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1238. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1239. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1240. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1241. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1242. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1243. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1244. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1245. end
  1246. local gairost = Instance.new("BodyGyro")
  1247. gairost.Parent = RootPart
  1248. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1249. gairost.P = 20000
  1250. gairost.cframe = cf(0, 0, 0)
  1251. for i = 0, 1, 0.1 do
  1252. swait()
  1253. if hitfloor ~= nil then
  1254. Torso.Velocity = vt(0, 0, 0)
  1255. end
  1256.  
  1257. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1258. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1259. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1260. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1261. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1262. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1263. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1264. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1265. end
  1266. for i = 1, 70 do
  1267. swait()
  1268. gairost.cframe = RootPart.CFrame
  1269. if hitfloor ~= nil then
  1270. Torso.Velocity = vt(0, 0, 0)
  1271. end
  1272. end
  1273. for i = 0, 1, 0.2 do
  1274. swait()
  1275. Stun.Value = 0
  1276. gairost.cframe = RootPart.CFrame
  1277.  
  1278. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1279. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1280. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1281. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1282. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1283. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1284. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1285. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1286. end
  1287. resumeControl()
  1288. gairost.Parent = nil
  1289. dec.Parent = nil
  1290. Stun.Value = 0
  1291. combo = 0
  1292. Stunned.Value = false
  1293. attack = false
  1294. for i = 1, 10 do
  1295. swait()
  1296. Stun.Value = 0
  1297. end
  1298. end
  1299. modelzorz = Instance.new("Model", Character)
  1300. modelzorz.Name = "Plaser"
  1301.  
  1302. if game.PlaceId == 599869747 then
  1303. modelzorz.Parent = workspace
  1304. end
  1305.  
  1306.  
  1307. modelz = Instance.new("Model", Character)
  1308. modelz.Name = "Jetpack"
  1309.  
  1310. modelzorzlz = Instance.new("Model", Character)
  1311. modelzorzlz.Name = "Gauntlet"
  1312.  
  1313. if game.PlaceId == 599869747 then
  1314. modelzorzlz.Parent = workspace
  1315. end
  1316.  
  1317.  
  1318.  
  1319. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Storm blue"), "Part01", vt(0.47, 2.14, 0.2))
  1320. local prt2 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part02", vt(1.15, 1.36, 0.2))
  1321. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part03", vt(0.2, 0.46, 1.4))
  1322. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part04", vt(0.2, 0.46, 1.4))
  1323. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Medium blue"), "Part05", vt(0.8, 0.2, 2))
  1324. local prt6 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part06", vt(1.15, 1.36, 0.2))
  1325. local prt7 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part07", vt(1.15, 1.36, 0.2))
  1326. local prt8 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part08", vt(1.15, 1.36, 0.2))
  1327. local prt9 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part09", vt(0.2, 0.59, 1.33))
  1328. local prt10 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part10", vt(0.2, 0.58, 1.33))
  1329. local prt11 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part11", vt(0.2, 1.08, 2))
  1330. local prt12 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part12", vt(1.22, 0.2, 2))
  1331. local prt13 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part13", vt(0.2, 0.46, 3.62))
  1332. local prt14 = part(3, modelzorz, 0, 0, BrickColor.new("Fossil"), "Part14", vt(0.2, 0.46, 4.56))
  1333. local prt15 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part15", vt(0.2, 0.84, 5.16))
  1334. local prt16 = part(3, modelzorz, 0, 0.5, BrickColor.new("Bright blue"), "Part16", vt(0.2, 0.84, 4.02))
  1335. local prt17 = part(3, modelzorz, 0, 0, BrickColor.new("Storm blue"), "Part17", vt(1.22, 0.2, 0.41))
  1336.  
  1337. local lprt1 = part(3, modelzorzlz, 0, 0, BrickColor.new("Bright blue"), "LaserPart01", vt())
  1338. local lprt2 = part(3, modelzorzlz, 0, 0, BrickColor.new("Fossil"), "LaserPart02", vt())
  1339. lprt2.Material = "Neon"
  1340.  
  1341. local jprt1 = part(3, modelz, 0, 0, BrickColor.new("Bright blue"), "JetPackPart01", vt())
  1342. local jprt2 = part(3, modelz, 0, 0, BrickColor.new("Bright blue"), "JetPackPart02", vt())
  1343. local jprt3 = part(3, modelz, 0, 0, BrickColor.new("Fossil"), "JetPackPart03", vt())
  1344. local jprt4 = part(3, modelz, 0, 0, BrickColor.new("Fossil"), "JetPackPart04", vt())
  1345.  
  1346.  
  1347. msh1 = mesh("SpecialMesh", prt1, "Head", "nil", vt(0, 0, 0), vt(1.25, 1.25, 1.25))
  1348. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "3270017", vt(0, 0, 0), vt(0.36, 0.36, 0.4))
  1349. msh3 = mesh("SpecialMesh", prt3, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 1, 1))
  1350. msh4 = mesh("SpecialMesh", prt4, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 1, 1))
  1351. msh5 = mesh("CylinderMesh", prt5, "nil", "nil", vt(0, 0, 0), vt(1, 0.7, 1))
  1352. msh6 = mesh("SpecialMesh", prt6, "FileMesh", "3270017", vt(0, 0, 0), vt(0.66, 0.66, 0.4))
  1353. msh7 = mesh("SpecialMesh", prt7, "FileMesh", "3270017", vt(0, 0, 0), vt(0.56, 0.56, 0.4))
  1354. msh8 = mesh("SpecialMesh", prt8, "FileMesh", "3270017", vt(0, 0, 0), vt(0.46, 0.46, 0.4))
  1355. msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 1, 1))
  1356. msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 1, 1))
  1357. msh11 = mesh("CylinderMesh", prt11, "nil", "nil", vt(0, 0, 0), vt(1, 1, 1))
  1358. msh12 = mesh("CylinderMesh", prt12, "nil", "nil", vt(0, 0, 0), vt(1, 0.6, 1))
  1359. msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 1, 1))
  1360. msh14 = mesh("SpecialMesh", prt14, "Wedge", "nil", vt(0, 0, 0), vt(0.3, 1, 1))
  1361. msh15 = mesh("SpecialMesh", prt15, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 1, 1))
  1362. msh16 = mesh("SpecialMesh", prt16, "Wedge", "nil", vt(0, 0, 0), vt(0.2, 1, 1))
  1363. msh17 = mesh("CylinderMesh",prt17, "nil", "nil", vt(0, 0, 0), vt(1, 0.6, 1))
  1364. msh18 = mesh("SpecialMesh", lprt1, "Cylinder", "nil", vt(0, 0, 0), vt(8, 8, 8))
  1365. msh19 = mesh("SpecialMesh", lprt2, "Cylinder", "nil", vt(0, 0, 0), vt(8.1, 6, 6))
  1366.  
  1367. msh20 = mesh("SpecialMesh", jprt1, "Cylinder", "nil", vt(0, 0, 0), vt(9, 5, 9))
  1368. msh21 = mesh("SpecialMesh", jprt2, "Cylinder", "nil", vt(0, 0, 0), vt(9, 5, 9))
  1369. msh22 = mesh("SpecialMesh", jprt3, "Cylinder", "nil", vt(0, 0, 0), vt(8, 4.1, 8))
  1370. msh23 = mesh("SpecialMesh", jprt4, "Cylinder", "nil", vt(0, 0, 0), vt(8, 4.1, 8))
  1371.  
  1372.  
  1373.  
  1374. local wld1 = weld(prt1, RightArm, prt1, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0))
  1375. local wld2 = weld(prt2, prt2, prt1, CFrame.new(-0.00384140015, -0.00532531738, -1.68005371, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1376. local wld3 = weld(prt3, prt3, prt1, CFrame.new(0.00354766846, -0.370056152, -1.43004799, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1377. local wld4 = weld(prt4, prt4, prt1, CFrame.new(0.00352859497, -0.369958878, -1.42765236, -1.00000012, 0, -1.49011612e-008, -1.49011612e-008, -1.20550394e-005, 1.00000012, 0, 1, 1.20550394e-005))
  1378. local wld5 = weld(prt5, prt5, prt1, CFrame.new(0.0129852295, -2.13006783, 0.00592422485, 1.00000012, 0, 1.49011612e-008, 0, 0.999999881, 0, 1.49011612e-008, 0, 1.00000024))
  1379. local wld6 = weld(prt6, prt6, prt1, CFrame.new(0.00390625, -0.00534248352, -2.05002022, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1380. local wld7 = weld(prt7, prt7, prt1, CFrame.new(-0.00387191772, -0.00531578064, -1.93005562, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1381. local wld8 = weld(prt8, prt8, prt1, CFrame.new(0.00385665894, -0.00532913208, -1.80008698, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1382. local wld9 = weld(prt9, prt9, prt1, CFrame.new(-0.00353240967, -0.455041885, -1.42506218, 1.00000012, 0, 1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, 1, 1.20550394e-005))
  1383. local wld10 = weld(prt10, prt10, prt1, CFrame.new(0.00356674194, -0.450021744, -1.42271805, -1.00000012, 0, -1.49011612e-008, -1.49011612e-008, -1.20550394e-005, 1.00000012, 0, 1, 1.20550394e-005))
  1384. local wld11 = weld(prt11, prt11, prt1, CFrame.new( 0.00299453735, -1.60002708, -0.00408935547, 1.00000012, 0, 1.49011612e-008, 0, 0.999999881, 0, 1.49011612e-008, 0, 1.00000024))
  1385. local wld12 = weld(prt12, prt12, prt1, CFrame.new(-0.00701522827, -2.13006783, 0.00593757629, 1.00000012, 0, 1.49011612e-008, 0, 0.999999881, 0, 1.49011612e-008, 0, 1.00000024))
  1386. local wld13 = weld(prt13, prt13, prt1, CFrame.new(-0.00360488892, -0.349973679, 3.86009598, 1.00000012, 0, 1.49011612e-008, -1.49011612e-008, -1.20550394e-005, 1.00000012, 0, -1, -1.20550394e-005))
  1387. local wld14 = weld(prt14, prt14, prt1, CFrame.new(0.00352859497, -0.370072365, 4.33011818, -1.00000012, 0, -1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, -1, -1.20550394e-005))
  1388. local wld15 = weld(prt15, prt15, prt1, CFrame.new(0.00355911255, -0.580039024, 4.67011833, -1.00000012, 0, -1.49011612e-008, 1.49011612e-008, 1.20550394e-005, -1.00000012, 0, -1, -1.20550394e-005))
  1389. local wld16 = weld(prt16, prt16, prt1, CFrame.new(-0.00355911255, -0.559984207, 4.10012627, 1.00000012, 0, 1.49011612e-008, -1.49011612e-008, -1.20550394e-005, 1.00000012, 0, -1, -1.20550394e-005))
  1390. local wld17 = weld(prt17, prt17, prt1, CFrame.new(-0.0069770813, 1.31992149, 0.0109214783, 1.00000012, 0, 1.49011612e-008, 0, 0.999999881, 0, 1.49011612e-008, 0, 1.00000024))
  1391.  
  1392. local wld16 = weld(lprt1, LeftArm, lprt1, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1393. local wld17 = weld(lprt2, LeftArm, lprt2, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1394.  
  1395. local wld18 = weld(lprt1, Torso, jprt1, CFrame.new(-0.5,0.05,0.5) * angles(0,1.6,1.6))
  1396. local wld19 = weld(lprt2, Torso, jprt2, CFrame.new(0.5,0.05,0.5) * angles(0,1.6,1.6))
  1397. local wld18 = weld(lprt1, Torso, jprt3, CFrame.new(0.5,-0.051,0.5) * angles(0,1.6,1.6))
  1398. local wld19 = weld(lprt2, Torso, jprt4, CFrame.new(-0.5,-0.051,0.5) * angles(0,1.6,1.6))
  1399.  
  1400. for i,v in pairs(modelzorz:children()) do
  1401. if v:IsA("Part") then
  1402.  
  1403. v.Transparency = 1
  1404.  
  1405. end
  1406. end
  1407.  
  1408.  
  1409. for i,v in pairs(modelz:children()) do
  1410. if v:IsA("Part") then
  1411.  
  1412. v.Transparency = 1
  1413.  
  1414. end
  1415. end
  1416.  
  1417. StaggerAnim = function()
  1418. attack = true
  1419. removeControl()
  1420. showDamage(Character, "Staggered", "Interrupt")
  1421. for i = 0, 1, 0.35 do
  1422. swait()
  1423. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1424. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  1425. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  1426. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  1427. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1428. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1429. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1430. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.4, -0.2, 0.4), 0.3)
  1431. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1432. end
  1433. for i = 0, 1, 0.2 do
  1434. swait()
  1435. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1436. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  1437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.4, 0, 0.6), 0.3)
  1438. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.6, 0, 0.6) * euler(0, 0.4, 0), 0.3)
  1439. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1440. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1441. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1442. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.5, -0.2, 0.5), 0.3)
  1443. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1444. end
  1445. for i = 0, 1, 0.1 do
  1446. swait()
  1447.  
  1448. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  1449. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, 0.4), 0.3)
  1450. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.6, 0, -0.4), 0.3)
  1451. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1452. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.3, 0), 0.3)
  1453. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1454. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.2, 0) * euler(-0.4, 0, 1.2), 0.3)
  1455. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.8) * euler(0, -1.57, 0) * euler(0, 0.2, -0.1), 0.3)
  1456. end
  1457. for i = 1, 40 do
  1458. swait()
  1459. if StunT.Value <= Stun.Value then
  1460. break
  1461. end
  1462. end
  1463. do
  1464. resumeControl()
  1465. combo = 0
  1466. attack = false
  1467. end
  1468. end
  1469.  
  1470. StaggerHitt = function()
  1471. attack = true
  1472. for i = 0, 1, 0.1 do
  1473. swait()
  1474. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  1475. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  1476. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  1477. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1478. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1479. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1480. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.2, -0.2), 0.3)
  1481. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1482. end
  1483. attack = false
  1484. end
  1485. local Color1 = Torso.BrickColor
  1486. local fengui = it("GuiMain")
  1487. fengui.Parent = Player.PlayerGui
  1488. fengui.Name = "WeaponGUI"
  1489. local fenframe = it("Frame")
  1490. fenframe.Parent = fengui
  1491. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1492. fenframe.BackgroundTransparency = 1
  1493. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  1494. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  1495. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  1496. local fenframe2 = it("Frame")
  1497. fenframe2.Parent = fengui
  1498. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  1499. fenframe2.BackgroundTransparency = 1
  1500. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  1501. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  1502. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  1503. local fenframe3 = it("Frame")
  1504. fenframe3.Parent = fengui
  1505. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  1506. fenframe3.BackgroundTransparency = 1
  1507. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  1508. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  1509. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  1510. local fenframe4 = it("Frame")
  1511. fenframe4.Parent = fengui
  1512. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  1513. fenframe4.BackgroundTransparency = 1
  1514. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  1515. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  1516. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  1517. local pressedf = false
  1518. local fenframe5 = it("Frame")
  1519. fenframe5.Parent = fengui
  1520. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  1521. fenframe5.BackgroundTransparency = 1
  1522. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  1523. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  1524. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  1525. fenframe5.ZIndex = 2
  1526. local tellbar = gui("TextLabel", fenframe5, "Press 'F' to Equip your Weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  1527. tellbar.Font = "Arial"
  1528. tellbar.TextScaled = true
  1529. tellbar.TextTransparency = 1
  1530. tellbar.TextStrokeTransparency = 1
  1531. tellbar.ZIndex = 2
  1532. local fnumb = 0
  1533. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1534. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1535. 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))
  1536. local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.6, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1537. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.6, 0, 0, 0), UDim2.new(0, 0, -2, 0))
  1538. local fenbarblock3 = gui("TextLabel", fenframe, "Fuel(" .. Flight .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.6, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  1539. 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))
  1540. 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))
  1541. 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))
  1542. 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))
  1543. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1544. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1545. 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))
  1546. 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))
  1547. 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))
  1548. 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))
  1549. fenbarmove1.ZIndex = 2
  1550. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1551. 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))
  1552. fenbarmove2.ZIndex = 2
  1553. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1554. 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))
  1555. fenbarmove3.ZIndex = 2
  1556. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1557. 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))
  1558. fenbarmove4.ZIndex = 2
  1559. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1560.  
  1561. local mananum = 0
  1562. local donum = 0
  1563. local stunnum = 0
  1564. local staggeranim = false
  1565. local stunanim = false
  1566. local passivenum = 0
  1567. local walk = 0
  1568. local walkforw = true
  1569.  
  1570.  
  1571.  
  1572. Tool = Instance.new("HopperBin")
  1573. Tool.Parent = Backpack
  1574. Tool.Name = "Prototype: Plaser"
  1575. local Parent = Tool
  1576. Bin = Tool
  1577. if Bin.Name == "Techno" then
  1578. Bin.Name = "Prototype: Plaser"
  1579. end
  1580.  
  1581.  
  1582. combo = 0
  1583. ob1d = function(mouse)
  1584. if GuardStance == true and MMouse.Target ~= nil then
  1585. if MMouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent.Parent:findFirstChild("Torso") ~= nil then
  1586. Target = MMouse.Target.Parent.Parent
  1587. GuardStance = false
  1588. end
  1589. if MMouse.Target.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent:findFirstChild("Torso") ~= nil then
  1590. Target = MMouse.Target.Parent
  1591. GuardStance = false
  1592. end
  1593. end
  1594. if attack == true or equipped == false then
  1595. return
  1596. end
  1597. hold = true
  1598. if combo == 0 and not Fly then
  1599. combo = 1
  1600. attackone()
  1601. else
  1602. if combo == 1 and not Fly then
  1603. combo = 2
  1604. attacktwo()
  1605. else
  1606. if combo == 2 and not Fly then
  1607. combo = 3
  1608. attackthree()
  1609. else
  1610. if combo == 3 and not Fly then
  1611. combo = 0
  1612. attackfour()
  1613. else
  1614. if Fly then
  1615.  
  1616. attackfive()
  1617. end
  1618. end
  1619. end
  1620. end
  1621. end
  1622. coroutine.resume(coroutine.create(function()
  1623. for i = 1, 50 do
  1624. if attack == false then
  1625. swait()
  1626. end
  1627. end
  1628. if attack == false then
  1629. combo = 0
  1630. end
  1631. end))
  1632. end
  1633.  
  1634.  
  1635. ob1u = function(mouse)
  1636. hold = false
  1637. end
  1638. do1 = function()
  1639.  
  1640. if mana.Value < 20 then
  1641. return
  1642. end
  1643.  
  1644. if cooldowns[1] < 20 then
  1645. return
  1646. end
  1647. if attack == true then
  1648. return
  1649. end
  1650. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1651. return
  1652. end
  1653. cooldowns[1] = cooldowns[1] - 20
  1654. mana.Value = mana.Value - 20
  1655. attack = true
  1656. attack = true
  1657. dec = Instance.new("NumberValue", Decrease)
  1658. dec.Name = "DecreaseMvmt"
  1659. dec.Value = 2.5
  1660. for i = 1,10 do
  1661. wait()
  1662.  
  1663. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1664. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1665. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1666. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1667. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1668. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1669. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1670. end
  1671. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  1672. Laser1()
  1673. so("156572165", lprt1, 1, 0.75)
  1674. for i = 1,10 do
  1675. wait()
  1676.  
  1677. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1678. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1679. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1680. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.2), 0.3)
  1681. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1682. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1683. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1684. end
  1685. dec:Remove()
  1686. attack = false
  1687.  
  1688.  
  1689. attack = false
  1690. end
  1691.  
  1692. do2 = function()
  1693. if cooldowns[2] ~= 150 then
  1694. return
  1695. end
  1696. if mana.Value < 30 then
  1697. return
  1698. end
  1699. if attack == true then
  1700. return
  1701. end
  1702. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1703. return
  1704. end
  1705.  
  1706. mana.Value = mana.Value - 30
  1707. cooldowns[2] = 0
  1708.  
  1709. attack = true
  1710. dec = Instance.new("NumberValue", Decrease)
  1711. dec.Name = "DecreaseMvmt"
  1712. dec.Value = 10
  1713. RecentEnemy.Value = nil
  1714. so("RandSlash", prt14, 1, math.random(80, 120) / 100)
  1715. RootPart.Velocity = RootPart.CFrame.lookVector * 100
  1716. for i = 1,10 do
  1717. wait()
  1718. MagniDamage(prt14, 3, 5, 8, 0, "Normal", RootPart, 0.3, 2, 20, nil, true)
  1719. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.6), 0.3)
  1720. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(0,1.6,3.2), 0.2)
  1721. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,1.6), 0.3)
  1722. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.1) * euler(0, 0, 1.6), 0.3)
  1723. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1), 0.3)
  1724. RH.C0 = clerp(RH.C0, cf(0.5, -1, 0.5) * euler(0, 1.57, 0) * euler(0.3, -1.6, 0), 0.3)
  1725. LH.C0 = clerp(LH.C0, cf(-0.5, -1, -0.5) * euler(0, -1.57, 0) * euler(-0.3, -1.6, 0), 0.3)
  1726. end
  1727.  
  1728.  
  1729. if RecentEnemy.Value ~= nil then
  1730. local GWeld = Instance.new("Weld", prt14)
  1731. GWeld.Part0 = RecentEnemy.Value.Torso
  1732. GWeld.Part1 = prt14
  1733. GWeld.C0 = cf(0,0,-2) * angles(3.2,0,0)
  1734. RecentEnemy.Value.Humanoid.PlatformStand = true
  1735.  
  1736. for i = 1,100 do
  1737. wait()
  1738. MagniDamage(prt14, 3, 7, 8, math.random(5, 10), "Steal", RootPart, 1.5, 2, (math.random(2, 5)), nil, true)
  1739. Neck.C0 = clerp(Neck.C0, necko * euler(-0, 0.5, -1.6), 0.3)
  1740. GWeld.C0 = clerp(GWeld.C0, cf(0,0,2) * angles(3.2,0,0), 0.01)
  1741. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(0,1.6,3.2), 0.2)
  1742. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,1.6), 0.3)
  1743. RW.C0 = clerp(RW.C0, cf(1.5, 0.8, -0.1) * euler(0, 0, 2.6), 0.3)
  1744. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1), 0.3)
  1745. RH.C0 = clerp(RH.C0, cf(0.5, -1, 0.5) * euler(0, 1.57, 0) * euler(0.3, -1.6, 0), 0.3)
  1746. LH.C0 = clerp(LH.C0, cf(-0.5, -1, -0.5) * euler(0, -1.57, 0) * euler(-0.3, -1.6, 0), 0.3)
  1747. end
  1748. RecentEnemy.Value.Humanoid.PlatformStand = false
  1749. GWeld:Remove()
  1750. end
  1751.  
  1752. dec:Remove()
  1753. attack = false
  1754.  
  1755. end
  1756.  
  1757. do3 = function()
  1758. if cooldowns[3] ~= 150 then
  1759. return
  1760. end
  1761. if mana.Value < 50 then
  1762. return
  1763. end
  1764. if attack == true then
  1765. return
  1766. end
  1767. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1768. return
  1769. end
  1770.  
  1771. cooldowns[3] = 0
  1772. mana.Value = mana.Value - 50
  1773. attack = true
  1774. dec = Instance.new("NumberValue", Decrease)
  1775. dec.Name = "DecreaseMvmt"
  1776. dec.Value = 10
  1777. for i = 1,10 do
  1778. wait()
  1779.  
  1780. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0.3), 0.3)
  1781. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1782. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.3) * euler(0,0,-0.3), 0.3)
  1783. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1784. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, 0), 0.3)
  1785. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(-0.5, 1.57, 0) * euler(0, 0, 0), 0.3)
  1786. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1787.  
  1788. end
  1789.  
  1790.  
  1791. for i = 1,10 do
  1792. wait()
  1793.  
  1794. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0.3), 0.3)
  1795. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1796. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.3) * euler(0.6,0,-0.3), 0.3)
  1797. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1798. LW.C0 = clerp(LW.C0, cf(-1.5, 0, -0.5) * euler(0.5, 0, 0), 0.3)
  1799. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(0.5, 1.57, 0) * euler(0, 0, 0), 0.3)
  1800. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0.5, -1.57, 0) * euler(0, 0, 0), 0.3)
  1801.  
  1802. end
  1803.  
  1804. local dref = part(3, modelzorz, 0, 1, BrickColor.new("Bright yellow"), "Part04", vt())
  1805. dref.Anchored = true
  1806. dref.Position = RootPart.Position - Vector3.new(0,3,0)
  1807. coroutine.resume(coroutine.create(function()
  1808. for i = 1,30 do
  1809. wait(1)
  1810. MagniDamage(dref, 30, 7, 9, math.random(100, 120), "Steal", RootPart, 0, 1, (math.random(5, 15)), true, nil, false)
  1811. MagicCircle(BrickColor.new("Bright blue"),"Neon", cf(dref.Position) * cf(0, 0, 0), 1, 2, 1, 10, 0, 10, 0.03)
  1812. MagicCircle(BrickColor.new("Bright blue"),"Neon", cf(dref.Position) * cf(0, 0, 0), 1, 2, 1, 10, 10, 10, 0.03)
  1813. so("199145264", dref, 1, 1)
  1814.  
  1815. end
  1816. end))
  1817. dec:Remove()
  1818.  
  1819. attack = false
  1820.  
  1821. end
  1822.  
  1823. do4 = function()
  1824. if cooldowns[4] ~= 150 then
  1825. return
  1826. end
  1827. if mana.Value < 100 then
  1828. return
  1829. end
  1830. if attack == true then
  1831. return
  1832. end
  1833. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1834. return
  1835. end
  1836.  
  1837. cooldowns[4] = 0
  1838. mana.Value = mana.Value - 100
  1839.  
  1840. attack = true
  1841. dec = Instance.new("NumberValue", Decrease)
  1842. dec.Name = "DecreaseMvmt"
  1843. dec.Value = 2.5
  1844. so("203691346", lprt1, 1, 1)
  1845. for i = 1,100 do
  1846. wait()
  1847. local block = MagicBlock(BrickColor.new("Cyan"), LeftArm.CFrame * cf(0,-3,0), 2,2,2,1,1,1,0.05,1)
  1848. block.Material = "Neon"
  1849. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1850. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1851. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1852. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1853. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1854. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1855. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1856. end
  1857. Laser2()
  1858. so("156572165", lprt1, 1, 0.75)
  1859. for i = 1,10 do
  1860. wait()
  1861.  
  1862. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1863. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1864. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1865. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.2), 0.3)
  1866. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1867. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1868. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1869. end
  1870. dec:Remove()
  1871. attack = false
  1872.  
  1873. end
  1874.  
  1875. attackone = function()
  1876. attack = true
  1877. dec = Instance.new("NumberValue", Decrease)
  1878. dec.Name = "DecreaseMvmt"
  1879. dec.Value = 2.5
  1880.  
  1881. for i = 1,15 do
  1882. wait()
  1883. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6), 0.15)
  1884. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(1.6 + i,0,0), 0.5)
  1885. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,-0.6), 0.15)
  1886. RW.C0 = clerp(RW.C0, cf(1.2, 0.6, 0) * euler(0, 0, 2.6), 0.15)
  1887. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.1), 0.15)
  1888. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0), 0.2)
  1889. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0.05, 0, 0), 0.2)
  1890. end
  1891. so("RandSlash", prt14, 1, math.random(80, 120) / 100)
  1892. for i = 1,20 do
  1893. wait()
  1894. MagniDamage(prt14, 3, 8, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(10, 15)), nil, true)
  1895. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6), 0.3)
  1896. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1897. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,0.6), 0.3)
  1898. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.3) * euler(1, 0.6, -0.5), 0.3)
  1899. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.1), 0.3)
  1900. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.3, 0, 0), 0.3)
  1901. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1902. end
  1903. dec:Remove()
  1904. attack = false
  1905. end
  1906.  
  1907. attacktwo = function()
  1908. attack = true
  1909. dec = Instance.new("NumberValue", Decrease)
  1910. dec.Name = "DecreaseMvmt"
  1911. dec.Value = 2.5
  1912. for i = 1,15 do
  1913. wait()
  1914. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6), 0.15)
  1915. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(1.6,0,0), 0.5)
  1916. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-0.6), 0.15)
  1917. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.1) * euler(0, 0.3, 1.6), 0.15)
  1918. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.1), 0.15)
  1919. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.3, 0, 0), 0.2)
  1920. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  1921. end
  1922. so("RandSlash", prt14, 1, math.random(80, 120) / 100)
  1923. for i = 1,10 do
  1924. wait()
  1925. MagniDamage(prt14, 3, 8, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(10, 15)), nil, true)
  1926. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.5)
  1927. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.5)
  1928. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,1), 0.5)
  1929. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.1) * euler(0, 0.8, 1.6), 0.15)
  1930. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.1), 0.15)
  1931. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0.3, 1.57, 0) * euler(0, 0, 0), 0.2)
  1932. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0) * euler(-0.1, -1.57, 0) * euler(-0.3, 0, 0), 0.2)
  1933. end
  1934. dec:Remove()
  1935. attack = false
  1936. end
  1937.  
  1938. attackthree = function()
  1939. attack = true
  1940. dec = Instance.new("NumberValue", Decrease)
  1941. dec.Name = "DecreaseMvmt"
  1942. dec.Value = 2.5
  1943. for i = 1,15 do
  1944. wait()
  1945. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6), 0.15)
  1946. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(0,0,3.2), 0.5)
  1947. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-0.6), 0.15)
  1948. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.1) * euler(1.6, 0, -0.5), 0.15)
  1949. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.1), 0.15)
  1950. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.3, 0, 0), 0.2)
  1951. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  1952. end
  1953. so("RandSlash", prt14, 1, math.random(80, 120) / 100)
  1954. RootPart.Velocity = RootPart.CFrame.lookVector * 100
  1955. for i = 1,20 do
  1956. wait()
  1957.  
  1958. MagniDamage(prt14, 3, 10, 13, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(10, 15)), nil, true)
  1959. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.6), 0.3)
  1960. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(0,1.6,3.2), 0.2)
  1961. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,1.6), 0.3)
  1962. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.1) * euler(0, 0, 1.6), 0.3)
  1963. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1), 0.3)
  1964. RH.C0 = clerp(RH.C0, cf(0.5, -1, 0.5) * euler(0, 1.57, 0) * euler(0.3, -1.6, 0), 0.3)
  1965. LH.C0 = clerp(LH.C0, cf(-0.5, -1, -0.5) * euler(0, -1.57, 0) * euler(-0.3, -1.6, 0), 0.3)
  1966. end
  1967. dec:Remove()
  1968. attack = false
  1969. end
  1970.  
  1971.  
  1972.  
  1973. attackfour = function()
  1974.  
  1975. attack = true
  1976. dec = Instance.new("NumberValue", Decrease)
  1977. dec.Name = "DecreaseMvmt"
  1978. dec.Value = 2.5
  1979. for i = 1,20 do
  1980. wait()
  1981.  
  1982. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1983. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1984. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1985. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1986. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1987. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1988. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1989. end
  1990. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  1991. Laser1()
  1992. so("156572165", lprt1, 1, 0.75)
  1993. for i = 1,10 do
  1994. wait()
  1995.  
  1996. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1997. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0), 0.2)
  1998. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1999. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.2), 0.3)
  2000. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  2001. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  2002. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  2003. end
  2004. dec:Remove()
  2005. attack = false
  2006.  
  2007. end
  2008.  
  2009.  
  2010.  
  2011. attackfive = function()
  2012.  
  2013. attack = true
  2014. dec = Instance.new("NumberValue", Decrease)
  2015. dec.Name = "DecreaseMvmt"
  2016. dec.Value = 10
  2017. for i = 1,15 do
  2018. wait()
  2019.  
  2020. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2021. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0),0.2)
  2022. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, donum + 1) * euler(0,0,0) , 0.3)
  2023. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + donum / 4 , 0) * euler(0, 0, 0.1 + donum / 4), 0.3)
  2024. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + donum / 4, -0.3) * euler(1.6, 0, 0.1), 0.3)
  2025. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * euler(-0.3, 1.57, 0) * euler(0, 0, 0) , 0.3)
  2026. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  2027.  
  2028. end
  2029. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  2030. Laser1()
  2031. so("156572165", lprt1, 1, 0.75)
  2032.  
  2033. dec:Remove()
  2034. attack = false
  2035.  
  2036. end
  2037.  
  2038. Laser1 = function()
  2039. table.insert(Effects, {RootPart.CFrame.lookVector, "Shoot", 30, lprt1.Position + Vector3.new(0,0,0), 13, 15, 0, 1})
  2040. end
  2041.  
  2042. Laser2 = function()
  2043. table.insert(Effects, {RootPart.CFrame.lookVector, "Shoot", 150, RootPart.Position, 36, 48, 0, 2})
  2044. end
  2045.  
  2046. equipanim = function()
  2047. attack = true
  2048.  
  2049. ddec = Instance.new("NumberValue", Decrease)
  2050. ddec.Value = -2.1
  2051. ddec.Name = "DecreaseMvmt"
  2052.  
  2053. for i,v in pairs(modelzorz:children()) do
  2054. coroutine.resume(coroutine.create(function()
  2055. if v:IsA("Part") then
  2056.  
  2057. if v.BrickColor ~= BrickColor.new("Bright blue") then
  2058. for i = 1,10 do
  2059. wait()
  2060. v.Transparency = v.Transparency - 0.1
  2061. end
  2062. end
  2063. if v.BrickColor == BrickColor.new("Bright blue") then
  2064. for i = 1,5 do
  2065. wait()
  2066. v.Transparency = v.Transparency - 0.1
  2067. end
  2068. end
  2069. end
  2070. end))
  2071. end
  2072. for i,v in pairs(modelz:children()) do
  2073. coroutine.resume(coroutine.create(function()
  2074. if v:IsA("Part") then
  2075. for i = 1,10 do
  2076. wait()
  2077. v.Transparency = v.Transparency - 0.1
  2078. end
  2079. end
  2080. end))
  2081. end
  2082. end
  2083.  
  2084. hideanim = function()
  2085. attack = true
  2086. ddec:Remove()
  2087. decreasedef = 0
  2088. for i,v in pairs(modelzorz:children()) do
  2089.  
  2090. coroutine.resume(coroutine.create(function()
  2091. if v:IsA("Part") then
  2092. if v.BrickColor ~= BrickColor.new("Bright blue") then
  2093. for i = 1,10 do
  2094. wait()
  2095. v.Transparency = v.Transparency + 0.1
  2096. end
  2097. end
  2098. if v.BrickColor == BrickColor.new("Bright blue") then
  2099. for i = 1,5 do
  2100. wait()
  2101. v.Transparency = v.Transparency + 0.1
  2102. end
  2103. end
  2104. end
  2105. end))
  2106. end
  2107.  
  2108. for i,v in pairs(modelz:children()) do
  2109. coroutine.resume(coroutine.create(function()
  2110. if v:IsA("Part") then
  2111. for i = 1,10 do
  2112. wait()
  2113. v.Transparency = v.Transparency + 0.1
  2114. end
  2115. end
  2116. end))
  2117. end
  2118. for i = 1,10 do
  2119. wait()
  2120. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2121. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,0), 0.3)
  2122. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 , 0) * euler(0, 0, 0), 0.3)
  2123. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  2124. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  2125. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0, 0, 0), 0.3)
  2126. end
  2127.  
  2128. end
  2129.  
  2130. fly = function()
  2131.  
  2132. if Fly == false then
  2133. Fly = true
  2134. bp = Instance.new("BodyPosition", Torso)
  2135. bp.Position = Torso.Position + Vector3.new(0, 50,0)
  2136. bp.MaxForce = Vector3.new(0,math.huge,0)
  2137. else
  2138. Fly = false
  2139. for i,v in pairs(Torso:children()) do
  2140. if v:IsA("BodyPosition") then
  2141.  
  2142. v:Remove()
  2143.  
  2144. end
  2145. end
  2146. end
  2147. end
  2148.  
  2149. buttonhold = false
  2150. fenbarmove1.MouseButton1Click:connect(do1)
  2151. fenbarmove2.MouseButton1Click:connect(do2)
  2152. fenbarmove3.MouseButton1Click:connect(do3)
  2153. fenbarmove4.MouseButton1Click:connect(do4)
  2154. eul = 0
  2155. equipped = false
  2156.  
  2157. key = function(key)
  2158. if key == "e" and not attack and equipped and Flight > 50 then
  2159. fly()
  2160. end
  2161. if attack == true then
  2162. return
  2163. end
  2164.  
  2165. if key == "f" then
  2166. pressedf = true
  2167. fnumb = 0
  2168. attack = true
  2169. if equipped == false then
  2170. equipped = true
  2171. RSH = ch.Torso["Right Shoulder"]
  2172. LSH = ch.Torso["Left Shoulder"]
  2173. RSH.Parent = nil
  2174. LSH.Parent = nil
  2175. RW.Name = "Right Shoulder"
  2176. RW.Part0 = ch.Torso
  2177. RW.C0 = cf(1.5, 0.5, 0)
  2178. RW.C1 = cf(0, 0.5, 0)
  2179. RW.Part1 = ch["Right Arm"]
  2180. RW.Parent = ch.Torso
  2181. LW.Name = "Left Shoulder"
  2182. LW.Part0 = ch.Torso
  2183. LW.C0 = cf(-1.5, 0.5, 0)
  2184. LW.C1 = cf(0, 0.5, 0)
  2185. LW.Part1 = ch["Left Arm"]
  2186. LW.Parent = ch.Torso
  2187. Animate.Parent = nil
  2188. equipanim()
  2189. else
  2190. equipped = false
  2191. hideanim()
  2192. LH.C1 = LHC1
  2193. RH.C1 = RHC1
  2194. Animate.Parent = Humanoid
  2195. swait(0)
  2196. RW.Parent = nil
  2197. LW.Parent = nil
  2198. RSH.Parent = player.Character.Torso
  2199. LSH.Parent = player.Character.Torso
  2200. end
  2201. attack = false
  2202. end
  2203. if equipped == false then
  2204. return
  2205. end
  2206. if Fly then
  2207. return
  2208. end
  2209. if key == "z" and equipped then
  2210. do1()
  2211. end
  2212. if key == "x" and equipped then
  2213. do2()
  2214. end
  2215. if key == "c" and equipped then
  2216. do3()
  2217. end
  2218. if key == "v" and equipped then
  2219. do4()
  2220. end
  2221.  
  2222. if attack == false then
  2223. RecentEnemy.Value = nil
  2224. end
  2225. end
  2226. key2 = function(key)
  2227. if key == "x" and equipped then
  2228.  
  2229. Charge = 0
  2230. Charging = false
  2231. end
  2232.  
  2233. end
  2234.  
  2235. s = function(mouse)
  2236.  
  2237. mouse.Button1Down:connect(function()
  2238. ob1d(mouse)
  2239. end)
  2240. mouse.Button1Up:connect(function()
  2241. ob1u(mouse)
  2242. end)
  2243. mouse.KeyDown:connect(key)
  2244. mouse.KeyUp:connect(key2)
  2245. player = Player
  2246. ch = Character
  2247. MMouse = mouse
  2248. end
  2249.  
  2250. ds = function(mouse)
  2251. end
  2252. Bin.Selected:connect(s)
  2253. Bin.Deselected:connect(ds)
  2254. print("Techno loaded.")
  2255. local mananum = 0
  2256. local donum = 0
  2257. local stunnum = 0
  2258. local staggeranim = false
  2259. local stunanim = false
  2260. local passivenum = 0
  2261. local walk = 0
  2262. local walkforw = true
  2263.  
  2264. local sine = 0
  2265. local change = 1
  2266. local val = 0
  2267.  
  2268. coroutine.resume(coroutine.create(function()
  2269. while wait(0.25) do
  2270. if Flight > 499 then
  2271. Flight = 500
  2272. end
  2273. if Flight < 500 and not Fly then
  2274. Flight = Flight + 1
  2275. end
  2276. if Fly then
  2277. Flight = Flight - 1
  2278. end
  2279. if Flight < 1 then
  2280. Flight = 0
  2281. end
  2282. if Fly and Flight < 1 then
  2283. fly()
  2284. Flight = 0
  2285. end
  2286. end
  2287. end))
  2288.  
  2289. while 1 do
  2290. swait()
  2291.  
  2292. if Humanoid.Health <= 0 then
  2293. attack = true
  2294. resumeControl()
  2295. end
  2296. do
  2297. if fnumb < 21 then
  2298. fnumb = fnumb + 1
  2299. if pressedf == false then
  2300. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  2301. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  2302. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  2303. else
  2304. if fnumb == 20 then
  2305. fenframe5.Parent = nil
  2306. print("daigui")
  2307. end
  2308. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  2309. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  2310. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  2311. end
  2312. end
  2313.  
  2314. passivenum = passivenum + 1
  2315. if 80 <= passivenum then
  2316. passivenum = 0
  2317. end
  2318. if Stagger.Value == true and staggeranim == false then
  2319. coroutine.resume(coroutine.create(function()
  2320. staggeranim = true
  2321. while attack == true do
  2322. swait()
  2323. end
  2324. StaggerAnim()
  2325. StaggerHit.Value = false
  2326. Stagger.Value = false
  2327. staggeranim = false
  2328. end))
  2329. end
  2330. if StaggerHit.Value == true and staggeranim == false then
  2331. coroutine.resume(coroutine.create(function()
  2332. staggeranim = true
  2333. while attack == true do
  2334. swait()
  2335. end
  2336. StaggerHitt()
  2337. StaggerHit.Value = false
  2338. Stagger.Value = false
  2339. staggeranim = false
  2340. end))
  2341. end
  2342. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  2343. Humanoid.WalkSpeed = 0
  2344. else
  2345. Humanoid.WalkSpeed = 16 * Mvmt.Value
  2346. end
  2347. if StunT.Value <= Stun.Value and stunanim == false then
  2348. coroutine.resume(coroutine.create(function()
  2349. stunanim = true
  2350. while attack == true do
  2351. swait()
  2352. end
  2353. StunAnim()
  2354. Stun.Value = 0
  2355. stunanim = false
  2356. end))
  2357. end
  2358. local stunnum2 = 20
  2359. if Mode == "Defensive" then
  2360. stunnum2 = 20
  2361. else
  2362. stunnum2 = 60
  2363. end
  2364. if stunnum2 <= stunnum then
  2365. if 0 < Stun.Value then
  2366. Stun.Value = Stun.Value - 1
  2367. end
  2368. stunnum = 0
  2369. end
  2370. stunnum = stunnum + 1
  2371. if 0.3 <= donum then
  2372. handidle = true
  2373. else
  2374. if donum <= 0 then
  2375. handidle = false
  2376. end
  2377. end
  2378. if handidle == false then
  2379. donum = donum + 0.003
  2380. else
  2381. donum = donum - 0.003
  2382. end
  2383.  
  2384.  
  2385. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2386. local velderp = RootPart.Velocity.y
  2387. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2388. if equipped == true then
  2389. if attack == false then
  2390. idle = idle + 1
  2391. else
  2392. idle = 0
  2393. end
  2394.  
  2395. if Fly and 2 < torvel and not attack then
  2396. Anim = "Flying"
  2397.  
  2398. Neck.C0 = clerp(Neck.C0, necko * euler(-0.8, 0, 0), 0.2)
  2399. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0),0.8)
  2400. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, donum + 1) * euler(1,0,0) , 0.15)
  2401. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + donum / 4 , 0) * euler(0, 0, 0.1 + donum / 4), 0.15)
  2402. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + donum / 4, -0.3) * euler(1.6, 0, 1.3), 0.15)
  2403. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * euler(-0.3, 1.57, 0) * euler(0, 0, 0) , 0.2)
  2404. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  2405.  
  2406. end
  2407.  
  2408.  
  2409. if Fly and torvel < 1 and not attack then
  2410. Anim = "Flying"
  2411.  
  2412. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2)
  2413. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0),0.8)
  2414. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, donum + 1) * euler(0,0,0) , 0.15)
  2415. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + donum / 4 , 0) * euler(0, 0, 0.1 + donum / 4), 0.15)
  2416. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + donum / 4, -0.3) * euler(1.6, 0, 1.3), 0.15)
  2417. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * euler(-0.3, 1.57, 0) * euler(0, 0, 0) , 0.2)
  2418. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  2419.  
  2420. end
  2421.  
  2422. if 1 < RootPart.Velocity.y and hitfloor == nil and not Fly then
  2423. Anim = "Jump"
  2424. if attack == false then
  2425.  
  2426. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.2)
  2427. RootJoint.C0 = clerp(RootJoint.C0, RootCF * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Z / 30, math.rad(5 * math.cos(sine / 8))), 0.2)
  2428. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.2)
  2429. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2430. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.2)
  2431. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2432. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2433. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2434. end
  2435. else
  2436. if RootPart.Velocity.y < -1 and hitfloor == nil and not Fly then
  2437. Anim = "Fall"
  2438. if attack == false then
  2439.  
  2440. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  2441. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2442.  
  2443. RootJoint.C0 = clerp(RootJoint.C0, RootCF * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Z / 30, math.rad(5 * math.cos(sine / 8))), 0.2)
  2444. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  2445. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2446. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  2447. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2448. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2449. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2450. end
  2451. else
  2452. if torvel < 1 and hitfloor ~= nil and not Fly then
  2453. Anim = "Idle"
  2454. if attack == false then
  2455. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6), 0.15)
  2456. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,0.6), 0.15)
  2457. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + donum / 4 , 0) * euler(0, 0, 0.1 + donum / 4), 0.15)
  2458. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + donum / 4, 0) * euler(0, 0, -0.1 - donum / 4), 0.15)
  2459. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0), 0.2)
  2460. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0.05, 0, 0), 0.2)
  2461. end
  2462. else
  2463. if 2 < torvel and hitfloor ~= nil and not Fly then
  2464. Anim = "Walk"
  2465. walk = walk + 1
  2466. if 15 - 5 * Mvmt.Value <= walk then
  2467. walk = 0
  2468. if walkforw == true then
  2469. walkforw = false
  2470. else
  2471. if walkforw == false then
  2472. walkforw = true
  2473. end
  2474. end
  2475. end
  2476. if attack == false then
  2477. change = 2
  2478. Neck.C0 = clerp(Neck.C0, necko * euler(-1, 0, 0), 0.2)
  2479. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0,0,donum + 0.5) * angles(1.6,0,0), 0.2)
  2480. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, -0) * euler(-0.3, 0, 0.3), 0.2)
  2481. LW.C0 = clerp(LW.C0, cf(-1.5, 0.6, -0) * euler(-0.3, -0, -0.3), 0.2)
  2482. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  2483. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  2484. end
  2485.  
  2486. end
  2487. end
  2488. end
  2489. end
  2490. end
  2491. if not attack and equipped and not Fly then
  2492. wld1.C0 = clerp(wld1.C0, CFrame.new(0,-1,0) * CFrame.Angles(-1.6,0,0),0.8)
  2493. end
  2494.  
  2495.  
  2496.  
  2497.  
  2498. if 0 < #Effects then
  2499. for e = 1, #Effects do
  2500. if Effects[e] ~= nil then
  2501. local Thing = Effects[e]
  2502. if Thing ~= nil then
  2503. local Part = Thing[1]
  2504. local Mode = Thing[2]
  2505. local Delay = Thing[3]
  2506. local IncX = Thing[4]
  2507. local IncY = Thing[5]
  2508. local IncZ = Thing[6]
  2509.  
  2510.  
  2511.  
  2512. if Thing[2]=="Shoot" then
  2513.  
  2514. local Look=Thing[1]
  2515. local hit,pos = rayCast(Thing[4],Look,50,modelzorz)
  2516. local mag=(Thing[4]-pos).magnitude
  2517. if Thing[8] == 1 then
  2518.  
  2519. MagicCylinder(BrickColor.new("Cyan"), "Neon",CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,3,0,3,0.1)
  2520. end
  2521. if Thing[8] == 2 then
  2522. MagicCylinder(BrickColor.new("Cyan"), "Neon",CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,10,0,10,0.1)
  2523. end
  2524. Thing[4]=Thing[4]+(Look*20)
  2525. Thing[3]=Thing[3]-1
  2526.  
  2527.  
  2528. if hit~=nil and hit.Name~="Effect" and hit.Parent ~= Character and hit.Parent ~= modelzorz and hit.Parent ~= modelz then
  2529. Thing[3]=0
  2530. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  2531. ref.Anchored = true
  2532. ref.CFrame = hit.CFrame
  2533. if Thing[8]==1 then
  2534. MagniDamage(ref, 15, 14, 18, math.random(5, 10), "Normal", ref, 1, 1, (math.random(3, 8)), nil, true)
  2535. elseif Thing[8]==2 then
  2536. MagniDamage(ref, 30, 76, 80, math.random(5, 10), "Steal2", ref, 1, 1, 100, nil, true)
  2537. end
  2538. ref=part(3,workspace,0,1,BrickColor.new("Cyan"),"Reference",vt())
  2539. ref.Anchored=true
  2540. ref.CFrame=cf(pos)
  2541.  
  2542. if Thing[8] == 1 then
  2543. MagicCircle(BrickColor.new("Cyan"), "Neon",cf(pos),5,5,5,5,5,5,0.03)
  2544. end
  2545.  
  2546. if Thing[8] == 2 then
  2547. MagicCircle(BrickColor.new("Cyan"), "Neon",cf(pos),5,5,5,10,10,10,0.03)
  2548. end
  2549. game:GetService("Debris"):AddItem(ref,1)
  2550. end
  2551. if Thing[3]<=0 then
  2552. table.remove(Effects,e)
  2553. end
  2554. end
  2555. do
  2556. do
  2557. if Thing[2] == "CylinderClang" then
  2558. if Thing[3] <= 1 then
  2559. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2560. Thing[7] = Thing[1].CFrame
  2561. effect("New Yeller", 0, Thing[8], Thing[7])
  2562. Thing[8] = Thing[7]
  2563. Thing[3] = Thing[3] + Thing[4]
  2564. else
  2565. Part.Parent = nil
  2566. table.remove(Effects, e)
  2567. end
  2568. end
  2569. if Thing[2] == "Wave" then
  2570. if Thing[4] <= Thing[5] then
  2571. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0, -Thing[3])
  2572. Thing[4] = Thing[4] + 1
  2573. MagniDamage(Thing[1], 7, 4, 7, 0, "Normal", RootPart, 0.5, 1, (math.random(7, 8)), nil, nil, true)
  2574. else
  2575. Thing[6].Parent = nil
  2576. Thing[7].Parent = nil
  2577. Thing[8].Enabled = false
  2578. Part.Transparency = 1
  2579. table.remove(Effects, e)
  2580. end
  2581. end
  2582. if Thing[2] == "FireWave" then
  2583. if Thing[3] <= Thing[4] then
  2584. Thing[1].CFrame = Thing[1].CFrame * euler(0, 1, 0)
  2585. Thing[3] = Thing[3] + 1
  2586. Thing[6].Scale = Thing[6].Scale + vt(Thing[5], 0, Thing[5])
  2587. else
  2588. Part.Parent = nil
  2589. table.remove(Effects, e)
  2590. end
  2591. end
  2592. if Thing[2] == "showDamage" then
  2593. if Thing[6] < Thing[5] then
  2594. Thing[6] = Thing[6] + 1
  2595. else
  2596. if Thing[6] < Thing[7] then
  2597. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  2598. Thing[6] = Thing[6] + 1
  2599. else
  2600. if Thing[6] < Thing[8] then
  2601. Thing[6] = Thing[6] + 1
  2602. else
  2603. if Thing[6] < Thing[9] then
  2604. Thing[6] = Thing[6] + 1
  2605. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  2606. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  2607. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  2608. else
  2609. Thing[1].Parent = nil
  2610. table.remove(Effects, e)
  2611. end
  2612. end
  2613. end
  2614. end
  2615. end
  2616. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" then
  2617. if Thing[1].Transparency <= 1 then
  2618. if Thing[2] == "Block1" then
  2619. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2620. Mesh = Thing[7]
  2621. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2622. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2623. else
  2624. if Thing[2] == "Block2" then
  2625. Thing[1].CFrame = Thing[1].CFrame
  2626. Mesh = Thing[7]
  2627. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2628. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2629. else
  2630. if Thing[2] == "Fire" then
  2631. Thing[1].CFrame = cf(Thing[1].Position) + vt(0, 0.2, 0)
  2632. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2634. else
  2635. if Thing[2] == "Cylinder" then
  2636. Mesh = Thing[7]
  2637. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2638. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2639. else
  2640. if Thing[2] == "Blood" then
  2641. Mesh = Thing[7]
  2642. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  2643. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2644. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2645. else
  2646. if Thing[2] == "Elec" then
  2647. Mesh = Thing[10]
  2648. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  2649. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2650. else
  2651. if Thing[2] == "Disappear" then
  2652. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2653. end
  2654. end
  2655. end
  2656. end
  2657. end
  2658. end
  2659. end
  2660. else
  2661. Part.Parent = nil
  2662. table.remove(Effects, e)
  2663. end
  2664. end
  2665. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out DO_STMT
  2666.  
  2667. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2668.  
  2669. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_STMT
  2670.  
  2671. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2672.  
  2673. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_STMT
  2674.  
  2675. end
  2676. end
  2677. end
  2678. end
  2679. end
  2680. end
  2681. do
  2682. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 200, 0)), nil, 1, 0.4, true)
  2683. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  2684. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  2685. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  2686. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  2687. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * Flight / 500, 0)), nil, 1, 0.4, true)
  2688. fenbarblock3.Text = "Fuel(" .. math.floor(Flight) .. ")"
  2689. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2690. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2691. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2692. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2693. for _,c in pairs(Decrease:children()) do
  2694. if (c:findFirstChild("Duration")) ~= nil then
  2695. c.Duration.Value = c.Duration.Value - 1
  2696. if c.Duration.Value <= 0 then
  2697. c.Parent = nil
  2698. end
  2699. end
  2700. if c.Name == "DecreaseAtk" then
  2701. decreaseatk = decreaseatk + c.Value
  2702. else
  2703. if c.Name == "DecreaseDef" then
  2704. decreasedef = decreasedef + c.Value
  2705. else
  2706. if c.Name == "DecreaseMvmt" then
  2707. decreasemvmt = decreasemvmt + c.Value
  2708. end
  2709. end
  2710. end
  2711. end
  2712. Atk.Value = 1 - (decreaseatk)
  2713. if Atk.Value <= 0 then
  2714. Atk.Value = 0
  2715. end
  2716. Def.Value = 1 - (decreasedef)
  2717. if Def.Value <= 0 then
  2718. Def.Value = 0.01
  2719. end
  2720. Mvmt.Value = 1 - (decreasemvmt)
  2721. if Mvmt.Value <= 0 then
  2722. Mvmt.Value = 0
  2723. end
  2724. decreaseatk = 0
  2725. decreasedef = -0.4
  2726. decreasemvmt = 0
  2727. AtkVal = Atk.Value * 100
  2728. AtkVal = math.floor(AtkVal)
  2729. AtkVal = AtkVal / 100
  2730. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  2731. DefVal = Def.Value * 100
  2732. DefVal = math.floor(DefVal)
  2733. DefVal = DefVal / 100
  2734. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  2735. MvmtVal = Mvmt.Value * 100
  2736. MvmtVal = math.floor(MvmtVal)
  2737. MvmtVal = MvmtVal / 100
  2738. if Rooted.Value == true then
  2739. MvmtVal = 0
  2740. end
  2741. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  2742. if StunT.Value <= Stun.Value then
  2743. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  2744. else
  2745. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  2746. end
  2747. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  2748. if 200 <= mana.Value then
  2749. mana.Value = 200
  2750. else
  2751. if mananum <= 9 then
  2752. mananum = mananum + 1
  2753. else
  2754. if 8 <= mananum then
  2755. mananum = 0
  2756. mana.Value = mana.Value + 1
  2757. end
  2758. end
  2759. end
  2760. for i = 1, #cooldowns do
  2761. if cooldownmax <= cooldowns[i] then
  2762. cooldowns[i] = cooldownmax
  2763. else
  2764. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  2765. end
  2766. end
  2767.  
  2768. end
  2769. end
  2770. end
Add Comment
Please, Sign In to add comment