Advertisement
Hermaxs

Untitled

Jan 14th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 203.58 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7.  
  8.  
  9. Player = game:GetService("Players").LocalPlayer
  10. Character = Player.Character
  11. PlayerGui = Player.PlayerGui
  12. Backpack = Player.Backpack
  13. Torso = Character.Torso
  14. Head = Character.Head
  15. Humanoid = Character.Humanoid
  16. LeftArm = Character["Left Arm"]
  17. LeftLeg = Character["Left Leg"]
  18. RightArm = Character["Right Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LS = Torso["Left Shoulder"]
  21. LH = Torso["Left Hip"]
  22. RS = Torso["Right Shoulder"]
  23. RH = Torso["Right Hip"]
  24. Neck = Torso.Neck
  25. it = Instance.new
  26. vt = Vector3.new
  27. cf = CFrame.new
  28. euler = CFrame.fromEulerAnglesXYZ
  29. angles = CFrame.Angles
  30. mr = math.rad
  31. mr2 = math.random
  32. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  33. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  34. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  35. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  36. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  37. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  38. RootPart = Character.HumanoidRootPart
  39. RootJoint = RootPart.RootJoint
  40. RootCF = euler(-1.57, 0, 3.14)
  41. attack = false
  42. attackdebounce = false
  43. MMouse = Player:GetMouse()
  44. combo = 0
  45. local hitfloor, posfloor = nil, nil
  46. local idle = 0
  47. local Anim = "Idle"
  48. local Effects = {}
  49. local Weapon = {}
  50. local Welds = {}
  51. local Saber = {}
  52. local Buster = {}
  53. local decreaseatk = 0
  54. local decreasedef = 0
  55. local decreasemvmt = 0
  56. local manainc = 16
  57. local handle = nil
  58. local floating = false
  59. local testpart = it("Part")
  60. testpart.Anchored = true
  61. local Mode = "Normal"
  62. local cbuster = false
  63. local cshoot = false
  64. local cdebounce = false
  65. local sbreaker = false
  66. local shockshoot = false
  67. local shockdebounce = false
  68. local TehM = nil
  69. local sblazing = false
  70. local starshoot = false
  71. local stardebounce = false
  72. local busterlaser = false
  73. local sbreakerII = false
  74. local galacblazing = false
  75. local prising = false
  76. local move1 = "(Z)\nChaos Buster"
  77. local move2 = "(X)\nShocker Breaker"
  78. local move3 = "(C)\nStar Blazing"
  79. local move4 = "(V)\n"
  80. local cooldowns = {}
  81. local cooldown1 = 100
  82. table.insert(cooldowns, cooldown1)
  83. local cooldown2 = 100
  84. table.insert(cooldowns, cooldown2)
  85. local cooldown3 = 100
  86. table.insert(cooldowns, cooldown3)
  87. local cooldown4 = 100
  88. table.insert(cooldowns, cooldown4)
  89. local cooldownsadd = {}
  90. local cooldownadd1 = 0.16
  91. table.insert(cooldownsadd, cooldownadd1)
  92. local cooldownadd2 = 0.14
  93. table.insert(cooldownsadd, cooldownadd2)
  94. local cooldownadd3 = 0.12
  95. table.insert(cooldownsadd, cooldownadd3)
  96. local cooldownadd4 = 0.1
  97. table.insert(cooldownsadd, cooldownadd4)
  98. local cooldownmax = 100
  99. player = nil
  100. RSH = nil
  101. LSH = nil
  102. RW = Instance.new("Motor")
  103. LW = Instance.new("Motor")
  104. RW.Name = "Right Shoulder"
  105. LW.Name = "Left Shoulder"
  106. LH = Torso["Left Hip"]
  107. RH = Torso["Right Hip"]
  108. TorsoColor = Torso.BrickColor
  109. NewCol = BrickColor.new("Ghost grey").Color
  110. NewCol2 = BrickColor.new("Smoky grey").Color
  111. NewCol3 = BrickColor.new("Pearl").Color
  112.  
  113. local mdec = Instance.new("NumberValue", Decrease)
  114. mdec.Name = "DecreaseDef"
  115. mdec.Value = 0.4
  116. local mdec2 = Instance.new("NumberValue", Decrease)
  117. mdec2.Name = "DecreaseMvmt"
  118. mdec2.Value = 0.1
  119. local Neons = {BrickColor.new("Bright red"), BrickColor.new("Bright orange"), BrickColor.new("Bright yellow"), BrickColor.new("Bright green"), BrickColor.new("Bright blue"), BrickColor.new("Royal purple"), BrickColor.new("Bright violet")}
  120. local Animate = Humanoid.Animator
  121. local canjump = true
  122.  
  123. removeControl = function()
  124. canjump = false
  125. end
  126.  
  127. resumeControl = function()
  128. canjump = true
  129. end
  130.  
  131. Player.Character.Humanoid.Changed:connect(function()
  132. if canjump == false then
  133. Player.Character.Humanoid.Jump = false
  134. end
  135. end
  136. )
  137.  
  138. ArtificialHB = Instance.new("BindableEvent", script)
  139. ArtificialHB.Name = "Heartbeat"
  140.  
  141. script:WaitForChild("Heartbeat")
  142.  
  143. frame = 1 / 40
  144. tf = 0
  145. allowframeloss = true
  146. tossremainder = false
  147. lastframe = tick()
  148. script.Heartbeat:Fire()
  149.  
  150. game:GetService("RunService").Heartbeat:connect(function(s, p)
  151. tf = tf + s
  152. if tf >= frame then
  153. if allowframeloss then
  154. script.Heartbeat:Fire()
  155. lastframe = tick()
  156. else
  157. for i = 1, math.floor(tf / frame) do
  158. script.Heartbeat:Fire()
  159. end
  160. lastframe = tick()
  161. end
  162. if tossremainder then
  163. tf = 0
  164. else
  165. tf = tf - frame * math.floor(tf / frame)
  166. end
  167. end
  168. end)
  169.  
  170. function swait(num)
  171. if num == 0 or num == nil then
  172. ArtificialHB.Event:wait()
  173. else
  174. for i = 0, num do
  175. ArtificialHB.Event:wait()
  176. end
  177. end
  178. end
  179.  
  180. createpassgui = function(parent)
  181. print("makegui111")
  182. local g = Instance.new("ScreenGui", parent)
  183. local f = Instance.new("Frame", g)
  184. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  185. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  186. f.Style = "DropShadow"
  187. local t = Instance.new("TextBox", f)
  188. t.BackgroundColor3 = Color3.new(0, 0, 0)
  189. t.BackgroundTransparency = 0.5
  190. t.BorderSizePixel = 0
  191. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  192. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  193. t.Font = "SourceSansLight"
  194. t.Text = "Enter Access Code."
  195. t.TextScaled = true
  196. t.TextColor3 = Color3.new(1, 1, 1)
  197. t.TextStrokeTransparency = 0
  198. local t2 = Instance.new("TextButton", f)
  199. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  200. t2.BackgroundTransparency = 0.5
  201. t2.BorderSizePixel = 0
  202. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  203. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  204. t2.TextScaled = true
  205. t2.Font = "SourceSansLight"
  206. t2.Text = "Submit"
  207. t2.TextColor3 = Color3.new(1, 1, 1)
  208. t2.TextStrokeTransparency = 0
  209. print("done1")
  210. return t2
  211. end
  212.  
  213. if Character:findFirstChild("Handles", true) ~= nil then
  214. Character:findFirstChild("Handles", true).Parent = nil
  215. end
  216. if Character:findFirstChild("Chaos Saber", true) ~= nil then
  217. Character:findFirstChild("Chaos Saber", true).Parent = nil
  218. end
  219. if Character:findFirstChild("Chaos Buster", true) ~= nil then
  220. Character:findFirstChild("Chaos Buster", true).Parent = nil
  221. end
  222. if Character:findFirstChild("Chaos Buster Rainbow", true) ~= nil then
  223. Character:findFirstChild("Chaos Buster Rainbow", true).Parent = nil
  224. end
  225. if Character:findFirstChild("Effects", true) ~= nil then
  226. Character:findFirstChild("Effects", true).Parent = nil
  227. end
  228. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  229. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  230. end
  231. if Character:findFirstChild("Stats", true) ~= nil then
  232. Character:findFirstChild("Stats", true).Parent = nil
  233. end
  234. local Stats = Instance.new("BoolValue")
  235. Stats.Name = "Stats"
  236. Stats.Parent = Character
  237. local Atk = Instance.new("NumberValue")
  238. Atk.Name = "Damage"
  239. Atk.Parent = Stats
  240. Atk.Value = 1
  241. local Def = Instance.new("NumberValue")
  242. Def.Name = "Defense"
  243. Def.Parent = Stats
  244. Def.Value = 1
  245. local Mvmt = Instance.new("NumberValue")
  246. Mvmt.Name = "Movement"
  247. Mvmt.Parent = Stats
  248. Mvmt.Value = 1
  249. local Block = Instance.new("BoolValue")
  250. Block.Name = "Block"
  251. Block.Parent = Stats
  252. Block.Value = false
  253. local Stun = Instance.new("NumberValue")
  254. Stun.Name = "Stun"
  255. Stun.Parent = Stats
  256. Stun.Value = 0
  257. local StunT = Instance.new("NumberValue")
  258. StunT.Name = "StunThreshold"
  259. StunT.Parent = Stats
  260. StunT.Value = 80
  261. local Rooted = Instance.new("BoolValue")
  262. Rooted.Name = "Rooted"
  263. Rooted.Parent = Stats
  264. Rooted.Value = false
  265. local Stunned = Instance.new("BoolValue")
  266. Stunned.Name = "Stunned"
  267. Stunned.Parent = Stats
  268. Stunned.Value = false
  269. local Stagger = Instance.new("BoolValue")
  270. Stagger.Name = "Stagger"
  271. Stagger.Parent = Stats
  272. Stagger.Value = false
  273. local StaggerHit = Instance.new("BoolValue")
  274. StaggerHit.Name = "StaggerHit"
  275. StaggerHit.Parent = Stats
  276. StaggerHit.Value = false
  277. local RecentEnemy = Instance.new("ObjectValue")
  278. RecentEnemy.Name = "RecentEnemy"
  279. RecentEnemy.Parent = Stats
  280. RecentEnemy.Value = nil
  281. local Decrease = Instance.new("BoolValue")
  282. Decrease.Name = "Decrease"
  283. Decrease.Parent = Stats
  284. Decrease.Value = false
  285. local mana = Instance.new("NumberValue")
  286. mana.Name = "Mana"
  287. mana.Parent = Stats
  288. mana.Value = 0
  289. local passive1 = Instance.new("NumberValue", Decrease)
  290. passive1.Name = "DecreaseMvmt"
  291. passive1.Value = -0.1
  292. local passive2 = Instance.new("NumberValue", Decrease)
  293. passive2.Name = "DecreaseDef"
  294. passive2.Value = 0
  295. NoOutline = function(Part)
  296. Part.TopSurface = 10
  297. end
  298.  
  299. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  300. local fp = it("Part")
  301. fp.formFactor = formfactor
  302. fp.Parent = parent
  303. fp.Reflectance = reflectance
  304. fp.Transparency = transparency
  305. fp.CanCollide = false
  306. fp.Locked = true
  307. fp.BrickColor = brickcolor
  308. fp.Name = name
  309. fp.Size = size
  310. fp.Position = Torso.Position
  311. NoOutline(fp)
  312. fp.Material = "SmoothPlastic"
  313. fp:BreakJoints()
  314. return fp
  315. end
  316.  
  317. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  318. local mesh = it(Mesh)
  319. mesh.Parent = part
  320. if Mesh == "SpecialMesh" then
  321. mesh.MeshType = meshtype
  322. if meshid ~= "nil" then
  323. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  324. end
  325. end
  326. mesh.Offset = offset
  327. mesh.Scale = scale
  328. return mesh
  329. end
  330.  
  331. weld = function(parent, part0, part1, c0)
  332. local weld = it("Motor")
  333. weld.Parent = parent
  334. weld.Part0 = part0
  335. weld.Part1 = part1
  336. weld.C0 = c0
  337. return weld
  338. end
  339.  
  340. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  341. local gui = it(GuiType)
  342. gui.Parent = parent
  343. gui.Text = text
  344. gui.BackgroundTransparency = backtrans
  345. gui.BackgroundColor3 = backcol
  346. gui.SizeConstraint = "RelativeXY"
  347. gui.TextXAlignment = "Center"
  348. gui.TextYAlignment = "Center"
  349. gui.Position = pos
  350. gui.Size = size
  351. gui.Font = "SourceSans"
  352. gui.FontSize = "Size14"
  353. gui.TextWrapped = false
  354. gui.TextStrokeTransparency = 0
  355. gui.TextColor = BrickColor.new("White")
  356. return gui
  357. end
  358.  
  359. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  360. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  361. prt.Material = neon
  362. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  363. wld = weld(handle, prt, wldpar, ceef)
  364. v = it("NumberValue", prt)
  365. v.Value = trans
  366. v.Name = "MainTransparency"
  367. return prt, msh, wld
  368. end
  369.  
  370. local nr = NumberRange.new
  371. local ns = NumberSequence.new
  372. local cs = ColorSequence.new
  373. local nsk = NumberSequenceKeypoint.new
  374. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  375. local fp = it("ParticleEmitter")
  376. fp.Parent = parent
  377. fp.Color = cs(col1, col2)
  378. fp.LightEmission = lightemis
  379. fp.Size = size
  380. fp.Texture = texture
  381. fp.Transparency = transparency
  382. fp.ZOffset = zoffset
  383. fp.Acceleration = accel
  384. fp.Drag = drag
  385. fp.LockedToPart = ltp
  386. fp.VelocityInheritance = velinher
  387. fp.EmissionDirection = emisdir
  388. fp.Enabled = enabled
  389. fp.Lifetime = lifetime
  390. fp.Rate = rate
  391. fp.Rotation = rotation
  392. fp.RotSpeed = rotspeed
  393. fp.Speed = speed
  394. fp.VelocitySpread = velspread
  395. return fp
  396. end
  397.  
  398. local Color1 = Torso.BrickColor
  399. local fengui = it("GuiMain")
  400. fengui.Parent = Player.PlayerGui
  401. fengui.Name = "WeaponGUI"
  402. local fenframe = it("Frame")
  403. fenframe.Parent = fengui
  404. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  405. fenframe.BackgroundTransparency = 1
  406. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  407. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  408. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  409. local fenframe2 = it("Frame")
  410. fenframe2.Parent = fengui
  411. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  412. fenframe2.BackgroundTransparency = 1
  413. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  414. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  415. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  416. local fenframe3 = it("Frame")
  417. fenframe3.Parent = fengui
  418. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  419. fenframe3.BackgroundTransparency = 1
  420. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  421. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  422. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  423. local fenframe4 = it("Frame")
  424. fenframe4.Parent = fengui
  425. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  426. fenframe4.BackgroundTransparency = 1
  427. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  428. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  429. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  430. local pressedf = false
  431. local fenframe5 = it("Frame")
  432. fenframe5.Parent = fengui
  433. fenframe5.Parent = nil
  434. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  435. fenframe5.BackgroundTransparency = 1
  436. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  437. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  438. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  439. fenframe5.ZIndex = 2
  440. 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))
  441. tellbar.Font = "Arial"
  442. tellbar.TextScaled = true
  443. tellbar.TextTransparency = 1
  444. tellbar.TextStrokeTransparency = 1
  445. tellbar.ZIndex = 2
  446. local fnumb = 0
  447. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  448. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  449. 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))
  450. 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))
  451. 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))
  452. 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))
  453. 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))
  454. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  455. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  456. 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))
  457. 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))
  458. 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))
  459. 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))
  460. fenbarmove1.ZIndex = 2
  461. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  462. 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))
  463. fenbarmove2.ZIndex = 2
  464. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  465. 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))
  466. fenbarmove3.ZIndex = 2
  467. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  468. 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))
  469. fenbarmove4.ZIndex = 2
  470. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  471. local handles = Instance.new("Model")
  472. handles.Parent = Character
  473. handles.Name = "Handles"
  474. local modelzorz = Instance.new("Model")
  475. modelzorz.Parent = Character
  476. modelzorz.Name = "Chaos Saber"
  477. local model2 = Instance.new("Model")
  478. model2.Parent = Character
  479. model2.Name = "Chaos Buster"
  480. local model3 = Instance.new("Model")
  481. model3.Parent = Character
  482. model3.Name = "Chaos Buster Rainbow"
  483. handle = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  484. local handle2 = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle2", vt())
  485. local handle3 = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3", vt())
  486. local handle3a = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3a", vt())
  487. local handle4 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle4", vt())
  488. local handle5 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle5", vt())
  489. local handle6 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle6", vt())
  490. local handle7 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle7", vt())
  491. local handle8 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle8", vt())
  492. local handle9 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle9", vt())
  493. local handle10 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle10", vt())
  494. hmsh3 = mesh("BlockMesh", handle3, "", "", vt(0, 0, 0), vt(25, 3, 1))
  495. hmsh4 = mesh("BlockMesh", handle4, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  496. hmsh5 = mesh("BlockMesh", handle5, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  497. hmsh6 = mesh("BlockMesh", handle6, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  498. hmsh7 = mesh("BlockMesh", handle7, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  499. hmsh8 = mesh("BlockMesh", handle8, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  500. hmsh9 = mesh("BlockMesh", handle9, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  501. hmsh10 = mesh("BlockMesh", handle10, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  502. local handlewld = weld(handle, handle, Torso, euler(0, 3.14, -2.6) * cf(0, 0, -0.6))
  503. local handlewld2 = weld(handle2, handle2, Torso, euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6))
  504. local handlewld3 = weld(handle3, handle3, Torso, euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8))
  505. local handlewld3a = weld(handle3a, handle3a, handle3, cf(0, 0, 0))
  506. local handlewld4 = weld(handle4, handle4, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
  507. local handlewld5 = weld(handle5, handle5, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
  508. local handlewld6 = weld(handle6, handle6, handle5, cf(3.35, 0, -0.075))
  509. local handlewld7 = weld(handle7, handle7, handle4, cf(3.35, 0, 0.075))
  510. local handlewld8 = weld(handle8, handle8, handle6, cf(0.291, 0, 0))
  511. local handlewld9 = weld(handle9, handle9, handle7, cf(0.291, 0, 0))
  512. local handlewld10 = weld(handle10, handle10, handle3a, euler(0, mr(-90), 0) * cf(3.141, 0, 0))
  513. local main1, mmsh1, mwld1 = AesthPart(modelzorz, handle, 0, 0, NewCol, "Main1", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  514. local main2, mmsh2, mwld2 = AesthPart(modelzorz, handle2, 0, 0, NewCol, "Main2", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  515. local core1, cmsh1, cwld1 = AesthPart(modelzorz, main1, 0, 0, NewCol2, "Core1", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
  516. local core2, cmsh2, cwld2 = AesthPart(modelzorz, main2, 0, 0, NewCol2, "Core2", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
  517. local upper1, umsh1, uwld1 = AesthPart(modelzorz, core1, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
  518. local upper2, umsh2, uwld2 = AesthPart(modelzorz, core2, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
  519. RainbowVals = function(parent, sval, bval)
  520. d = it("NumberValue", parent)
  521. d.Name = "Size"
  522. d.Value = sval
  523. b = it("NumberValue", parent)
  524. b.Name = "Weld"
  525. b.Value = bval
  526. return d, b
  527. end
  528.  
  529. rmain1, rmrmsh1, rmwld1 = AesthPart(model3, handle4, 1, 0, NewCol, "RainbowMain", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
  530. rmain1a, rmrmsh1a, rmwld1a = AesthPart(model3, handle5, 1, 0, NewCol, "RainbowMaina", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
  531. rainbow1, rmsh1, rwld1 = AesthPart(model3, rmain1, 0, 0, Neons[7].Color, "Rainbow1", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, 0.1))
  532. rainbow1a, rmsh1a, rwld1a = AesthPart(model3, rmain1a, 0, 0, Neons[7].Color, "Rainbow1a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, -0.1))
  533. rainbow2, rmsh2, rwld2 = AesthPart(model3, rmain1, 0, 0, Neons[6].Color, "Rainbow2", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, 0.1))
  534. rainbow2a, rmsh2a, rwld2a = AesthPart(model3, rmain1a, 0, 0, Neons[6].Color, "Rainbow2a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, -0.1))
  535. rainbow3, rmsh3, rwld3 = AesthPart(model3, rmain1, 0, 0, Neons[5].Color, "Rainbow3", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, 0.1))
  536. rainbow3a, rmsh3a, rwld3a = AesthPart(model3, rmain1a, 0, 0, Neons[5].Color, "Rainbow3a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, -0.1))
  537. rainbow4, rmsh4, rwld4 = AesthPart(model3, rmain1, 0, 0, Neons[4].Color, "Rainbow4", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, 0.1))
  538. rainbow4a, rmsh4a, rwld4a = AesthPart(model3, rmain1a, 0, 0, Neons[4].Color, "Rainbow4a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, -0.1))
  539. rainbow5, rmsh5, rwld5 = AesthPart(model3, rmain1, 0, 0, Neons[3].Color, "Rainbow5", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, 0.1))
  540. rainbow5a, rmsh5a, rwld5a = AesthPart(model3, rmain1a, 0, 0, Neons[3].Color, "Rainbow5a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, -0.1))
  541. rainbow6, rmsh6, rwld6 = AesthPart(model3, rmain1, 0, 0, Neons[2].Color, "Rainbow6", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, 0.1))
  542. rainbow6a, rmsh6a, rwld6a = AesthPart(model3, rmain1a, 0, 0, Neons[2].Color, "Rainbow6a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, -0.1))
  543. rainbow7, rmsh7, rwld7 = AesthPart(model3, rmain1, 0, 0, Neons[1].Color, "Rainbow7", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, 0.1))
  544. rainbow7a, rmsh7a, rwld7a = AesthPart(model3, rmain1a, 0, 0, Neons[1].Color, "Rainbow7a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, -0.1))
  545. local rw1 = 0.32
  546. local rw2 = 0.395
  547. local rw3 = 0.295
  548. local rs1 = 3
  549. local rs2 = 3.75
  550. local rs3 = 4
  551. local rs4 = 2.99
  552. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1)
  553. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1)
  554. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, 0.1)
  555. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, -0.1)
  556. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2)
  557. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2)
  558. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, 0.1)
  559. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, -0.1)
  560. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2)
  561. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2)
  562. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, 0.1)
  563. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, -0.1)
  564. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3)
  565. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3)
  566. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, 0.1)
  567. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, -0.1)
  568. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2)
  569. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2)
  570. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, 0.1)
  571. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, -0.1)
  572. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2)
  573. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2)
  574. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, 0.1)
  575. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, -0.1)
  576. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4)
  577. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4)
  578. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, 0.1)
  579. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, -0.1)
  580. mwld1.C0 = cf(0, 2, 0)
  581. mwld2.C0 = cf(0, 2, 0)
  582. for i = -1, 1, 2 do
  583. thprt = main1
  584. thprt2 = core1
  585. thprt3 = upper1
  586. thprt4 = handle4
  587. thprt5 = handle6
  588. thprt6 = handle8
  589. if i == 1 then
  590. thprt = main2
  591. thprt2 = core2
  592. thprt3 = upper2
  593. thprt4 = handle5
  594. thprt5 = handle7
  595. thprt6 = handle9
  596. end
  597. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part01", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  598. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part02", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.05, 0.5, euler(mr(90), mr(-90), 0) * cf(-0.025, 0.75, 0))
  599. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part03", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.2, 0.25, euler(mr(-90), mr(-90), 0) * cf(-0.2, 0.675, 0))
  600. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part04", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 0.95, 0.5, euler(mr(90), mr(90), 0) * cf(-0.225, 0.75, 0))
  601. for d = -1, 1, 2 do
  602. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part05", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 2, 0.25, euler(mr(180.04), mr(90) * d, 0) * cf(0.075 * d, -0.5, 0))
  603. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part06", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1, 0.25, euler(mr(73), mr(-90) * d, 0) * cf(0.149 * d, -0.688, 0))
  604. end
  605. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol2, "Part07", "Neon", "SpecialMesh", "Sphere", "nil", 2, 1, 0.65, euler(0, 0, 0) * cf(0, -0.025, 0))
  606. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part08", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(0, 0, 0) * cf(0, 0.025, 0))
  607. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part09", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(0, 0, 0) * cf(0, -0.05, 0))
  608. for d = -1, 1, 2 do
  609. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(0, mr(90) * d, 0) * cf(-0.15 * d, -0.05, 0))
  610. end
  611. for d = -1, 1, 2 do
  612. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(180), mr(90) * d, 0) * cf(0.125 * d, 0.05, 0))
  613. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part12", "Neon", "BlockMesh", "nil", "nil", 0.75, 0.25, 0.75, euler(mr(0), mr(90) * d, 0) * cf(0.125 * d, 0, 0))
  614. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.25 * d, 0, 0))
  615. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part14", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.25 * d, -0.05, 0))
  616. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.35 * d, -0.075, 0))
  617. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(180), mr(90) * d, 0) * cf(0.425 * d, -0.2, 0))
  618. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part17", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.425 * d, -0.35, 0))
  619. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part18", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.35 * d, -0.175, 0))
  620. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.375 * d, -0.475, 0))
  621. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.375, 0.5, euler(mr(180), mr(-90) * d, 0) * cf(0.3 * d, -0.462, 0))
  622. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part21", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.125, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.3 * d, -0.512, 0))
  623. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part22", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.5, euler(mr(90), mr(90) * d, 0) * cf(0.375 * d, -0.275, 0))
  624. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part23", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 1, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.35 * d, -0.325, 0))
  625. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part24", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.25 * d, -0.15, 0))
  626. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(0), mr(90) * d, 0) * cf(0.1 * d, -0.05, 0))
  627. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part26", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(65), mr(-90) * d, 0) * cf(0.294 * d, 0.035, 0))
  628. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part27", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(115), mr(90) * d, 0) * cf(0.217 * d, -0.012, 0))
  629. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part28", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(155), mr(90) * d, 0) * cf(0.431 * d, -0.205, 0))
  630. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part29", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(25), mr(-90) * d, 0) * cf(0.498 * d, -0.229, 0))
  631. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(195), mr(90) * d, 0) * cf(0.434 * d, -0.387, 0))
  632. end
  633. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part31", "Neon", "SpecialMesh", "Torso", "nil", 1, 3, 0.35, euler(mr(180), 0, 0) * cf(0, -0.35, 0))
  634. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part32", "Neon", "BlockMesh", "nil", "nil", 2, 7, 0.35, euler(0, 0, 0) * cf(0.1, -1.35, 0))
  635. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(180), mr(90), 0) * cf(0.15, -0.625, 0))
  636. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part34", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(0), mr(90), 0) * cf(0.05, -2.075, 0))
  637. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part35", "Neon", "BlockMesh", "nil", "nil", 1, 2, 0.35, euler(0, 0, 0) * cf(0.2, -2.25, 0))
  638. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part36", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(-90), mr(90), 0) * cf(0.275, -2.65, 0))
  639. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part37", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(90), 0) * cf(0.225, -3, 0))
  640. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1.5, euler(mr(-90), mr(90), 0) * cf(0.15, -3.3, 0))
  641. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(90), 0) * cf(0.05, -3.55, 0))
  642. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part40", "Neon", "BlockMesh", "nil", "nil", 0.25, 2, 0.35, euler(0, 0, 0) * cf(0.225, -2.65, 0))
  643. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part41", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.35, euler(0, 0, 0) * cf(0.175, -3, 0))
  644. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part42", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, 0, 0) * cf(0.075, -3.375, 0))
  645. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(0.15, -2.55, 0))
  646. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part44", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(90), 0) * cf(0.175, -2.65, 0))
  647. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(90), mr(90), 0) * cf(0.125, -3, 0))
  648. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part46", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.075, -3.225, 0))
  649. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part47", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.025, -3.375, 0))
  650. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(-0.025, -3.475, 0))
  651. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part49", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(-90), mr(-90), 0) * cf(-0.1, -3.275, 0))
  652. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(-90), 0) * cf(-0.15, -3.025, 0))
  653. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part51", "Neon", "BlockMesh", "nil", "nil", 0.25, 1, 0.35, euler(0, mr(0), 0) * cf(-0.15, -2.775, 0))
  654. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.75, euler(mr(90), mr(90), 0) * cf(-0.125, -2.6, 0))
  655. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 1, euler(mr(90), mr(90), 0) * cf(0.05, -2.425, 0))
  656. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part54", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.35, euler(0, mr(0), 0) * cf(-0.025, -2.575, 0))
  657. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part55", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.1, -3.1, 0))
  658. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part56", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.05, -3.3, 0))
  659. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part57", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 0.5, euler(mr(-90), mr(90), 0) * cf(0.15, -2.575, 0))
  660. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.25, euler(mr(-90), mr(90), 0) * cf(-0.025, -2.65, 0))
  661. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part59", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 2, euler(mr(-90), mr(90), 0) * cf(-0.075, -2.85, 0))
  662. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part60", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(-90), 0) * cf(-0.1, -2.825, 0))
  663. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(90), mr(-90), 0) * cf(-0.05, -3.125, 0))
  664. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(-90), 0) * cf(0, -3.3, 0))
  665. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part63", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.75, 0))
  666. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part64", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.925, 0))
  667. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -3.1, 0))
  668. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part01", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(2.55, 0, -0.175 * i))
  669. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part02", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.8, 0, -0.175 * i))
  670. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part03", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.05, 0, -0.175 * i))
  671. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part04", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(0.25, 0, -0.175 * i))
  672. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part05", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-0.5, 0, -0.175 * i))
  673. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part06", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-1.25, 0, -0.175 * i))
  674. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part07", "Neon", "BlockMesh", "nil", "nil", 25, 3, 1, euler(0, 0, 0) * cf(0.65, 0, -0.45 * i))
  675. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part08", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(2.65, 0, -0.6 * i))
  676. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part09", "Neon", "BlockMesh", "nil", "nil", 15, 3, 0.5, euler(0, 0, 0) * cf(0.65, 0, -0.6 * i))
  677. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.35, 0, -0.6 * i))
  678. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(1.65, 0, -0.675 * i))
  679. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part12", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(0.65, 0, -0.675 * i))
  680. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-0.35, 0, -0.675 * i))
  681. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part14", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(1.65, 0, -0.325 * i))
  682. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.65, 0, -0.225 * i))
  683. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.9, 0, -0.15 * i))
  684. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part17", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(2.65, 0, -0.325 * i))
  685. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part18", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.35, 0, -0.225 * i))
  686. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-0.35, 0, -0.325 * i))
  687. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -0.15 * i))
  688. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part21", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(-1.35, 0, -0.325 * i))
  689. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part22", "Neon", "BlockMesh", "nil", "nil", 3, 1.05, 1.05, euler(mr(45), 0, mr(90)) * cf(3.15, 0, -0.15 * i))
  690. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part23", "Neon", "CylinderMesh", "nil", "nil", 1.5, 3, 1.5, euler(0, 0, 0) * cf(3.05, 0, -0.5 * i))
  691. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part24", "Neon", "BlockMesh", "nil", "nil", 1.25, 3, 1.25, euler(0, 0, 0) * cf(3.175, 0, -0.525 * i))
  692. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.25, 1.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(3.425, 0, -0.525 * i))
  693. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part26", "Neon", "CylinderMesh", "nil", "nil", 5.5, 3, 0.5, euler(mr(90), 0, 0) * cf(2.925, 0, -0.8 * i))
  694. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part27", "Neon", "CylinderMesh", "nil", "nil", 5.5, 0.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-45) * i, 0) * cf(2.89, 0, -1.135 * i))
  695. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part28", "Neon", "CylinderMesh", "nil", "nil", 5.5, 1.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-90), 0) * cf(2.725, 0, -1.15 * i))
  696. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part29", "Neon", "BlockMesh", "nil", "nil", 3, 1.75, 1, euler(mr(90), 0, mr(90)) * cf(-1.95, 0, -0.175 * i))
  697. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1, 1, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.95, 0, -0.45 * i))
  698. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part31", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.7 * i))
  699. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part32", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.7 * i))
  700. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.65, 0, -0.7 * i))
  701. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part34", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.825 * i))
  702. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part35", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.825 * i))
  703. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part36", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.65, 0, -0.95 * i))
  704. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part37", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.8, 0, -0.725 * i))
  705. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.475, 0, -0.95 * i))
  706. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -1.2 * i))
  707. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part40", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.75, 0, -1.1 * i))
  708. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part41", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.9, 0, -1.05 * i))
  709. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part42", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(-150) * i, 0) * cf(-2.034, 0, -1.221 * i))
  710. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.775, 0, -1.275 * i))
  711. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part44", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.75, 1.5, euler(mr(90), mr(90), 0) * cf(-1.725, 0, -1.2 * i))
  712. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 3, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(55) * i, 0) * cf(-2.387, 0, -0.631 * i))
  713. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part46", "Neon", "BlockMesh", "nil", "nil", 1.5, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2, 0, -0.4 * i))
  714. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part47", "Neon", "BlockMesh", "nil", "nil", 3, 0.75, 1.25, euler(mr(90), 0, mr(90)) * cf(-2.175, 0, -0.225 * i))
  715. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.375, 0, -0.225 * i))
  716. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part49", "Neon", "BlockMesh", "nil", "nil", 3, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2.3, 0, -0.05 * i))
  717. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 0.5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.6, 0, -0.05 * i))
  718. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part51", "Neon", "BlockMesh", "nil", "nil", 3, 0.25, 0.5, euler(0, 0, mr(90)) * cf(-2.125, 0, -0.15 * i))
  719. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(0, 0, 0))
  720. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.25, 0.25, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-45) * i, 0) * cf(0.212, 0, 0.212 * i))
  721. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part54", "Neon", "BlockMesh", "nil", "nil", 1, 0.255, 0.5, euler(0, 0, mr(90)) * euler(0, mr(-45) * i, 0) * cf(0.088, 0, 0.053 * i))
  722. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part55", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.2, 0.2, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, -0.038 * i))
  723. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part56", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, 0))
  724. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part57", "Neon", "CylinderMesh", "nil", "nil", 0.7, 1, 0.7, euler(0, 0, 0) * cf(0, 0, 0))
  725. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(-0.029, 0, 0.026 * i))
  726. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part59", "Neon", "BlockMesh", "nil", "nil", 1, 1, 0.25, euler(0, mr(45) * i, 0) * cf(0.124, 0, 0.124 * i))
  727. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part60", "Neon", "BlockMesh", "nil", "nil", 1, 0.75, 0.2, euler(0, 0, mr(90)) * cf(0.216, 0, -0.05 * i))
  728. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0, 0, 0.1 * i))
  729. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(0.15, 0, 0))
  730. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part63", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.325, 0, 0))
  731. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part64", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.225, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.475, 0, -0.038 * i))
  732. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.5, 1.5, 0.1, euler(0, 0, mr(90)) * cf(0.175, 0, -0.05 * i))
  733. end
  734. for _,c in pairs(modelzorz:children()) do
  735. table.insert(Weapon, c)
  736. table.insert(Saber, c)
  737. end
  738. for _,c in pairs(model2:children()) do
  739. table.insert(Weapon, c)
  740. table.insert(Buster, c)
  741. end
  742. for _,c in pairs(model3:children()) do
  743. c.Transparency = 1
  744. end
  745. rmwld1.C0 = cf(0, 0, 0)
  746. rmwld1a.C0 = cf(0, 0, 0)
  747. for _,c in pairs(handle:children()) do
  748. if c.className == "Motor" then
  749. table.insert(Welds, c)
  750. end
  751. end
  752. local hitbox = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
  753. hitbox.Anchored = true
  754. local hitboxCF = cf(0, 0, 0)
  755. sizeseq = ns({nsk(0, 0.3), nsk(0.25, 1), nsk(0.6, 0.2), nsk(1, 0)})
  756. transseq = ns({nsk(0, 0), nsk(0.8, 0.5), nsk(1, 1)})
  757. local starsparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.5, sizeseq, "http://www.roblox.com/asset/?id=146120327", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 40, nr(-360, 360), nr(-200, 200), nr(8), 180)
  758. starsparti.Parent = Torso
  759. sizeseq = ns({nsk(0, 1), nsk(0.7, 6), nsk(1, 7)})
  760. transseq = ns({nsk(0, 0), nsk(1, 1)})
  761. local lparti1 = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=243098098", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(0.2, 0.2), 500, nr(-360, 360), nr(0, 0), nr(0), 0)
  762. lparti1.Parent = Torso
  763. sizeseq = ns({nsk(0, 0.5), nsk(1, 0.5)})
  764. transseq = ns({nsk(0, 0), nsk(1, 1)})
  765. local sparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=82057200", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 50, nr(-360, 360), nr(400, 500), nr(5), 180)
  766. sparti.Parent = Torso
  767. local effects = it("Model", modelzorz)
  768. effects.Name = "Effects"
  769. hboxpos = Instance.new("BodyPosition", nil)
  770. hboxpos.P = 2000
  771. hboxpos.D = 100
  772. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  773. Tool = Instance.new("HopperBin")
  774. Tool.Parent = Backpack
  775. Tool.Name = "Dreamer"
  776. Bin = Tool
  777. local bodvel = Instance.new("BodyVelocity")
  778. local bg = Instance.new("BodyGyro")
  779. so = function(id, par, vol, pit)
  780. local sou = Instance.new("Sound", par or workspace)
  781. sou.Volume = vol
  782. sou.Pitch = pit or 1
  783. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  784. coroutine.resume(coroutine.create(function(Sound)
  785. swait()
  786. Sound:play()
  787. end
  788. ), sou)
  789. game:GetService("Debris"):AddItem(sou, 6)
  790. end
  791.  
  792. function clerp(a,b,t)
  793. local qa = {QuaternionFromCFrame(a)}
  794. local qb = {QuaternionFromCFrame(b)}
  795. local ax, ay, az = a.x, a.y, a.z
  796. local bx, by, bz = b.x, b.y, b.z
  797. local _t = 1-t
  798. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  799. end
  800.  
  801. function QuaternionFromCFrame(cf)
  802. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  803. local trace = m00 + m11 + m22
  804. if trace > 0 then
  805. local s = math.sqrt(1 + trace)
  806. local recip = 0.5/s
  807. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  808. else
  809. local i = 0
  810. if m11 > m00 then
  811. i = 1
  812. end
  813. if m22 > (i == 0 and m00 or m11) then
  814. i = 2
  815. end
  816. if i == 0 then
  817. local s = math.sqrt(m00-m11-m22+1)
  818. local recip = 0.5/s
  819. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  820. elseif i == 1 then
  821. local s = math.sqrt(m11-m22-m00+1)
  822. local recip = 0.5/s
  823. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  824. elseif i == 2 then
  825. local s = math.sqrt(m22-m00-m11+1)
  826. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  827. end
  828. end
  829. end
  830.  
  831. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  832. local xs, ys, zs = x + x, y + y, z + z
  833. local wx, wy, wz = w*xs, w*ys, w*zs
  834. local xx = x*xs
  835. local xy = x*ys
  836. local xz = x*zs
  837. local yy = y*ys
  838. local yz = y*zs
  839. local zz = z*zs
  840. 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))
  841. end
  842.  
  843. function QuaternionSlerp(a, b, t)
  844. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  845. local startInterp, finishInterp;
  846. if cosTheta >= 0.0001 then
  847. if (1 - cosTheta) > 0.0001 then
  848. local theta = math.acos(cosTheta)
  849. local invSinTheta = 1/math.sin(theta)
  850. startInterp = math.sin((1-t)*theta)*invSinTheta
  851. finishInterp = math.sin(t*theta)*invSinTheta
  852. else
  853. startInterp = 1-t
  854. finishInterp = t
  855. end
  856. else
  857. if (1+cosTheta) > 0.0001 then
  858. local theta = math.acos(-cosTheta)
  859. local invSinTheta = 1/math.sin(theta)
  860. startInterp = math.sin((t-1)*theta)*invSinTheta
  861. finishInterp = math.sin(t*theta)*invSinTheta
  862. else
  863. startInterp = t-1
  864. finishInterp = t
  865. end
  866. end
  867. 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
  868. end
  869.  
  870. hideanim = function()
  871. equipped = false
  872. if Mode == "Sabers" then
  873. UnSword()
  874. end
  875. for i = 0, 1, 0.1 do
  876. swait()
  877. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  878. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  879. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  880. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  881. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  882. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  883. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  884. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  885. end
  886. mdec2.Parent = nil
  887. mdec.Parent = Decrease
  888. Humanoid.JumpPower = 50
  889. end
  890.  
  891. mdec.Parent = Decrease
  892. equipanim = function()
  893. equipped = true
  894. floating = false
  895. Humanoid.JumpPower = 60
  896. local dec = Instance.new("NumberValue", Decrease)
  897. dec.Name = "DecreaseMvmt"
  898. dec.Value = 10
  899. so("341336144", LeftArm, 1, 1)
  900. so("341336144", RightArm, 1, 1)
  901. rara = 4
  902. local col = 1
  903. local colnum = 0
  904. for i = 0, 1, 0.1 do
  905. swait()
  906. colnum = colnum + 1
  907.  
  908. if #Neons - 1 < col and (colnum) % 2 == 0 then
  909. col = 1
  910. end
  911. if (colnum) % 2 == 0 then
  912. col = col + 1
  913. end
  914. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  915. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  916. rara = rara + 1
  917. if rara % 6 == 0 then
  918. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  919. if hitfloor2 ~= nil then
  920. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
  921. end
  922. end
  923. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.3, 0, 0), 0.3)
  924. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * euler(-0.05, 0, 0), 0.1)
  925. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.4) * euler(0, -1.57, 0), 0.3)
  926. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4) * euler(0, 1.57, 0), 0.3)
  927. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
  928. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
  929. end
  930. for i = 0, 1, 0.1 do
  931. swait()
  932. colnum = colnum + 1
  933.  
  934. if #Neons - 1 < col and (colnum) % 2 == 0 then
  935. col = 1
  936. end
  937. if (colnum) % 2 == 0 then
  938. col = col + 1
  939. end
  940. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  941. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  942. rara = rara + 1
  943. if rara % 6 == 0 then
  944. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  945. if hitfloor2 ~= nil then
  946. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
  947. end
  948. end
  949. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.4, 0, 0), 0.3)
  950. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.2) * euler(-0.05, 0, 0), 0.1)
  951. RW.C0 = clerp(RW.C0, cf(1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, -0.5) * euler(0, 1.5, 0), 0.25)
  952. LW.C0 = clerp(LW.C0, cf(-1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, 0.5) * euler(0, -1.5, 0), 0.25)
  953. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
  954. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
  955. end
  956. mdec.Parent = nil
  957. mdec2.Parent = Decrease
  958. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  959. if hitfloor2 ~= nil then
  960. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 4, 2, 4, 0.7, -0.08, 0.7, 0.05)
  961. end
  962. MagicCircle(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
  963. MagicCircle(Neons[col], RightArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
  964. so("341336138", LeftArm, 1, 1)
  965. so("341336138", RightArm, 1, 1)
  966. so("341336243", LeftArm, 1, 1)
  967. so("341336243", RightArm, 1, 1)
  968. for i = 0, 1, 0.1 do
  969. swait()
  970. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  971. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4) * euler(-0.05, 0, 0), 0.2)
  972. if i < 0.3 then
  973. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(-0.2, 0, 1) * euler(0, -1.5, 0), 0.4)
  974. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(-0.2, 0, -1) * euler(0, 1.5, 0), 0.4)
  975. else
  976. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.2)
  977. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(0.4, 0, -0.4) * euler(0, 1.5, 0), 0.2)
  978. end
  979. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.4)
  980. LH.C0 = clerp(LH.C0, cf(-0.95, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.05), 0.4)
  981. end
  982. dec.Parent = nil
  983. floating = true
  984. end
  985.  
  986. StaggerAnim = function()
  987. attack = true
  988. removeControl()
  989. local dosaber = false
  990. if Mode == "Sabers" then
  991. dosaber = true
  992. end
  993. Mode = "Stagger"
  994. for i = 1, math.random(2, 4) do
  995. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  996. end
  997. for i = 0, 1, 0.35 do
  998. swait()
  999. if dosaber == true then
  1000. for d = 1, #Saber do
  1001. Saber[d].Transparency = i
  1002. end
  1003. end
  1004. do
  1005. do
  1006. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1007. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  1008. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  1009. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  1010. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1011. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1012. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1013. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  1014. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1015.  
  1016. end
  1017. end
  1018. end
  1019. if dosaber == true then
  1020. for d = 1, #Saber do
  1021. Saber[d].Transparency = 1
  1022. end
  1023. handlewld.Part1 = Torso
  1024. handlewld2.Part1 = Torso
  1025. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1026. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1027. mwld1.C0 = cf(0, 2, 0)
  1028. mwld2.C0 = cf(0, 2, 0)
  1029. floating = true
  1030. end
  1031. for i = 1, 0, -0.2 do
  1032. swait()
  1033. if dosaber == true then
  1034. for d = 1, #Saber do
  1035. Saber[d].Transparency = i
  1036. end
  1037. end
  1038. do
  1039. do
  1040. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1041. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  1042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  1043. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  1044. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1045. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  1046. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1047. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  1048. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  1049.  
  1050. end
  1051. end
  1052. end
  1053. for d = 1, #Saber do
  1054. Saber[d].Transparency = 0
  1055. end
  1056. for i = 0, 1, 0.1 do
  1057. swait()
  1058. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1059. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1060. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  1061. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1062. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1063. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1064. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1065. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1066. end
  1067. for i = 1, 40 do
  1068. swait()
  1069. if StunT.Value <= Stun.Value then
  1070. break
  1071. end
  1072. end
  1073. do
  1074. Mode = "Normal"
  1075. resumeControl()
  1076. combo = 0
  1077. attack = false
  1078. end
  1079. end
  1080.  
  1081. StaggerHitt = function()
  1082. attack = true
  1083. for i = 1, math.random(2, 4) do
  1084. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  1085. end
  1086. for i = 0, 1, 0.1 do
  1087. swait()
  1088. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1094. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1095. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1096. end
  1097. attack = false
  1098. end
  1099.  
  1100. StunAnim = function()
  1101. attack = true
  1102. removeControl()
  1103. Stunned.Value = true
  1104. showDamage(Character, "Stunned", "Interrupt")
  1105. local dec = Instance.new("NumberValue", Decrease)
  1106. dec.Name = "DecreaseMvmt"
  1107. dec.Value = 10
  1108. for i = 0, 1, 0.3 do
  1109. swait()
  1110. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1111. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1112. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1113. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1114. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1115. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1116. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1117. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1118. end
  1119. for i = 0, 1, 0.3 do
  1120. swait()
  1121. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1122. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1123. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1124. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1125. 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)
  1126. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1127. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1128. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1129. end
  1130. for i = 0, 1, 0.3 do
  1131. swait()
  1132. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1133. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1134. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1135. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1136. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1137. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1138. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1139. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1140. end
  1141. local gairost = Instance.new("BodyGyro")
  1142. gairost.Parent = RootPart
  1143. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1144. gairost.P = 20000
  1145. gairost.cframe = cf(0, 0, 0)
  1146. for i = 0, 1, 0.1 do
  1147. swait()
  1148. if hitfloor ~= nil then
  1149. Torso.Velocity = vt(0, 0, 0)
  1150. end
  1151. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1152. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1153. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1154. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1155. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1156. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1157. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1158. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1159. end
  1160. for i = 1, 70 do
  1161. swait()
  1162. gairost.cframe = RootPart.CFrame
  1163. if hitfloor ~= nil then
  1164. Torso.Velocity = vt(0, 0, 0)
  1165. end
  1166. end
  1167. for i = 0, 1, 0.2 do
  1168. swait()
  1169. Stun.Value = 0
  1170. gairost.cframe = RootPart.CFrame
  1171. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1172. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1173. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1174. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1175. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1176. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1177. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1178. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1179. end
  1180. resumeControl()
  1181. gairost.Parent = nil
  1182. dec.Parent = nil
  1183. Stun.Value = 0
  1184. combo = 0
  1185. Stunned.Value = false
  1186. attack = false
  1187. for i = 1, 10 do
  1188. swait()
  1189. Stun.Value = 0
  1190. end
  1191. end
  1192.  
  1193. UnSword = function()
  1194. combo = 0
  1195. for i = 0, 1, 0.1 do
  1196. swait()
  1197. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1198. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1199. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.5)
  1200. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1201. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1.4, 0, 0.7) * euler(0, 1.3, 0), 0.5)
  1202. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.8, 0, -0.8) * euler(0, -1.5, 0), 0.5)
  1203. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.5)
  1204. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15), 0.5)
  1205. for d = 1, #Saber do
  1206. Saber[d].Transparency = i
  1207. end
  1208. end
  1209. for d = 1, #Saber do
  1210. Saber[d].Transparency = 1
  1211. end
  1212. handlewld.Part1 = Torso
  1213. handlewld2.Part1 = Torso
  1214. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1215. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1216. mwld1.C0 = cf(0, 2, 0)
  1217. mwld2.C0 = cf(0, 2, 0)
  1218. floating = true
  1219. Mode = "Normal"
  1220. for i = 1, 0, -0.2 do
  1221. swait()
  1222. for d = 1, #Saber do
  1223. Saber[d].Transparency = i
  1224. end
  1225. end
  1226. for d = 1, #Saber do
  1227. Saber[d].Transparency = 0
  1228. end
  1229. end
  1230.  
  1231. attackone = function()
  1232. floating = false
  1233. Mode = "Sabers"
  1234. for i = 0, 1, 0.3 do
  1235. swait()
  1236. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1237. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
  1238. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
  1239. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
  1240. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
  1241. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1242. for d = 1, #Saber do
  1243. Saber[d].Transparency = i
  1244. end
  1245. end
  1246. for d = 1, #Saber do
  1247. Saber[d].Transparency = 1
  1248. end
  1249. handlewld.Part1 = LeftArm
  1250. handlewld2.Part1 = RightArm
  1251. handlewld.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
  1252. handlewld2.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
  1253. mwld1.C0 = cf(0, 0, 0)
  1254. mwld2.C0 = cf(0, 0, 0)
  1255. so("341336274", main1, 0.6, 1.2)
  1256. so("341336274", main2, 0.6, 1.2)
  1257. for i = 1, 0, -0.3 do
  1258. swait()
  1259. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1260. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
  1261. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
  1262. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
  1263. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
  1264. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1265. for d = 1, #Saber do
  1266. Saber[d].Transparency = i
  1267. end
  1268. end
  1269. for d = 1, #Saber do
  1270. Saber[d].Transparency = 0
  1271. end
  1272. hitbox.Parent = modelzorz
  1273. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1274. teh = math.random(-30, 30) / 100
  1275. so("341336307", main1, 0.6, 1.4 + teh)
  1276. so("341336485", main1, 0.6, 1 + teh)
  1277. for i = 0, 1, 0.12 do
  1278. swait()
  1279. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1280. MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1281. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.2, 0) * euler(0, 0, -1), 0.4)
  1282. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0.5), 0.4)
  1283. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.4)
  1284. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, -0.8), 0.4)
  1285. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(2.5, 0, 0.6) * euler(0, -1, 0), 0.4)
  1286. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, -1.6) * euler(0, 2.5, 0) * euler(-2.5, 0, 0), 0.4)
  1287. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, -0.1), 0.4)
  1288. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.1, 0, 0.05), 0.4)
  1289. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1290. do
  1291. if StaggerHit.Value == true then
  1292. break
  1293. end
  1294. end
  1295. end
  1296. end
  1297. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1298. teh = math.random(-30, 30) / 100
  1299. so("341336307", main2, 0.6, 1.4 + teh)
  1300. so("341336485", main2, 0.6, 1 + teh)
  1301. for i = 0, 1, 0.12 do
  1302. swait()
  1303. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1304. MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1305. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1306. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.5), 0.4)
  1307. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.4)
  1308. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.4)
  1309. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(2.5, 0, 0.6) * euler(0, 0.2, 0) * euler(-2, 0, 0), 0.4)
  1310. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0.4, 0), 0.4)
  1311. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
  1312. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.4)
  1313. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1314. do
  1315. if StaggerHit.Value == true then
  1316. break
  1317. end
  1318. end
  1319. end
  1320. end
  1321. hitbox.Parent = nil
  1322. end
  1323. end
  1324.  
  1325. attacktwo = function()
  1326. for i = 0, 1, 0.15 do
  1327. swait()
  1328. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1329. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1330. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), 0.4)
  1331. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.4)
  1332. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(0.6, 0, 0.7) * euler(0, 1, 0) * euler(0.4, 0, 0), 0.4)
  1333. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.8) * euler(0, 2, 0), 0.4)
  1334. RH.C0 = clerp(RH.C0, cf(0.9, -0.7, 0.2) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
  1335. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, 0.15), 0.4)
  1336. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1337. do
  1338. if StaggerHit.Value == true then
  1339. break
  1340. end
  1341. end
  1342. end
  1343. end
  1344. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1345. hitbox.Parent = modelzorz
  1346. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1347. teh = math.random(-30, 30) / 100
  1348. so("341336307", main1, 0.6, 1.4 + teh)
  1349. so("341336485", main1, 0.6, 1 + teh)
  1350. for i = 0, 1, 0.12 do
  1351. swait()
  1352. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1353. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1354. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
  1355. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1356. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.4)
  1357. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.4)
  1358. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, -1, 0) * euler(0, 0, 0), 0.4)
  1359. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1, 0, -0.8) * euler(0, 2.5, 0) * euler(-2, 0, 0), 0.4)
  1360. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.3), 0.4)
  1361. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, 0.2) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(0.1, 0, -0.15), 0.4)
  1362. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1363. do
  1364. if StaggerHit.Value == true then
  1365. break
  1366. end
  1367. end
  1368. end
  1369. end
  1370. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1371. teh = math.random(-30, 30) / 100
  1372. so("341336307", main2, 0.6, 1.4 + teh)
  1373. so("341336485", main2, 0.6, 1 + teh)
  1374. for i = 0, 1, 0.12 do
  1375. swait()
  1376. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1377. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1378. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1379. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
  1380. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.4)
  1381. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1382. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, 1.57) * euler(0, -1.5, 0) * euler(-2, 0, 0), 0.4)
  1383. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.8) * euler(0, -0.2, 0) * euler(0, 0, 0), 0.4)
  1384. RH.C0 = clerp(RH.C0, cf(0.8, -0.7, 0.3) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, 0.1), 0.4)
  1385. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.6, 0) * euler(-0.2, 0, 0.3), 0.4)
  1386. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1387. do
  1388. if StaggerHit.Value == true then
  1389. break
  1390. end
  1391. end
  1392. end
  1393. end
  1394. hitbox.Parent = nil
  1395. end
  1396. end
  1397. end
  1398.  
  1399. attackthree = function()
  1400. for i = 0, 1, 0.15 do
  1401. swait()
  1402. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1403. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.1, 0) * euler(0, 0, 0.4), 0.5)
  1404. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.5, 0, 0), 0.5)
  1405. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0.8) * euler(0, 0, 0.1) * euler(-0.2, 0, 0), 0.5)
  1406. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(2.8, 0, 0), 0.5)
  1407. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.7) * euler(0, 0.5, 0) * euler(0, 0, 0.6), 0.5)
  1408. RH.C0 = clerp(RH.C0, cf(1.1, -0.7, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, 0.15), 0.5)
  1409. LH.C0 = clerp(LH.C0, cf(-0.95, -0.7, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.1), 0.5)
  1410. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1411. do
  1412. if StaggerHit.Value == true then
  1413. break
  1414. end
  1415. end
  1416. end
  1417. end
  1418. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1419. hitbox.Parent = modelzorz
  1420. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1421. teh = math.random(-30, 30) / 100
  1422. so("341336307", main2, 0.6, 1.4 + teh)
  1423. so("341336485", main2, 0.6, 1 + teh)
  1424. for i = 0, 1, 0.12 do
  1425. swait()
  1426. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1427. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1428. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1429. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.2, 0) * euler(0, 0, -0.4), 0.5)
  1430. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
  1431. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, 0.1) * euler(0.2, 0, 0), 0.5)
  1432. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(0.3, 0, 0), 0.5)
  1433. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0), 0.5)
  1434. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, -0.1), 0.5)
  1435. LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.5)
  1436. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1437. do
  1438. if StaggerHit.Value == true then
  1439. break
  1440. end
  1441. end
  1442. end
  1443. end
  1444. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1445. teh = math.random(-30, 30) / 100
  1446. so("341336307", main1, 0.6, 1.4 + teh)
  1447. so("341336485", main1, 0.6, 1 + teh)
  1448. for i = 0, 1, 0.12 do
  1449. swait()
  1450. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1451. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1452. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.1, 0) * euler(0, 0, -0.4), 0.5)
  1453. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1454. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
  1455. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1456. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(-0.3, 0, 0.6), 0.5)
  1457. LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -0.5) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0) * euler(-2.8, 0, 0), 0.5)
  1458. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.1), 0.5)
  1459. LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.2, 0, 0.4), 0.5)
  1460. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1461. do
  1462. if StaggerHit.Value == true then
  1463. break
  1464. end
  1465. end
  1466. end
  1467. end
  1468. hitbox.Parent = nil
  1469. end
  1470. end
  1471. end
  1472.  
  1473. attackfour = function()
  1474. so("341336200", main1, 0.6, 1)
  1475. so("341336200", main2, 0.6, 1)
  1476. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, 0, 0), 0.3)
  1477. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 0, 0), 0.3)
  1478. local tehn = math.random(1, 7)
  1479. local rara = 0
  1480. for i = 0, 1, 0.05 do
  1481. swait()
  1482. rara = rara + 1
  1483. if (rara) % 2 == 0 then
  1484. if tehn > 6 then
  1485. tehn = 1
  1486. else
  1487. tehn = tehn + 1
  1488. end
  1489. end
  1490. da1 = math.random(150, 250) / 100
  1491. da2 = math.random(700, 900) / 100
  1492. MagicCircle(Neons[tehn], main1.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
  1493. MagicCircle(Neons[tehn], main2.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
  1494. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1495. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1496. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1497. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  1498. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0), 0.3)
  1499. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0), 0.3)
  1500. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.3)
  1501. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.3)
  1502. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1503. do
  1504. if StaggerHit.Value == true then
  1505. break
  1506. end
  1507. end
  1508. end
  1509. end
  1510. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1511. hitbox.Parent = modelzorz
  1512. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1513. so("341336307", main1, 1, 1.2)
  1514. so("341336307", main2, 1, 1.2)
  1515. for i = 0, 1, 0.2 do
  1516. swait()
  1517. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1518. MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
  1519. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1520. MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
  1521. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
  1522. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
  1523. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.8)
  1524. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.8)
  1525. RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.8)
  1526. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.8)
  1527. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.8)
  1528. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.8)
  1529. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1530. do
  1531. if StaggerHit.Value == true then
  1532. break
  1533. end
  1534. end
  1535. end
  1536. end
  1537. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1538. for i = 1, 3 do
  1539. Star(main2, 50)
  1540. Star(main1, 50)
  1541. end
  1542. hitbox.Parent = nil
  1543. local ref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1544. ref1.Anchored = true
  1545. ref1.CFrame = cf(main1.Position)
  1546. game:GetService("Debris"):AddItem(ref1, 1)
  1547. so("341336243", ref1, 1, 1)
  1548. local ref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1549. ref2.Anchored = true
  1550. ref2.CFrame = cf(main2.Position)
  1551. game:GetService("Debris"):AddItem(ref2, 1)
  1552. so("341336243", ref1, 1, 1)
  1553. for i = 0, 1, 0.2 do
  1554. swait()
  1555. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
  1556. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
  1557. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
  1558. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
  1559. RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.5)
  1560. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.5)
  1561. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.5)
  1562. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.5)
  1563. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1564. do
  1565. if StaggerHit.Value == true then
  1566. break
  1567. end
  1568. end
  1569. end
  1570. end
  1571. for i = 0, 1, 0.3 do
  1572. swait()
  1573. for d = 1, #Saber do
  1574. Saber[d].Transparency = i
  1575. end
  1576. end
  1577. for d = 1, #Saber do
  1578. Saber[d].Transparency = 1
  1579. end
  1580. handlewld.Part1 = Torso
  1581. handlewld2.Part1 = Torso
  1582. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1583. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1584. mwld1.C0 = cf(0, 2, 0)
  1585. mwld2.C0 = cf(0, 2, 0)
  1586. floating = true
  1587. Mode = "Normal"
  1588. for i = 1, 0, -0.2 do
  1589. swait()
  1590. for d = 1, #Saber do
  1591. Saber[d].Transparency = i
  1592. end
  1593. end
  1594. for d = 1, #Saber do
  1595. Saber[d].Transparency = 0
  1596. end
  1597. end
  1598. end
  1599. end
  1600.  
  1601. PowerRising = function()
  1602. attack = true
  1603. if Mode == "Sabers" then
  1604. UnSword()
  1605. end
  1606. local dec = Instance.new("NumberValue", Decrease)
  1607. dec.Name = "DecreaseMvmt"
  1608. dec.Value = 10
  1609. manainc = 12
  1610. local col = 1
  1611. local colnum = 0
  1612. local dopart = 0
  1613. cooldownsadd[1] = 0.18
  1614. cooldownsadd[2] = 0.16
  1615. cooldownsadd[3] = 0.14
  1616. prising = true
  1617. local prref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1618. prref.Anchored = true
  1619. while prising == true do
  1620. swait()
  1621. dopart = dopart + 1
  1622. if (dopart) % 4 == 0 then
  1623. colnum = colnum + 1
  1624. if (colnum) % 2 == 0 then
  1625. col = math.random(1, 7)
  1626. end
  1627. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
  1628. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
  1629. prref.CFrame = cf(RootPart.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  1630. local phitfloor, pposfloor = rayCast(prref.Position, CFrame.new(prref.Position, prref.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  1631. if phitfloor ~= nil then
  1632. MagicCircle(Neons[col], cf(pposfloor), 1, 1, 1, 1, 5, 1, 0.1)
  1633. end
  1634. end
  1635. do
  1636. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.1)
  1637. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(1, 0, 1.3) * euler(0, -1.57, 0), 0.1)
  1638. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(1, 0, -1.3) * euler(0, 1.57, 0), 0.1)
  1639. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.1)
  1640. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.1)
  1641. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  1642. break
  1643. end
  1644. end
  1645. end
  1646. cooldownsadd[1] = 0.16
  1647. cooldownsadd[2] = 0.14
  1648. cooldownsadd[3] = 0.12
  1649. manainc = 16
  1650. dec.Parent = nil
  1651. attack = false
  1652. end
  1653.  
  1654. Star = function(mainpart, rand)
  1655. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  1656. stref.Anchored = true
  1657. stref.Material = "Neon"
  1658. stref.CFrame = cf(mainpart.Position)
  1659. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(3, 3, 3))
  1660. hitbox.CFrame = mainpart.CFrame * cf(math.random(-100, 100) / 100, 2 + math.random(-200, 200) / 100, math.random(-100, 100) / 100)
  1661. table.insert(Effects, {RootPart.CFrame.lookVector + vt(math.random(-rand, rand) / 100, math.random(-rand, rand) / 100, math.random(-rand, rand) / 100), "Shoot", 80, hitbox.Position, 7, 9, 0, math.random(1, 7), stref, euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  1662. end
  1663.  
  1664. do1 = function()
  1665. if attack == true then
  1666. return
  1667. end
  1668. attack = true
  1669. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1670. return
  1671. end
  1672. if cooldowns[1] >= 50 then
  1673. if Mode == "Sabers" then
  1674. UnSword()
  1675. end
  1676. cbuster = true
  1677. Humanoid.AutoRotate = false
  1678. for i = 0, 1, 0.1 do
  1679. swait()
  1680. LeftArm.Transparency = i
  1681. for d = 1, #Buster do
  1682. Buster[d].Transparency = i
  1683. end
  1684. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
  1685. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
  1686. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.5) * euler(1.3, 0, -1) * euler(0, 0, 0), 0.3)
  1687. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  1688. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1689. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1690. do
  1691. if StaggerHit.Value == true then
  1692. break
  1693. end
  1694. end
  1695. end
  1696. end
  1697. local rara1 = Instance.new("NumberValue", Decrease)
  1698. rara1.Name = "DecreaseMvmt"
  1699. rara1.Value = 0.4
  1700. local rara2 = Instance.new("NumberValue", Decrease)
  1701. rara2.Name = "DecreaseDef"
  1702. rara2.Value = -0.1
  1703. handlewld3.Part1 = LeftArm
  1704. handlewld3.C0 = euler(0, 0, mr(-90)) * euler(0, mr(40), 0) * cf(0, 0, 0)
  1705. LeftArm.Transparency = 1
  1706. for d = 1, #Buster do
  1707. Buster[d].Transparency = 1
  1708. end
  1709. for i = 1, 0, -0.2 do
  1710. swait()
  1711. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
  1712. for d = 1, #Buster do
  1713. Buster[d].Transparency = i
  1714. end
  1715. end
  1716. for d = 1, #Buster do
  1717. Buster[d].Transparency = 0
  1718. end
  1719. cshoot = false
  1720. cdebounce = false
  1721. local dashoot = 0
  1722. local laser1 = part(3, nil, 0, 0.5, BrickColor.new("Really red"), "Effect", vt())
  1723. laser1.Material = "Neon"
  1724. laser1.Anchored = true
  1725. local laser2 = laser1:Clone()
  1726. local laser3 = laser1:Clone()
  1727. local laser4 = laser1:Clone()
  1728. local lmsh1 = mesh("CylinderMesh", laser1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1729. local lmsh2 = mesh("CylinderMesh", laser2, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1730. local lmsh3 = mesh("CylinderMesh", laser3, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1731. local lmsh4 = (mesh("CylinderMesh", laser4, "", "", vt(0, 0, 0), vt(1, 1, 1)))
  1732. local l2cf, l3cf, l4cf = nil, nil, nil
  1733. while cbuster == true and cooldowns[1] > 10 do
  1734. swait()
  1735. if MMouse ~= nil then
  1736. local mpos = handle3.CFrame * euler(0, 0, 0)
  1737. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  1738. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1739. handlewld3a.Part0 = handle3
  1740. handlewld3a.Part1 = handle3a
  1741. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
  1742. end
  1743. if busterlaser == true then
  1744. busterlaser = false
  1745. so("306247678", Torso, 1, 0.5)
  1746. for _,c in pairs(model3:children()) do
  1747. c.Transparency = 0
  1748. end
  1749. local dec = Instance.new("NumberValue", Decrease)
  1750. dec.Name = "DecreaseMvmt"
  1751. dec.Value = 0
  1752. for d = 1, 7 do
  1753. for i = 1, 0, -0.25 do
  1754. swait()
  1755. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.3)
  1756. do
  1757. do
  1758. if d == 1 then
  1759. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1760. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1761. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  1762. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  1763. else
  1764. if d == 2 then
  1765. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1766. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1767. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  1768. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  1769. else
  1770. if d == 3 then
  1771. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1772. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1773. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  1774. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  1775. else
  1776. if d == 4 then
  1777. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1778. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1779. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  1780. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  1781. else
  1782. if d == 5 then
  1783. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1784. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1785. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  1786. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  1787. else
  1788. if d == 6 then
  1789. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1790. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1791. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  1792. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  1793. else
  1794. if d == 7 then
  1795. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1796. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1797. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  1798. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  1799. end
  1800. end
  1801. end
  1802. end
  1803. end
  1804. end
  1805. end
  1806. end
  1807. end
  1808. end
  1809. end
  1810. local mainpos = MMouse.Hit.p
  1811. for i = 0, 3, 0.2 do
  1812. swait()
  1813. if mainpos ~= nil then
  1814. local mpos = handle3.CFrame * euler(0, 0, 0)
  1815. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1816. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1817. handlewld3a.Part0 = handle3
  1818. handlewld3a.Part1 = handle3a
  1819. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.8)
  1820. end
  1821. do
  1822. do
  1823. if i < 1 then
  1824. handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0.1), 0.4)
  1825. handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, -0.1), 0.4)
  1826. handlewld6.C0 = euler(0, mr(-45) * i, 0) * cf(3.35, 0, -0.075 - 0.065 * i)
  1827. handlewld7.C0 = euler(0, mr(45) * i, 0) * cf(3.35, 0, 0.075 + 0.065 * i)
  1828. end
  1829. end
  1830. end
  1831. end
  1832. mana.Value = mana.Value - 15
  1833. cooldowns[1] = cooldowns[1] - 30
  1834. for i = 1, 3 do
  1835. so("341336476", handle10, 10, 1)
  1836. end
  1837. local refl = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1838. refl.Anchored = true
  1839. for d = 1, 7 do
  1840. for i = 0, 1, 0.25 do
  1841. swait()
  1842. if mainpos ~= nil then
  1843. local mpos = handle3.CFrame * euler(0, 0, 0)
  1844. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1845. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1846. handlewld3a.Part0 = handle3
  1847. handlewld3a.Part1 = handle3a
  1848. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 0.5)
  1849. for i = 1, 5 do
  1850. tehcf = cf(0, 0, -1.5)
  1851. if i == 2 then
  1852. tehcf = cf(0, 3, -1.5)
  1853. else
  1854. if i == 3 then
  1855. tehcf = cf(0, -3, -1.5)
  1856. else
  1857. if i == 4 then
  1858. tehcf = cf(3, 0, -1.5)
  1859. else
  1860. if i == 5 then
  1861. tehcf = cf(-3, 0, -1.5)
  1862. end
  1863. end
  1864. end
  1865. end
  1866. refl.CFrame = handle10.CFrame * tehcf
  1867. local mainpos = refl.Position
  1868. local dist = 500
  1869. raa = math.random(1, 7)
  1870. if i == 1 then
  1871. MagicCircle(Neons[raa], refl.CFrame, 30, 30, 10, 0, 0, 0, 0.3)
  1872. end
  1873. local bounce = 10
  1874. repeat
  1875. bounce = bounce - 1
  1876. local hit, pos = rayCast(mainpos, refl.CFrame.lookVector, dist, Character)
  1877. local targl = mainpos - pos
  1878. local magl = targl.magnitude
  1879. dist = dist - magl
  1880. local mag = (mainpos - pos).magnitude
  1881. if i == 1 then
  1882. MagicCylinder(Neons[raa], CFrame.new((mainpos + pos) / 2, pos) * angles(1.57, 0, 0), 30, mag * 5, 30, 0, 0, 0, 0.3)
  1883. end
  1884. mainpos = pos
  1885. if hit ~= nil then
  1886. Damagefunc(hit, 8, 10, 0, "Normal", RootPart, 0.2, 1, (math.random(8, 10)), nil, nil, true)
  1887. end
  1888. until dist <= 0 or hit == nil or bounce < 1
  1889. end
  1890. end
  1891. do
  1892. do
  1893. if d == 7 then
  1894. rainbow6.Transparency = 1
  1895. rainbow6a.Transparency = 1
  1896. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1897. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1898. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  1899. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  1900. else
  1901. if d == 6 then
  1902. rainbow5.Transparency = 1
  1903. rainbow5a.Transparency = 1
  1904. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1905. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1906. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  1907. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  1908. else
  1909. if d == 5 then
  1910. rainbow4.Transparency = 1
  1911. rainbow4a.Transparency = 1
  1912. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1913. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1914. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  1915. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  1916. else
  1917. if d == 4 then
  1918. rainbow3.Transparency = 1
  1919. rainbow3a.Transparency = 1
  1920. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1921. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1922. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  1923. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  1924. else
  1925. if d == 3 then
  1926. rainbow2.Transparency = 1
  1927. rainbow2a.Transparency = 1
  1928. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1929. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1930. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  1931. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  1932. else
  1933. if d == 2 then
  1934. rainbow1.Transparency = 1
  1935. rainbow1a.Transparency = 1
  1936. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1937. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1938. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  1939. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  1940. else
  1941. if d == 1 then
  1942. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1943. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1944. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  1945. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  1946. end
  1947. end
  1948. end
  1949. end
  1950. end
  1951. end
  1952. end
  1953. end
  1954. end
  1955. end
  1956. end
  1957. for _,c in pairs(model3:children()) do
  1958. c.Transparency = 1
  1959. end
  1960. for i = 0, 1, 0.1 do
  1961. swait()
  1962. if mainpos ~= nil then
  1963. local mpos = handle3.CFrame * euler(0, 0, 0)
  1964. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1965. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1966. handlewld3a.Part0 = handle3
  1967. handlewld3a.Part1 = handle3a
  1968. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.5)
  1969. end
  1970. do
  1971. do
  1972. if i < 1 then
  1973. handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0), 0.4)
  1974. handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, 0), 0.4)
  1975. handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 0.4)
  1976. handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 0.4)
  1977. end
  1978. end
  1979. end
  1980. end
  1981. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 1)
  1982. RootJoint.C1 = clerp(RootJoint.C1, RootCF, 1)
  1983. dec.Parent = nil
  1984. handlewld4.C0 = cf(0, 0, 0)
  1985. handlewld5.C0 = cf(0, 0, 0)
  1986. handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 1)
  1987. handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 1)
  1988. end
  1989. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1990. if StaggerHit.Value ~= true and cshoot == true then
  1991. cdebounce = true
  1992. cshoot = false
  1993. while cdebounce do
  1994. swait()
  1995. if cdebounce == true and dashoot < 27 then
  1996. if dashoot == 0 then
  1997. l2cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  1998. l3cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  1999. l4cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  2000. end
  2001. dashoot = dashoot + 1
  2002. local hit, pos = rayCast(handle10.Position, handle10.CFrame.lookVector, 500, Character)
  2003. local hit2, pos2 = rayCast(handle10.Position, handle10.CFrame.lookVector + l2cf, 500, Character)
  2004. local hit3, pos3 = rayCast(handle10.Position, handle10.CFrame.lookVector + l3cf, 500, Character)
  2005. local hit4, pos4 = rayCast(handle10.Position, handle10.CFrame.lookVector + l4cf, 500, Character)
  2006. if (dashoot) % 3 == 0 and dashoot < 20 then
  2007. so("341336333", handle10, 1, 1)
  2008. end
  2009. if dashoot == 20 or dashoot == 22 or dashoot == 24 or dashoot == 26 then
  2010. cooldowns[1] = cooldowns[1] - 4
  2011. handlewld8.C0 = euler(0, mr(-20), 0) * cf(0.291, 0, 0)
  2012. handlewld9.C0 = euler(0, mr(20), 0) * cf(0.291, 0, 0)
  2013. so("341336385", handle10, 1, 1)
  2014. table.insert(Effects, {handle10.CFrame.lookVector, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2015. table.insert(Effects, {handle10.CFrame.lookVector + l2cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2016. table.insert(Effects, {handle10.CFrame.lookVector + l3cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2017. table.insert(Effects, {handle10.CFrame.lookVector + l4cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2018. else
  2019. handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2020. handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2021. end
  2022. local mag = (handle10.Position - pos).magnitude
  2023. laser1.Parent = effects
  2024. laser1.CFrame = cf((handle10.Position + pos) / 2, pos) * angles(1.57, 0, 0)
  2025. lmsh1.Scale = vt(0.5, mag * 5, 0.5)
  2026. local mag2 = (handle10.Position - pos2).magnitude
  2027. laser2.Parent = effects
  2028. laser2.CFrame = cf((handle10.Position + pos2) / 2, pos2) * angles(1.57, 0, 0)
  2029. lmsh2.Scale = vt(0.5, mag2 * 5, 0.5)
  2030. local mag3 = (handle10.Position - pos3).magnitude
  2031. laser3.Parent = effects
  2032. laser3.CFrame = cf((handle10.Position + pos3) / 2, pos3) * angles(1.57, 0, 0)
  2033. lmsh3.Scale = vt(0.5, mag3 * 5, 0.5)
  2034. local mag4 = (handle10.Position - pos4).magnitude
  2035. laser4.Parent = effects
  2036. laser4.CFrame = cf((handle10.Position + pos4) / 2, pos4) * angles(1.57, 0, 0)
  2037. lmsh4.Scale = vt(0.5, mag4 * 5, 0.5)
  2038. else
  2039. do
  2040. laser1.Parent = nil
  2041. laser2.Parent = nil
  2042. laser3.Parent = nil
  2043. laser4.Parent = nil
  2044. cdebounce = false
  2045. dashoot = 0
  2046. if MMouse ~= nil then
  2047. local mpos = handle3.CFrame * euler(0, 0, 0)
  2048. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  2049. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2050. handlewld3a.Part0 = handle3
  2051. handlewld3a.Part1 = handle3a
  2052. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
  2053. end
  2054. end
  2055. end
  2056. end
  2057. end
  2058. end
  2059. if Anim == "Idle" then
  2060. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
  2061. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2062. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2063. end
  2064. if Anim == "Walk" or Anim == "Run" then
  2065. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.3)
  2066. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2067. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2068. end
  2069. if Anim == "Jump" then
  2070. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8) * euler(0, 0, 0), 0.3)
  2071. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2072. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2073. end
  2074. if Anim == "Fall" then
  2075. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
  2076. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2077. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2078. end
  2079. end
  2080. Humanoid.AutoRotate = true
  2081. cbuster = false
  2082. rara1.Parent = nil
  2083. rara2.Parent = nil
  2084. handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2085. handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2086. laser1.Parent = nil
  2087. laser2.Parent = nil
  2088. laser3.Parent = nil
  2089. laser4.Parent = nil
  2090. LW.Part0 = ch.Torso
  2091. LW.Part1 = ch["Left Arm"]
  2092. handlewld3.Part0 = handle3
  2093. handlewld3.Part1 = LeftArm
  2094. for i = 0, 1, 0.1 do
  2095. swait()
  2096. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
  2097. for d = 1, #Buster do
  2098. Buster[d].Transparency = i
  2099. end
  2100. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2101. do
  2102. if StaggerHit.Value == true then
  2103. break
  2104. end
  2105. end
  2106. end
  2107. end
  2108. handlewld3a.C0 = clerp(handlewld3a.C0, cf(0, 0, 0), 1)
  2109. handlewld3.Part1 = Torso
  2110. handlewld3.C0 = euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8)
  2111. for i = 1, 0, -0.1 do
  2112. swait()
  2113. LeftArm.Transparency = i
  2114. for d = 1, #Buster do
  2115. Buster[d].Transparency = i
  2116. end
  2117. end
  2118. LeftArm.Transparency = 0
  2119. for d = 1, #Buster do
  2120. Buster[d].Transparency = 0
  2121. end
  2122. end
  2123. attack = false
  2124. end
  2125.  
  2126. do2 = function()
  2127. if sbreaker == true then
  2128. sbreaker = false
  2129. end
  2130. if attack == true then
  2131. return
  2132. end
  2133. attack = true
  2134. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2135. return
  2136. end
  2137. if cooldowns[2] >= 70 then
  2138. if Mode == "Sabers" then
  2139. UnSword()
  2140. end
  2141. local rara1 = Instance.new("NumberValue", Decrease)
  2142. rara1.Name = "DecreaseMvmt"
  2143. rara1.Value = -0.05
  2144. local rara2 = Instance.new("NumberValue", Decrease)
  2145. rara2.Name = "DecreaseDef"
  2146. rara2.Value = 0.1
  2147. so("341336144", LeftArm, 1, 1)
  2148. so("341336144", RightArm, 1, 1)
  2149. sbreaker = true
  2150. local sbref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2151. local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
  2152. local sbref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2153. local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
  2154. local da1 = lparti1:Clone()
  2155. da1.Parent = sbref1
  2156. local da2 = lparti1:Clone()
  2157. da2.Parent = sbref2
  2158. da1.Enabled = true
  2159. da2.Enabled = true
  2160. for i = 0, 1, 0.1 do
  2161. swait()
  2162. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2163. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2164. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2165. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2166. do
  2167. if StaggerHit.Value == true then
  2168. break
  2169. end
  2170. end
  2171. end
  2172. end
  2173. shockshoot = false
  2174. shockdebounce = false
  2175. local dashoot = 3
  2176. local sref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2177. sref.Anchored = true
  2178. TehM = nil
  2179. while sbreaker == true and cooldowns[2] > 20 do
  2180. swait()
  2181. if sbreakerII == true then
  2182. sbreakerII = false
  2183. for i = 0, 1, 0.1 do
  2184. swait()
  2185. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2186. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2187. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3, 0, -0.2) * euler(0, 0, 0), 0.3)
  2188. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, 0.2) * euler(0, 0, 0), 0.3)
  2189. end
  2190. cooldowns[2] = cooldowns[2] - 30
  2191. mana.Value = mana.Value - 10
  2192. for i = 1, 3 do
  2193. MouseLook = cf((RootPart.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2194. local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
  2195. rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
  2196. sref.CFrame = cf(pos) * rand
  2197. local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  2198. local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
  2199. d1.Anchored = true
  2200. d1.CFrame = cf(pos2)
  2201. d1.Material = "Neon"
  2202. msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(100, 5, 100))
  2203. d2 = d1:Clone()
  2204. d2.Transparency = 1
  2205. d2.Parent = d1
  2206. d2.CFrame = cf(d1.Position)
  2207. d2.BrickColor = BrickColor.new("New Yeller")
  2208. table.insert(Effects, {d1, "SatelliteStrike2", d2, d2.Mesh, 0, 0})
  2209. end
  2210. end
  2211. do
  2212. if shockshoot == true then
  2213. shockshoot = false
  2214. shockdebounce = true
  2215. end
  2216. if shockdebounce == true and dashoot < 25 then
  2217. dashoot = dashoot + 1
  2218. if (dashoot) % 4 == 0 and dashoot < 20 then
  2219. cooldowns[2] = cooldowns[2] - 3
  2220. MouseLook = cf((RootPart.Position + TehM) / 2, TehM)
  2221. local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
  2222. rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
  2223. if dashoot == 4 then
  2224. rand = cf(0, 10, 0)
  2225. end
  2226. sref.CFrame = cf(pos) * rand
  2227. local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  2228. local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
  2229. d1.Anchored = true
  2230. d1.CFrame = cf(pos2)
  2231. d1.Material = "Neon"
  2232. msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(50, 5, 50))
  2233. d2 = d1:Clone()
  2234. d2.Transparency = 1
  2235. d2.Parent = d1
  2236. d2.CFrame = cf(d1.Position)
  2237. d2.BrickColor = BrickColor.new("New Yeller")
  2238. table.insert(Effects, {d1, "SatelliteStrike", d2, d2.Mesh, 0, 0})
  2239. end
  2240. else
  2241. do
  2242. shockdebounce = false
  2243. dashoot = 3
  2244. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2245. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2246. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2247. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2248. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  2249. break
  2250. end
  2251. end
  2252. end
  2253. end
  2254. if Anim == "Idle" then
  2255. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2256. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2257. end
  2258. if Anim == "Walk" or Anim == "Run" then
  2259. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2260. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2261. end
  2262. if Anim == "Jump" then
  2263. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2264. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2265. end
  2266. if Anim == "Fall" then
  2267. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2268. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2269. end
  2270. end
  2271. sbreaker = false
  2272. rara1.Parent = nil
  2273. rara2.Parent = nil
  2274. sbrwld1.Parent = nil
  2275. sbrwld2.Parent = nil
  2276. sbref1.Anchored = true
  2277. sbref2.Anchored = true
  2278. da1.Enabled = false
  2279. da2.Enabled = false
  2280. game:GetService("Debris"):AddItem(sbref1, 5)
  2281. game:GetService("Debris"):AddItem(sbref2, 5)
  2282. end
  2283. attack = false
  2284. end
  2285.  
  2286. do3 = function()
  2287. if attack == true then
  2288. return
  2289. end
  2290. attack = true
  2291. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2292. return
  2293. end
  2294. if cooldowns[3] >= 80 then
  2295. if Mode == "Sabers" then
  2296. UnSword()
  2297. end
  2298. local rara1 = Instance.new("NumberValue", Decrease)
  2299. rara1.Name = "DecreaseMvmt"
  2300. rara1.Value = 0.1
  2301. local rara2 = Instance.new("NumberValue", Decrease)
  2302. rara2.Name = "DecreaseDef"
  2303. rara2.Value = 0.05
  2304. so("341336144", LeftArm, 1, 1)
  2305. so("341336144", RightArm, 1, 1)
  2306. sblazing = true
  2307. local sbref1 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
  2308. local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
  2309. local sbref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
  2310. local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
  2311. local da1 = sparti:Clone()
  2312. da1.Parent = sbref1
  2313. local da2 = sparti:Clone()
  2314. da2.Parent = sbref2
  2315. da1.Enabled = true
  2316. da2.Enabled = true
  2317. for i = 0, 1, 0.1 do
  2318. swait()
  2319. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2320. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2321. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2322. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2323. do
  2324. if StaggerHit.Value == true then
  2325. break
  2326. end
  2327. end
  2328. end
  2329. end
  2330. starshoot = false
  2331. stardebounce = false
  2332. local dashoot = 0
  2333. local sref = part(3, nil, 0, 0.5, BrickColor.new("Black"), "Reference", vt())
  2334. sref.Anchored = true
  2335. TehM = nil
  2336. while sblazing == true and cooldowns[3] > 20 do
  2337. swait()
  2338. if galacblazing == true then
  2339. galacblazing = false
  2340. for i = 0, 1, 0.1 do
  2341. swait()
  2342. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(2.8, 0, 0.4) * euler(0, 0, 0), 0.3)
  2343. LW.C0 = clerp(LW.C0, cf(-1.5, 0.6, 0) * euler(2.8, 0, -0.4) * euler(0, 0, 0), 0.3)
  2344. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.3)
  2345. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2346. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2347. if math.random(1, 2) == 1 then
  2348. da1.RotSpeed = nr(400, 500)
  2349. else
  2350. da1.RotSpeed = nr(-500, -400)
  2351. end
  2352. if math.random(1, 2) == 1 then
  2353. da2.RotSpeed = nr(400, 500)
  2354. else
  2355. da2.RotSpeed = nr(-500, -400)
  2356. end
  2357. end
  2358. cooldowns[3] = cooldowns[3] - 20
  2359. mana.Value = mana.Value - 20
  2360. sref.CFrame = cf(RootPart.Position) * cf(0, 50, 0)
  2361. sref.CFrame = cf(sref.Position, MMouse.Hit.p)
  2362. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  2363. stref.Anchored = true
  2364. stref.Material = "Neon"
  2365. stref.CFrame = sref.CFrame
  2366. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(90, 90, 90))
  2367. so("341336159", stref, 1, 0.4)
  2368. table.insert(Effects, {stref.CFrame.lookVector, "Shoot4", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
  2369. end
  2370. do
  2371. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2372. if StaggerHit.Value ~= true or starshoot == true then
  2373. starshoot = false
  2374. stardebounce = true
  2375. cooldowns[3] = cooldowns[3] - 10
  2376. sref.CFrame = cf(RootPart.Position) * cf(math.random(-3000, 3000) / 100, math.random(500, 5000) / 100, math.random(-3000, 3000) / 100)
  2377. sref.CFrame = cf(sref.Position, MMouse.Hit.p)
  2378. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  2379. stref.Anchored = true
  2380. stref.Material = "Neon"
  2381. stref.CFrame = sref.CFrame
  2382. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(30, 30, 30))
  2383. so("341336159", stref, 1, 1)
  2384. table.insert(Effects, {stref.CFrame.lookVector, "Shoot3", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
  2385. end
  2386. do
  2387. if stardebounce == true and dashoot < 10 then
  2388. dashoot = dashoot + 1
  2389. else
  2390. stardebounce = false
  2391. dashoot = 0
  2392. end
  2393. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2394. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2395. if math.random(1, 2) == 1 then
  2396. da1.RotSpeed = nr(400, 500)
  2397. else
  2398. da1.RotSpeed = nr(-500, -400)
  2399. end
  2400. if math.random(1, 2) == 1 then
  2401. da2.RotSpeed = nr(400, 500)
  2402. else
  2403. da2.RotSpeed = nr(-500, -400)
  2404. end
  2405. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2406. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2407. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2408. if Anim == "Idle" then
  2409. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2410. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2411. end
  2412. end
  2413. if Anim == "Walk" or Anim == "Run" then
  2414. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2415. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2416. end
  2417. end
  2418. if Anim == "Jump" then
  2419. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2420. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2421. end
  2422. end
  2423. if Anim == "Fall" then
  2424. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2425. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2426. end
  2427. end
  2428. sblazing = false
  2429. rara1.Parent = nil
  2430. rara2.Parent = nil
  2431. sref.Parent = nil
  2432. sbrwld1.Parent = nil
  2433. sbrwld2.Parent = nil
  2434. sbref1.Anchored = true
  2435. sbref2.Anchored = true
  2436. da1.Enabled = false
  2437. da2.Enabled = false
  2438. game:GetService("Debris"):AddItem(sbref1, 5)
  2439. game:GetService("Debris"):AddItem(sbref2, 5)
  2440. end
  2441. attack = false
  2442. end
  2443.  
  2444. do4 = function()
  2445. if attack == true then
  2446. return
  2447. end
  2448. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2449. return
  2450. end
  2451. cooldowns[4] = 0
  2452. end
  2453.  
  2454. findNearestTorso = function(pos, distance)
  2455. local list = (game.Workspace:children())
  2456. local torso = nil
  2457. local dist = distance
  2458. local temp, human, temp2 = nil, nil, nil
  2459. for x = 1, #list do
  2460. temp2 = list[x]
  2461. canfind = true
  2462. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  2463. canfind = false
  2464. end
  2465. canfind = true
  2466. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  2467. temp = temp2:findFirstChild("Torso")
  2468. human = temp2:findFirstChild("Humanoid")
  2469. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2470. torso = temp
  2471. dist = (temp.Position - pos).magnitude
  2472. end
  2473. end
  2474. end
  2475. return torso, dist
  2476. end
  2477.  
  2478. DecreaseStat = function(Model, Stat, Amount, Duration)
  2479. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2480. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2481. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2482. dur = Instance.new("NumberValue", d)
  2483. dur.Name = "Duration"
  2484. dur.Value = Duration
  2485. game:GetService("Debris"):AddItem(d, 20)
  2486. if Stat == "Damage" then
  2487. d.Name = "DecreaseAtk"
  2488. else
  2489. if Stat == "Defense" then
  2490. d.Name = "DecreaseDef"
  2491. else
  2492. if Stat == "Movement" then
  2493. d.Name = "DecreaseMvmt"
  2494. end
  2495. end
  2496. end
  2497. if Model:findFirstChild("Torso") ~= nil then
  2498. display = ""
  2499. if Stat == "Damage" then
  2500. if Amount > 0 then
  2501. display = "-Damage"
  2502. else
  2503. display = "+Damage"
  2504. end
  2505. else
  2506. if Stat == "Defense" then
  2507. if Amount > 0 then
  2508. display = "-Defense"
  2509. else
  2510. display = "+Defense"
  2511. end
  2512. else
  2513. if Stat == "Movement" then
  2514. if Amount > 0 then
  2515. display = "-Movement"
  2516. else
  2517. display = "+Movement"
  2518. end
  2519. end
  2520. end
  2521. end
  2522. showDamage(Model, display, "Debuff")
  2523. end
  2524. d.Value = Amount
  2525. end
  2526. end
  2527.  
  2528. GetDist = function(Part1, Part2, magni)
  2529. local targ = Part1.Position - Part2.Position
  2530. local mag = targ.magnitude
  2531. if mag <= magni then
  2532. return true
  2533. else
  2534. return false
  2535. end
  2536. end
  2537.  
  2538. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2539. for _,c in pairs(workspace:children()) do
  2540. local hum = c:findFirstChild("Humanoid")
  2541. if hum ~= nil then
  2542. local head = nil
  2543. for _,d in pairs(c:children()) do
  2544. if d.className == "Model" and ranged ~= true then
  2545. head = d:findFirstChild("Hitbox")
  2546. if d.Parent == Character then
  2547. break
  2548. end
  2549. if head ~= nil then
  2550. local targ = head.Position - Part.Position
  2551. local mag = targ.magnitude
  2552. if mag <= magni and c.Name ~= Player.Name then
  2553. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2554. ref.Anchored = true
  2555. ref.CFrame = cf(head.Position)
  2556. game:GetService("Debris"):AddItem(ref, 1)
  2557. hitnum = math.random(1, 5)
  2558. if hitnum == 1 then
  2559. so("199148971", ref, 1, 1)
  2560. else
  2561. if hitnum == 2 then
  2562. so("199149025", ref, 1, 1)
  2563. else
  2564. if hitnum == 3 then
  2565. so("199149072", ref, 1, 1)
  2566. else
  2567. if hitnum == 4 then
  2568. so("199149109", ref, 1, 1)
  2569. else
  2570. if hitnum == 5 then
  2571. so("199149119", ref, 1, 1)
  2572. end
  2573. end
  2574. end
  2575. end
  2576. end
  2577. StaggerHit.Value = true
  2578. end
  2579. end
  2580. end
  2581. do
  2582. if d.className == "Part" then
  2583. head = d
  2584. if head ~= nil then
  2585. local targ = head.Position - Part.Position
  2586. local mag = targ.magnitude
  2587. if mag <= magni and c.Name ~= Player.Name then
  2588. if stun == nil then
  2589. stun = math.random(5, 10)
  2590. end
  2591. local Rang = nil
  2592. if Ranged == false then
  2593. Rang = true
  2594. end
  2595. local stag = nil
  2596. if shbash == true then
  2597. stag = true
  2598. end
  2599. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2600. end
  2601. end
  2602. end
  2603. end
  2604. end
  2605. end
  2606. end
  2607. end
  2608.  
  2609. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2610. DecreaseStat(Character, Dec, DecAm, Dur)
  2611. for _,c in pairs(workspace:children()) do
  2612. local hum = c:findFirstChild("Humanoid")
  2613. if hum ~= nil then
  2614. local head = c:findFirstChild("Torso")
  2615. if head ~= nil then
  2616. local targ = head.Position - Part.Position
  2617. local mag = targ.magnitude
  2618. cando = true
  2619. if mag <= magni then
  2620. if Player.Neutral == false then
  2621. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2622. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2623. cando = true
  2624. else
  2625. cando = false
  2626. end
  2627. else
  2628. cando = false
  2629. end
  2630. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2631. cando = true
  2632. end
  2633. else
  2634. cando = false
  2635. end
  2636. if cando == true then
  2637. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2638. end
  2639. end
  2640. end
  2641. end
  2642. end
  2643. end
  2644.  
  2645. rayCast = function(Pos, Dir, Max, Ignore)
  2646. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2647. end
  2648.  
  2649. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2650. LastPoint = Point
  2651. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2652. if LP == nil or P1 == nil then
  2653. return
  2654. end
  2655. local effectsmsh = Instance.new("SpecialMesh")
  2656. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2657. effectsmsh.MeshType = "Head"
  2658. effectsmsh.Name = "Mesh"
  2659. local effectsg = Instance.new("Part")
  2660. NoOutline(effectsg)
  2661. effectsg.formFactor = 3
  2662. effectsg.CanCollide = false
  2663. effectsg.Name = "Eff"
  2664. effectsg.Locked = true
  2665. effectsg.Anchored = true
  2666. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2667. effectsg.Parent = workspace
  2668. effectsmsh.Parent = effectsg
  2669. effectsg.BrickColor = BrickColor.new(Color)
  2670. effectsg.Reflectance = Ref
  2671. local point1 = P1
  2672. local mg = (LP.p - point1.p).magnitude
  2673. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2674. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2675. effectsmsh.Scale = Vector3.new(size, 1, size)
  2676. game:GetService("Debris"):AddItem(effectsg, 2)
  2677. if returnn then
  2678. return effectsg
  2679. end
  2680. if not returnn then
  2681. if thing1 == 1 then
  2682. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  2683. else
  2684. if thing1 == 2 then
  2685. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2686. else
  2687. if thing1 == 3 then
  2688. table.insert(Effects, {effectsg, "Cylinder", 0, 0, 0, 0.1, effectsmsh})
  2689. end
  2690. end
  2691. end
  2692. end
  2693. end
  2694.  
  2695. effect2 = function(Color, Ref, LP, P1, returnn, size, raa)
  2696. if LP == nil or P1 == nil then
  2697. return
  2698. end
  2699. MshTypee = "CylinderMesh"
  2700. if raa == 2 then
  2701. MshTypee = "BlockMesh"
  2702. end
  2703. local effectsmsh = Instance.new(MshTypee)
  2704. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2705. effectsmsh.Name = "Mesh"
  2706. local effectsg = Instance.new("Part")
  2707. NoOutline(effectsg)
  2708. if raa == 2 then
  2709. effectsg.Material = "Neon"
  2710. end
  2711. effectsg.formFactor = 3
  2712. effectsg.CanCollide = false
  2713. effectsg.Name = "Eff"
  2714. effectsg.Locked = true
  2715. effectsg.Anchored = true
  2716. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2717. effectsg.Parent = workspace
  2718. effectsmsh.Parent = effectsg
  2719. effectsg.BrickColor = BrickColor.new(Color)
  2720. effectsg.Reflectance = Ref
  2721. local point1 = P1
  2722. local mg = (LP.p - point1.p).magnitude
  2723. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2724. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2725. effectsmsh.Scale = Vector3.new(size, 1, size)
  2726. game:GetService("Debris"):AddItem(effectsg, 5)
  2727. if returnn then
  2728. return effectsg
  2729. end
  2730. if not returnn then
  2731. if raa == 2 then
  2732. table.insert(Effects, {effectsg, "Cylinder", 0.05, -0.05, 0, -0.05, effectsmsh})
  2733. else
  2734. table.insert(Effects, {effectsg, "Cylinder", 0.1, -0.2, 0, -0.2, effectsmsh})
  2735. end
  2736. end
  2737. end
  2738.  
  2739. local CFrameFromTopBack = function(at, top, back)
  2740. local right = top:Cross(back)
  2741. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2742. end
  2743.  
  2744. Triangle = function(a, b, c)
  2745. local edg1 = c - a:Dot(b - a.unit)
  2746. local edg2 = a - b:Dot(c - b.unit)
  2747. local edg3 = b - c:Dot(a - c.unit)
  2748. if edg1 <= b - a.magnitude and edg1 >= 0 then
  2749. a = a
  2750. else
  2751. if edg2 <= c - b.magnitude and edg2 >= 0 then
  2752. a = b
  2753. else
  2754. if edg3 <= a - c.magnitude and edg3 >= 0 then
  2755. a = c
  2756. else
  2757. assert(false, "unreachable")
  2758. end
  2759. end
  2760. end
  2761. local len1 = (c-a):Dot((b-a).unit)
  2762. local len2 = (b-a).magnitude - len1
  2763. local width = (a + (b-a).unit*len1 - c).magnitude
  2764. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2765. local list = {}
  2766. if len1 > 0.01 then
  2767. local w1 = Instance.new("WedgePart", m)
  2768. w1.Name = "Triangle"
  2769. game:GetService("Debris"):AddItem(w1, 5)
  2770. w1.Material = "SmoothPlastic"
  2771. w1.FormFactor = "Custom"
  2772. w1.BrickColor = BrickColor.new("Medium blue")
  2773. w1.Transparency = 0
  2774. w1.Reflectance = 0
  2775. w1.Material = "SmoothPlastic"
  2776. w1.CanCollide = false
  2777. NoOutline(w1)
  2778. local sz = Vector3.new(0.2, width, len1)
  2779. w1.Size = sz
  2780. local sp = Instance.new("SpecialMesh", w1)
  2781. sp.MeshType = "Wedge"
  2782. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2783. w1:BreakJoints()
  2784. w1.Anchored = true
  2785. w1.Parent = workspace
  2786. w1.Transparency = 0.7
  2787. table.insert(Effects, {w1, "Disappear", 0.05})
  2788. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2789. table.insert(list, w1)
  2790. end
  2791. do
  2792. if len2 > 0.01 then
  2793. local w2 = Instance.new("WedgePart", m)
  2794. w2.Name = "Triangle"
  2795. game:GetService("Debris"):AddItem(w2, 5)
  2796. w2.Material = "SmoothPlastic"
  2797. w2.FormFactor = "Custom"
  2798. w2.BrickColor = BrickColor.new("Medium blue")
  2799. w2.Transparency = 0
  2800. w2.Reflectance = 0
  2801. w2.Material = "SmoothPlastic"
  2802. w2.CanCollide = false
  2803. NoOutline(w2)
  2804. local sz = Vector3.new(0.2, width, len2)
  2805. w2.Size = sz
  2806. local sp = Instance.new("SpecialMesh", w2)
  2807. sp.MeshType = "Wedge"
  2808. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2809. w2:BreakJoints()
  2810. w2.Anchored = true
  2811. w2.Parent = workspace
  2812. w2.Transparency = 0.7
  2813. table.insert(Effects, {w2, "Disappear", 0.05})
  2814. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2815. table.insert(list, w2)
  2816. end
  2817. do
  2818. return unpack(list)
  2819. end
  2820. end
  2821. end
  2822.  
  2823. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2824. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2825. prt.Anchored = true
  2826. prt.CFrame = cframe
  2827. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2828. game:GetService("Debris"):AddItem(prt, 10)
  2829. if Type == 1 or Type == nil then
  2830. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2831. else
  2832. if Type == 2 then
  2833. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2834. else
  2835. if Type == 3 then
  2836. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
  2837. else
  2838. if Type == 4 then
  2839. table.insert(Effects, {prt, "Block4", delay, x3, y3, z3, msh, 1})
  2840. end
  2841. end
  2842. end
  2843. end
  2844. end
  2845.  
  2846. MagicBlock2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2847. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2848. prt.Material = "Neon"
  2849. prt.Anchored = true
  2850. prt.CFrame = cframe
  2851. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2852. game:GetService("Debris"):AddItem(prt, 10)
  2853. if Type == 1 or Type == nil then
  2854. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2855. else
  2856. if Type == 2 then
  2857. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2858. else
  2859. if Type == 3 then
  2860. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
  2861. end
  2862. end
  2863. end
  2864. end
  2865.  
  2866. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2867. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2868. prt.Material = "Neon"
  2869. prt.Anchored = true
  2870. prt.CFrame = cframe
  2871. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2872. game:GetService("Debris"):AddItem(prt, 10)
  2873. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2874. end
  2875.  
  2876. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2877. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2878. prt.Anchored = true
  2879. prt.CFrame = cframe
  2880. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2881. game:GetService("Debris"):AddItem(prt, 10)
  2882. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2883. end
  2884.  
  2885. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2886. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2887. prt.Material = "Neon"
  2888. prt.Anchored = true
  2889. prt.CFrame = cframe
  2890. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2891. game:GetService("Debris"):AddItem(prt, 10)
  2892. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2893. end
  2894.  
  2895. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2896. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2897. prt.Anchored = true
  2898. prt.CFrame = cframe
  2899. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2900. game:GetService("Debris"):AddItem(prt, 10)
  2901. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2902. end
  2903.  
  2904. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2905. local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  2906. prt.Anchored = true
  2907. prt.CFrame = cframe
  2908. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2909. game:GetService("Debris"):AddItem(prt, 10)
  2910. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2911. end
  2912.  
  2913. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2914. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2915. prt.Anchored = true
  2916. prt.CFrame = cframe
  2917. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2918. game:GetService("Debris"):AddItem(prt, 10)
  2919. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2920. end
  2921.  
  2922. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2923. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2924. prt.Anchored = true
  2925. prt.CFrame = cframe
  2926. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  2927. game:GetService("Debris"):AddItem(prt, 10)
  2928. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2929. end
  2930.  
  2931. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  2932. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2933. prt.Anchored = true
  2934. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2935. game:GetService("Debris"):AddItem(prt, 10)
  2936. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2937. local num = math.random(10, 50) / 1000
  2938. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  2939. end
  2940.  
  2941. MagicStar = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2942. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2943. prt.Material = "Neon"
  2944. prt.Anchored = true
  2945. prt.CFrame = cframe
  2946. local msh = mesh("SpecialMesh", prt, "FileMesh", "45428961", vt(0, 0, 0), vt(x1, y1, z1))
  2947. game:GetService("Debris"):AddItem(prt, 10)
  2948. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2949. end
  2950.  
  2951. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2952. local magz = (p0 - p1).magnitude
  2953. local curpos = p0
  2954. local trz = {-ofs, ofs}
  2955. for i = 1, tym do
  2956. local li = Instance.new("Part", effects)
  2957. li.TopSurface = 0
  2958. li.BottomSurface = 0
  2959. li.Anchored = true
  2960. li.Transparency = tra or 0.4
  2961. li.BrickColor = BrickColor.new(col)
  2962. li.formFactor = "Custom"
  2963. li.CanCollide = false
  2964. li.Size = Vector3.new(th, th, magz / tym)
  2965. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2966. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2967. li.Material = "Neon"
  2968. if tym == i then
  2969. local magz2 = (curpos - p1).magnitude
  2970. li.Size = Vector3.new(th, th, magz2)
  2971. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2972. table.insert(Effects, {li, "Disappear", last})
  2973. else
  2974. do
  2975. do
  2976. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2977. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2978. game.Debris:AddItem(li, 10)
  2979. table.insert(Effects, {li, "Disappear", last})
  2980. end
  2981. end
  2982. end
  2983. end
  2984. end
  2985.  
  2986. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2987. if hit.Parent == nil then
  2988. return
  2989. end
  2990. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2991. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2992. ref.Anchored = true
  2993. ref.CFrame = cf(hit.Position)
  2994. game:GetService("Debris"):AddItem(ref, 1)
  2995. hitnum = math.random(1, 5)
  2996. if hitnum == 1 then
  2997. so("199148971", ref, 1, 1)
  2998. else
  2999. if hitnum == 2 then
  3000. so("199149025", ref, 1, 1)
  3001. else
  3002. if hitnum == 3 then
  3003. so("199149072", ref, 1, 1)
  3004. else
  3005. if hitnum == 4 then
  3006. so("199149109", ref, 1, 1)
  3007. else
  3008. if hitnum == 5 then
  3009. so("199149119", ref, 1, 1)
  3010. end
  3011. end
  3012. end
  3013. end
  3014. end
  3015. StaggerHit.Value = true
  3016. end
  3017. h = hit.Parent:FindFirstChild("Humanoid")
  3018. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3019. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  3020. return
  3021. end
  3022. c = Instance.new("ObjectValue")
  3023. c.Name = "creator"
  3024. c.Value = game:service("Players").LocalPlayer
  3025. c.Parent = h
  3026. RecentEnemy.Value = hit.Parent
  3027. game:GetService("Debris"):AddItem(c, 0.5)
  3028. minim = minim * Atk.Value
  3029. maxim = maxim * Atk.Value
  3030. Damage = 0
  3031. if minim == maxim then
  3032. Damage = maxim
  3033. else
  3034. Damage = math.random(minim, maxim)
  3035. end
  3036. blocked = false
  3037. enblock = nil
  3038. local EStats = hit.Parent:findFirstChild("Stats")
  3039. if EStats ~= nil then
  3040. invis = EStats:findFirstChild("Invisibility")
  3041. isinvis = EStats:findFirstChild("IsInvisible")
  3042. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3043. invis.Value = 0
  3044. end
  3045. enblock = EStats:findFirstChild("Block")
  3046. if enblock ~= nil and enblock.Value == true then
  3047. blocked = true
  3048. end
  3049. if EStats:findFirstChild("Defense") ~= nil then
  3050. Damage = Damage / EStats.Defense.Value
  3051. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3052. hitnum = math.random(1, 5)
  3053. if hitnum == 1 then
  3054. so("199149321", hit, 1, 1)
  3055. else
  3056. if hitnum == 2 then
  3057. so("199149338", hit, 1, 1)
  3058. else
  3059. if hitnum == 3 then
  3060. so("199149367", hit, 1, 1)
  3061. else
  3062. if hitnum == 4 then
  3063. so("199149409", hit, 1, 1)
  3064. else
  3065. if hitnum == 5 then
  3066. so("199149452", hit, 1, 1)
  3067. end
  3068. end
  3069. end
  3070. end
  3071. end
  3072. else
  3073. if ranged == false or ranged == nil and blocked ~= true then
  3074. hitnum = math.random(1, 6)
  3075. if hitnum == 1 then
  3076. so("199149137", hit, 1, 1)
  3077. else
  3078. if hitnum == 2 then
  3079. so("199149186", hit, 1, 1)
  3080. else
  3081. if hitnum == 3 then
  3082. so("199149221", hit, 1, 1)
  3083. else
  3084. if hitnum == 4 then
  3085. so("199149235", hit, 1, 1)
  3086. else
  3087. if hitnum == 5 then
  3088. so("199149269", hit, 1, 1)
  3089. else
  3090. if hitnum == 6 then
  3091. so("199149297", hit, 1, 1)
  3092. end
  3093. end
  3094. end
  3095. end
  3096. end
  3097. end
  3098. end
  3099. end
  3100. if Damage <= 3 and staghit == true and ranged ~= true then
  3101. StaggerHit.Value = true
  3102. end
  3103. end
  3104. if EStats:findFirstChild("Stun") ~= nil then
  3105. if blocked == true then
  3106. incstun = incstun / 2
  3107. end
  3108. if EStats.Stun.Value < EStats.StunThreshold.Value then
  3109. EStats.Stun.Value = EStats.Stun.Value + incstun
  3110. end
  3111. end
  3112. if EStats:findFirstChild("Stagger") ~= nil and stagger == true then
  3113. EStats.Stagger.Value = true
  3114. end
  3115. end
  3116. if blocked == true then
  3117. showDamage(hit.Parent, "Block", "Damage")
  3118. if ranged ~= true then
  3119. enblock.Value = false
  3120. Stagger.Value = true
  3121. hitnum = math.random(1, 2)
  3122. if hitnum == 1 then
  3123. so("199148933", hit, 1, 1)
  3124. else
  3125. if hitnum == 2 then
  3126. so("199148947", hit, 1, 1)
  3127. end
  3128. end
  3129. end
  3130. else
  3131. Damage = math.floor(Damage)
  3132. coroutine.resume(coroutine.create(function(Hum, Dam)
  3133. hit.Parent.Humanoid:TakeDamage(Damage)
  3134. end
  3135. ), h, Damage)
  3136. showDamage(hit.Parent, Damage, "Damage")
  3137. if DecreaseState ~= nil then
  3138. if DecreaseState == "Temporal" then
  3139. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3140. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  3141. else
  3142. if DecreaseState == "Temporal2" then
  3143. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3144. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3145. else
  3146. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3147. end
  3148. end
  3149. end
  3150. if Type == "NormalDecreaseMvmt1" then
  3151. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3152. end
  3153. if Type == "Knockdown" then
  3154. hum = hit.Parent.Humanoid
  3155. hum.PlatformStand = true
  3156. coroutine.resume(coroutine.create(function(HHumanoid)
  3157. swait(1)
  3158. HHumanoid.PlatformStand = false
  3159. end
  3160. ), hum)
  3161. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3162. local bodvol = Instance.new("BodyVelocity")
  3163. bodvol.velocity = angle * knockback
  3164. bodvol.P = 5000
  3165. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3166. bodvol.Parent = hit
  3167. rl = Instance.new("BodyAngularVelocity")
  3168. rl.P = 3000
  3169. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3170. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3171. rl.Parent = hit
  3172. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3173. game:GetService("Debris"):AddItem(rl, 0.5)
  3174. else
  3175. do
  3176. if Type == "Knockdown2" then
  3177. hum = hit.Parent.Humanoid
  3178. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3179. local bodvol = Instance.new("BodyVelocity")
  3180. bodvol.velocity = angle * knockback
  3181. bodvol.P = 5000
  3182. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3183. bodvol.Parent = hit
  3184. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3185. else
  3186. do
  3187. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3188. vp = Instance.new("BodyVelocity")
  3189. vp.P = 500
  3190. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3191. if KnockbackType == 1 then
  3192. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3193. else
  3194. if KnockbackType == 2 then
  3195. vp.velocity = Property.CFrame.lookVector * knockback
  3196. end
  3197. end
  3198. game:GetService("Debris"):AddItem(vp, 0.5)
  3199. if knockback > 0 then
  3200. vp.Parent = hit.Parent.Torso
  3201. end
  3202. end
  3203. debounce = Instance.new("BoolValue")
  3204. debounce.Name = "DebounceHit"
  3205. debounce.Parent = hit.Parent
  3206. debounce.Value = true
  3207. game:GetService("Debris"):AddItem(debounce, Delay)
  3208. c = Instance.new("ObjectValue")
  3209. c.Name = "creator"
  3210. c.Value = Player
  3211. c.Parent = h
  3212. game:GetService("Debris"):AddItem(c, 0.5)
  3213. CRIT = false
  3214. end
  3215. end
  3216. end
  3217. end
  3218. end
  3219. end
  3220. end
  3221.  
  3222. showDamage = function(Char, Dealt, Type)
  3223. m = Instance.new("Model")
  3224. m.Name = "Effect"
  3225. c = Instance.new("Part")
  3226. c.Transparency = 1
  3227. c.Name = "Head"
  3228. c.TopSurface = 0
  3229. c.BottomSurface = 0
  3230. c.formFactor = "Plate"
  3231. c.Size = Vector3.new(1, 0.4, 1)
  3232. b = Instance.new("BillboardGui", c)
  3233. b.Size = UDim2.new(5, 0, 5, 0)
  3234. b.AlwaysOnTop = true
  3235. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3236. if Type == "Damage" then
  3237. damgui.Font = "SourceSans"
  3238. if Dealt == "Block" then
  3239. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3240. else
  3241. if Dealt < 3 then
  3242. damgui.TextColor3 = BrickColor.new("White").Color
  3243. else
  3244. if Dealt >= 3 and Dealt < 20 then
  3245. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3246. else
  3247. damgui.TextColor3 = BrickColor.new("Really red").Color
  3248. damgui.Font = "SourceSansBold"
  3249. end
  3250. end
  3251. end
  3252. else
  3253. if Type == "Debuff" then
  3254. damgui.TextColor3 = BrickColor.new("White").Color
  3255. else
  3256. if Type == "Interrupt" then
  3257. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3258. end
  3259. end
  3260. end
  3261. damgui.TextScaled = true
  3262. ms = Instance.new("CylinderMesh")
  3263. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3264. ms.Parent = c
  3265. c.Reflectance = 0
  3266. Instance.new("BodyGyro").Parent = c
  3267. c.Parent = m
  3268. if Char:findFirstChild("Head") ~= nil then
  3269. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3270. else
  3271. if Char.Parent:findFirstChild("Head") ~= nil then
  3272. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3273. end
  3274. end
  3275. f = Instance.new("BodyPosition")
  3276. f.P = 2000
  3277. f.D = 100
  3278. f.maxForce = Vector3.new(545000, 545000, 545000)
  3279. if Type == "Damage" then
  3280. f.position = c.Position + Vector3.new(0, 3, 0)
  3281. else
  3282. if Type == "Debuff" or Type == "Interrupt" then
  3283. f.position = c.Position + Vector3.new(0, 5, 0)
  3284. end
  3285. end
  3286. f.Parent = c
  3287. game:GetService("Debris"):AddItem(m, 5)
  3288. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3289. c.CanCollide = false
  3290. m.Parent = workspace
  3291. c.CanCollide = false
  3292. end
  3293.  
  3294. combo = 0
  3295. ob1d = function(mouse)
  3296. if cshoot == false and cdebounce == false then
  3297. cshoot = true
  3298. end
  3299. if shockshoot == false and shockdebounce == false then
  3300. shockshoot = true
  3301. TehM = MMouse.Hit.p
  3302. end
  3303. if starshoot == false and stardebounce == false then
  3304. starshoot = true
  3305. TehM = MMouse.Hit.p
  3306. end
  3307. if attack == true or equipped == false then
  3308. return
  3309. end
  3310. attack = true
  3311. hold = true
  3312. if combo == 0 then
  3313. combo = 1
  3314. attackone()
  3315. else
  3316. if combo == 1 then
  3317. combo = 2
  3318. attacktwo()
  3319. else
  3320. if combo == 2 then
  3321. combo = 3
  3322. attackthree()
  3323. else
  3324. if combo == 3 then
  3325. combo = 0
  3326. attackfour()
  3327. end
  3328. end
  3329. end
  3330. end
  3331. attack = false
  3332. end
  3333.  
  3334. ob1u = function(mouse)
  3335. hold = false
  3336. end
  3337.  
  3338. buttonhold = false
  3339. fenbarmove1.MouseButton1Click:connect(do1)
  3340. fenbarmove2.MouseButton1Click:connect(do2)
  3341. fenbarmove3.MouseButton1Click:connect(do3)
  3342. fenbarmove4.MouseButton1Click:connect(do4)
  3343. eul = 0
  3344. equipped = false
  3345. key = function(key)
  3346. if key == "q" and Player.Name == "Fenrier" then
  3347. cooldowns[1] = 100
  3348. cooldowns[2] = 100
  3349. cooldowns[3] = 100
  3350. cooldowns[4] = 100
  3351. end
  3352. if key == "z" and cbuster == true then
  3353. cbuster = false
  3354. return
  3355. end
  3356. if key == "x" and sbreaker == true then
  3357. sbreaker = false
  3358. return
  3359. end
  3360. if key == "c" and sblazing == true then
  3361. sblazing = false
  3362. return
  3363. end
  3364. if key == "e" then
  3365. if prising == true then
  3366. prising = false
  3367. return
  3368. end
  3369. if cbuster == true and mana.Value > 15 then
  3370. busterlaser = true
  3371. return
  3372. end
  3373. if sbreaker == true and mana.Value > 10 then
  3374. sbreakerII = true
  3375. return
  3376. end
  3377. if sblazing == true and mana.Value > 20 then
  3378. galacblazing = true
  3379. return
  3380. end
  3381. end
  3382. if attack == true then
  3383. return
  3384. end
  3385. if key == "f" then
  3386. attack = true
  3387. pressedf = true
  3388. fnumb = 0
  3389. repeat swait() until effects:FindFirstChild("Effect") == nil
  3390. if equipped == false then
  3391. RSH = ch.Torso["Right Shoulder"]
  3392. LSH = ch.Torso["Left Shoulder"]
  3393. RSH.Parent = nil
  3394. LSH.Parent = nil
  3395. RW.Name = "Right Shoulder"
  3396. RW.Part0 = ch.Torso
  3397. RW.C0 = cf(1.5, 0.5, 0)
  3398. RW.C1 = cf(0, 0.5, 0)
  3399. RW.Part1 = ch["Right Arm"]
  3400. RW.Parent = ch.Torso
  3401. LW.Name = "Left Shoulder"
  3402. LW.Part0 = ch.Torso
  3403. LW.C0 = cf(-1.5, 0.5, 0)
  3404. LW.C1 = cf(0, 0.5, 0)
  3405. LW.Part1 = ch["Left Arm"]
  3406. LW.Parent = ch.Torso
  3407. Animate.Parent = nil
  3408. equipanim()
  3409. equipped = true
  3410. else
  3411. equipped = false
  3412. hideanim()
  3413. LH.C1 = LHC1
  3414. RH.C1 = RHC1
  3415. Animate.Parent = Humanoid
  3416. swait(0)
  3417. RW.Parent = nil
  3418. LW.Parent = nil
  3419. RSH.Parent = player.Character.Torso
  3420. LSH.Parent = player.Character.Torso
  3421. end
  3422. attack = false
  3423. end
  3424. if equipped == false then
  3425. return
  3426. end
  3427. if key == "e" then
  3428. PowerRising()
  3429. end
  3430. if key == "q" then
  3431. mana.Value = 100
  3432. end
  3433. if key == "z" then
  3434. do1()
  3435. end
  3436. if key == "x" then
  3437. do2()
  3438. end
  3439. if key == "c" then
  3440. do3()
  3441. end
  3442. if key == "v" then
  3443. do4()
  3444. end
  3445. end
  3446.  
  3447. key2 = function(key)
  3448. end
  3449.  
  3450. s = function(mouse)
  3451. mouse.Button1Down:connect(function()
  3452. ob1d(mouse)
  3453. end
  3454. )
  3455. mouse.Button1Up:connect(function()
  3456. ob1u(mouse)
  3457. end
  3458. )
  3459. mouse.KeyDown:connect(key)
  3460. mouse.KeyUp:connect(key2)
  3461. player = Player
  3462. ch = Character
  3463. end
  3464.  
  3465. ds = function(mouse)
  3466. end
  3467.  
  3468. Bin.Selected:connect(s)
  3469. Bin.Deselected:connect(ds)
  3470. print("Dreamer loaded.")
  3471. local mananum = 0
  3472. local donum = 0
  3473. local stunnum = 0
  3474. local staggeranim = false
  3475. local stunanim = false
  3476. local walk = 0
  3477. local walkforw = true
  3478. local fnum = 0
  3479. local domodel = false
  3480. local gef = 10
  3481. local col = 1
  3482. local colnum = 0
  3483. while true do
  3484. swait()
  3485. for _,c in pairs(model3:children()) do
  3486. if c.className == "Part" then
  3487. if c.BrickColor == Neons[1] then
  3488. c.BrickColor = Neons[2]
  3489. else
  3490. if c.BrickColor == Neons[2] then
  3491. c.BrickColor = Neons[3]
  3492. else
  3493. if c.BrickColor == Neons[3] then
  3494. c.BrickColor = Neons[4]
  3495. else
  3496. if c.BrickColor == Neons[4] then
  3497. c.BrickColor = Neons[5]
  3498. else
  3499. if c.BrickColor == Neons[5] then
  3500. c.BrickColor = Neons[6]
  3501. else
  3502. if c.BrickColor == Neons[6] then
  3503. c.BrickColor = Neons[7]
  3504. else
  3505. if c.BrickColor == Neons[7] then
  3506. c.BrickColor = Neons[1]
  3507. end
  3508. end
  3509. end
  3510. end
  3511. end
  3512. end
  3513. end
  3514. end
  3515. end
  3516. starsparti.Color = cs(Neons[math.random(1, 7)].Color, Color3.new(1, 1, 1))
  3517. if Mode == "Sabers" then
  3518. passive1.Value = 0
  3519. passive2.Value = -0.1
  3520. else
  3521. passive1.Value = -0.1
  3522. passive2.Value = 0
  3523. end
  3524. if (Head:findFirstChild("Running")) ~= nil then
  3525. if floating == true then
  3526. Head.Running.Volume = 0
  3527. Humanoid.JumpPower = 60
  3528. else
  3529. Head.Running.Volume = 0.5
  3530. Humanoid.JumpPower = 50
  3531. end
  3532. end
  3533. colnum = colnum + 1
  3534. if #Neons - 1 < col and (colnum) % 2 == 0 then
  3535. col = 1
  3536. end
  3537. if (colnum) % 2 == 0 then
  3538. col = col + 1
  3539. end
  3540. gef = gef + 1
  3541. if (gef) % 10 == 0 and 0 < Humanoid.Health then
  3542. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3543. if hitfloor2 ~= nil and equipped == true and floating == true and Mode == "Normal" then
  3544. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2) * euler(0, math.random(-50, 50), 0), 1, 2, 1, 0.7, -0.05, 0.7, 0.15)
  3545. end
  3546. end
  3547. if Humanoid.Health <= 0 then
  3548. attack = true
  3549. resumeControl()
  3550. modelzorz.Parent = workspace
  3551. model2.Parent = workspace
  3552. game:GetService("Debris"):AddItem(modelzorz, 30)
  3553. game:GetService("Debris"):AddItem(model2, 30)
  3554. if domodel == false then
  3555. domodel = true
  3556. for i = 1, #Weapon do
  3557. Weapon[i].Parent = modelzorz
  3558. Weapon[i].CanCollide = true
  3559. end
  3560. for i = 1, #Welds do
  3561. Welds[i].Parent = main1
  3562. end
  3563. end
  3564. end
  3565. do
  3566. if fnumb < 21 then
  3567. fnumb = fnumb + 1
  3568. if pressedf == false then
  3569. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3570. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3571. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3572. else
  3573. if fnumb == 20 then
  3574. fenframe5.Parent = nil
  3575. print("daigui")
  3576. end
  3577. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3578. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3579. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3580. end
  3581. end
  3582. if Stagger.Value == true and staggeranim == false then
  3583. coroutine.resume(coroutine.create(function()
  3584. staggeranim = true
  3585. while attack == true do
  3586. swait()
  3587. end
  3588. StaggerAnim()
  3589. StaggerHit.Value = false
  3590. Stagger.Value = false
  3591. staggeranim = false
  3592. end
  3593. ))
  3594. end
  3595. if StaggerHit.Value == true and staggeranim == false then
  3596. coroutine.resume(coroutine.create(function()
  3597. staggeranim = true
  3598. while attack == true do
  3599. swait()
  3600. end
  3601. StaggerHitt()
  3602. StaggerHit.Value = false
  3603. Stagger.Value = false
  3604. staggeranim = false
  3605. end
  3606. ))
  3607. end
  3608. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3609. Humanoid.WalkSpeed = 0
  3610. else
  3611. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3612. end
  3613. if StunT.Value <= Stun.Value and stunanim == false then
  3614. coroutine.resume(coroutine.create(function()
  3615. stunanim = true
  3616. while attack == true do
  3617. swait()
  3618. end
  3619. StunAnim()
  3620. Stun.Value = 0
  3621. stunanim = false
  3622. end
  3623. ))
  3624. end
  3625. local stunnum2 = 40
  3626. if stunnum2 <= stunnum then
  3627. if 0 < Stun.Value then
  3628. Stun.Value = Stun.Value - 1
  3629. end
  3630. stunnum = 0
  3631. end
  3632. stunnum = stunnum + 1
  3633. if 0.5 <= donum then
  3634. handidle = true
  3635. else
  3636. if donum <= 0 then
  3637. handidle = false
  3638. end
  3639. end
  3640. if handidle == false then
  3641. donum = donum + 0.003
  3642. else
  3643. donum = donum - 0.003
  3644. end
  3645. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3646. local velderp = RootPart.Velocity.y
  3647. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3648. if equipped == true then
  3649. if Anim == "Walk" and floating == false then
  3650. if walkforw == true then
  3651. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3652. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3653. else
  3654. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3655. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3656. end
  3657. else
  3658. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3659. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3660. end
  3661. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3662. Anim = "Jump"
  3663. if Mode == "Normal" and floating == true then
  3664. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.1, 0, 0), 0.3)
  3665. end
  3666. if attack == false then
  3667. if Mode == "Normal" then
  3668. MagicBlock2(Neons[col], LeftLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  3669. MagicBlock2(Neons[col], RightLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  3670. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4 - (donum) / 2, 0, 0), 0.3)
  3671. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8 + (donum) / 4) * euler(0, 0, 0), 0.3)
  3672. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.8 - (donum) / 4) * euler(0, 0, 0), 0.3)
  3673. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
  3674. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
  3675. else
  3676. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3677. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3678. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.25)
  3679. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.25)
  3680. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -0.6, 0) * euler(0, 0, -0.2), 0.25)
  3681. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.25)
  3682. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.25)
  3683. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  3684. end
  3685. end
  3686. else
  3687. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3688. Anim = "Fall"
  3689. if Mode == "Normal" and floating == true then
  3690. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3691. end
  3692. if attack == false then
  3693. if Mode == "Normal" then
  3694. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3695. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3696. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
  3697. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  3698. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3699. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3700. else
  3701. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3702. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3703. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3704. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 0.4) * euler(0, -1, 0) * euler(0, 0, 0.6), 0.25)
  3705. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.8, 0, -0.4) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.25)
  3706. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3707. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3708. end
  3709. end
  3710. else
  3711. if torvel < 1 and hitfloor ~= nil then
  3712. Anim = "Idle"
  3713. if Mode == "Normal" and floating == true then
  3714. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.05, 0, 0), 0.3)
  3715. end
  3716. if attack == false then
  3717. if Mode == "Normal" then
  3718. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2 - (donum) / 8, 0, 0), 0.3)
  3719. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4 + (donum) / 4) * euler(0, -1.5, 0), 0.3)
  3720. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.4 - (donum) / 4) * euler(0, 1.5, 0), 0.3)
  3721. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
  3722. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
  3723. else
  3724. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3725. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3726. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.2)
  3727. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2 + (donum) / 4, 0, 0), 0.2)
  3728. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1, 0, 0.7 - (donum) / 3) * euler(0, 1, 0), 0.2)
  3729. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.4, 0, -0.8 + (donum) / 3) * euler(0, -1, 0), 0.2)
  3730. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1 + (donum) / 4), 0.2)
  3731. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15 - (donum) / 4), 0.2)
  3732. end
  3733. end
  3734. else
  3735. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3736. Anim = "Walk"
  3737. walk = walk + 1
  3738. if 15 - 5 * Mvmt.Value <= walk then
  3739. walk = 0
  3740. if walkforw == true then
  3741. walkforw = false
  3742. else
  3743. if walkforw == false then
  3744. walkforw = true
  3745. end
  3746. end
  3747. end
  3748. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 6, 0)
  3749. newpos = vt(RootPart.Position.X, RootPart.Position.Y, RootPart.Position.Z)
  3750. MoveCF = cf(testpart.Position, newpos)
  3751. local mpos = testpart.CFrame * euler(0, 0, 0)
  3752. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  3753. local x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  3754. if Mode == "Normal" and floating == true then
  3755. RootJoint.C0 = clerp(RootJoint.C0, cf(0, 1.4 - (donum), 0) * CFrame.Angles(x, y, 0) * euler(0, 3.14, 0), 0.3)
  3756. end
  3757. if attack == false then
  3758. if Mode == "Normal" then
  3759. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
  3760. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
  3761. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
  3762. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
  3763. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
  3764. else
  3765. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3766. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3767. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3768. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3769. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
  3770. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
  3771. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
  3772. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
  3773. end
  3774. end
  3775. else
  3776. do
  3777. if 30 <= torvel and hitfloor ~= nil then
  3778. Anim = "Run"
  3779. if Mode == "Normal" and floating == true then
  3780. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4 - (donum)) * euler(0.4, 0, 0), 0.3)
  3781. end
  3782. if attack == false then
  3783. if Mode == "Normal" then
  3784. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
  3785. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
  3786. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
  3787. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
  3788. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
  3789. else
  3790. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3791. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3792. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3793. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  3794. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
  3795. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
  3796. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
  3797. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
  3798. end
  3799. end
  3800. end
  3801. end
  3802. end
  3803. end
  3804. end
  3805. end
  3806. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3807. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3808. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3809. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3810. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3811. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3812. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3813. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3814. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3815. for _,c in pairs(Decrease:children()) do
  3816. if (c:findFirstChild("Duration")) ~= nil then
  3817. c.Duration.Value = c.Duration.Value - 1
  3818. if c.Duration.Value <= 0 then
  3819. c.Parent = nil
  3820. end
  3821. end
  3822. if c.Name == "DecreaseAtk" then
  3823. decreaseatk = decreaseatk + c.Value
  3824. else
  3825. if c.Name == "DecreaseDef" then
  3826. decreasedef = decreasedef + c.Value
  3827. else
  3828. if c.Name == "DecreaseMvmt" then
  3829. decreasemvmt = decreasemvmt + c.Value
  3830. end
  3831. end
  3832. end
  3833. end
  3834. Atk.Value = 1 - (decreaseatk)
  3835. if Atk.Value <= 0 then
  3836. Atk.Value = 0
  3837. end
  3838. Def.Value = 1 - (decreasedef)
  3839. if Def.Value <= 0 then
  3840. Def.Value = 0.01
  3841. end
  3842. Mvmt.Value = 1 - (decreasemvmt)
  3843. if Mvmt.Value <= 0 then
  3844. Mvmt.Value = 0
  3845. end
  3846. decreaseatk = 0
  3847. decreasedef = 0
  3848. decreasemvmt = 0
  3849. AtkVal = Atk.Value * 100
  3850. AtkVal = math.floor(AtkVal)
  3851. AtkVal = AtkVal / 100
  3852. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3853. DefVal = Def.Value * 100
  3854. DefVal = math.floor(DefVal)
  3855. DefVal = DefVal / 100
  3856. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3857. MvmtVal = Mvmt.Value * 100
  3858. MvmtVal = math.floor(MvmtVal)
  3859. MvmtVal = MvmtVal / 100
  3860. if Rooted.Value == true then
  3861. MvmtVal = 0
  3862. end
  3863. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3864. if StunT.Value <= Stun.Value then
  3865. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3866. else
  3867. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3868. end
  3869. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3870. if 100 <= mana.Value then
  3871. mana.Value = 100
  3872. else
  3873. if mananum <= manainc then
  3874. mananum = mananum + 1
  3875. else
  3876. mananum = 0
  3877. mana.Value = mana.Value + 1
  3878. end
  3879. end
  3880. for i = 1, #cooldowns do
  3881. if cooldownmax <= cooldowns[i] then
  3882. cooldowns[i] = cooldownmax
  3883. else
  3884. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3885. end
  3886. end
  3887. end
  3888. if #Effects>0 then
  3889. for e=1,#Effects do
  3890. if Effects[e]~=nil then
  3891. local Thing=Effects[e]
  3892. if Thing ~= nil then
  3893. local Part = Thing[1]
  3894. local Mode = Thing[2]
  3895. local Delay = Thing[3]
  3896. local IncX = Thing[4]
  3897. local IncY = Thing[5]
  3898. local IncZ = Thing[6]
  3899. if Thing[2] == "CylinderClang" then
  3900. if Thing[3] <= 1 then
  3901. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3902. Thing[7] = Thing[1].CFrame
  3903. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  3904. Thing[8] = Thing[7]
  3905. Thing[3] = Thing[3] + Thing[4]
  3906. else
  3907. Part.Parent = nil
  3908. table.remove(Effects, e)
  3909. end
  3910. end
  3911. if Thing[2] == "showDamage" then
  3912. if Thing[6] < Thing[5] then
  3913. Thing[6] = Thing[6] + 1
  3914. else
  3915. if Thing[6] < Thing[7] then
  3916. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3917. Thing[6] = Thing[6] + 1
  3918. else
  3919. if Thing[6] < Thing[8] then
  3920. Thing[6] = Thing[6] + 1
  3921. else
  3922. if Thing[6] < Thing[9] then
  3923. Thing[6] = Thing[6] + 1
  3924. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3925. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3926. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3927. else
  3928. Thing[1].Parent = nil
  3929. table.remove(Effects, e)
  3930. end
  3931. end
  3932. end
  3933. end
  3934. end
  3935. if Thing[2] == "CloneEf" then
  3936. if Thing[3] <= 500 then
  3937. Thing[3] = Thing[3] + 1
  3938. if 10 <= Thing[4] then
  3939. Thing[4] = 0
  3940. end
  3941. Thing[4] = Thing[4] + 1
  3942. else
  3943. table.remove(Effects, e)
  3944. end
  3945. end
  3946. if Thing[2] == "SatelliteStrike" then
  3947. if Thing[5] < 100 then
  3948. Thing[5] = Thing[5] + 2
  3949. Thing[6] = Thing[6] + 1
  3950. if 2 < Thing[6] then
  3951. Thing[6] = 0
  3952. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  3953. Thing[3].Transparency = 0.8
  3954. Thing[3].BrickColor = BrickColor.new("Really red")
  3955. else
  3956. Thing[3].Transparency = 0.8
  3957. Thing[3].BrickColor = BrickColor.new("New Yeller")
  3958. end
  3959. end
  3960. else
  3961. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3962. refda.Anchored = true
  3963. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  3964. game:GetService("Debris"):AddItem(refda, 1)
  3965. local mag = (refda.Position - Thing[1].Position).magnitude
  3966. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 40, mag * 5, 40, 0, 0, 0, 0.3)
  3967. Lightning(refda.Position, Thing[1].Position, 15, 5, "Bright yellow", 3.5, 0.2, 0.05)
  3968. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 40, 40, 40, -1, -1, -1, 0.08, 1)
  3969. refda.CFrame = cf(Thing[1].Position)
  3970. MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
  3971. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  3972. MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
  3973. refda.CFrame = cf(Thing[1].Position)
  3974. so("341336446", refda, 1, math.random(100, 120) / 100)
  3975. so("341336459", refda, 1, math.random(100, 120) / 100)
  3976. Thing[1].Parent = nil
  3977. table.remove(Effects, e)
  3978. end
  3979. end
  3980. do
  3981. if Thing[2] == "SatelliteStrike2" then
  3982. if Thing[5] < 100 then
  3983. Thing[5] = Thing[5] + 2
  3984. Thing[6] = Thing[6] + 1
  3985. if 2 < Thing[6] then
  3986. Thing[6] = 0
  3987. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  3988. Thing[3].Transparency = 0.8
  3989. Thing[3].BrickColor = BrickColor.new("Really red")
  3990. else
  3991. Thing[3].Transparency = 0.8
  3992. Thing[3].BrickColor = BrickColor.new("New Yeller")
  3993. end
  3994. end
  3995. else
  3996. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3997. refda.Anchored = true
  3998. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  3999. game:GetService("Debris"):AddItem(refda, 1)
  4000. local mag = (refda.Position - Thing[1].Position).magnitude
  4001. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 60, mag * 5, 60, 0, 0, 0, 0.1)
  4002. Lightning(refda.Position, Thing[1].Position, 25, 5, "Bright yellow", 5, 0.2, 0.03)
  4003. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 80, 80, 80, -1, -1, -1, 0.06, 1)
  4004. refda.CFrame = cf(Thing[1].Position)
  4005. MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
  4006. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  4007. MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
  4008. refda.CFrame = cf(Thing[1].Position)
  4009. so("341336446", refda, 1, math.random(70, 90) / 100)
  4010. so("341336459", refda, 1, math.random(50, 80) / 100)
  4011. Thing[1].Parent = nil
  4012. table.remove(Effects, e)
  4013. end
  4014. end
  4015. do
  4016. if Thing[2] == "Shoot" then
  4017. Thing[11] = Thing[11] + 0.02
  4018. local Look = Thing[1]
  4019. local hit, pos = rayCast(Thing[4], Look, Thing[11], modelzorz)
  4020. local mag = (Thing[4] - pos).magnitude
  4021. if 6 < Thing[8] then
  4022. Thing[8] = 1
  4023. else
  4024. Thing[8] = Thing[8] + 1
  4025. end
  4026. MagicCylinder(Neons[Thing[8]], CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4027. Thing[9].BrickColor = Neons[Thing[8]]
  4028. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * cf(0, 0, -1) * Thing[10]
  4029. Thing[4] = Thing[4] + Look * Thing[11]
  4030. Thing[3] = Thing[3] - 1
  4031. if hit ~= nil then
  4032. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 3)), nil, nil, true)
  4033. end
  4034. if Thing[3] <= 0 then
  4035. Thing[9].Parent = nil
  4036. table.remove(Effects, e)
  4037. end
  4038. end
  4039. do
  4040. if Thing[2] == "Shoot2" then
  4041. local Look = Thing[1]
  4042. local hit, pos = rayCast(Thing[4], Look, 4, Character)
  4043. local mag = (Thing[4] - pos).magnitude
  4044. if 6 < Thing[8] then
  4045. Thing[8] = 1
  4046. else
  4047. Thing[8] = Thing[8] + 1
  4048. end
  4049. MagicCircle(BrickColor.new(NewCol3), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 4, 4, 4, -0.5, -0.5, -0.5, 0.5)
  4050. Thing[4] = Thing[4] + Look * 4
  4051. Thing[3] = Thing[3] - 1
  4052. if hit ~= nil then
  4053. Thing[3] = 0
  4054. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 5)), nil, nil, true)
  4055. end
  4056. if Thing[3] <= 0 then
  4057. table.remove(Effects, e)
  4058. end
  4059. end
  4060. do
  4061. if Thing[2] == "Shoot3" then
  4062. local Look = Thing[1]
  4063. local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
  4064. local mag = (Thing[4] - pos).magnitude
  4065. if 6 < Thing[8] then
  4066. Thing[8] = 1
  4067. else
  4068. Thing[8] = Thing[8] + 1
  4069. end
  4070. Thing[11] = Thing[11] + 0.05
  4071. Thing[9].BrickColor = Neons[Thing[8]]
  4072. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
  4073. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 25, 25, 25, 2, 2, 2, 0.25)
  4074. Thing[4] = Thing[4] + Look * 1.5
  4075. Thing[3] = Thing[3] - 1
  4076. if hit ~= nil then
  4077. Thing[3] = 0
  4078. end
  4079. if Thing[3] <= 0 then
  4080. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 30, 30, 30, 4, 4, 4, 0.1)
  4081. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 0, 0, 0, 0.05)
  4082. local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4083. staaaaref.Anchored = true
  4084. staaaaref.CFrame = cf(Thing[9].Position)
  4085. game:GetService("Debris"):AddItem(staaaaref, 1)
  4086. so("341336499", staaaaref, 0.8, 2)
  4087. MagniDamage(staaaaref, 10, 10, 12, math.random(10, 20), "Knockdown2", staaaaref, 0.1, 1, (math.random(4, 6)), nil, nil, true, "Damage", 0.1, 200)
  4088. Thing[9].Parent = nil
  4089. table.remove(Effects, e)
  4090. end
  4091. end
  4092. do
  4093. if Thing[2] == "Shoot4" then
  4094. local Look = Thing[1]
  4095. local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
  4096. local mag = (Thing[4] - pos).magnitude
  4097. if 6 < Thing[8] then
  4098. Thing[8] = 1
  4099. else
  4100. Thing[8] = Thing[8] + 1
  4101. end
  4102. Thing[11] = Thing[11] + 0.05
  4103. Thing[9].BrickColor = Neons[Thing[8]]
  4104. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
  4105. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 80, 80, 80, 2, 2, 2, 0.25)
  4106. Thing[4] = Thing[4] + Look * 1.5
  4107. Thing[3] = Thing[3] - 1
  4108. if hit ~= nil then
  4109. Thing[3] = 0
  4110. end
  4111. if Thing[3] <= 0 then
  4112. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 90, 90, 90, 4, 4, 4, 0.1)
  4113. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 200, 200, 200, 0, 0, 0, 0.1)
  4114. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 150, 150, 150, 10, 10, 10, 0.08)
  4115. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 15, 15, 15, 0.06)
  4116. local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4117. staaaaref.Anchored = true
  4118. staaaaref.CFrame = cf(Thing[9].Position)
  4119. game:GetService("Debris"):AddItem(staaaaref, 1)
  4120. so("341336499", staaaaref, 0.8, 1)
  4121. MagniDamage(staaaaref, 20, 15, 18, math.random(30, 50), "Knockdown2", staaaaref, 0.1, 1, (math.random(8, 10)), nil, nil, true, "Damage", 0.1, 400)
  4122. Thing[9].Parent = nil
  4123. table.remove(Effects, e)
  4124. end
  4125. end
  4126. do
  4127. do
  4128. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "Blink" and Thing[2] ~= "ShootIce" and Thing[2] ~= "Freeze" and Thing[2] ~= "Shoot" and Thing[2] ~= "Shoot2" and Thing[2] ~= "Shoot3" and Thing[2] ~= "Shoot4" and Thing[2] ~= "SatelliteStrike" and Thing[2] ~= "SatelliteStrike2" then
  4129. if Thing[1].Transparency <= 1 then
  4130. if Thing[2] == "Block1" then
  4131. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4132. Mesh = Thing[7]
  4133. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4134. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4135. else
  4136. if Thing[2] == "Block2" then
  4137. Thing[1].CFrame = Thing[1].CFrame
  4138. Mesh = Thing[7]
  4139. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4140. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4141. else
  4142. if Thing[2] == "Block3" then
  4143. Thing[8] = Thing[8] * cf(0, 1, 0)
  4144. Thing[1].CFrame = Thing[8] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4145. Mesh = Thing[7]
  4146. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4147. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4148. else
  4149. if Thing[2] == "Block4" then
  4150. if #Neons - 1 < Thing[8] then
  4151. Thing[8] = 1
  4152. else
  4153. Thing[8] = Thing[8] + 1
  4154. end
  4155. Thing[1].BrickColor = Neons[Thing[8]]
  4156. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4157. Mesh = Thing[7]
  4158. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4159. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4160. else
  4161. if Thing[2] == "Cylinder" then
  4162. Mesh = Thing[7]
  4163. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4164. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4165. else
  4166. if Thing[2] == "Shatter" then
  4167. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4168. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  4169. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  4170. Thing[6] = Thing[6] + Thing[5]
  4171. else
  4172. if Thing[2] == "Blood" then
  4173. Mesh = Thing[7]
  4174. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  4175. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4176. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4177. else
  4178. if Thing[2] == "Elec" then
  4179. Mesh = Thing[7]
  4180. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4181. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4182. else
  4183. if Thing[2] == "Disappear" then
  4184. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4185. end
  4186. end
  4187. end
  4188. end
  4189. end
  4190. end
  4191. end
  4192. end
  4193. end
  4194. else
  4195. Part.Parent = nil
  4196. table.remove(Effects, e)
  4197. end
  4198. end
  4199. end
  4200. end
  4201. end
  4202. end
  4203. end
  4204. end
  4205. end
  4206. end
  4207. end
  4208. end
  4209. end
  4210. end
  4211. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement