Advertisement
Dark_EccentricYT

Untitled

Aug 19th, 2017 (edited)
4,070
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 238.90 KB | None | 0 0
  1. -- Roblox.LUA | Seph by FantasyOrchid | Fixed by Cass.
  2.  
  3. p=game.Players.LocalPlayer
  4. c=p.Character
  5. m=p:GetMouse()
  6. Player = game:GetService("Players").LocalPlayer
  7. mouse=Player:GetMouse()
  8. Cha = Player.Character
  9. Character = Cha
  10. torso = Cha.Torso
  11. Mouse = mouse
  12. curaga = false
  13. equip = false
  14. on = false
  15. it=Instance.new
  16. vt=Vector3.new
  17. cf=CFrame.new
  18. euler=CFrame.fromEulerAnglesXYZ
  19. angles=CFrame.Angles
  20. Color1 = torso.BrickColor
  21. Torso = torso
  22. Effects = {}
  23.  
  24. ---------------------------------------Clothes
  25. game.Players.LocalPlayer.Character["Right Arm"].BrickColor = BrickColor.new("Pastel brown")
  26. game.Players.LocalPlayer.Character["Left Arm"].BrickColor = BrickColor.new("Pastel brown")
  27. game.Players.LocalPlayer.Character["Head"].BrickColor = BrickColor.new("Pastel brown")
  28. game.Players.LocalPlayer.Character["Right Leg"].BrickColor = BrickColor.new("Pastel brown")
  29. game.Players.LocalPlayer.Character["Left Leg"].BrickColor = BrickColor.new("Pastel brown")
  30. game.Players.LocalPlayer.Character["Torso"].BrickColor = BrickColor.new("Pastel brown")
  31. Cha.Shirt:Remove()
  32. Cha.Pants:Remove()
  33.  
  34. Shirt = Instance.new("Shirt",Character)
  35. Shirt.Parent = Cha
  36. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=276413699"
  37. Pant = Instance.new("Pants",Character)
  38. Pant.Parent = Cha
  39. Pant.PantsTemplate = "http://www.roblox.com/asset/?id=276414504"
  40.  
  41. ---------------------------------------Taunts n Stuff
  42. local Taunts = {"Come on. Ya scared?"}
  43. local raisechats = { "Descend, Heartless Angel!" , "I'm... the chosen one!","I will lead you to the Promised Land","The Planet and I are to be one!","That was true power","Come power!","Prepare yourself!","No mercy","No more games... show me what you've got!"}
  44. local final = {"Show me your strength" , "That's enough"}
  45. ---------------------------------------Chat Gui n stuff
  46.  
  47. so = function(id,par,vol,pit)
  48. coroutine.resume(coroutine.create(function()
  49. local sou = Instance.new("Sound",par or workspace)
  50. sou.Volume=vol
  51. sou.Pitch=pit or 1
  52. sou.SoundId=id
  53. swait()
  54. sou:play()
  55. game:GetService("Debris"):AddItem(sou,6)
  56. end))
  57. end
  58.  
  59.  
  60. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  61. local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt())
  62. prt.Anchored=true
  63. prt.CFrame=cframe
  64. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  65. game:GetService("Debris"):AddItem(prt,5)
  66. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3})
  67. end
  68.  
  69. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  70. local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt())
  71. prt.Anchored=true
  72. prt.CFrame=cframe
  73. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  74. game:GetService("Debris"):AddItem(prt,2)
  75. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3})
  76. end
  77.  
  78. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  79. local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt())
  80. if Type~=2 then
  81. prt.Anchored=true
  82. end
  83. prt.CFrame=cframe
  84. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  85. game:GetService("Debris"):AddItem(prt,5)
  86. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  87. local wld=nil
  88. if dur==2 then
  89. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  90. end
  91. for i=0,1,delay do
  92. wait()
  93. if dur==1 then
  94. Part.CFrame=Part.CFrame
  95. elseif dur==2 then
  96. wld.C0=cframe
  97. end
  98. Part.Transparency=i
  99. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  100. end
  101. Part.Parent=nil
  102. end),prt,msh,Type)
  103. end
  104.  
  105. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  106. local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt())
  107. prt.Anchored=true
  108. prt.CFrame=cframe
  109. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  110. game:GetService("Debris"):AddItem(prt,5)
  111. coroutine.resume(coroutine.create(function(Part,Mesh)
  112. for i=0,1,delay do
  113. wait()
  114. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  115. Part.Transparency=i
  116. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  117. end
  118. Part.Parent=nil
  119. end),prt,msh)
  120. end
  121.  
  122. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,mshtype)
  123. local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt())
  124. prt.Anchored=true
  125. prt.CFrame=cframe
  126. local thetype=""
  127. if mshtype==1 then
  128. thetype="http://www.roblox.com/asset/?id=20329976"
  129. elseif mshtype==2 then
  130. thetype="http://www.roblox.com/asset/?id=1323306"
  131. end
  132. msh=mesh("SpecialMesh",prt,"FileMesh",thetype,vt(0,0,0),vt(x1,y1,z1))
  133. game:GetService("Debris"):AddItem(prt,2)
  134. coroutine.resume(coroutine.create(function(Part,Mesh)
  135. for i=0,1,delay do
  136. wait()
  137. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  138. Part.Transparency=i
  139. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  140. end
  141. Part.Parent=nil
  142. end),prt,msh)
  143. end
  144.  
  145.  
  146. function NoOutline(Part)
  147. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  148. end
  149.  
  150. function part2(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  151. local fp=it("Part")
  152. fp.formFactor=formfactor
  153. fp.Parent=parent
  154. fp.Reflectance=reflectance
  155. fp.Transparency=transparency
  156. fp.CanCollide=false
  157. fp.Locked=true
  158. fp.BrickColor=brickcolor
  159. fp.Name=name
  160. fp.Size=size
  161. fp.Position=Torso.Position
  162. NoOutline(fp)
  163. fp.Material="SmoothPlastic"
  164. fp:BreakJoints()
  165. return fp
  166. end
  167. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock,Slash)
  168. if hit.Parent==nil then
  169. return
  170. end
  171. h=hit.Parent:FindFirstChild("Humanoid")
  172. for _,v in pairs(hit.Parent:children()) do
  173. if v:IsA("Humanoid") then
  174. h=v
  175. end
  176. end
  177. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  178. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  179. end
  180. if hit.Parent.className=="Hat" then
  181. hit=hit.Parent.Parent:findFirstChild("Head")
  182. end
  183. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  184. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  185. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  186. return
  187. end]]
  188. -- hs(hit,1.2)
  189. if Slash==1 then
  190. so("http://www.roblox.com/asset/?id=10209590",hit,1,1)
  191. MagicCircle(Color1,hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.2,.2,6,.2,0.1)
  192. end
  193. c=Instance.new("ObjectValue")
  194. c.Name="creator"
  195. c.Value=game:service("Players").LocalPlayer
  196. c.Parent=h
  197. game:GetService("Debris"):AddItem(c,.5)
  198. Damage=math.random(minim,maxim)
  199. -- h:TakeDamage(Damage)
  200. blocked=false
  201. block=hit.Parent:findFirstChild("Block")
  202. if block~=nil then
  203. print(block.className)
  204. if block.className=="NumberValue" then
  205. if block.Value>0 then
  206. blocked=true
  207. if decreaseblock~=nil then
  208. block.Value=block.Value-decreaseblock
  209. end
  210. end
  211. end
  212. if block.className=="IntValue" then
  213. if block.Value>0 then
  214. blocked=true
  215. if decreaseblock~=nil then
  216. block.Value=block.Value-decreaseblock
  217. end
  218. end
  219. end
  220. end
  221. if blocked==false then
  222. -- h:TakeDamage(Damage)
  223. h.Health=h.Health-Damage
  224. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  225. else
  226. h.Health=h.Health-(Damage/2)
  227. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  228. end
  229. if Type=="Knockdown" then
  230. hum=hit.Parent.Humanoid
  231. hum.PlatformStand=true
  232. coroutine.resume(coroutine.create(function(HHumanoid)
  233. swait(1)
  234. HHumanoid.PlatformStand=false
  235. end),hum)
  236. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  237. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  238. local bodvol=Instance.new("BodyVelocity")
  239. bodvol.velocity=angle*knockback
  240. bodvol.P=5000
  241. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  242. bodvol.Parent=hit
  243. rl=Instance.new("BodyAngularVelocity")
  244. rl.P=3000
  245. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  246. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  247. rl.Parent=hit
  248. game:GetService("Debris"):AddItem(bodvol,.5)
  249. game:GetService("Debris"):AddItem(rl,.5)
  250. elseif Type=="Normal" then
  251. vp=Instance.new("BodyVelocity")
  252. vp.P=500
  253. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  254. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  255. if KnockbackType==1 then
  256. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  257. elseif KnockbackType==2 then
  258. vp.velocity=Property.CFrame.lookVector*knockback
  259. end
  260. if knockback>0 then
  261. vp.Parent=hit.Parent.Torso
  262. end
  263. game:GetService("Debris"):AddItem(vp,.5)
  264. elseif Type=="Up" then
  265. local bodyVelocity=Instance.new("BodyVelocity")
  266. bodyVelocity.velocity=vt(0,30,0)
  267. bodyVelocity.P=5000
  268. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  269. bodyVelocity.Parent=hit
  270. game:GetService("Debris"):AddItem(bodyVelocity,1)
  271. rl=Instance.new("BodyAngularVelocity")
  272. rl.P=3000
  273. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  274. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  275. rl.Parent=hit
  276. game:GetService("Debris"):AddItem(rl,.5)
  277. elseif Type=="Snare" then
  278. bp=Instance.new("BodyPosition")
  279. bp.P=2000
  280. bp.D=100
  281. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  282. bp.position=hit.Parent.Torso.Position
  283. bp.Parent=hit.Parent.Torso
  284. game:GetService("Debris"):AddItem(bp,1)
  285. elseif Type=="Charge" then
  286. Charge=Charge+1
  287. coroutine.resume(coroutine.create(function(Part,Hum)
  288. swait(30)
  289. for i=1,5 do
  290. swait()
  291. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  292. MagicCircle(Color1,hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  293. newdam=math.random(1,5)
  294. if blocked==false then
  295. Hum:TakeDamage(newdam)
  296. showDamage(hit.Parent,newdam,.5,BrickColor:Red())
  297. else
  298. Hum:TakeDamage(newdam/2)
  299. showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue"))
  300. end
  301. end
  302. end),hit,h)
  303. end
  304. debounce=Instance.new("BoolValue")
  305. debounce.Name="DebounceHit"
  306. debounce.Parent=hit.Parent
  307. debounce.Value=true
  308. game:GetService("Debris"):AddItem(debounce,Delay)
  309. c=Instance.new("ObjectValue")
  310. c.Name="creator"
  311. c.Value=Player
  312. c.Parent=h
  313. game:GetService("Debris"):AddItem(c,.5)
  314. CRIT=false
  315. end
  316. end
  317.  
  318. showDamage=function(Char,Dealt,du,Color)
  319. m=Instance.new("Model")
  320. m.Name=tostring(math.floor(Dealt))
  321. h=Instance.new("Humanoid")
  322. h.Health=0
  323. h.MaxHealth=0
  324. h.Parent=m
  325. c=Instance.new("Part")
  326. c.Transparency=0
  327. c.BrickColor=Color
  328. c.Name="Head"
  329. c.TopSurface=0
  330. c.BottomSurface=0
  331. c.formFactor="Plate"
  332. c.Size=Vector3.new(1,.4,1)
  333. ms=Instance.new("CylinderMesh")
  334. ms.Scale=Vector3.new(.8,.8,.8)
  335. if CRIT==true then
  336. ms.Scale=Vector3.new(1,1.25,1)
  337. end
  338. ms.Parent=c
  339. c.Reflectance=0
  340. Instance.new("BodyGyro").Parent=c
  341. c.Parent=m
  342. if Char:findFirstChild("Head")~=nil then
  343. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  344. elseif Char.Parent:findFirstChild("Head")~=nil then
  345. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  346. end
  347. f=Instance.new("BodyPosition")
  348. f.P=2000
  349. f.D=100
  350. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  351. f.position=c.Position+Vector3.new(0,3,0)
  352. f.Parent=c
  353. game:GetService("Debris"):AddItem(m,.5+du)
  354. c.CanCollide=false
  355. m.Parent=workspace
  356. c.CanCollide=false
  357. end
  358.  
  359.  
  360. repeat wait() until game:getService("Players").LocalPlayer.Character ~= nil;
  361.  
  362. local Services = setmetatable({}, { __index = function(Self, Request) return game:getService(Request) or nil end })
  363. local Player = Services.Players.LocalPlayer
  364. local Mouse = Player:GetMouse()
  365. local Backpack = Player.Backpack
  366. local Character = Player.Character
  367. local PlayerGui = Player.PlayerGui
  368. local Camera = Workspace.CurrentCamera
  369. local RunService = Services.RunService
  370. local Head = Character:findFirstChild("Head")
  371. local Torso = Character:findFirstChild("Torso")
  372. local RootPart = Character:findFirstChild("HumanoidRootPart")
  373. local RightArm = Character:findFirstChild("Right Arm")
  374. local LeftArm = Character:findFirstChild("Left Arm")
  375. local RightLeg = Character:findFirstChild("Right Leg")
  376. local LeftLeg = Character:findFirstChild("Left Leg")
  377. local Humanoid = Character:findFirstChild("Humanoid")
  378. local Neck = Torso:findFirstChild("Neck")
  379. local RootJoint = RootPart:findFirstChild("RootJoint")
  380. local RightSH = Torso:findFirstChild("Right Shoulder")
  381. local LeftSH = Torso:findFirstChild("Left Shoulder")
  382. local RightHip = Torso:findFirstChild("Right Hip")
  383. local LeftHip = Torso:findFirstChild("Left Hip")
  384. local it = Instance.new
  385. local vt = Vector3.new
  386. local bc = BrickColor.new
  387. local c3 = Color3.new
  388. local UD2 = UDim2.new
  389. local cf = CFrame.new
  390. local euler = CFrame.fromEulerAnglesXYZ
  391. local angles = CFrame.Angles
  392. local bc = BrickColor.new
  393. local c3 = Color3.new
  394. local deg = math.deg
  395. local inf = math.huge
  396. local rad = math.rad
  397. local pi = math.pi
  398. local random = math.random
  399.  
  400. local IDs = {
  401. --Meshes
  402. ["This"] = 0,
  403.  
  404. --Textures
  405. ["House of Gremory"] = 198026609,
  406. ["House of Phenex"] = 197704664,
  407. ["Electric"] = 255514024,
  408.  
  409. --Audio
  410. ["MVC3 Wesker Theme"] = 193889412,
  411. ["Resident Evil Movie Wesker Theme"] = 163237084,
  412.  
  413. }
  414.  
  415. local Tn = "New"
  416. local KeyDown = {}
  417. local KeyLastDown = {}
  418. local httpasset = "http://www.roblox.com/Asset/?id="
  419. local rbxassetid = "rbxassetid://"
  420. local rbxasset = "rbxasset://"
  421. local IsAttacking = false
  422. local IsSprinting = false
  423. local IsEquipping = false
  424. local IsBlocking = false
  425. local IsEquipped = false
  426. local AttackDebounce = false
  427. local RootCF = euler(-1.57, 0, 3.14)
  428. local NeckC0 = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  429. local NeckC1 = cf(0, -0.5, 0)
  430. local Combo = 0
  431. local ContinueCombo = false
  432. local RMB = false
  433. local LMB = false
  434. local Hold = false
  435. local blcf = nil
  436. local scfr = nil
  437.  
  438. function Preload(AssetID)
  439. Services.ContentProvider:Preload(AssetID)
  440. end
  441.  
  442. function PreloadAssets()
  443. for _, Assets in pairs(IDs) do
  444. Preload(httpasset .. Assets)
  445. end
  446. end
  447.  
  448. PreloadAssets()
  449.  
  450. function newSound(Parent,ID,Pitch,Volume,Looped)
  451. Sound = it("Sound",Parent)
  452. Sound.SoundId = ID
  453. Sound.Pitch = Pitch
  454. Sound.Volume = Volume
  455. Sound.Looped = Looped
  456.  
  457. return Sound
  458. end
  459.  
  460. function NoOutline(Part)
  461. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  462. end
  463.  
  464. Lerp = function(a,b,c)
  465. return a+(b-a)*c
  466. end
  467.  
  468. function ctlerp(c1,c2,al)
  469. local com1 = {c1:components()}
  470. local com2 = {c2:components()}
  471. for i,v in pairs(com1) do
  472. com1[i] = lerp(v,com2[i],al)
  473. end
  474. return CFrame.new(unpack(com1))
  475. end
  476.  
  477. do
  478. local function QuaternionFromCFrame(cf)
  479. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  480. local trace = m00 + m11 + m22
  481. if trace > 0 then
  482. local s = math.sqrt(1 + trace)
  483. local recip = 0.5/s
  484. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  485. else
  486. local i = 0
  487. if m11 > m00 then
  488. i = 1
  489. end
  490. if m22 > (i == 0 and m00 or m11) then
  491. i = 2
  492. end
  493. if i == 0 then
  494. local s = math.sqrt(m00-m11-m22+1)
  495. local recip = 0.5/s
  496. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  497. elseif i == 1 then
  498. local s = math.sqrt(m11-m22-m00+1)
  499. local recip = 0.5/s
  500. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  501. elseif i == 2 then
  502. local s = math.sqrt(m22-m00-m11+1)
  503. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  504. end
  505. end
  506. end
  507. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  508. local xs, ys, zs = x + x, y + y, z + z
  509. local wx, wy, wz = w*xs, w*ys, w*zs
  510. local xx = x*xs
  511. local xy = x*ys
  512. local xz = x*zs
  513. local yy = y*ys
  514. local yz = y*zs
  515. local zz = z*zs
  516. 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))
  517. end
  518. local function QuaternionSlerp(a, b, t)
  519. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  520. local startInterp, finishInterp;
  521. if cosTheta >= 0.0001 then
  522. if (1 - cosTheta) > 0.0001 then
  523. local theta = math.acos(cosTheta)
  524. local invSinTheta = 1/math.sin(theta)
  525. startInterp = math.sin((1-t)*theta)*invSinTheta
  526. finishInterp = math.sin(t*theta)*invSinTheta
  527. else
  528. startInterp = 1-t
  529. finishInterp = t
  530. end
  531. else
  532. if (1+cosTheta) > 0.0001 then
  533. local theta = math.acos(-cosTheta)
  534. local invSinTheta = 1/math.sin(theta)
  535. startInterp = math.sin((t-1)*theta)*invSinTheta
  536. finishInterp = math.sin(t*theta)*invSinTheta
  537. else
  538. startInterp = t-1
  539. finishInterp = t
  540. end
  541. end
  542. 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
  543. end
  544. function clerp(a,b,t)
  545. local qa = {QuaternionFromCFrame(a)}
  546. local qb = {QuaternionFromCFrame(b)}
  547. local ax, ay, az = a.x, a.y, a.z
  548. local bx, by, bz = b.x, b.y, b.z
  549. local _t = 1-t
  550. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  551. end
  552.  
  553. end
  554. --[[
  555. local CFrameInterpolate=function(s,e,a,r,i,n,g)
  556. g,r=CFrame,{{s:toEulerAnglesXYZ()},{e:toEulerAnglesXYZ()}}
  557. for _=1,3 do
  558. i,n=r[1][_],r[2][_]r[1][_]=i+a*(n-i)
  559. end
  560. return(g.new(s.p:lerp(e.p,a))*g.Angles(unpack(r[1])))
  561. end]]
  562.  
  563. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  564. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  565. end
  566.  
  567. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  568. local fp = it("Part")
  569. fp.formFactor = formfactor
  570. fp.Parent = parent
  571. fp.Reflectance = reflectance
  572. fp.Transparency = transparency
  573. fp.CanCollide = false
  574. fp.Locked=true
  575. fp.BrickColor = brickcolor
  576. fp.Name = name
  577. fp.Size = size
  578. fp.Position = Torso.Position
  579. fp.BottomSurface="Smooth"
  580. fp.TopSurface="Smooth"
  581. fp.Material = "SmoothPlastic"
  582. fp:BreakJoints()
  583.  
  584. NoOutline(fp)
  585. return fp
  586. end
  587.  
  588. function mesh(Mesh,part,meshtype,meshid,scale)
  589. local mesh = it(Mesh)
  590. mesh.Parent = part
  591. if Mesh=="SpecialMesh" then
  592. mesh.MeshType = meshtype
  593. mesh.MeshId = meshid
  594. end
  595. mesh.Scale=scale
  596. return mesh
  597. end
  598.  
  599. function weld(parent,part0,part1,c0,c1)
  600. local weld = it("Motor")
  601. weld.Parent = parent
  602. weld.Part0 = part0
  603. weld.Part1 = part1
  604. weld.C0 = c0
  605. if c1 ~= nil then
  606. weld.C1 = c1
  607. end
  608. return weld
  609. end
  610.  
  611. for i, v in pairs(Character:GetChildren()) do
  612. if v:IsA("LocalScript") and v.Name == string.lower(tostring(Tn)) then
  613. v:Destroy()
  614. end
  615. end
  616.  
  617. for i, v in pairs(Backpack:GetChildren()) do
  618. if v:IsA("HopperBin") and v.Name == tostring(Tn) then
  619. v:Destroy()
  620. end
  621. end
  622.  
  623. for i, v in pairs(Character:GetChildren()) do
  624. if v:IsA("Model") and v.Name == tostring(Tn) then
  625. v:Destroy()
  626. end
  627. end
  628.  
  629. local Main = it("Model", Character)
  630. Main.Name = Tn
  631.  
  632. local MagicBin = it("Model", Main)
  633. MagicBin.Name = "MagicBin"
  634.  
  635. local EffectsBin = it("Model", Main)
  636. EffectsBin.Name = "EffectsBin"
  637. Hilt17=part(3,Main,0,0,bc("Medium stone grey"),"Hilt17",vt(0.200000003, 0.200000003, 0.200000003))
  638. Hilt11=part(3,Main,0,0,bc("Medium stone grey"),"Hilt11",vt(0.289999992, 0.200000003, 0.200000003))
  639. Hilt15=part(3,Main,0,0,bc("Medium stone grey"),"Hilt15",vt(0.200000003, 0.200000003, 0.200000003))
  640. Hilt12=part(3,Main,0,0,bc("Medium stone grey"),"Hilt12",vt(0.200000003, 0.200000003, 0.200000003))
  641. Hilt14=part(3,Main,0,0,bc("Medium stone grey"),"Hilt14",vt(0.200000003, 0.200000003, 0.200000003))
  642. Hilt16=part(3,Main,0,0,bc("Medium stone grey"),"Hilt16",vt(0.200000003, 0.200000003, 0.200000003))
  643. Hilt3=part(3,Main,0,0,bc("Medium stone grey"),"Hilt3",vt(0.200000003, 0.200000003, 0.200000003))
  644. Hilt13=part(3,Main,0,0,bc("Medium stone grey"),"Hilt13",vt(0.200000003, 0.200000003, 0.200000003))
  645. Blade9=part(3,Main,0.25,0,bc("White"),"Blade9",vt(0.5200001, 5.10000038, 0.200000003))
  646. Hilt5=part(3,Main,0,0,bc("Medium stone grey"),"Hilt5",vt(0.289999992, 0.200000003, 0.200000003))
  647. Hilt10=part(3,Main,0,0,bc("Medium stone grey"),"Hilt10",vt(0.200000003, 0.200000003, 0.200000003))
  648. Hilt6=part(3,Main,0,0,bc("Medium stone grey"),"Hilt6",vt(0.200000003, 0.200000003, 0.200000003))
  649. Handle15=part(3,Main,0,0,bc("White"),"Handle15",vt(0.200000003, 0.200000003, 0.200000003))
  650. Handle13=part(3,Main,0,0,bc("White"),"Handle13",vt(0.200000003, 0.200000003, 0.200000003))
  651. Handle8=part(3,Main,0,0,bc("Black"),"Handle8",vt(0.400000036, 2.19000006, 0.400000006))
  652. Handle14=part(3,Main,0,0,bc("White"),"Handle14",vt(0.200000003, 0.200000003, 0.200000003))
  653. Handle12=part(3,Main,0,0,bc("White"),"Handle12",vt(0.200000003, 0.200000003, 0.200000003))
  654. Handle7=part(3,Main,0,0,bc("White"),"Handle7",vt(0.200000003, 0.200000003, 0.200000003))
  655. Handle2=part(3,Main,0,0,bc("Medium stone grey"),"Handle2",vt(0.200000003, 0.280000001, 0.400000006))
  656. Handle1=part(3,Main,0,0,bc("White"),"Handle1",vt(0.200000003, 0.200000003, 0.200000003))
  657. Handle3=part(3,Main,0,0,bc("White"),"Handle3",vt(0.200000003, 0.200000003, 0.200000003))
  658. Handle=part(3,Main,0,0,bc("Black"),"Handle",vt(0.200000003, 2.19999981, 0.400000006))
  659. Handle4=part(3,Main,0,0,bc("White"),"Handle4",vt(0.200000003, 0.200000003, 0.200000003))
  660. Handle11=part(3,Main,0,0,bc("White"),"Handle11",vt(0.200000003, 0.200000003, 0.200000003))
  661. Handle5=part(3,Main,0,0,bc("Medium stone grey"),"Handle5",vt(0.400000036, 0.280000001, 0.400000006))
  662. Handle10=part(3,Main,0,0,bc("White"),"Handle10",vt(0.200000003, 0.200000003, 0.200000003))
  663. Handle6=part(3,Main,0,0,bc("Medium stone grey"),"Handle6",vt(0.400000036, 0.280000001, 0.400000006))
  664. Hilt7=part(3,Main,0,0,bc("Medium stone grey"),"Hilt7",vt(0.75, 0.200000003, 0.400000006))
  665. Handle9=part(3,Main,0,0,bc("Black"),"Handle9",vt(0.400000036, 2.19999981, 0.400000006))
  666. Hilt2=part(3,Main,0,0,bc("Medium stone grey"),"Hilt2",vt(0.600000024, 0.200000003, 0.600000024))
  667. Hilt1=part(3,Main,0,0,bc("Medium stone grey"),"Hilt1",vt(0.600000024, 0.200000003, 0.200000003))
  668. Hilt9=part(3,Main,0,0,bc("Medium stone grey"),"Hilt9",vt(0.200000003, 0.200000003, 0.200000003))
  669. Hilt4=part(3,Main,0,0,bc("Medium stone grey"),"Hilt4",vt(0.200000003, 0.200000003, 0.200000003))
  670. Hilt8=part(3,Main,0,0,bc("Medium stone grey"),"Hilt8",vt(0.200000003, 0.200000003, 0.200000003))
  671. Blade1=part(3,Main,0.25,0,bc("White"),"Blade1",vt(0.200000003, 0.579999924, 0.540000081))
  672. Blade10=part(3,Main,0.25,0,bc("White"),"Blade10",vt(0.600000083, 3.81000042, 0.200000003))
  673. Blade11=part(3,Main,0.25,0,bc("White"),"Blade11",vt(0.490000039, 0.469999969, 0.200000003))
  674. Blade12=part(3,Main,0.25,0,bc("White"),"Blade12",vt(0.490000039, 0.469999969, 0.200000003))
  675. Blade13=part(3,Main,0.25,0,bc("White"),"Blade13",vt(0.230000004, 0.200000003, 0.200000003))
  676. Blade14=part(3,Main,0.25,0,bc("White"),"Blade14",vt(0.230000004, 0.200000003, 0.200000003))
  677. Blade15=part(3,Main,0.25,0,bc("White"),"Blade15",vt(0.200000003, 0.200000003, 0.200000003))
  678. Blade16=part(3,Main,0.25,0,bc("White"),"Blade16",vt(0.200000003, 0.219999999, 0.200000003))
  679. Blade17=part(3,Main,0.25,0,bc("White"),"Blade17",vt(0.200000003, 1.18999994, 0.49000001))
  680. Blade18=part(3,Main,0.25,0,bc("White"),"Blade18",vt(0.200000003, 0.200000003, 0.200000003))
  681. Blade2=part(3,Main,0.25,0,bc("White"),"Blade2",vt(0.200000003, 0.200000003, 0.200000003))
  682. Blade3=part(3,Main,0.25,0,bc("White"),"Blade3",vt(0.200000003, 1.66999996, 0.479999989))
  683. Blade4=part(3,Main,0.25,0,bc("White"),"Blade4",vt(0.25999999, 1.69000018, 0.200000003))
  684. Blade5=part(3,Main,0.25,0,bc("White"),"Blade5",vt(0.420000076, 2.75, 0.200000003))
  685. Blade6=part(3,Main,0.25,0,bc("White"),"Blade6",vt(0.25999999, 1.06000018, 0.200000003))
  686. Blade7=part(3,Main,0.25,0,bc("White"),"Blade7",vt(0.25999999, 1.35000014, 0.200000003))
  687. Blade8=part(3,Main,0.25,0,bc("White"),"Blade8",vt(0.420000076, 2.32000017, 0.200000003))
  688. Hitbox=part(3,Main,0,1,bc("Medium stone grey"),"Hitbox",vt(0.810000002, 8.5199995, 0.200000003))
  689.  
  690. Hilt17Mesh=mesh("CylinderMesh",Hilt17,nil,nil,vt(1, 0.5, 0.25))
  691. Hilt11Mesh=mesh("BlockMesh",Hilt11,nil,nil,vt(1, 0.5, 0.25))
  692. Hilt15Mesh=mesh("CylinderMesh",Hilt15,nil,nil,vt(1, 0.5, 0.25))
  693. Hilt12Mesh=mesh("BlockMesh",Hilt12,nil,nil,vt(0.5, 0.5, 0.25))
  694. Hilt14Mesh=mesh("CylinderMesh",Hilt14,nil,nil,vt(1, 0.5, 1))
  695. Hilt16Mesh=mesh("BlockMesh",Hilt16,nil,nil,vt(0.5, 0.5, 0.25))
  696. Hilt3Mesh=mesh("CylinderMesh",Hilt3,nil,nil,vt(1, 0.5, 1))
  697. Hilt13Mesh=mesh("CylinderMesh",Hilt13,nil,nil,vt(1, 0.5, 1))
  698. Blade9Mesh=mesh("BlockMesh",Blade9,nil,nil,vt(0.899999976, 1, 0.5))
  699. Hilt5Mesh=mesh("BlockMesh",Hilt5,nil,nil,vt(1, 0.5, 0.25))
  700. Hilt10Mesh=mesh("CylinderMesh",Hilt10,nil,nil,vt(1, 0.5, 0.25))
  701. Hilt6Mesh=mesh("CylinderMesh",Hilt6,nil,nil,vt(1, 0.5, 1))
  702. Handle15Mesh=mesh("SpecialMesh",Handle15,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  703. Handle13Mesh=mesh("SpecialMesh",Handle13,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  704. Handle8Mesh=mesh("CylinderMesh",Handle8,nil,nil,vt(1, 1, 0.600000024))
  705. Handle14Mesh=mesh("SpecialMesh",Handle14,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  706. Handle12Mesh=mesh("SpecialMesh",Handle12,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  707. Handle7Mesh=mesh("SpecialMesh",Handle7,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  708. Handle2Mesh=mesh("BlockMesh",Handle2,nil,nil,vt(1, 1, 0.649999976))
  709. Handle1Mesh=mesh("SpecialMesh",Handle1,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  710. Handle3Mesh=mesh("SpecialMesh",Handle3,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  711. HandleMesh=mesh("BlockMesh",Handle,nil,nil,vt(1, 1, 0.600000024))
  712. Handle4Mesh=mesh("SpecialMesh",Handle4,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  713. Handle11Mesh=mesh("SpecialMesh",Handle11,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  714. Handle5Mesh=mesh("CylinderMesh",Handle5,nil,nil,vt(1, 1, 0.649999976))
  715. Handle10Mesh=mesh("SpecialMesh",Handle10,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978))
  716. Handle6Mesh=mesh("CylinderMesh",Handle6,nil,nil,vt(1, 1, 0.649999976))
  717. Hilt7Mesh=mesh("BlockMesh",Hilt7,nil,nil,vt(1, 0.5, 1))
  718. Handle9Mesh=mesh("CylinderMesh",Handle9,nil,nil,vt(1, 1, 0.600000024))
  719. Hilt2Mesh=mesh("BlockMesh",Hilt2,nil,nil,vt(0.899999976, 0.5, 1))
  720. Hilt1Mesh=mesh("BlockMesh",Hilt1,nil,nil,vt(1, 1, 0.75))
  721. Hilt9Mesh=mesh("BlockMesh",Hilt9,nil,nil,vt(0.5, 0.5, 0.25))
  722. Hilt4Mesh=mesh("CylinderMesh",Hilt4,nil,nil,vt(1, 0.5, 0.25))
  723. Hilt8Mesh=mesh("BlockMesh",Hilt8,nil,nil,vt(0.5, 0.5, 0.25))
  724. Blade1Mesh=mesh("SpecialMesh",Blade1,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  725. Blade10Mesh=mesh("BlockMesh",Blade10,nil,nil,vt(0.899999976, 1, 0.5))
  726. Blade11Mesh=mesh("BlockMesh",Blade11,nil,nil,vt(0.899999976, 1, 0.5))
  727. Blade12Mesh=mesh("BlockMesh",Blade12,nil,nil,vt(0.899999976, 1, 0.5))
  728. Blade13Mesh=mesh("BlockMesh",Blade13,nil,nil,vt(0.899999976, 1, 0.5))
  729. Blade14Mesh=mesh("BlockMesh",Blade14,nil,nil,vt(0.899999976, 1, 0.5))
  730. Blade15Mesh=mesh("SpecialMesh",Blade15,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  731. Blade16Mesh=mesh("BlockMesh",Blade16,nil,nil,vt(0.899999976, 1, 0.5))
  732. Blade17Mesh=mesh("SpecialMesh",Blade17,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  733. Blade18Mesh=mesh("SpecialMesh",Blade18,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  734. Blade2Mesh=mesh("SpecialMesh",Blade2,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  735. Blade3Mesh=mesh("SpecialMesh",Blade3,Enum.MeshType.Wedge,"",vt(0.5, 1, 1))
  736. Blade4Mesh=mesh("BlockMesh",Blade4,nil,nil,vt(0.899999976, 1, 0.5))
  737. Blade5Mesh=mesh("BlockMesh",Blade5,nil,nil,vt(0.899999976, 1, 0.5))
  738. Blade6Mesh=mesh("BlockMesh",Blade6,nil,nil,vt(0.899999976, 1, 0.5))
  739. Blade7Mesh=mesh("BlockMesh",Blade7,nil,nil,vt(0.899999976, 1, 0.5))
  740. Blade8Mesh=mesh("BlockMesh",Blade8,nil,nil,vt(0.899999976, 1, 0.5))
  741. Hilt1Mesh=mesh("BlockMesh",Hitbox,nil,nil,vt(1, 1, 0.75))
  742.  
  743. Hilt17Weld=weld(Hilt17,Handle,Hilt17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.457622528, -1.11945462, -0.145050049, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  744. Hilt11Weld=weld(Hilt11,Handle,Hilt11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0037612915, -1.12150526, -0.461910248, -1.06936568e-005, 5.77834871e-005, -0.999996424, -7.43104756e-005, 1.00008583, 5.77949249e-005, 1.00007868, 7.44559511e-005, -9.76776937e-006))
  745. Hilt15Weld=weld(Hilt15,Handle,Hilt15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.457572937, -1.11945891, 0.141166687, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  746. Hilt12Weld=weld(Hilt12,Handle,Hilt12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.404922485, -1.11943936, -0.145050049, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  747. Hilt14Weld=weld(Hilt14,Handle,Hilt14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.273647308, -1.12032151, 0.201026917, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  748. Hilt16Weld=weld(Hilt16,Handle,Hilt16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.404937744, -1.11946464, 0.141155243, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  749. Hilt3Weld=weld(Hilt3,Handle,Hilt3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.273616791, -1.12033963, -0.198993683, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  750. Hilt13Weld=weld(Hilt13,Handle,Hilt13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.275409698, -1.12033486, 0.200931549, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  751. Blade9Weld=weld(Blade9,Handle,Blade9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0333178043, 3.8683424, 0.000338554382, 1.00010002, 0.000703109195, -9.48159723e-005, 0.000706287858, -1.00008559, -4.03726153e-006, -9.35117641e-005, 3.24808389e-006, -0.999996305))
  752. Hilt5Weld=weld(Hilt5,Handle,Hilt5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00389099121, 1.11949492, -0.46629715, -9.87974199e-005, 7.27375082e-005, -0.999996424, 7.42931588e-005, -1.00008583, -7.27541628e-005, -1.00007868, -7.444519e-005, 9.78631724e-005))
  753. Hilt10Weld=weld(Hilt10,Handle,Hilt10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.46213913, 1.12150216, 0.14138031, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424))
  754. Hilt6Weld=weld(Hilt6,Handle,Hilt6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.275440216, -1.12034822, -0.19909668, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  755. Handle15Weld=weld(Handle15,Handle,Handle15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.67028809e-005, -0.801521063, 0.121692657, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  756. Handle13Weld=weld(Handle13,Handle,Handle13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.28881836e-005, -0.400797606, 0.121746063, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  757. Handle8Weld=weld(Handle8,Handle,Handle8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.100402832, -0.0031414032, -0.000217437744, 1.00007868, 6.75279625e-006, -6.48646019e-005, -6.61071726e-006, 1.00008583, -3.46608649e-005, 6.57905184e-005, 3.46802844e-005, 0.999996424))
  758. Handle14Weld=weld(Handle14,Handle,Handle14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-5.7220459e-005, -0.801545382, -0.121162415, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  759. Handle12Weld=weld(Handle12,Handle,Handle12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.52587891e-005, -0.400773525, -0.121177673, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  760. Handle7Weld=weld(Handle7,Handle,Handle7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(4.19616699e-005, 0.400630951, 0.121704102, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  761. Handle2Weld=weld(Handle2,Handle,Handle2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.90734863e-005, 1.21269119, 1.90734863e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  762. Handle1Weld=weld(Handle1,Handle,Handle1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.10351563e-005, 0.801368952, 0.12171936, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  763. Handle3Weld=weld(Handle3,Handle,Handle3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(7.62939453e-006, 0.400652409, -0.121212006, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  764. Handle4Weld=weld(Handle4,Handle,Handle4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-8.01086426e-005, 0.801396608, -0.121200562, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  765. Handle11Weld=weld(Handle11,Handle,Handle11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-3.05175781e-005, -8.48770142e-005, 0.121711731, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  766. Handle5Weld=weld(Handle5,Handle,Handle5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.100139618, 1.21268964, -0.000148773193, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  767. Handle10Weld=weld(Handle10,Handle,Handle10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.10351563e-005, -8.58306885e-005, -0.121185303, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  768. Handle6Weld=weld(Handle6,Handle,Handle6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.100006104, 1.21272635, 2.67028809e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  769. Hilt7Weld=weld(Hilt7,Handle,Hilt7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0011138916, -1.12035966, -0.000301361084, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  770. Handle9Weld=weld(Handle9,Handle,Handle9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.100112915, -8.27312469e-005, -1.52587891e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  771. Hilt2Weld=weld(Hilt2,Handle,Hilt2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0011138916, -1.12035966, -0.000301361084, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  772. Hilt1Weld=weld(Hilt1,Handle,Hilt1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00114059448, -1.25527358, -0.000255584717, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424))
  773. Hilt9Weld=weld(Hilt9,Handle,Hilt9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.409454346, 1.12153077, -0.144813538, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424))
  774. Hilt4Weld=weld(Hilt4,Handle,Hilt4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.462165833, 1.12153316, -0.144828796, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424))
  775. Hilt8Weld=weld(Hilt8,Handle,Hilt8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.409484863, 1.12151933, 0.141399384, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424))
  776. Blade1Weld=weld(Blade1,Handle,Blade1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000437736511, -9.34721851, 0.827681899, 0.000351174298, -0.000148526902, 0.999995887, -0.106138475, 0.994437933, 0.000185434037, -0.99444443, -0.106136039, 0.000333891279))
  777. Blade10Weld=weld(Blade10,Handle,Blade10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00660872459, 4.51431751, 8.77380371e-005, 1.00009, 0.000703894009, -9.4286981e-005, 0.000705496001, -1.00008559, -3.86945794e-006, -9.40407408e-005, 3.41546001e-006, -0.999996305))
  778. Blade11Weld=weld(Blade11,Handle,Blade11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.06901801, -7.80190563, -0.000305175781, 0.989713788, 0.14376092, 3.26523987e-005, -0.143766329, 0.989699125, 1.40180964e-005, -3.16402184e-005, -1.78200462e-005, 0.999996305))
  779. Blade12Weld=weld(Blade12,Handle,Blade12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.226474524, 2.80856323, -0.000195503235, 0.997143149, -0.0768536478, -9.97968309e-005, -0.0768516213, -0.997128606, 2.88784577e-007, -9.82304191e-005, 6.65828702e-006, -0.999996245))
  780. Blade13Weld=weld(Blade13,Handle,Blade13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.568722963, -7.9933815, -0.000526428223, 0.998305798, 0.0599297546, 2.65152848e-005, -0.0599343963, 0.998288512, 1.29768741e-005, -2.73143451e-005, -1.37269999e-005, 0.999996006))
  781. Blade14Weld=weld(Blade14,Handle,Blade14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.171463251, 2.68863964, -6.19888306e-005, 1.00007272, 0.00736879185, -9.45004576e-005, 0.00737197511, -1.00005865, -4.21920777e-006, -9.33028423e-005, 2.81876601e-006, -0.999996126))
  782. Blade15Weld=weld(Blade15,Handle,Blade15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000944137573, 7.56833935, 0.275351524, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314))
  783. Blade16Weld=weld(Blade16,Handle,Blade16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.864399433, -7.489645, -0.000500679016, 0.992487252, -0.12313544, 1.14010618e-005, 0.123134181, 0.992476463, 8.45576506e-006, -1.32677669e-005, -6.39483005e-006, 0.999996305))
  784. Blade17Weld=weld(Blade17,Handle,Blade17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000581741333, -7.55102921, -0.13477993, -0.00034879928, 0.000129672044, -0.999996185, -0.0202675145, 0.999880493, 0.000137549418, 0.999897897, 0.0202635974, -0.000347658846))
  785. Blade18Weld=weld(Blade18,Handle,Blade18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000557899475, 7.52509022, 0.275359869, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314))
  786. Blade2Weld=weld(Blade2,Handle,Blade2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00057888031, 7.48215389, 0.275330186, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314))
  787. Blade3Weld=weld(Blade3,Handle,Blade3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000393867493, -7.04902267, 0.0776619911, 0.000349696755, -0.000144917256, 0.999996126, -0.0201287661, 0.999883413, 0.000152739129, -0.999900341, -0.0201249551, 0.000348230271))
  788. Blade4Weld=weld(Blade4,Handle,Blade4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.345176935, -7.19837856, -0.00014591217, 0.999677896, 0.0291204583, 2.30636306e-005, -0.0291243587, 0.999661684, 1.2259512e-005, -2.42160258e-005, -1.21488301e-005, 0.999996483))
  789. Blade5Weld=weld(Blade5,Handle,Blade5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0613408089, -6.66463852, -0.000297546387, 1.00008607, 0.00572431087, 2.27986129e-005, -0.00572792487, 1.0000695, 1.18127937e-005, -2.42688948e-005, -1.11469435e-005, 0.999996006))
  790. Blade6Weld=weld(Blade6,Handle,Blade6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.830851674, -8.54523373, -0.000294685364, 0.996045947, 0.0899090096, 2.84904072e-005, -0.0899123698, 0.996036172, 1.33077137e-005, -2.80210697e-005, -1.52425491e-005, 0.999996364))
  791. Blade7Weld=weld(Blade7,Handle,Blade7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.112965345, 1.97472, 0.000140190125, 0.999840677, -0.0226954129, -9.64816718e-005, -0.0226928778, -0.999828398, -2.81470602e-006, -9.53230483e-005, 4.35582297e-006, -0.999996305))
  792. Blade8Weld=weld(Blade8,Handle,Blade8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.385430336, -8.07253075, -0.000302314758, 0.997883201, 0.0665779561, 2.74792801e-005, -0.0665825158, 0.997867644, 1.30069748e-005, -2.8088989e-005, -1.40299308e-005, 0.999996066))
  793. HitboxWeld=weld(Hitbox,Handle,Hitbox,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.106161118, -5.41620255, -0.000254631042, 1.00046325, -6.90831803e-006, -1.75475213e-006, -3.0976953e-006, 1.00042915, 1.63710138e-006, -8.52004405e-007, 7.30804459e-007, 0.999981821))
  794. --[[
  795. HandleWeld=weld(Handle,Torso,Handle,euler(0,0,rad(140))*cf(0,-2.5,0.5))
  796. HandleWeld.Part0 = RightArm
  797. HandleWeld.C0 = euler(-rad(90),rad(90),0)*cf(0.95,0,0)
  798. ]]
  799. local Wing=it("Model",Main)
  800. Wing.Name = "Wing"
  801.  
  802. WingBase1=part(3,Wing,0.5,0,bc("Black"),"WingBase1",vt(0.419999987, 0.349999994, 0.349999994))
  803. WingBase2=part(3,Wing,0.5,0,bc("Black"),"WingBase2",vt(0.409999967, 0.349999994, 0.349999994))
  804. WingBase18=part(3,Wing,0.5,0,bc("Black"),"WingBase18",vt(0.349999994, 0.200000003, 0.75000006))
  805. WingBase16=part(3,Wing,0.5,0,bc("Black"),"WingBase16",vt(0.350000054, 0.200000003, 0.300000012))
  806. WingBase13=part(3,Wing,0.5,0,bc("Black"),"WingBase13",vt(0.200000003, 0.349999994, 0.200000003))
  807. WingBase17=part(3,Wing,0.5,0,bc("Black"),"WingBase17",vt(0.349999994, 0.200000003, 0.350000054))
  808. WingBase6=part(3,Wing,0.5,0,bc("Black"),"WingBase6",vt(0.639999986, 0.349999994, 0.349999994))
  809. WingBase19=part(3,Wing,0.5,0,bc("Black"),"WingBase19",vt(0.349999994, 0.200000003, 0.75000006))
  810. WingBase12=part(3,Wing,0.5,0,bc("Black"),"WingBase12",vt(0.349999994, 0.200000003, 0.280000001))
  811. WingBase10=part(3,Wing,0.5,0,bc("Black"),"WingBase10",vt(0.300000012, 0.349999994, 0.270000011))
  812. WingBase14=part(3,Wing,0.5,0,bc("Black"),"WingBase14",vt(0.350000054, 0.209999993, 0.200000003))
  813. WingBase9=part(3,Wing,0.5,0,bc("Black"),"WingBase9",vt(0.289999962, 0.349999994, 0.460000008))
  814. WingBase11=part(3,Wing,0.5,0,bc("Black"),"WingBase11",vt(0.350000054, 0.309999973, 0.400000006))
  815. WingBase5=part(3,Wing,0.5,0,bc("Black"),"WingBase5",vt(0.409999967, 0.349999994, 0.349999994))
  816. WingBase8=part(3,Wing,0.5,0,bc("Black"),"WingBase8",vt(0.879999995, 0.349999994, 0.349999994))
  817. WingBase4=part(3,Wing,0.5,0,bc("Black"),"WingBase4",vt(0.419999987, 0.349999994, 0.349999994))
  818. WingBase15=part(3,Wing,0.5,0,bc("Black"),"WingBase15",vt(0.349999994, 0.200000003, 0.350000054))
  819. WingBase20=part(3,Wing,0.5,0,bc("Black"),"WingBase20",vt(0.350000054, 0.209999993, 0.400000006))
  820. WingBase3=part(3,Wing,0.5,0,bc("Black"),"WingBase3",vt(0.399999976, 0.349999994, 0.349999994))
  821. WingBase7=part(3,Wing,0.5,0,bc("Black"),"WingBase7",vt(1.04999995, 0.349999994, 0.350000024))
  822. Feather1=part(3,Wing,0,0,bc("Black"),"Feather1",vt(0.419999987, 0.349999994, 1.00999999))
  823. Feather2=part(3,Wing,0,0,bc("Black"),"Feather2",vt(0.419999987, 0.349999994, 1.06999993))
  824. Feather3=part(3,Wing,0,0,bc("Black"),"Feather3",vt(0.419999987, 0.349999994, 1.06999993))
  825. Feather4=part(3,Wing,0,0,bc("Black"),"Feather4",vt(0.419999987, 0.349999994, 1.06999993))
  826. Feather5=part(3,Wing,0,0,bc("Black"),"Feather5",vt(0.419999987, 0.349999994, 0.969999969))
  827. Feather6=part(3,Wing,0,0,bc("Black"),"Feather6",vt(0.419999987, 0.349999994, 0.919999957))
  828. Feather7=part(3,Wing,0,0,bc("Black"),"Feather7",vt(0.419999987, 0.349999994, 0.969999969))
  829. Feather8=part(3,Wing,0,0,bc("Black"),"Feather8",vt(0.419999987, 0.349999994, 0.889999986))
  830. Feather9=part(3,Wing,0,0,bc("Black"),"Feather9",vt(0.419999987, 0.349999994, 1.46000004))
  831. Feather10=part(3,Wing,0,0,bc("Black"),"Feather10",vt(0.419999987, 0.349999994, 1.46000004))
  832. Feather11=part(3,Wing,0,0,bc("Black"),"Feather11",vt(0.419999987, 0.349999994, 1.32000005))
  833. Feather12=part(3,Wing,0,0,bc("Black"),"Feather12",vt(0.419999987, 0.349999994, 1.46000004))
  834. Feather13=part(3,Wing,0,0,bc("Black"),"Feather13",vt(0.419999987, 0.349999994, 1.13999999))
  835. Feather14=part(3,Wing,0,0,bc("Black"),"Feather14",vt(0.419999987, 0.349999994, 1.24000001))
  836. Feather15=part(3,Wing,0,0,bc("Black"),"Feather15",vt(0.419999987, 0.349999994, 1.46000004))
  837. Feather16=part(3,Wing,0,0,bc("Black"),"Feather16",vt(0.419999987, 0.349999994, 1.46000004))
  838. Feather17=part(3,Wing,0,0,bc("Black"),"Feather17",vt(0.419999987, 0.349999994, 1.46000004))
  839. Feather18=part(3,Wing,0,0,bc("Black"),"Feather18",vt(0.419999987, 0.349999994, 1.46000004))
  840. Feather19=part(3,Wing,0,0,bc("Black"),"Feather19",vt(0.419999987, 0.349999994, 1.46000004))
  841. Feather20=part(3,Wing,0,0,bc("Black"),"Feather20",vt(0.419999987, 0.349999994, 1.46000004))
  842. Feather21=part(3,Wing,0,0,bc("Black"),"Feather21",vt(0.419999987, 0.349999994, 1.46000004))
  843. Feather22=part(3,Wing,0,0,bc("Black"),"Feather22",vt(0.419999987, 0.349999994, 1.46000004))
  844. Feather23=part(3,Wing,0,0,bc("Black"),"Feather23",vt(0.419999987, 0.349999994, 1.46000004))
  845. Feather24=part(3,Wing,0,0,bc("Black"),"Feather24",vt(0.419999987, 0.349999994, 1.46000004))
  846. Feather25=part(3,Wing,0,0,bc("Black"),"Feather25",vt(0.419999987, 0.349999994, 1.46000004))
  847. Feather26=part(3,Wing,0,0,bc("Black"),"Feather26",vt(0.419999987, 0.349999994, 1.46000004))
  848. Feather27=part(3,Wing,0,0,bc("Black"),"Feather27",vt(0.419999987, 0.349999994, 1.46000004))
  849. Feather28=part(3,Wing,0,0,bc("Black"),"Feather28",vt(0.419999987, 0.349999994, 1.46000004))
  850. Feather29=part(3,Wing,0,0,bc("Black"),"Feather29",vt(0.419999987, 0.349999994, 1.46000004))
  851. Feather30=part(3,Wing,0,0,bc("Black"),"Feather30",vt(0.419999987, 0.349999994, 1.46000004))
  852. Feather31=part(3,Wing,0,0,bc("Black"),"Feather31",vt(0.419999987, 0.349999994, 1.18000007))
  853. Feather32=part(3,Wing,0,0,bc("Black"),"Feather32",vt(0.419999987, 0.349999994, 1.19000006))
  854. Feather33=part(3,Wing,0,0,bc("Black"),"Feather33",vt(0.419999987, 0.349999994, 1.20000005))
  855.  
  856. WingBase1Mesh=mesh("BlockMesh",WingBase1,nil,nil,vt(1, 0.75, 1))
  857. WingBase2Mesh=mesh("BlockMesh",WingBase2,nil,nil,vt(1, 0.75, 1))
  858. WingBase18Mesh=mesh("SpecialMesh",WingBase18,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  859. WingBase16Mesh=mesh("SpecialMesh",WingBase16,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  860. WingBase13Mesh=mesh("BlockMesh",WingBase13,nil,nil,vt(1, 0.75, 1))
  861. WingBase17Mesh=mesh("SpecialMesh",WingBase17,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  862. WingBase6Mesh=mesh("BlockMesh",WingBase6,nil,nil,vt(1, 0.75, 1))
  863. WingBase19Mesh=mesh("SpecialMesh",WingBase19,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  864. WingBase12Mesh=mesh("SpecialMesh",WingBase12,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  865. WingBase10Mesh=mesh("BlockMesh",WingBase10,nil,nil,vt(1, 0.75, 1))
  866. WingBase14Mesh=mesh("SpecialMesh",WingBase14,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  867. WingBase9Mesh=mesh("BlockMesh",WingBase9,nil,nil,vt(1, 0.75, 1))
  868. WingBase11Mesh=mesh("SpecialMesh",WingBase11,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  869. WingBase5Mesh=mesh("BlockMesh",WingBase5,nil,nil,vt(1, 0.75, 1))
  870. WingBase8Mesh=mesh("BlockMesh",WingBase8,nil,nil,vt(1, 0.75, 1))
  871. WingBase4Mesh=mesh("BlockMesh",WingBase4,nil,nil,vt(1, 0.75, 1))
  872. WingBase15Mesh=mesh("SpecialMesh",WingBase15,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  873. WingBase20Mesh=mesh("SpecialMesh",WingBase20,Enum.MeshType.Wedge,"",vt(0.75, 1, 1))
  874. WingBase3Mesh=mesh("BlockMesh",WingBase3,nil,nil,vt(1, 0.75, 1))
  875. WingBase7Mesh=mesh("BlockMesh",WingBase7,nil,nil,vt(1, 0.75, 1))
  876. Feather1Mesh=mesh("SpecialMesh",Feather1,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  877. Feather2Mesh=mesh("SpecialMesh",Feather2,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  878. Feather3Mesh=mesh("SpecialMesh",Feather3,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  879. Feather4Mesh=mesh("SpecialMesh",Feather4,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  880. Feather5Mesh=mesh("SpecialMesh",Feather5,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  881. Feather6Mesh=mesh("SpecialMesh",Feather6,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  882. Feather7Mesh=mesh("SpecialMesh",Feather7,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  883. Feather8Mesh=mesh("SpecialMesh",Feather8,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  884. Feather9Mesh=mesh("SpecialMesh",Feather9,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  885. Feather10Mesh=mesh("SpecialMesh",Feather10,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  886. Feather11Mesh=mesh("SpecialMesh",Feather11,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  887. Feather12Mesh=mesh("SpecialMesh",Feather12,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  888. Feather13Mesh=mesh("SpecialMesh",Feather13,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  889. Feather14Mesh=mesh("SpecialMesh",Feather14,Enum.MeshType.Sphere,"",vt(1, 0.75, 1))
  890. Feather15Mesh=mesh("SpecialMesh",Feather15,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  891. Feather16Mesh=mesh("SpecialMesh",Feather16,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  892. Feather17Mesh=mesh("SpecialMesh",Feather17,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  893. Feather18Mesh=mesh("SpecialMesh",Feather18,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  894. Feather19Mesh=mesh("SpecialMesh",Feather19,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  895. Feather20Mesh=mesh("SpecialMesh",Feather20,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  896. Feather21Mesh=mesh("SpecialMesh",Feather21,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  897. Feather22Mesh=mesh("SpecialMesh",Feather22,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  898. Feather23Mesh=mesh("SpecialMesh",Feather23,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  899. Feather24Mesh=mesh("SpecialMesh",Feather24,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  900. Feather25Mesh=mesh("SpecialMesh",Feather25,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  901. Feather26Mesh=mesh("SpecialMesh",Feather26,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  902. Feather27Mesh=mesh("SpecialMesh",Feather27,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  903. Feather28Mesh=mesh("SpecialMesh",Feather28,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  904. Feather29Mesh=mesh("SpecialMesh",Feather29,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  905. Feather30Mesh=mesh("SpecialMesh",Feather30,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  906. Feather31Mesh=mesh("SpecialMesh",Feather31,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  907. Feather32Mesh=mesh("SpecialMesh",Feather32,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  908. Feather33Mesh=mesh("SpecialMesh",Feather33,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1))
  909.  
  910. WingBase2Weld=weld(WingBase2,WingBase1,WingBase2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.355962753, -5.34057617e-005, -0.0460422039, 0.965922117, -6.4935989e-007, -0.258824944, 9.45273655e-007, 1.00000358, 6.96481266e-007, 0.258822531, -7.75792159e-007, 0.96592319))
  911. WingBase18Weld=weld(WingBase18,WingBase1,WingBase18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-7.82012939e-005, 1.71768296, -0.0596590042, 2.14519696e-006, 1.00000286, 3.59664432e-006, -0.25884521, -2.85406827e-006, 0.965918303, 0.965916634, -2.88861565e-006, 0.258844018))
  912. WingBase16Weld=weld(WingBase16,WingBase1,WingBase16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(6.48498535e-005, 1.31769586, 0.584618092, -3.92836546e-006, -1.00000286, 3.26387226e-006, -0.258847058, 4.23423035e-006, 0.965917826, -0.965916038, 2.8351908e-006, -0.258845866))
  913. WingBase13Weld=weld(WingBase13,WingBase1,WingBase13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.534636021, -5.34057617e-005, 1.50768614, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044))
  914. WingBase17Weld=weld(WingBase17,WingBase1,WingBase17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-9.53674316e-006, 1.31768668, -0.259648323, 2.14519696e-006, 1.00000286, 3.59664432e-006, -0.25884521, -2.85406827e-006, 0.965918303, 0.965916634, -2.88861565e-006, 0.258844018))
  915. WingBase6Weld=weld(WingBase6,WingBase1,WingBase6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.45269644, -7.62939453e-005, -1.00459003, 0.258845925, -2.64582059e-006, -0.965917945, 3.66035738e-006, 1.00000358, -1.67449002e-006, 0.965915799, -2.9591165e-006, 0.258844495))
  916. WingBase19Weld=weld(WingBase19,WingBase1,WingBase19,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(7.82012939e-005, -1.91767323, -0.0596580505, -2.31264426e-006, -1.00000322, -3.57980252e-006, 0.258846998, 2.78636048e-006, -0.965917766, 0.965915859, -3.03169782e-006, 0.258845687))
  917. WingBase12Weld=weld(WingBase12,WingBase1,WingBase12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.86645508e-005, 1.9176805, -1.05459642, 2.20304946e-006, 1.00000322, 3.3807587e-006, -0.25884515, -2.62247454e-006, 0.965918303, 0.965916336, -2.87430998e-006, 0.258843809))
  918. WingBase10Weld=weld(WingBase10,WingBase1,WingBase10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.58458424, -7.2479248e-005, 1.88266897, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044))
  919. WingBase14Weld=weld(WingBase14,WingBase1,WingBase14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.86645508e-005, -1.52269363, 0.634617329, 4.18074433e-006, 1.00000322, -3.18485695e-006, 0.25884515, -4.23132315e-006, -0.965918303, -0.965916336, 3.08512517e-006, -0.258843809))
  920. WingBase9Weld=weld(WingBase9,WingBase1,WingBase9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.33960438, -6.67572021e-005, 1.78767776, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044))
  921. WingBase11Weld=weld(WingBase11,WingBase1,WingBase11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000116348267, 1.86269534, 1.91455078, -3.92937591e-006, -1.00000322, 3.26764257e-006, -0.258847028, 4.24622749e-006, 0.965917766, -0.965915859, 2.8208849e-006, -0.258845717))
  922. WingBase5Weld=weld(WingBase5,WingBase1,WingBase5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.19561648, -7.43865967e-005, -0.672100067, 0.500008821, -2.24392556e-006, -0.866019726, 3.48486537e-006, 1.00000358, -5.31528201e-007, 0.866017342, -2.5930683e-006, 0.500007927))
  923. WingBase8Weld=weld(WingBase8,WingBase1,WingBase8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.03245592, -8.01086426e-005, 0.0426003933, 0.837390959, -1.4928147e-006, -0.54660207, 2.30550995e-006, 1.00000358, 7.36536492e-007, 0.546599805, -1.71642284e-006, 0.837391019))
  924. WingBase4Weld=weld(WingBase4,WingBase1,WingBase4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.973057508, -6.29425049e-005, -0.387414217, 0.707102954, -1.74793638e-006, -0.707109332, 2.81738471e-006, 1.00000358, 3.43376826e-007, 0.707106888, -2.07064977e-006, 0.707102656))
  925. WingBase15Weld=weld(WingBase15,WingBase1,WingBase15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(9.53674316e-006, -1.5176872, -0.259640694, -2.31264426e-006, -1.00000322, -3.57980252e-006, 0.258846998, 2.78636048e-006, -0.965917766, 0.965915859, -3.03169782e-006, 0.258845687))
  926. WingBase20Weld=weld(WingBase20,WingBase1,WingBase20,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(6.67572021e-005, 1.91268194, 0.634614944, -3.92937591e-006, -1.00000322, 3.26764257e-006, -0.258847028, 4.24622749e-006, 0.965917766, -0.965915859, 2.8208849e-006, -0.258845717))
  927. WingBase3Weld=weld(WingBase3,WingBase1,WingBase3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.683662415, -5.91278076e-005, -0.18256712, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94631831e-007, 0.50000447, -1.57662748e-006, 0.866020083))
  928. WingBase7Weld=weld(WingBase7,WingBase1,WingBase7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.959616661, -6.29425049e-005, 1.73267627, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044))
  929. Feather1Weld=weld(Feather1,WingBase1,Feather1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.540187359, -7.05718994e-005, -0.598245144, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94632115e-007, 0.50000447, -1.57662771e-006, 0.866020083))
  930. Feather2Weld=weld(Feather2,WingBase1,Feather2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.718423367, -7.43865967e-005, -0.832182407, 0.707102954, -1.91576464e-006, -0.707109332, 3.02501803e-006, 1.00000358, 3.13665907e-007, 0.707106888, -2.19646176e-006, 0.707102656))
  931. Feather3Weld=weld(Feather3,WingBase1,Feather3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.740187645, -7.43865967e-005, -0.622644901, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94632115e-007, 0.50000447, -1.57662771e-006, 0.866020083))
  932. Feather4Weld=weld(Feather4,WingBase1,Feather4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.00674868, -8.77380371e-005, -0.832184792, 0.707102954, -1.91576464e-006, -0.707109332, 3.02501803e-006, 1.00000358, 3.13665907e-007, 0.707106888, -2.19646176e-006, 0.707102656))
  933. Feather5Weld=weld(Feather5,WingBase1,Feather5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.474379539, -5.91278076e-005, -0.418046474, 0.965922058, -7.55705571e-007, -0.258825064, 1.06738821e-006, 1.00000358, 7.41331633e-007, 0.25882259, -8.50720994e-007, 0.965923071))
  934. Feather6Weld=weld(Feather6,WingBase1,Feather6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.198741913, -5.53131104e-005, -0.270505488, 0.999997318, -1.0920968e-007, -9.23871994e-007, 2.26462532e-007, 1.00000358, 1.83415111e-007, -1.1920929e-006, -6.82173891e-008, 0.999998987))
  935. Feather7Weld=weld(Feather7,WingBase1,Feather7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.254669189, -6.10351563e-005, -0.357559443, 0.965922058, -7.55705571e-007, -0.258825064, 1.06738821e-006, 1.00000358, 7.41331633e-007, 0.25882259, -8.50720994e-007, 0.965923071))
  936. Feather8Weld=weld(Feather8,WingBase1,Feather8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00175094604, -3.05175781e-005, -0.255502999, 0.999997318, -1.0920968e-007, -9.23871994e-007, 2.26462532e-007, 1.00000358, 1.83415111e-007, -1.1920929e-006, -6.82173891e-008, 0.999998987))
  937. Feather9Weld=weld(Feather9,WingBase1,Feather9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.10341501, -0.000112533569, -2.11767769, 0.02479285, -2.77653771e-006, -0.999691665, 3.23537552e-006, 1.00000358, -2.58485534e-006, 0.999689817, -3.05024196e-006, 0.0247907937))
  938. Feather10Weld=weld(Feather10,WingBase1,Feather10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.20839906, -0.000104904175, -2.38045979, -0.0195948482, -2.78577659e-006, -0.999807, 3.11053736e-006, 1.00000358, -2.72977104e-006, 0.999805212, -3.04847504e-006, -0.0195969343))
  939. Feather11Weld=weld(Feather11,WingBase1,Feather11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.28466725, -9.72747803e-005, -1.48626804, 0.344489813, -2.56149156e-006, -0.938789427, 3.70431189e-006, 1.00000358, -1.29701994e-006, 0.938787222, -2.88101978e-006, 0.344488561))
  940. Feather12Weld=weld(Feather12,WingBase1,Feather12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.45404506, -0.000108718872, -1.65424347, 0.282669187, -2.62445383e-006, -0.959216833, 3.6791389e-006, 1.00000358, -1.57118575e-006, 0.959214747, -2.9399539e-006, 0.282667816))
  941. Feather13Weld=weld(Feather13,WingBase1,Feather13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.23247051, -9.53674316e-005, -0.984697342, 0.639259934, -2.0823777e-006, -0.76899004, 3.27914222e-006, 1.00000358, 3.57500198e-008, 0.768987298, -2.38069083e-006, 0.639259219))
  942. Feather14Weld=weld(Feather14,WingBase1,Feather14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.16015279, -8.77380371e-005, -1.32011509, 0.418463826, -2.47104867e-006, -0.908232927, 3.68704877e-006, 1.00000358, -9.60744728e-007, 0.908230603, -2.79198321e-006, 0.418462664))
  943. Feather15Weld=weld(Feather15,WingBase1,Feather15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.10644126, -0.000137329102, -2.78042984, -0.0195948482, -2.78577659e-006, -0.999807, 3.11053736e-006, 1.00000358, -2.72977104e-006, 0.999805212, -3.04847504e-006, -0.0195969343))
  944. Feather16Weld=weld(Feather16,WingBase1,Feather16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.18360949, -0.000131607056, -2.594666, 0.0685354769, -2.76265814e-006, -0.997647822, 3.34555079e-006, 1.00000358, -2.43218915e-006, 0.997645974, -3.04614036e-006, 0.0685334802))
  945. Feather17Weld=weld(Feather17,WingBase1,Feather17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.40957952, -0.000133514404, -2.28203964, 0.221879438, -2.67591008e-006, -0.975073338, 3.6216411e-006, 1.00000358, -1.83167879e-006, 0.975071311, -2.98508553e-006, 0.221877888))
  946. Feather18Weld=weld(Feather18,WingBase1,Feather18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.12435305, -0.00012588501, -2.29955244, 0.182672456, -2.70384044e-006, -0.983173072, 3.56828878e-006, 1.00000358, -1.99370947e-006, 0.983171165, -3.007749e-006, 0.182670817))
  947. Feather19Weld=weld(Feather19,WingBase1,Feather19,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.770295978, -0.000104904175, -1.73867226, 0.344052047, -2.56197973e-006, -0.938949943, 3.70425846e-006, 1.00000358, -1.29899013e-006, 0.938947797, -2.88148544e-006, 0.344050765))
  948. Feather20Weld=weld(Feather20,WingBase1,Feather20,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.729023933, -8.01086426e-005, -1.25784135, 0.612863302, -2.14008992e-006, -0.790188193, 3.35976074e-006, 1.00000358, -7.82527536e-008, 0.79018569, -2.44365083e-006, 0.612862706))
  949. Feather21Weld=weld(Feather21,WingBase1,Feather21,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.30062783, -0.000102996826, -1.74829721, 0.414175808, -2.47676689e-006, -0.910196245, 3.68953033e-006, 1.00000358, -9.80394589e-007, 0.91019398, -2.79772644e-006, 0.414174676))
  950. Feather22Weld=weld(Feather22,WingBase1,Feather22,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.15844178, -0.000110626221, -2.05048847, 0.268546164, -2.63731226e-006, -0.963266253, 3.66859877e-006, 1.00000358, -1.63260677e-006, 0.963264048, -2.95154655e-006, 0.268544674))
  951. Feather23Weld=weld(Feather23,WingBase1,Feather23,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.77013582, -0.000104904175, -1.89136219, 0.260025412, -2.64480036e-006, -0.965601146, 3.66140216e-006, 1.00000358, -1.6694114e-006, 0.96559906, -2.95821246e-006, 0.260023952))
  952. Feather24Weld=weld(Feather24,WingBase1,Feather24,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.884355307, -0.000112533569, -1.56190538, 0.485016644, -2.37426093e-006, -0.874504387, 3.62381297e-006, 1.00000358, -6.54962321e-007, 0.874501944, -2.69298084e-006, 0.485015661))
  953. Feather25Weld=weld(Feather25,WingBase1,Feather25,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.628379941, -9.72747803e-005, -1.47733831, 0.449624032, -2.42765259e-006, -0.893217325, 3.66330869e-006, 1.00000358, -8.17663818e-007, 0.89321506, -2.74798163e-006, 0.449622989))
  954. Feather26Weld=weld(Feather26,WingBase1,Feather26,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.593516827, -9.15527344e-005, -1.09148264, 0.651592493, -2.05413653e-006, -0.758568466, 3.23810764e-006, 1.00000358, 8.80448283e-008, 0.758565724, -2.34970616e-006, 0.651591718))
  955. Feather27Weld=weld(Feather27,WingBase1,Feather27,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.459043741, -6.67572021e-005, -1.0271709, 0.648452342, -2.06140771e-006, -0.76125443, 3.2487651e-006, 1.00000358, 7.47939453e-008, 0.761251688, -2.35769448e-006, 0.648451626))
  956. Feather28Weld=weld(Feather28,WingBase1,Feather28,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.149277449, -7.05718994e-005, -0.906393528, 0.684335113, -1.97486679e-006, -0.729166448, 3.11822487e-006, 1.00000358, 2.23289931e-007, 0.729164004, -2.26219709e-006, 0.684334636))
  957. Feather29Weld=weld(Feather29,WingBase1,Feather29,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.224815845, -7.82012939e-005, -1.00763488, 0.617459416, -2.13029875e-006, -0.786601841, 3.34641459e-006, 1.00000358, -5.82169832e-008, 0.786599398, -2.4330061e-006, 0.61745894))
  958. Feather30Weld=weld(Feather30,WingBase1,Feather30,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.207231283, -6.29425049e-005, -0.737761736, 0.788794637, -1.67079304e-006, -0.614655077, 2.6154537e-006, 1.00000358, 6.02931607e-007, 0.614652693, -1.92026801e-006, 0.788794756))
  959. Feather31Weld=weld(Feather31,WingBase1,Feather31,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0187997818, -5.7220459e-005, -0.673555136, 0.943573236, -9.38967958e-007, -0.33115828, 1.35717062e-006, 1.00000358, 8.12734413e-007, 0.331156015, -1.06879338e-006, 0.94357419))
  960. Feather32Weld=weld(Feather32,WingBase1,Feather32,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.295625687, -6.10351563e-005, -0.791354895, 0.926542044, -1.05369168e-006, -0.376186669, 1.54661279e-006, 1.00000358, 8.34736738e-007, 0.376184434, -1.20439813e-006, 0.92654264))
  961. Feather33Weld=weld(Feather33,WingBase1,Feather33,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0655574799, -5.7220459e-005, -0.770354033, 0.910740137, -1.14779505e-006, -0.412976056, 1.70568967e-006, 1.00000358, 8.38895687e-007, 0.412973911, -1.31509762e-006, 0.910740376))
  962.  
  963. WingBase1Weld=weld(WingBase1,Torso,WingBase1,euler(rad(90),0,rad(25))*cf(0.75,0.25,-0.5))
  964.  
  965. wait(1 / 60)
  966.  
  967.  
  968.  
  969. Player = game:GetService("Players").LocalPlayer
  970. PlayerGui = Player.PlayerGui
  971. Cam = workspace.CurrentCamera
  972. Backpack = Player.Backpack
  973. Character = Player.Character
  974. Humanoid = Character.Humanoid
  975. Mouse = Player:GetMouse()
  976. RootPart = Character["HumanoidRootPart"]
  977. Torso = Character["Torso"]
  978. Head = Character["Head"]
  979. RightArm = Character["Right Arm"]
  980. LeftArm = Character["Left Arm"]
  981. RightLeg = Character["Right Leg"]
  982. LeftLeg = Character["Left Leg"]
  983. RootJoint = RootPart["RootJoint"]
  984. Neck = Torso["Neck"]
  985. RightShoulder = Torso["Right Shoulder"]
  986. LeftShoulder = Torso["Left Shoulder"]
  987. RightHip = Torso["Right Hip"]
  988. LeftHip = Torso["Left Hip"]
  989.  
  990. IT = Instance.new
  991. CF = CFrame.new
  992. VT = Vector3.new
  993. RAD = math.rad
  994. C3 = Color3.new
  995. UD2 = UDim2.new
  996. BRICKC = BrickColor.new
  997. ANGLES = CFrame.Angles
  998. EULER = CFrame.fromEulerAnglesXYZ
  999. COS = math.cos
  1000. ACOS = math.acos
  1001. SIN = math.sin
  1002. ASIN = math.asin
  1003. ABS = math.abs
  1004. MRANDOM = math.random
  1005. FLOOR = math.floor
  1006.  
  1007.  
  1008.  
  1009. Humanoid.MaxHealth = 1500
  1010. wait()
  1011. Humanoid.Health = 1500
  1012. print(Humanoid.Health.."/"..Humanoid.MaxHealth)
  1013.  
  1014. --//=================================\\
  1015. --|| CUSTOMIZATION
  1016. --\\=================================//
  1017.  
  1018. Class_Name = "Sephiroth"
  1019. Weapon_Name = "Masmune"
  1020.  
  1021. Custom_Colors = {
  1022. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  1023. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  1024.  
  1025. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  1026. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  1027. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  1028. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  1029. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  1030.  
  1031. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  1032. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  1033. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  1034. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  1035. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  1036. }
  1037.  
  1038. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  1039. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  1040. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  1041. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  1042. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  1043. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  1044.  
  1045. Player_Size = 1 --Size of the player.
  1046. Animation_Speed = 2 * Player_Size
  1047. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1048.  
  1049. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  1050. Enable_Stats = false --Enables or disables stats.
  1051. Put_Stats_In_Character = false --Places stats in Character.
  1052. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  1053. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  1054. Enable_Stagger = false --Enables or disables staggering.
  1055. Enable_Stun = false --Enables or disables the stun mechanic.
  1056. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  1057. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  1058.  
  1059. Start_Equipped = false --Starts the player equipped with their weapon.
  1060. Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
  1061. Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon.
  1062. Disable_Animator = true --Disables the Animator in the humanoid.
  1063. Disable_Animate = true --Disables the Animate script in the character.
  1064. Disable_Moving_Arms = false --Keeps the arms from moving around.
  1065. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  1066. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  1067. Disable_Jump = false --Disables jumping.
  1068. Use_HopperBin = false --Uses a hopperbin to do things.
  1069.  
  1070. Cooldown_1 = 0 --Cooldowns for abilites.
  1071. Cooldown_2 = 0
  1072. Cooldown_3 = 0
  1073. Cooldown_4 = 0
  1074. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  1075. Skill_2_Mana_Cost = 0
  1076. Skill_3_Mana_Cost = 0
  1077. Skill_4_Mana_Cost = 0
  1078. Max_Mana = 0 --Maximum amount of mana you can have.
  1079. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  1080. Mana_Name = "Mana" --Name for the mana bar.
  1081. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  1082. Max_Stun = 1 --Maximum amount of stun you can have.
  1083. Recover_Mana = 0 --How much mana you gain.
  1084. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  1085. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  1086. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  1087. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  1088. Lose_Stun = 0 --How much stun you lose.
  1089. Stun_Wait = 0 --Delay between losing stun.
  1090. Mana_Wait = 0 --Delay between gaining mana.
  1091. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  1092. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  1093. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  1094. Show_Stats = false --Hides or shows stats.
  1095. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  1096.  
  1097. --//=================================\\
  1098. --|| END OF CUSTOMIZATION
  1099. --\\=================================//
  1100.  
  1101.  
  1102. local Snap = Instance.new("Sound",Character.Torso)
  1103. Snap.SoundId = "rbxassetid://242076158"
  1104. Snap.Looped = false
  1105. Snap.Volume = 4
  1106. Snap.Pitch = 1 / Player_Size
  1107.  
  1108.  
  1109. --//=================================\\
  1110. --|| USEFUL VALUES
  1111. --\\=================================//
  1112.  
  1113. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1114. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1115. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1116. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1117. local CO1 = 0
  1118. local CO2 = 0
  1119. local CO3 = 0
  1120. local CO4 = 0
  1121. local CHANGEDEFENSE = 0
  1122. local CHANGEDAMAGE = 0
  1123. local CHANGEMOVEMENT = 0
  1124. local ANIM = "Idle"
  1125. local ATTACK = false
  1126. local EQUIPPED = false
  1127. local HOLD = false
  1128. local COMBO = 1
  1129. local LASTPOINT = nil
  1130. local BLCF = nil
  1131. local SCFR = nil
  1132. local STAGGERHITANIM = false
  1133. local STAGGERANIM = false
  1134. local STUNANIM = false
  1135. local CRITCHANCENUMBER = 0
  1136. local IDLENUMBER = 0
  1137. local DONUMBER = 0
  1138. local HANDIDLE = false
  1139. local SINE = 0
  1140. local CHANGE = 2 / Animation_Speed
  1141. local WALKINGANIM = false
  1142. local WALK = 0
  1143. local DISABLEJUMPING = false
  1144. local HASBEENBLOCKED = false
  1145. local STUNDELAYNUMBER = 0
  1146. local MANADELAYNUMBER = 0
  1147. local SECONDARYMANADELAYNUMBER = 0
  1148. local ROBLOXIDLEANIMATION = IT("Animation")
  1149. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1150. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1151. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1152. local WEAPONGUI = IT("ScreenGui", nil)
  1153. WEAPONGUI.Name = "Weapon GUI"
  1154. local WEAPONTOOL = IT("HopperBin", nil)
  1155. WEAPONTOOL.Name = Weapon_Name
  1156. local Weapon = IT("Model")
  1157. Weapon.Name = Weapon_Name
  1158. local Effects = IT("Folder", Weapon)
  1159. Effects.Name = "Effects"
  1160. local ANIMATOR = Humanoid.Animator
  1161. local ANIMATE = Character.Animate
  1162. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  1163. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  1164. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  1165. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  1166.  
  1167. --//=================================\\
  1168. --\\=================================//
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174. --//=================================\\
  1175. --|| STATS
  1176. --\\=================================//
  1177.  
  1178. if Character:FindFirstChild("Stats") ~= nil then
  1179. Character:FindFirstChild("Stats").Parent = nil
  1180. end
  1181.  
  1182. local Stats = IT("Folder", nil)
  1183. Stats.Name = "Stats"
  1184. local ChangeStat = IT("Folder", Stats)
  1185. ChangeStat.Name = "ChangeStat"
  1186. local Defense = IT("NumberValue", Stats)
  1187. Defense.Name = "Defense"
  1188. Defense.Value = 1
  1189. local Movement = IT("NumberValue", Stats)
  1190. Movement.Name = "Movement"
  1191. Movement.Value = 1
  1192. local Damage = IT("NumberValue", Stats)
  1193. Damage.Name = "Damage"
  1194. Damage.Value = 1
  1195. local Mana = IT("NumberValue", Stats)
  1196. Mana.Name = "Mana"
  1197. Mana.Value = 0
  1198. local SecondaryMana = IT("NumberValue", Stats)
  1199. SecondaryMana.Name = "SecondaryMana"
  1200. SecondaryMana.Value = 0
  1201. local CanCrit = IT("BoolValue", Stats)
  1202. CanCrit.Name = "CanCrit"
  1203. CanCrit.Value = false
  1204. local CritChance = IT("NumberValue", Stats)
  1205. CritChance.Name = "CritChance"
  1206. CritChance.Value = 20
  1207. local CanPenetrateArmor = IT("BoolValue", Stats)
  1208. CanPenetrateArmor.Name = "CanPenetrateArmor"
  1209. CanPenetrateArmor.Value = false
  1210. local AntiTeamKill = IT("BoolValue", Stats)
  1211. AntiTeamKill.Name = "AntiTeamKill"
  1212. AntiTeamKill.Value = false
  1213. local Rooted = IT("BoolValue", Stats)
  1214. Rooted.Name = "Rooted"
  1215. Rooted.Value = false
  1216. local Block = IT("BoolValue", Stats)
  1217. Block.Name = "Block"
  1218. Block.Value = false
  1219. local RecentEnemy = IT("ObjectValue", Stats)
  1220. RecentEnemy.Name = "RecentEnemy"
  1221. RecentEnemy.Value = nil
  1222. local StaggerHit = IT("BoolValue", Stats)
  1223. StaggerHit.Name = "StaggerHit"
  1224. StaggerHit.Value = false
  1225. local Stagger = IT("BoolValue", Stats)
  1226. Stagger.Name = "Stagger"
  1227. Stagger.Value = false
  1228. local Stun = IT("BoolValue", Stats)
  1229. Stun.Name = "Stun"
  1230. Stun.Value = false
  1231. local StunValue = IT("NumberValue", Stats)
  1232. StunValue.Name = "StunValue"
  1233. StunValue.Value = 0
  1234.  
  1235. if Enable_Stats == true and Put_Stats_In_Character == true then
  1236. Stats.Parent = Character
  1237. end
  1238.  
  1239. --//=================================\\
  1240. --\\=================================//
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246. --//=================================\\
  1247. --|| DEBUFFS / BUFFS
  1248. --\\=================================//
  1249.  
  1250. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  1251. DEFENSECHANGE1.Name = "ChangeDefense"
  1252. DEFENSECHANGE1.Value = 0
  1253.  
  1254. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  1255. MOVEMENTCHANGE1.Name = "ChangeMovement"
  1256. MOVEMENTCHANGE1.Value = 0
  1257.  
  1258. --//=================================\\
  1259. --\\=================================//
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265. --//=================================\\
  1266. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1267. --\\=================================//
  1268.  
  1269. ArtificialHB = Instance.new("BindableEvent", script)
  1270. ArtificialHB.Name = "ArtificialHB"
  1271.  
  1272. script:WaitForChild("ArtificialHB")
  1273.  
  1274. frame = Frame_Speed
  1275. tf = 0
  1276. allowframeloss = false
  1277. tossremainder = false
  1278. lastframe = tick()
  1279. script.ArtificialHB:Fire()
  1280.  
  1281. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1282. tf = tf + s
  1283. if tf >= frame then
  1284. if allowframeloss then
  1285. script.ArtificialHB:Fire()
  1286. lastframe = tick()
  1287. else
  1288. for i = 1, math.floor(tf / frame) do
  1289. script.ArtificialHB:Fire()
  1290. end
  1291. lastframe = tick()
  1292. end
  1293. if tossremainder then
  1294. tf = 0
  1295. else
  1296. tf = tf - frame * math.floor(tf / frame)
  1297. end
  1298. end
  1299. end)
  1300.  
  1301. --//=================================\\
  1302. --\\=================================//
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308. --//=================================\\
  1309. --|| SOME FUNCTIONS
  1310. --\\=================================//
  1311.  
  1312. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1313. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1314. end
  1315.  
  1316. function PositiveAngle(NUMBER)
  1317. if NUMBER >= 0 then
  1318. NUMBER = 0
  1319. end
  1320. return NUMBER
  1321. end
  1322.  
  1323. function NegativeAngle(NUMBER)
  1324. if NUMBER <= 0 then
  1325. NUMBER = 0
  1326. end
  1327. return NUMBER
  1328. end
  1329.  
  1330. function Swait(NUMBER)
  1331. if NUMBER == 0 or NUMBER == nil then
  1332. ArtificialHB.Event:wait()
  1333. else
  1334. for i = 1, NUMBER do
  1335. ArtificialHB.Event:wait()
  1336. end
  1337. end
  1338. end
  1339.  
  1340. function QuaternionFromCFrame(cf)
  1341. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1342. local trace = m00 + m11 + m22
  1343. if trace > 0 then
  1344. local s = math.sqrt(1 + trace)
  1345. local recip = 0.5 / s
  1346. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1347. else
  1348. local i = 0
  1349. if m11 > m00 then
  1350. i = 1
  1351. end
  1352. if m22 > (i == 0 and m00 or m11) then
  1353. i = 2
  1354. end
  1355. if i == 0 then
  1356. local s = math.sqrt(m00 - m11 - m22 + 1)
  1357. local recip = 0.5 / s
  1358. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1359. elseif i == 1 then
  1360. local s = math.sqrt(m11 - m22 - m00 + 1)
  1361. local recip = 0.5 / s
  1362. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1363. elseif i == 2 then
  1364. local s = math.sqrt(m22 - m00 - m11 + 1)
  1365. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1366. end
  1367. end
  1368. end
  1369.  
  1370. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1371. local xs, ys, zs = x + x, y + y, z + z
  1372. local wx, wy, wz = w * xs, w * ys, w * zs
  1373. local xx = x * xs
  1374. local xy = x * ys
  1375. local xz = x * zs
  1376. local yy = y * ys
  1377. local yz = y * zs
  1378. local zz = z * zs
  1379. 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))
  1380. end
  1381.  
  1382. function QuaternionSlerp(a, b, t)
  1383. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1384. local startInterp, finishInterp;
  1385. if cosTheta >= 0.0001 then
  1386. if (1 - cosTheta) > 0.0001 then
  1387. local theta = ACOS(cosTheta)
  1388. local invSinTheta = 1 / SIN(theta)
  1389. startInterp = SIN((1 - t) * theta) * invSinTheta
  1390. finishInterp = SIN(t * theta) * invSinTheta
  1391. else
  1392. startInterp = 1 - t
  1393. finishInterp = t
  1394. end
  1395. else
  1396. if (1 + cosTheta) > 0.0001 then
  1397. local theta = ACOS(-cosTheta)
  1398. local invSinTheta = 1 / SIN(theta)
  1399. startInterp = SIN((t - 1) * theta) * invSinTheta
  1400. finishInterp = SIN(t * theta) * invSinTheta
  1401. else
  1402. startInterp = t - 1
  1403. finishInterp = t
  1404. end
  1405. end
  1406. 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
  1407. end
  1408.  
  1409. function Clerp(a, b, t)
  1410. local qa = {QuaternionFromCFrame(a)}
  1411. local qb = {QuaternionFromCFrame(b)}
  1412. local ax, ay, az = a.x, a.y, a.z
  1413. local bx, by, bz = b.x, b.y, b.z
  1414. local _t = 1 - t
  1415. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1416. end
  1417.  
  1418. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1419. local frame = IT("Frame")
  1420. frame.BackgroundTransparency = TRANSPARENCY
  1421. frame.BorderSizePixel = BORDERSIZEPIXEL
  1422. frame.Position = POSITION
  1423. frame.Size = SIZE
  1424. frame.BackgroundColor3 = COLOR
  1425. frame.BorderColor3 = BORDERCOLOR
  1426. frame.Name = NAME
  1427. frame.Parent = PARENT
  1428. return frame
  1429. end
  1430.  
  1431. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1432. local label = IT("TextLabel")
  1433. label.BackgroundTransparency = 1
  1434. label.Size = UD2(1, 0, 1, 0)
  1435. label.Position = UD2(0, 0, 0, 0)
  1436. label.TextColor3 = C3(255, 255, 255)
  1437. label.TextStrokeTransparency = STROKETRANSPARENCY
  1438. label.TextTransparency = TRANSPARENCY
  1439. label.FontSize = TEXTFONTSIZE
  1440. label.Font = TEXTFONT
  1441. label.BorderSizePixel = BORDERSIZEPIXEL
  1442. label.TextScaled = true
  1443. label.Text = TEXT
  1444. label.Name = NAME
  1445. label.Parent = PARENT
  1446. return label
  1447. end
  1448.  
  1449. function NoOutlines(PART)
  1450. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1451. end
  1452.  
  1453. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  1454. local NEWPART = IT("Part")
  1455. NEWPART.formFactor = FORMFACTOR
  1456. NEWPART.Reflectance = REFLECTANCE
  1457. NEWPART.Transparency = TRANSPARENCY
  1458. NEWPART.CanCollide = false
  1459. NEWPART.Locked = true
  1460. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1461. NEWPART.Name = NAME
  1462. NEWPART.Size = SIZE
  1463. NEWPART.Position = Torso.Position
  1464. NoOutlines(NEWPART)
  1465. NEWPART.Material = MATERIAL
  1466. NEWPART:BreakJoints()
  1467. NEWPART.Parent = PARENT
  1468. return NEWPART
  1469. end
  1470.  
  1471. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1472. local NEWMESH = IT(MESH)
  1473. if MESH == "SpecialMesh" then
  1474. NEWMESH.MeshType = MESHTYPE
  1475. if MESHID ~= "nil" and MESHID ~= "" then
  1476. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1477. end
  1478. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1479. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1480. end
  1481. end
  1482. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1483. NEWMESH.Scale = SCALE
  1484. NEWMESH.Parent = PARENT
  1485. return NEWMESH
  1486. end
  1487.  
  1488. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1489. local NEWWELD = IT(TYPE)
  1490. NEWWELD.Part0 = PART0
  1491. NEWWELD.Part1 = PART1
  1492. NEWWELD.C0 = C0
  1493. NEWWELD.C1 = C1
  1494. NEWWELD.Parent = PARENT
  1495. return NEWWELD
  1496. end
  1497.  
  1498. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1499. coroutine.resume(coroutine.create(function()
  1500. local NEWSOUND = IT("Sound", PARENT)
  1501. NEWSOUND.Volume = VOLUME
  1502. NEWSOUND.Pitch = PITCH
  1503. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1504. Swait()
  1505. NEWSOUND:play()
  1506. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1507. end))
  1508. end
  1509.  
  1510. function CFrameFromTopBack(at, top, back)
  1511. local right = top:Cross(back)
  1512. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1513. end
  1514.  
  1515. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  1516. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  1517. local CURRENTPOSITION = POSITION1
  1518. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  1519. coroutine.resume(coroutine.create(function()
  1520. for i = 1, MULTIPLIERTIME do
  1521. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  1522. LIGHTNINGPART.Anchored = true
  1523. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  1524. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  1525. if MULTIPLIERTIME == i then
  1526. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  1527. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  1528. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  1529. else
  1530. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  1531. end
  1532. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  1533. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  1534. coroutine.resume(coroutine.create(function()
  1535. while LIGHTNINGPART.Transparency ~= 1 do
  1536. --local StartTransparency = tra
  1537. for i=0, 1, LASTINGTIME do
  1538. Swait()
  1539. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  1540. end
  1541. end
  1542. end))
  1543. Swait(LIGHTNINGDELAY / Animation_Speed)
  1544. end
  1545. end))
  1546. end
  1547.  
  1548. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1549. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1550. EFFECTPART.Anchored = true
  1551. EFFECTPART.CFrame = CFRAME
  1552. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1553. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1554. coroutine.resume(coroutine.create(function(PART, MESH)
  1555. for i = 0, 1, delay do
  1556. Swait()
  1557. PART.CFrame = PART.CFrame * ROTATION
  1558. PART.Transparency = i
  1559. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1560. end
  1561. PART.Parent = nil
  1562. end), EFFECTPART, EFFECTMESH)
  1563. end
  1564.  
  1565. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1566. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1567. EFFECTPART.Anchored = true
  1568. EFFECTPART.CFrame = CFRAME
  1569. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1570. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1571. coroutine.resume(coroutine.create(function(PART, MESH)
  1572. for i = 0, 1, delay do
  1573. Swait()
  1574. PART.CFrame = PART.CFrame * ROTATION
  1575. PART.Transparency = i
  1576. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1577. end
  1578. PART.Parent = nil
  1579. end), EFFECTPART, EFFECTMESH)
  1580. end
  1581.  
  1582. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1583. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1584. EFFECTPART.Anchored = true
  1585. EFFECTPART.CFrame = CFRAME
  1586. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1587. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1588. coroutine.resume(coroutine.create(function(PART, MESH)
  1589. for i = 0, 1, delay do
  1590. Swait()
  1591. PART.CFrame = PART.CFrame * ROTATION
  1592. PART.Transparency = i
  1593. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1594. end
  1595. PART.Parent = nil
  1596. end), EFFECTPART, EFFECTMESH)
  1597. end
  1598.  
  1599. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1600. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1601. EFFECTPART.Anchored = true
  1602. EFFECTPART.CFrame = CFRAME
  1603. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1604. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1605. coroutine.resume(coroutine.create(function(PART, MESH)
  1606. for i = 0, 1, delay do
  1607. Swait()
  1608. PART.CFrame = PART.CFrame * ROTATION
  1609. PART.Transparency = i
  1610. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1611. end
  1612. PART.Parent = nil
  1613. end), EFFECTPART, EFFECTMESH)
  1614. end
  1615.  
  1616. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1617. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1618. EFFECTPART.Anchored = true
  1619. EFFECTPART.CFrame = CFRAME
  1620. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1621. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1622. coroutine.resume(coroutine.create(function(PART, MESH)
  1623. for i = 0, 1, delay do
  1624. Swait()
  1625. PART.CFrame = PART.CFrame * ROTATION
  1626. PART.Transparency = i
  1627. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1628. end
  1629. PART.Parent = nil
  1630. end), EFFECTPART, EFFECTMESH)
  1631. end
  1632.  
  1633. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1634. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1635. EFFECTPART.Anchored = true
  1636. EFFECTPART.CFrame = CFRAME
  1637. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  1638. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1639. coroutine.resume(coroutine.create(function(PART, MESH)
  1640. for i = 0, 1, delay do
  1641. Swait()
  1642. PART.CFrame = PART.CFrame * ROTATION
  1643. PART.Transparency = i
  1644. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  1645. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1646. end
  1647. PART.Parent = nil
  1648. end), EFFECTPART, EFFECTMESH)
  1649. end
  1650.  
  1651. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1652. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1653. EFFECTPART.Anchored = true
  1654. EFFECTPART.CFrame = CFRAME
  1655. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1656. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1657. coroutine.resume(coroutine.create(function(PART, MESH)
  1658. for i = 0, 1, delay do
  1659. Swait()
  1660. PART.CFrame = PART.CFrame * ROTATION
  1661. PART.Transparency = i
  1662. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1663. end
  1664. PART.Parent = nil
  1665. end), EFFECTPART, EFFECTMESH)
  1666. end
  1667.  
  1668. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1669. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1670. EFFECTPART.Anchored = true
  1671. EFFECTPART.CFrame = CFRAME
  1672. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1673. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1674. coroutine.resume(coroutine.create(function(PART, MESH)
  1675. for i = 0, 1, delay do
  1676. Swait()
  1677. PART.CFrame = PART.CFrame * ROTATION
  1678. PART.Transparency = i
  1679. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1680. end
  1681. PART.Parent = nil
  1682. end), EFFECTPART, EFFECTMESH)
  1683. end
  1684.  
  1685. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1686. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1687. EFFECTPART.Anchored = true
  1688. EFFECTPART.CFrame = CFRAME
  1689. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1690. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1691. coroutine.resume(coroutine.create(function(PART, MESH)
  1692. for i = 0, 1, delay do
  1693. Swait()
  1694. PART.CFrame = PART.CFrame * ROTATION
  1695. PART.Transparency = i
  1696. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1697. end
  1698. PART.Parent = nil
  1699. end), EFFECTPART, EFFECTMESH)
  1700. end
  1701.  
  1702. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1703. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1704. EFFECTPART.Anchored = true
  1705. EFFECTPART.CFrame = CFRAME
  1706. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1707. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1708. coroutine.resume(coroutine.create(function(PART, MESH)
  1709. for i = 0, 1, delay do
  1710. Swait()
  1711. PART.CFrame = PART.CFrame * ROTATION
  1712. PART.Transparency = i
  1713. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1714. end
  1715. PART.Parent = nil
  1716. end), EFFECTPART, EFFECTMESH)
  1717. end
  1718.  
  1719. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1720. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1721. EFFECTPART.Anchored = true
  1722. EFFECTPART.CFrame = CFRAME
  1723. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1724. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1725. coroutine.resume(coroutine.create(function(PART, MESH)
  1726. for i = 0, 1, delay do
  1727. Swait()
  1728. PART.CFrame = PART.CFrame * ROTATION
  1729. PART.Transparency = i
  1730. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1731. end
  1732. PART.Parent = nil
  1733. end), EFFECTPART, EFFECTMESH)
  1734. end
  1735.  
  1736. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1737. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1738. EFFECTPART.Anchored = true
  1739. EFFECTPART.CFrame = CFRAME
  1740. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1741. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1742. coroutine.resume(coroutine.create(function(PART, MESH)
  1743. for i = 0, 1, delay do
  1744. Swait()
  1745. PART.CFrame = PART.CFrame * ROTATION
  1746. PART.Transparency = i
  1747. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1748. end
  1749. PART.Parent = nil
  1750. end), EFFECTPART, EFFECTMESH)
  1751. end
  1752.  
  1753. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  1754. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1755. EFFECTPART.Anchored = true
  1756. EFFECTPART.CFrame = CFRAME
  1757. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  1758. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1759. coroutine.resume(coroutine.create(function(PART, MESH)
  1760. for i = 0, 1, delay do
  1761. Swait()
  1762. PART.CFrame = PART.CFrame * ROTATION
  1763. PART.Transparency = i
  1764. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  1765. end
  1766. PART.Parent = nil
  1767. end), EFFECTPART, EFFECTMESH)
  1768. end
  1769.  
  1770. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  1771. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1772. EFFECTPART.Anchored = true
  1773. EFFECTPART.CFrame = CFRAME
  1774. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  1775. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1776. local XVALUE = MRANDOM()
  1777. local YVALUE = MRANDOM()
  1778. local ZVALUE = MRANDOM()
  1779. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  1780. for i = 0, 1, delay do
  1781. Swait()
  1782. PART.CFrame = PART.CFrame * ROTATION
  1783. PART.Transparency = i
  1784. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  1785. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  1786. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  1787. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  1788. end
  1789. PART.Parent = nil
  1790. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  1791. end
  1792.  
  1793. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  1794. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  1795. if MAGNITUDECFRAME > (1 / 100) then
  1796. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  1797. EFFECTPART.Anchored = true
  1798. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  1799. local THEMESHTYPE = "BlockMesh"
  1800. if MESHTYPE == "Cylinder" then
  1801. THEMESHTYPE = "CylinderMesh"
  1802. end
  1803. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  1804. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1805. coroutine.resume(coroutine.create(function(PART, MESH)
  1806. for i = 0, 1, delay do
  1807. Swait()
  1808. PART.CFrame = PART.CFrame * ROTATION
  1809. PART.Transparency = i
  1810. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  1811. end
  1812. PART.Parent = nil
  1813. end), EFFECTPART, EFFECTMESH)
  1814. end
  1815. end
  1816.  
  1817. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  1818. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  1819. EFFECTPART.Anchored = true
  1820. EFFECTPART.CFrame = CFRAME
  1821. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  1822. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1823. local THELASTPOINT = CFRAME
  1824. coroutine.resume(coroutine.create(function(PART)
  1825. for i = 1, DURATION do
  1826. Swait()
  1827. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  1828. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  1829. THELASTPOINT = PART.CFrame
  1830. end
  1831. PART.Parent = nil
  1832. end), EFFECTPART)
  1833. end
  1834.  
  1835. --local list={}
  1836. function Triangle(Color, Material, a, b, c, delay)
  1837. local edge1 = (c - a):Dot((b - a).unit)
  1838. local edge2 = (a - b):Dot((c - b).unit)
  1839. local edge3 = (b - c):Dot((a - c).unit)
  1840. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1841. a, b, c=a, b, c
  1842. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1843. a, b, c=b, c, a
  1844. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1845. a, b, c=c, a, b
  1846. else
  1847. assert(false, "unreachable")
  1848. end
  1849. local len1 = (c - a):Dot((b - a).unit)
  1850. local len2 = (b - a).magnitude - len1
  1851. local width = (a + (b - a).unit * len1 - c).magnitude
  1852. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1853. if len1 > 1 / 100 then
  1854. local sz = VT(0.2, width, len1)
  1855. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1856. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1857. w1.Anchored = true
  1858. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1859. coroutine.resume(coroutine.create(function()
  1860. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1861. Swait()
  1862. w1.Transparency = i
  1863. end
  1864. w1.Parent = nil
  1865. end))
  1866. game:GetService("Debris"):AddItem(w1, 10)
  1867. --table.insert(list, w1)
  1868. end
  1869. if len2 > 1 / 100 then
  1870. local sz = VT(0.2, width, len2)
  1871. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1872. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1873. w2.Anchored = true
  1874. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1875. coroutine.resume(coroutine.create(function()
  1876. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1877. Swait()
  1878. w2.Transparency = i
  1879. end
  1880. w2.Parent = nil
  1881. end))
  1882. game:GetService("Debris"):AddItem(w2, 10)
  1883. --table.insert(list, w2)
  1884. end
  1885. --return unpack(list)
  1886. end
  1887.  
  1888. --[[Usage:
  1889. local Pos = Part
  1890. local Offset = Part.CFrame * CF(0, 0, 0)
  1891. local Color = "Institutional white"
  1892. local Material = "Neon"
  1893. local TheDelay = 0.01
  1894. local Height = 4
  1895. BLCF = Offset
  1896. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1897. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1898. if a then game:GetService("Debris"):AddItem(a, 1) end
  1899. if b then game:GetService("Debris"):AddItem(b, 1) end
  1900. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1901. if a then game:GetService("Debris"):AddItem(a, 1) end
  1902. if b then game:GetService("Debris"):AddItem(b, 1) end
  1903. SCFR = BLCF
  1904. elseif not SCFR then
  1905. SCFR = BLCF
  1906. end
  1907. --
  1908. BLCF = nil
  1909. SCFR = nil
  1910. --]]
  1911.  
  1912. --//=================================\\
  1913. --\\=================================//
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. --//=================================\\
  1920. --|| RESIZE PLAYER
  1921. --\\=================================//
  1922.  
  1923. if Player_Size ~= 1 then
  1924. RootPart.Size = RootPart.Size * Player_Size
  1925. Torso.Size = Torso.Size * Player_Size
  1926. Head.Size = Head.Size * Player_Size
  1927. RightArm.Size = RightArm.Size * Player_Size
  1928. LeftArm.Size = LeftArm.Size * Player_Size
  1929. RightLeg.Size = RightLeg.Size * Player_Size
  1930. LeftLeg.Size = LeftLeg.Size * Player_Size
  1931. RootJoint.Parent = RootPart
  1932. Neck.Parent = Torso
  1933. RightShoulder.Parent = Torso
  1934. LeftShoulder.Parent = Torso
  1935. RightHip.Parent = Torso
  1936. LeftHip.Parent = Torso
  1937.  
  1938. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1939. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1940. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1941. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1942. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1943. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1944. if Disable_Moving_Arms == false then
  1945. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1946. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1947. else
  1948. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1949. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1950. end
  1951. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1952. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1953. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1954. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1955. end
  1956.  
  1957.  
  1958. --//=================================\\
  1959. --\\=================================//
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965. --//=================================\\
  1966. --|| WEAPON CREATION
  1967. --\\=================================//
  1968.  
  1969. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0))
  1970. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0))
  1971. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1972.  
  1973. local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Hitbox", VT(0, 0, 0))
  1974. local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1975.  
  1976. local AttachmentX = Instance.new("Attachment",HitboxPart)
  1977. AttachmentX.CFrame = CFrame.new(0,6 * Player_Size,0)
  1978. local AttachmentY = Instance.new("Attachment",HitboxPart)
  1979. AttachmentY.CFrame = CFrame.new(0,-3 * Player_Size,0)
  1980. local Trail = Instance.new("Trail",HitboxPart)
  1981. Trail.Attachment0 = AttachmentX
  1982. Trail.Attachment1 = AttachmentY
  1983. Trail.Lifetime = 0.5
  1984. Trail.MinLength = 0
  1985. Trail.LightEmission = 1
  1986. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1987. Trail.Enabled = false
  1988.  
  1989. local EffectPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Effect Part", VT(0, 0, 0))
  1990. local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, Handle, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1991.  
  1992. if Player_Size ~= 1 then
  1993. for _, v in pairs (Weapon:GetChildren()) do
  1994. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1995. local p1 = v.Part1
  1996. v.Part1 = nil
  1997. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1998. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1999. v.Part1 = p1
  2000. elseif v.ClassName == "Part" then
  2001. for _, b in pairs (v:GetChildren()) do
  2002. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  2003. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  2004. end
  2005. end
  2006. end
  2007. end
  2008. end
  2009.  
  2010. for _, c in pairs(Weapon:GetChildren()) do
  2011. if c.ClassName == "Part" then
  2012. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2013. end
  2014. end
  2015. for _, c in pairs(Main:GetChildren()) do
  2016. if c.ClassName == "Part" then
  2017. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2018. end
  2019. end
  2020.  
  2021. if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then
  2022. HandleWeld.Part0 = RightArm
  2023. HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2024. end
  2025.  
  2026. Weapon.Parent = Character
  2027.  
  2028. Humanoid.Died:connect(function()
  2029. ATTACK = true
  2030. end)
  2031.  
  2032. print(Class_Name.." loaded.")
  2033.  
  2034. --//=================================\\
  2035. --\\=================================//
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041. --//=================================\\
  2042. --|| DAMAGE FUNCTIONS
  2043. --\\=================================//
  2044.  
  2045. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  2046. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2047. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  2048. local BODYGYRO = IT("BodyGyro", STATPART)
  2049. local BODYPOSITION = IT("BodyPosition", STATPART)
  2050. BODYPOSITION.P = 2000
  2051. BODYPOSITION.D = 100
  2052. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  2053. if LABELTYPE == "Normal" then
  2054. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  2055. elseif LABELTYPE == "Debuff" then
  2056. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  2057. elseif LABELTYPE == "Interruption" then
  2058. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  2059. end
  2060. game:GetService("Debris"):AddItem(STATPART ,5)
  2061. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2062. BILLBOARDGUI.Adornee = STATPART
  2063. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2064. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2065. BILLBOARDGUI.AlwaysOnTop = false
  2066. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2067. TEXTLABEL.BackgroundTransparency = 1
  2068. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2069. TEXTLABEL.Text = TEXT
  2070. TEXTLABEL.Font = "SourceSans"
  2071. TEXTLABEL.FontSize="Size42"
  2072. TEXTLABEL.TextColor3 = COLOR
  2073. TEXTLABEL.TextStrokeTransparency = 0
  2074. TEXTLABEL.TextScaled = true
  2075. TEXTLABEL.TextWrapped = true
  2076. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2077. wait(0.2)
  2078. for i=1, 5 do
  2079. wait()
  2080. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  2081. end
  2082. wait(1.2)
  2083. for i=1, 5 do
  2084. wait()
  2085. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  2086. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  2087. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  2088. end
  2089. THEPART.Parent = nil
  2090. end),STATPART, BODYPOSITION, TEXTLABEL)
  2091. end
  2092.  
  2093. function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
  2094. if LOCATION:FindFirstChild("Stats") ~= nil then
  2095. if LOCATION.Stats:FindFirstChild("Block") ~= nil then
  2096. if LOCATION.Stats:FindFirstChild("Block").Value == true then
  2097. return
  2098. end
  2099. end
  2100. if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
  2101. local NewStatChange = IT("NumberValue")
  2102. NewStatChange.Value = AMOUNT
  2103. if STAT == "Defense" then
  2104. NewStatChange.Name = "ChangeDefense"
  2105. elseif STAT == "Damage" then
  2106. NewStatChange.Name = "ChangeDamage"
  2107. elseif STAT == "Movement" then
  2108. NewStatChange.Name = "ChangeMovement"
  2109. end
  2110. if SHOWTHESTAT == true then
  2111. if AMOUNT < 0 then
  2112. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
  2113. elseif AMOUNT > 0 then
  2114. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
  2115. end
  2116. end
  2117. if DURATION ~= nil and DURATION ~= 0 then
  2118. local StatDuration = IT("NumberValue")
  2119. StatDuration.Name = "Duration"
  2120. StatDuration.Value = DURATION
  2121. StatDuration.Parent = NewStatChange
  2122. end
  2123. NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
  2124. end
  2125. end
  2126. end
  2127.  
  2128. --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2129. function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  2130. if HIT.Parent == nil then
  2131. return
  2132. end
  2133. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  2134. for _, v in pairs(HIT.Parent:GetChildren()) do
  2135. if v:IsA("Humanoid") then
  2136. HITHUMANOID = v
  2137. end
  2138. end
  2139. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  2140. StaggerHit.Value = true
  2141. if Play_Hitbox_Hit_Sound == true then
  2142. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  2143. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  2144. end
  2145. end
  2146. return
  2147. end
  2148. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  2149. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  2150. end
  2151. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  2152. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  2153. end
  2154. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  2155. if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
  2156. if HIT.Parent.DebounceHit.Value == true then
  2157. return
  2158. end
  2159. end
  2160. if AntiTeamKill.Value == true then
  2161. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  2162. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  2163. return
  2164. end
  2165. end
  2166. end
  2167. if HITEVENWHENDEAD == false then
  2168. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  2169. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  2170. return
  2171. end
  2172. end
  2173. end
  2174. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2175. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  2176. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  2177. end
  2178. end
  2179. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2180. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  2181. if STAGGER == true and Enable_Stagger == true then
  2182. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  2183. end
  2184. end
  2185. end
  2186. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2187. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  2188. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  2189. HASBEENBLOCKED = true
  2190. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
  2191. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  2192. if RANGED ~= true then
  2193. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  2194. CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
  2195. end
  2196. end
  2197. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  2198. BlockDebounce.Name = "BlockDebounce"
  2199. BlockDebounce.Value = true
  2200. if RANGED ~= true then
  2201. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  2202. else
  2203. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  2204. end
  2205. end
  2206. if RANGED ~= true and Enable_Stagger == true then
  2207. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  2208. Stagger.Value = true
  2209. end
  2210. return
  2211. end
  2212. end
  2213. end
  2214. if DECREASETHESTAT ~= nil then
  2215. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2216. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  2217. end
  2218. end
  2219. local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
  2220. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2221. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  2222. if CanPenetrateArmor.Value == true then
  2223. DAMAGE = DAMAGE
  2224. else
  2225. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  2226. end
  2227. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  2228. DAMAGE = DAMAGE
  2229. end
  2230. end
  2231. if CanCrit.Value == true then
  2232. CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
  2233. if CRITCHANCENUMBER == 1 then
  2234. DAMAGE = DAMAGE * 2
  2235. end
  2236. end
  2237. DAMAGE = math.floor(DAMAGE)
  2238. if HASBEENBLOCKED == false then
  2239. HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE * Player_Size
  2240. end
  2241. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  2242. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  2243. StaggerHit.Value = true
  2244. end
  2245. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  2246. CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH)
  2247. end
  2248. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  2249. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  2250. CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH)
  2251. end
  2252. end
  2253. if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
  2254. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2255. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0))
  2256. CreateSound("296102734", HIT, 1, 1)
  2257. else
  2258. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(255/255, 220/255, 0))
  2259. end
  2260. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  2261. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2262. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0))
  2263. CreateSound("296102734", HIT, 1, 1)
  2264. else
  2265. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(255/255, 0, 0))
  2266. end
  2267. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  2268. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2269. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0))
  2270. CreateSound("296102734", HIT, 1, 1)
  2271. else
  2272. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(225/255, 225/255, 225/255))
  2273. end
  2274. end
  2275. if TYPE == "Normal" then
  2276. local vp = IT("BodyVelocity")
  2277. vp.P=500
  2278. vp.maxForce = VT(math.huge, 0, math.huge)
  2279. if KNOCKBACKTYPE == 1 then
  2280. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
  2281. elseif KNOCKBACKTYPE == 2 then
  2282. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
  2283. end
  2284. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  2285. vp.Parent = HIT--.Parent.Torso
  2286. end
  2287. game:GetService("Debris"):AddItem(vp, 0.5)
  2288. end
  2289. HASBEENBLOCKED = false
  2290. RecentEnemy.Value = HIT.Parent
  2291. local DebounceHit = IT("BoolValue", HIT.Parent)
  2292. DebounceHit.Name = "DebounceHit"
  2293. DebounceHit.Value = true
  2294. game:GetService("Debris"):AddItem(DebounceHit, DELAY)
  2295. end
  2296. end
  2297.  
  2298. Apoc = false
  2299. GodSlash = false
  2300.  
  2301. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2302. function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  2303. --[[if Apoc == true then
  2304. Explosions = Instance.new("Explosion", PART)
  2305. Explosions.Visible = false
  2306. Explosions.BlastPressure = 1000
  2307. Explosions.BlastRadius = 8
  2308. Explosions.Position = PART.Position
  2309. Explosions.DestroyJointRadiusPercent = 0
  2310. Explosions.ExplosionType = "CratersAndDebris"
  2311. elseif GodSlash == true then
  2312. Explosions = Instance.new("Explosion", PART)
  2313. Explosions.Visible = false
  2314. Explosions.BlastPressure = 1000
  2315. Explosions.BlastRadius = 10
  2316. Explosions.Position = PART.Position
  2317. Explosions.DestroyJointRadiusPercent = 0
  2318. Explosions.ExplosionType = "CratersAndDebris"
  2319. else
  2320. Explosions = Instance.new("Explosion", PART)
  2321. Explosions.Visible = false
  2322. Explosions.BlastPressure = 1000
  2323. Explosions.BlastRadius = 5
  2324. Explosions.Position = PART.Position
  2325. Explosions.DestroyJointRadiusPercent = 0
  2326. Explosions.ExplosionType = "CratersAndDebris"
  2327. end]]
  2328. for _, c in pairs(workspace:GetChildren()) do
  2329. local HUMANOID = c:FindFirstChild("Humanoid")
  2330. local HEAD = nil
  2331. if HUMANOID ~= nil then
  2332. for _, d in pairs(c:GetChildren()) do
  2333. if d.ClassName == "Model" and RANGED ~= true then
  2334. HEAD = d:FindFirstChild("Hitbox")
  2335. if HEAD ~= nil then
  2336. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  2337. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2338. if Play_Hitbox_Hit_Sound == true then
  2339. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2340. HitRefpart.Anchored = true
  2341. HitRefpart.CFrame = CF(HEAD.Position)
  2342. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  2343. end
  2344. if Enable_Stagger_Hit == true then
  2345. StaggerHit.Value = true
  2346. end
  2347. end
  2348. end
  2349. elseif d:IsA"BasePart" then
  2350. HEAD = d
  2351. if HEAD ~= nil then
  2352. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  2353. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2354. DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  2355. end
  2356. end
  2357. end
  2358. end
  2359. end
  2360. end
  2361. end
  2362.  
  2363. --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
  2364. function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
  2365. if Player.Neutral == true then
  2366. IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2367. end
  2368. for _, c in pairs(workspace:GetChildren()) do
  2369. local HUMANOID = c:FindFirstChild("Humanoid")
  2370. local THEHEAD = nil
  2371. if HUMANOID ~= nil then
  2372. if c:FindFirstChild("Torso") ~= nil then
  2373. THEHEAD = c:FindFirstChild("Torso")
  2374. elseif c:FindFirstChild("UpperTorso") ~= nil then
  2375. THEHEAD = c:FindFirstChild("UpperTorso")
  2376. end
  2377. if THEHEAD ~= nil then
  2378. local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
  2379. print("yes 1")
  2380. if APPLYTOOTHERSINSTEAD == true then
  2381. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2382. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  2383. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  2384. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2385. end
  2386. end
  2387. end
  2388. elseif APPLYTOOTHERSINSTEAD == false then
  2389. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
  2390. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  2391. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  2392. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  2393. end
  2394. end
  2395. end
  2396. end
  2397. end
  2398. end
  2399. end
  2400. end
  2401.  
  2402. --//=================================\\
  2403. --\\=================================//
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409. --//=================================\\
  2410. --|| WEAPON GUI
  2411. --\\=================================//
  2412.  
  2413. local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar")
  2414. local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover")
  2415. local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
  2416.  
  2417. local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar")
  2418. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover")
  2419. local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
  2420.  
  2421. local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame")
  2422. local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar")
  2423. local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
  2424.  
  2425. local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar")
  2426. local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover")
  2427. local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
  2428.  
  2429. local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame")
  2430. local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
  2431.  
  2432. local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
  2433. local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
  2434.  
  2435. local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame")
  2436. local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
  2437.  
  2438. local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame")
  2439. local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame")
  2440. local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame")
  2441. local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame")
  2442.  
  2443. local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar")
  2444. local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar")
  2445. local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar")
  2446. local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar")
  2447.  
  2448. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
  2449. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
  2450. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
  2451. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
  2452.  
  2453. if Enable_Gui == true then
  2454. WEAPONGUI.Parent = PlayerGui
  2455. end
  2456.  
  2457. if Enable_Stats == true and Show_Stats == true then
  2458. DEFENSEFRAME.Parent = WEAPONGUI
  2459. DAMAGEFRAME.Parent = WEAPONGUI
  2460. MOVEMENTFRAME.Parent = WEAPONGUI
  2461. end
  2462.  
  2463. if Enable_Secondary_Bar == true then
  2464. SECONDARYMANABAR.Parent = WEAPONGUI
  2465. end
  2466.  
  2467. if Enable_Abilities == true then
  2468. SKILL1FRAME.Parent = WEAPONGUI
  2469. SKILL2FRAME.Parent = WEAPONGUI
  2470. SKILL3FRAME.Parent = WEAPONGUI
  2471. SKILL4FRAME.Parent = WEAPONGUI
  2472. end
  2473.  
  2474. if Enable_Stun == true then
  2475. STUNFRAME.Parent = WEAPONGUI
  2476. end
  2477.  
  2478. function UpdateGUI()
  2479. MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2480. MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2481. MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
  2482. HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2483. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2484. HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
  2485. if Enable_Abilities == true then
  2486. SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2487. SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2488. SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2489. SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2490. SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2491. SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2492. SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2493. SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2494. end
  2495. if Enable_Stats == true and Show_Stats == true then
  2496. DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2497. DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
  2498. DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2499. DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
  2500. MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2501. MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
  2502. end
  2503. if Enable_Stun == true then
  2504. STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2505. STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2506. STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
  2507. end
  2508. if Enable_Secondary_Bar == true then
  2509. SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2510. SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  2511. SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
  2512. end
  2513. end
  2514.  
  2515. if Enable_Gui == true then
  2516. UpdateGUI()
  2517. for _, v in pairs (WEAPONGUI:GetChildren()) do
  2518. if v.ClassName == "Frame" then
  2519. for _, b in pairs (v:GetChildren()) do
  2520. if b.ClassName == "TextLabel" then
  2521. coroutine.resume(coroutine.create(function(THETEXTLABEL)
  2522. wait(Menu_Update_Speed)
  2523. for i = 1, 0, -0.1 do
  2524. Swait()
  2525. THETEXTLABEL.TextTransparency = i
  2526. THETEXTLABEL.TextStrokeTransparency = i
  2527. end
  2528. THETEXTLABEL.TextTransparency = 0
  2529. THETEXTLABEL.TextStrokeTransparency = 0
  2530. end), b)
  2531. end
  2532. end
  2533. end
  2534. end
  2535. end
  2536.  
  2537. --//=================================\\
  2538. --\\=================================//
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544. --//=================================\\
  2545. --|| SKILL FUNCTIONS
  2546. --\\=================================//
  2547.  
  2548. function UpdateSkillsAndStuff()
  2549. if Mana_Regen_Mode == "1" then
  2550. if Mana.Value >= Max_Mana then
  2551. Mana.Value = Max_Mana
  2552. elseif Mana.Value < 0 then
  2553. Mana.Value = 0
  2554. else
  2555. if MANADELAYNUMBER <= Mana_Wait then
  2556. MANADELAYNUMBER = MANADELAYNUMBER + 1
  2557. else
  2558. MANADELAYNUMBER = 0
  2559. Mana.Value = Mana.Value + Recover_Mana
  2560. end
  2561. end
  2562. elseif Mana_Regen_Mode == "2" then
  2563. if Mana.Value <= Max_Mana then
  2564. Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
  2565. elseif Mana.Value >= Max_Mana then
  2566. Mana.Value = Max_Mana
  2567. elseif Mana.Value < 0 then
  2568. Mana.Value = 0
  2569. end
  2570. end
  2571. if Enable_Secondary_Bar == true then
  2572. if Secondary_Mana_Regen_Mode == "1" then
  2573. if SecondaryMana.Value >= Max_Secondary_Mana then
  2574. SecondaryMana.Value = Max_Secondary_Mana
  2575. elseif SecondaryMana.Value < 0 then
  2576. SecondaryMana.Value = 0
  2577. else
  2578. if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
  2579. SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1
  2580. else
  2581. SECONDARYMANADELAYNUMBER = 0
  2582. SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
  2583. end
  2584. end
  2585. elseif Secondary_Mana_Regen_Mode == "2" then
  2586. if SecondaryMana.Value <= Max_Secondary_Mana then
  2587. SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
  2588. elseif SecondaryMana.Value >= Max_Secondary_Mana then
  2589. SecondaryMana.Value = Max_Secondary_Mana
  2590. elseif SecondaryMana.Value < 0 then
  2591. SecondaryMana.Value = 0
  2592. end
  2593. end
  2594. else
  2595. SecondaryMana.Value = 0
  2596. end
  2597. if Enable_Stun == true then
  2598. if Stun_Lose_Mode == "1" then
  2599. if StunValue.Value > Max_Stun then
  2600. StunValue.Value = Max_Stun
  2601. elseif StunValue.Value <= 0 then
  2602. StunValue.Value = 0
  2603. else
  2604. if STUNDELAYNUMBER <= Stun_Wait then
  2605. STUNDELAYNUMBER = STUNDELAYNUMBER + 1
  2606. else
  2607. STUNDELAYNUMBER = 0
  2608. StunValue.Value = StunValue.Value - Lose_Stun
  2609. end
  2610. end
  2611. elseif Stun_Lose_Mode == "2" then
  2612. if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
  2613. StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
  2614. elseif StunValue.Value > Max_Stun then
  2615. StunValue.Value = Max_Stun
  2616. elseif StunValue.Value <= 0 then
  2617. StunValue.Value = 0
  2618. end
  2619. end
  2620. else
  2621. StunValue.Value = 0
  2622. end
  2623. if Enable_Abilities == true then
  2624. if CO1 <= Cooldown_1 then
  2625. CO1 = CO1 + (1 / 30) / Animation_Speed
  2626. elseif CO1 >= Cooldown_1 then
  2627. CO1 = Cooldown_1
  2628. end
  2629. if CO2 <= Cooldown_2 then
  2630. CO2 = CO2 + (1 / 30) / Animation_Speed
  2631. elseif CO2 >= Cooldown_2 then
  2632. CO2 = Cooldown_2
  2633. end
  2634. if CO3 <= Cooldown_3 then
  2635. CO3 = CO3 + (1 / 30) / Animation_Speed
  2636. elseif CO3 >= Cooldown_3 then
  2637. CO3 = Cooldown_3
  2638. end
  2639. if CO4 <= Cooldown_4 then
  2640. CO4 = CO4 + (1 / 30) / Animation_Speed
  2641. elseif CO4 >= Cooldown_4 then
  2642. CO4 = Cooldown_4
  2643. end
  2644. end
  2645. end
  2646.  
  2647. --//=================================\\
  2648. --\\=================================//
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654. --//=================================\\
  2655. --|| ATTACK FUNCTIONS AND STUFF
  2656. --\\=================================//
  2657.  
  2658. function EquipWeapon()
  2659. --ATTACK = true
  2660. DEFENSECHANGE1.Parent = nil
  2661. MOVEMENTCHANGE1.Parent = ChangeStat
  2662. for i=0, 1, 0.5 / Animation_Speed do
  2663. Swait()
  2664. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2665. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2666. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2667. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2668. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2669. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2670. end
  2671. for i=0, 1, 0.08 / Animation_Speed do
  2672. Swait()
  2673. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2674. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2675. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2676. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2677. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2678. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2679. end
  2680. HandleWeld.Part0 = RightArm
  2681. HandleWeld.C0 = CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0))
  2682. CreateSound("174884033", HitboxPart, 1, 1.5)
  2683. for i=0, 1, 0.5 / Animation_Speed do
  2684. Swait()
  2685. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2686. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2687. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2688. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2689. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2690. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2691. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  2692. end
  2693. LASTPOINT = EffectPart.CFrame
  2694. for i=0, 1, 0.08 / Animation_Speed do
  2695. Swait()
  2696. Trail.Enabled = true
  2697. LASTPOINT = EffectPart.CFrame
  2698. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2699. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2700. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(-60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2701. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2702. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  2703. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2704. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-140), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  2705. end
  2706. LASTPOINT = nil
  2707. Trail.Enabled = false
  2708. --ATTACK = false
  2709. end
  2710.  
  2711. function UnequipWeapon()
  2712. --ATTACK = true
  2713. for i=0, 1, 0.5 / Animation_Speed do
  2714. Swait()
  2715. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2716. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2717. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2718. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2719. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2720. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2721. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  2722. end
  2723. CreateSound("245542809", HitboxPart, 1, 1.2)
  2724. for i=0, 1, 0.08 / Animation_Speed do
  2725. Swait()
  2726. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2727. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2728. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2729. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2730. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2731. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2732. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  2733. end
  2734. HandleWeld.Part0 = Torso
  2735. HandleWeld.C0 = CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135))
  2736. for i=0, 1, 0.5 / Animation_Speed do
  2737. Swait()
  2738. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2739. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2740. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2741. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2742. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  2743. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  2744. end
  2745. for i=0, 1, 0.08 / Animation_Speed do
  2746. Swait()
  2747. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2748. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2749. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2750. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.3 / Animation_Speed)
  2751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2753. if Disable_Moving_Arms == false then
  2754. RightShoulder.C1 = Clerp(RightShoulder.C1, ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  2755. LeftShoulder.C1 = Clerp(LeftShoulder.C1, ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  2756. else
  2757. RightShoulder.C1 = Clerp(RightShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  2758. LeftShoulder.C1 = Clerp(LeftShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  2759. end
  2760. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2761. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2762. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2763. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2764. end
  2765. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2766. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  2767. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2768. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  2769. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  2770. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  2771. if Disable_Moving_Arms == false then
  2772. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2773. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  2774. else
  2775. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2776. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2777. end
  2778. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2779. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2780. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2781. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  2782. --ATTACK = false
  2783. DEFENSECHANGE1.Parent = ChangeStat
  2784. MOVEMENTCHANGE1.Parent = nil
  2785. end
  2786.  
  2787. function StaggerHitAnimation()
  2788. ATTACK = true
  2789. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2790. for i = 1, MRANDOM(2, 4) do
  2791. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2792. end
  2793. end
  2794. for i = 0, 1, 0.1 / Animation_Speed do
  2795. Swait()
  2796. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2800. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  2802. if Stagger.Value == true or Stun.Value == true then
  2803. break
  2804. end
  2805. end
  2806. ATTACK = false
  2807. end
  2808.  
  2809. function StaggerAnimation()
  2810. ATTACK = true
  2811. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2812. for i = 1, MRANDOM(2, 4) do
  2813. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2814. end
  2815. end
  2816. DISABLEJUMPING = true
  2817. COMBO = 1
  2818. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0))
  2819. local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso)
  2820. STAGGERVELOCITY.P = 500
  2821. STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge)
  2822. if Rooted.Value == false then
  2823. STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40
  2824. end
  2825. for i = 0, 1, 0.35 / Animation_Speed do
  2826. Swait()
  2827. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  2829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2831. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed)
  2833. end
  2834. for i = 0, 1, 0.2 / Animation_Speed do
  2835. Swait()
  2836. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2837. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2838. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2839. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2840. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2841. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed)
  2842. end
  2843. STAGGERVELOCITY.Parent = nil
  2844. for i = 1, 50 * Animation_Speed do
  2845. Swait()
  2846. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed)
  2847. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed)
  2848. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2849. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2850. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed)
  2851. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed)
  2852. end
  2853. DISABLEJUMPING = false
  2854. ATTACK = false
  2855. end
  2856.  
  2857. function StunAnimation()
  2858. ATTACK = true
  2859. DISABLEJUMPING = true
  2860. COMBO = 1
  2861. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0))
  2862. for i = 0, 1, 0.3 / Animation_Speed do
  2863. Swait()
  2864. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed)
  2865. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2866. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2867. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2868. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  2869. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  2870. end
  2871. for i = 0, 1, 0.3 / Animation_Speed do
  2872. Swait()
  2873. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2874. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2875. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2876. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2877. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2878. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2879. end
  2880. for i = 0, 1, 0.3 / Animation_Speed do
  2881. Swait()
  2882. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2884. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2885. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2886. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  2887. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed)
  2888. end
  2889. for i = 1, 70 * Animation_Speed do
  2890. Swait()
  2891. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
  2892. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
  2893. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2894. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2895. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2896. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2897. end
  2898. for i = 0, 1, 0.2 / Animation_Speed do
  2899. Swait()
  2900. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed)
  2901. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2902. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2903. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2904. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed)
  2905. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2906. end
  2907. DISABLEJUMPING = false
  2908. ATTACK = false
  2909. end
  2910.  
  2911. function EAbility()
  2912. ATTACK = true
  2913. ATTACK = false
  2914. end
  2915.  
  2916. function SwordAttack1()
  2917. ATTACK = true
  2918. for i=0, 1, 0.1 / Animation_Speed do
  2919. Swait()
  2920. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2921. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(35)), 0.4 / Animation_Speed)
  2922. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2923. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.25 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(160), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2924. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2925. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2926. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-80), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2927. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2928. break
  2929. end
  2930. end
  2931. CreateSound("553461842", HitboxPart, 1.2, MRANDOM(8, 9) / 10)
  2932. local HASHITFLOOR = false
  2933. for i=0, 1, 0.1 / Animation_Speed do
  2934. Swait()
  2935. Trail.Enabled = true
  2936. local SWORDHIT, SWORDPOS = Raycast(EffectPart.Position, (CF(EffectPart.Position, EffectPart.Position + VT(0, -1, 0))).lookVector, 1 * Player_Size, Character)
  2937. if SWORDHIT ~= nil and HASHITFLOOR == false and SWORDHIT.Parent:FindFirstChild("Humanoid") == nil then
  2938. HASHITFLOOR = true
  2939. --print(SWORDHIT.Material)
  2940. if SWORDHIT.Material == Enum.Material.Grass or SWORDHIT.Material == Enum.Material.Ice or SWORDHIT.Material == Enum.Material.Fabric or SWORDHIT.Material == Enum.Material.SmoothPlastic or SWORDHIT.Material == Enum.Material.Sand or SWORDHIT.Material == Enum.Material.Plastic or SWORDHIT.Material == Enum.Material.Neon or SWORDHIT.Material == Enum.Material.Foil then
  2941. CreateSound("525717773", EffectPart, 1.2 , MRANDOM(8, 12) / 10)
  2942. elseif SWORDHIT.Material == Enum.Material.Metal or SWORDHIT.Material == Enum.Material.Concrete or SWORDHIT.Material == Enum.Material.Brick or SWORDHIT.Material == Enum.Material.CorrodedMetal or SWORDHIT.Material == Enum.Material.Slate or SWORDHIT.Material == Enum.Material.Marble or SWORDHIT.Material == Enum.Material.Granite or SWORDHIT.Material == Enum.Material.DiamondPlate or SWORDHIT.Material == Enum.Material.Pebble or SWORDHIT.Material == Enum.Material.Cobblestone then
  2943. CreateSound("470790670", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2944. for i = 1, MRANDOM(2, 4) do
  2945. ClangEffect("Bright yellow", "Neon", CF(SWORDPOS) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 10, 3, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2946. end
  2947. elseif SWORDHIT.Material == Enum.Material.Wood or SWORDHIT.Material == Enum.Material.WoodPlanks then
  2948. CreateSound("514586161", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2949. end
  2950. end
  2951. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2952. if HASHITFLOOR == true then
  2953. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2954. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2955. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2956. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2957. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2958. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2959. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-132.5), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2960. else
  2961. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2962. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2963. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2964. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2965. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2966. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2967. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-150), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2968. end
  2969. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2970. break
  2971. end
  2972. end
  2973. BLCF = nil
  2974. SCFR = nil
  2975. ATTACK = false
  2976. Trail.Enabled = false
  2977. end
  2978.  
  2979. function SwordAttack2()
  2980. ATTACK = true
  2981. for i=0, 1, 0.1 / Animation_Speed do
  2982. Swait()
  2983. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2984. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2985. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2986. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2987. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2988. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2989. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2990. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2991. break
  2992. end
  2993. end
  2994. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  2995. for i=0, 1, 0.1 / Animation_Speed do
  2996. Swait()
  2997. Trail.Enabled = true
  2998. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2999. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3000. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  3001. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3002. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3003. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3004. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3005. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3006. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3007. break
  3008. end
  3009. end
  3010. BLCF = nil
  3011. SCFR = nil
  3012. ATTACK = false
  3013. Trail.Enabled = false
  3014. end
  3015. function SwordAttack3()
  3016. ATTACK = true
  3017. for i=0, 1, 0.1 / Animation_Speed do
  3018. Swait()
  3019. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3020. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  3021. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3022. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3023. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3024. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3025. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3026. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3027. break
  3028. end
  3029. end
  3030. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  3031. for i=0, 1, 0.1 / Animation_Speed do
  3032. Swait()
  3033. Trail.Enabled = true
  3034. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  3035. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  3036. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3037. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(100), RAD(0), RAD(-71)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3038. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3039. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  3040. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3041. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3042. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3043. break
  3044. end
  3045. end
  3046. BLCF = nil
  3047. SCFR = nil
  3048. ATTACK = false
  3049. Trail.Enabled = false
  3050. end
  3051. function SwordAttack4()
  3052. ATTACK = true
  3053. for i=0, 1, 0.1 / Animation_Speed do
  3054. Swait()
  3055. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3056. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  3057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3058. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3059. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3060. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3061. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3062. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3063. break
  3064. end
  3065. end
  3066. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  3067. for i=0, 1.5, 0.1 / Animation_Speed do
  3068. Swait()
  3069. Trail.Enabled = true
  3070. Humanoid.Jump = true
  3071. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Up", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  3072. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  3073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3076. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  3077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3078. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3079. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3080. break
  3081. end
  3082. end
  3083. BLCF = nil
  3084. SCFR = nil
  3085. ATTACK = false
  3086. Trail.Enabled = false
  3087. end
  3088. function SwordAttack5()
  3089. ATTACK = true
  3090. Animation_Speed = 0.8 * Player_Size
  3091. for i = 1,4 do
  3092. for i=0, 1, 0.1 / Animation_Speed do
  3093. Swait()
  3094. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  3095. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3096. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3097. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3098. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  3099. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3100. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3101. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3102. break
  3103. end
  3104. end
  3105. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  3106. for i=0, 1, 0.1 / Animation_Speed do
  3107. Swait()
  3108. Trail.Enabled = true
  3109. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  3110. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  3112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3114. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3116. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3117. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3118. break
  3119. end
  3120. end
  3121. for i=0, 1, 0.1 / Animation_Speed do
  3122. Swait()
  3123. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3124. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  3125. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3126. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3127. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3128. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3129. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3130. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3131. break
  3132. end
  3133. end
  3134. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  3135. for i=0, 1, 0.1 / Animation_Speed do
  3136. Swait()
  3137. Trail.Enabled = true
  3138. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  3139. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  3140. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  3141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(100), RAD(0), RAD(-71)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3143. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  3144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3145. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed)
  3146. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3147. break
  3148. end
  3149. end
  3150. end
  3151. Animation_Speed = 2 * Player_Size
  3152. BLCF = nil
  3153. SCFR = nil
  3154. ATTACK = false
  3155. Trail.Enabled = false
  3156. end
  3157. function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
  3158. local POS1 = POSITION1
  3159. local POS2 = POSITION2
  3160. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  3161. local FIREBALLSPEED = SPEED * Player_Size
  3162. local FIREBALLDURATION = DURATION
  3163. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3164. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  3165. coroutine.resume(coroutine.create(function()
  3166. repeat
  3167. Swait()
  3168. local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
  3169. POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
  3170. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1)
  3171. if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
  3172. FIREBALLDURATION = 0
  3173. local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  3174. FireballHitRefpart.Anchored = true
  3175. FireballHitRefpart.CFrame = CF(FIREBALLPOS)
  3176. game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
  3177. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10)
  3178. for i = 1, MRANDOM(4, 8) do
  3179. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 10, 10, 10, 0, 0, 0, MRANDOM(3, 5) / 100)
  3180. end
  3181. MagicBlock("Bright red", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
  3182. MagicBlock("Bright orange", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
  3183. MagicBlock("Bright yellow", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
  3184. MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FireballHitRefpart, SIZE / 2, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  3185. else
  3186. FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
  3187. end
  3188. until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
  3189. end))
  3190. end
  3191. function ShootOmegaFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
  3192. local POS1 = POSITION1
  3193. local POS2 = POSITION2
  3194. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  3195. local FIREBALLSPEED = SPEED * Player_Size
  3196. local FIREBALLDURATION = DURATION * Player_Size
  3197. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3198. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  3199. coroutine.resume(coroutine.create(function()
  3200. repeat
  3201. Swait()
  3202. local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
  3203. POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
  3204. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1)
  3205. if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
  3206. FIREBALLDURATION = 0
  3207. local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  3208. FireballHitRefpart.Anchored = true
  3209. FireballHitRefpart.CFrame = CF(FIREBALLPOS)
  3210. game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
  3211. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10)
  3212. for i = 1, MRANDOM(4, 8) do
  3213. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 10, 10, 10, 0, 0, 0, MRANDOM(3, 5) / 100)
  3214. end
  3215. for i = 1,1 do
  3216. MagicBlock("Bright red", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
  3217. MagicBlock("Bright orange", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 5, SIZE * 5, SIZE * 5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
  3218. MagicBlock("Bright yellow", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 5, SIZE * 5, SIZE * 5, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
  3219. MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FireballHitRefpart, SIZE / 2, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  3220. end
  3221. else
  3222. FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
  3223. end
  3224. until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
  3225. end))
  3226. end
  3227. function FirePillar(POSITION1, POSITION2, SIZE, RISE, RANGE, LOWDAMAGE, HIGHDAMAGE, LASTINGTIME)
  3228. local POS1 = POSITION1
  3229. local POS2 = POSITION2
  3230. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  3231. local FIREPILLARHITSOUNDS = {"171378971", --[["646619365",--]] "472579737"--[[, "144140670"--]]}
  3232. local FIREPILLARCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3233. local FIREPILLAR1HIT, FIREPILLAR1POS = Raycast(POS1, MOUSELOOK.lookVector, RANGE * Player_Size, Character)
  3234. local FirePillarRefpart1 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  3235. FirePillarRefpart1.Anchored = true
  3236. FirePillarRefpart1.CFrame = CF(FIREPILLAR1POS) * CF(0, 10, 0)
  3237. game:GetService("Debris"):AddItem(FirePillarRefpart1, 5)
  3238. local FIREPILLAR2HIT, FIREPILLAR2POS = Raycast(FirePillarRefpart1.Position, CF(FirePillarRefpart1.Position, FirePillarRefpart1.Position + VT(0, -1, 0)).lookVector, 999, Character)
  3239. if FIREPILLAR2HIT ~= nil then
  3240. FirePillarRefpart1.Parent = nil
  3241. local FirePillarRefpart2 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  3242. FirePillarRefpart2.Anchored = true
  3243. FirePillarRefpart2.CFrame = CF(FIREPILLAR2POS)
  3244. game:GetService("Debris"):AddItem(FirePillarRefpart2, 5)
  3245. CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], FirePillarRefpart2, 1.2, MRANDOM(11, 13) / 10)
  3246. for i = 1, MRANDOM(5, 10) do
  3247. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame * ANGLES(RAD(MRANDOM(-60, 60)), 0, RAD(MRANDOM(-60, 60))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 30, 30, 30, 0, 0, 0, MRANDOM(3, 5) / 100)
  3248. end
  3249. for i = 1, MRANDOM(15, 20) do
  3250. local FIREEFFECTSIZE = MRANDOM(1, 2)
  3251. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame, CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-20, 20)), 0), VT(MRANDOM(SIZE / 6, SIZE / 4), 0, 0), FIREEFFECTSIZE, FIREEFFECTSIZE, FIREEFFECTSIZE, -0.02, -0.02, -0.02, MRANDOM(1, 2) / 100)
  3252. end
  3253. MagicCylinder("Bright red", "Neon", CF(FIREPILLAR2POS), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, 0, 1.5, LASTINGTIME)
  3254. MagicSphere("Bright red", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, RISE, 1.5, LASTINGTIME)
  3255. MagicSphere("Bright orange", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.5, 0.1, SIZE * 0.5, 1.5, RISE * 0.75, 1.5, LASTINGTIME)
  3256. MagicSphere("Bright yellow", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.25, 0.1, SIZE * 0.25, 1.5, RISE * 0.375, 1.5, LASTINGTIME)
  3257. MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FirePillarRefpart2, SIZE / 3, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, "Movement", -0.1, 3, true)
  3258. end
  3259. end
  3260.  
  3261. function Attack1()
  3262. ATTACK = true
  3263. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3264. for i=0, 1, 0.1 / Animation_Speed do
  3265. Swait()
  3266. for i = 1, 2 do
  3267. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3268. end
  3269. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  3270. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3271. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3272. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3273. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3274. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  3275. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3276. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3277. break
  3278. end
  3279. end
  3280. Snap:Play()
  3281. CreateSound("154324879", LeftArm, 1.4, 1.5)
  3282. ShootFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 1, 100, 2.1, 5, 10)
  3283. MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  3284. MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  3285. MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  3286. for i=0, 1, 0.1 / Animation_Speed do
  3287. Swait()
  3288. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed)
  3289. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3290. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3291. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3292. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3293. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3294. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3295. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3296. break
  3297. end
  3298. end
  3299. ATTACK = false
  3300. end
  3301.  
  3302. function Attack2()
  3303. ATTACK = true
  3304. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3305. for i=0, 1, 0.1 / Animation_Speed do
  3306. Swait()
  3307. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3308. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3309. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3310. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3311. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3312. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3313. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  3314. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3315. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3316. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3317. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3318. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  3319. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3320. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3321. break
  3322. end
  3323. end
  3324. Snap:Play()
  3325. CreateSound("549224856", LeftArm, 1, MRANDOM(11, 13) / 10)
  3326. FirePillar(RootPart.Position, mouse.Hit.p, 2500, 700.5, 1, 20, 24, 0.025)
  3327. MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  3328. MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  3329. MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  3330. for i=0, 1, 0.1 / Animation_Speed do
  3331. Swait()
  3332. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3333. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3334. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3335. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3336. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3337. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3338. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3339. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3340. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3341. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3342. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  3343. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed)
  3344. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3345. --[[
  3346. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed)
  3347. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3348. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3349. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3350. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  3351. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3352. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3353. --]]
  3354. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3355. break
  3356. end
  3357. end
  3358. ATTACK = false
  3359. end
  3360. FireballBarrage = false
  3361. function Attack3()
  3362. ATTACK = true
  3363. FireballBarrage = true
  3364. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3365. for i=0, 1, 0.1 / Animation_Speed do
  3366. Swait()
  3367. for i = 1, 2 do
  3368. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3369. end
  3370. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  3371. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3372. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3373. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3374. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3375. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  3376. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3377. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3378. break
  3379. end
  3380. end
  3381. Snap:Play()
  3382. CreateSound("154324879", LeftArm, 1.4, 1.5)
  3383. while FireballBarrage == true do
  3384. ShootOmegaFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Torso.Position + Vector3.new(math.random(-20,-10),math.random(0,0),math.random(-20,-10)), 5, 20, 2.1, 5, 10)
  3385. MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  3386. MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  3387. MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  3388. wait()
  3389. end
  3390. for i=0, 1, 0.1 / Animation_Speed do
  3391. Swait()
  3392. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed)
  3393. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3394. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3395. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3396. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3397. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3398. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3399. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3400. break
  3401. end
  3402. end
  3403. ATTACK = false
  3404. end
  3405.  
  3406. function Attack4()
  3407. ATTACK = true
  3408. local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  3409. for i=0, 1, 0.1 / Animation_Speed do
  3410. Swait()
  3411. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3412. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3413. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3414. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3415. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3416. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3417. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  3418. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3419. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3420. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3421. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  3422. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  3423. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3424. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3425. break
  3426. end
  3427. end
  3428. Snap:Play()
  3429. wait(1)
  3430. for i = 1,10 do
  3431. for i=1,15 do
  3432. CreateSound("549224856", LeftArm, 1, MRANDOM(11, 13) / 10)
  3433. FirePillar(RootPart.Position, RootPart.Position + Vector3.new(math.random(-1000,1000),math.random(-100,100),math.random(-1000,1000)), 250, math.random(70,7000), 2000, 1, 2, 0.025)
  3434. wait()
  3435. end
  3436. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3437. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3438. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3439. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3440. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3441. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3442. Swait()
  3443. end
  3444. for i=0, 1, 0.1 / Animation_Speed do
  3445. Swait()
  3446. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3447. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3448. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3449. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3450. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3451. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05)
  3452. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  3453. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3454. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3455. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3456. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  3457. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed)
  3458. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3459. --[[
  3460. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed)
  3461. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3462. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3463. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3464. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  3465. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  3466. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  3467. --]]
  3468. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  3469. break
  3470. end
  3471. end
  3472. ATTACK = false
  3473. end
  3474.  
  3475. function Move1()
  3476. ATTACK = true
  3477. ATTACK = false
  3478. end
  3479.  
  3480. function Move2()
  3481. ATTACK = true
  3482. ATTACK = false
  3483. end
  3484.  
  3485. function Move3()
  3486. ATTACK = true
  3487. ATTACK = false
  3488. end
  3489.  
  3490. function Move4()
  3491. ATTACK = true
  3492. ATTACK = false
  3493. end
  3494.  
  3495. --//=================================\\
  3496. --\\=================================//
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502. --//=================================\\
  3503. --|| SET THINGS UP
  3504. --\\=================================//
  3505.  
  3506. if Start_Equipped == true then
  3507. ATTACK = true
  3508. EQUIPPED = true
  3509. if Disable_Animate == true then
  3510. ANIMATE.Parent = nil
  3511. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3512. IDLEANIMATION:Play()
  3513. end
  3514. if Disable_Animator == true then
  3515. ANIMATOR.Parent = nil
  3516. end
  3517. if Disable_Moving_Arms == true then
  3518. RSH = Torso["Right Shoulder"]
  3519. LSH = Torso["Left Shoulder"]
  3520. RSH.Parent = nil
  3521. LSH.Parent = nil
  3522. if Use_Motors_Instead_Of_Welds == true then
  3523. RightShoulder = IT("Motor")
  3524. LeftShoulder = IT("Motor")
  3525. else
  3526. RightShoulder = IT("Weld")
  3527. LeftShoulder = IT("Weld")
  3528. end
  3529. RightShoulder.Name = "Right Shoulder"
  3530. RightShoulder.Part0 = Torso
  3531. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3532. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3533. RightShoulder.Part1 = Character["Right Arm"]
  3534. RightShoulder.Parent = Torso
  3535. LeftShoulder.Name = "Left Shoulder"
  3536. LeftShoulder.Part0 = Torso
  3537. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3538. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3539. LeftShoulder.Part1 = Character["Left Arm"]
  3540. LeftShoulder.Parent = Torso
  3541. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3542. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3543. end
  3544. if Start_Equipped_With_Equipped_Animation == true then
  3545. Swait()
  3546. EquipWeapon()
  3547. end
  3548. ATTACK = false
  3549. end
  3550.  
  3551. --//=================================\\
  3552. --\\=================================//
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558. --//=================================\\
  3559. --|| ASSIGN THINGS TO KEYS
  3560. --\\=================================//
  3561.  
  3562. Humanoid.Changed:connect(function(Jump)
  3563. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  3564. Humanoid.Jump = false
  3565. end
  3566. end)
  3567.  
  3568. function MouseDown(Mouse)
  3569. if ATTACK == true or EQUIPPED == false then
  3570. return
  3571. end
  3572. HOLD = true
  3573. if COMBO == 1 then
  3574. COMBO = 2
  3575. SwordAttack1()
  3576. elseif COMBO == 2 then
  3577. COMBO = 3
  3578. SwordAttack2()
  3579. elseif COMBO == 3 then
  3580. COMBO = 4
  3581. SwordAttack3()
  3582. elseif COMBO == 4 then
  3583. COMBO = 5
  3584. SwordAttack4()
  3585. elseif COMBO == 5 then
  3586. COMBO = 1
  3587. SwordAttack5()
  3588. end
  3589. coroutine.resume(coroutine.create(function()
  3590. for i=1, 50 do
  3591. if ATTACK == false then
  3592. Swait()
  3593. end
  3594. end
  3595. if ATTACK == false then
  3596. COMBO = 1
  3597. end
  3598. end))
  3599. end
  3600.  
  3601. function MouseUp(Mouse)
  3602. HOLD = false
  3603. end
  3604.  
  3605. function KeyDown(Key)
  3606. if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then
  3607. ATTACK = true
  3608. COMBO = 1
  3609. if EQUIPPED == false then
  3610. EQUIPPED = true
  3611. if Disable_Animate == true then
  3612. ANIMATE.Parent = nil
  3613. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3614. IDLEANIMATION:Play()
  3615. end
  3616. if Disable_Animator == true then
  3617. ANIMATOR.Parent = nil
  3618. end
  3619. if Disable_Moving_Arms == true then
  3620. RSH = Torso["Right Shoulder"]
  3621. LSH = Torso["Left Shoulder"]
  3622. RSH.Parent = nil
  3623. LSH.Parent = nil
  3624. if Use_Motors_Instead_Of_Welds == true then
  3625. RightShoulder = IT("Motor")
  3626. LeftShoulder = IT("Motor")
  3627. else
  3628. RightShoulder = IT("Weld")
  3629. LeftShoulder = IT("Weld")
  3630. end
  3631. RightShoulder.Name = "Right Shoulder"
  3632. RightShoulder.Part0 = Torso
  3633. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3634. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3635. RightShoulder.Part1 = Character["Right Arm"]
  3636. RightShoulder.Parent = Torso
  3637. LeftShoulder.Name = "Left Shoulder"
  3638. LeftShoulder.Part0 = Torso
  3639. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3640. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  3641. LeftShoulder.Part1 = Character["Left Arm"]
  3642. LeftShoulder.Parent = Torso
  3643. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3644. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  3645. end
  3646. Swait()
  3647. EquipWeapon()
  3648. elseif EQUIPPED == true then
  3649. EQUIPPED = false
  3650. UnequipWeapon()
  3651. if Disable_Animator == true then
  3652. ANIMATOR.Parent = Humanoid
  3653. end
  3654. if Disable_Animate == true then
  3655. ANIMATE.Parent = Character
  3656. end
  3657. Swait()
  3658. if Disable_Moving_Arms == true then
  3659. RightShoulder.Parent = nil
  3660. LeftShoulder.Parent = nil
  3661. RSH.Parent = Torso
  3662. LSH.Parent = Torso
  3663. end
  3664. end
  3665. ATTACK = false
  3666. end
  3667. if Key == "e" and EQUIPPED == true and ATTACK == false then
  3668. GodSlash = true
  3669. Attack1()
  3670. GodSlash = false
  3671. end
  3672. if Key == "q" and EQUIPPED == true and ATTACK == false then
  3673. Attack2()
  3674. end
  3675. if Key == "r" and EQUIPPED == true and ATTACK == false and FireballBarrage == false then
  3676. Apoc = true
  3677. Attack3()
  3678. Apoc = false
  3679. end
  3680. if Key == "t" and EQUIPPED == true and ATTACK == false then
  3681. Apoc = true
  3682. Attack4()
  3683. Apoc = false
  3684. end
  3685. end
  3686.  
  3687. function KeyUp(Key)
  3688. if Key == "r" and FireballBarrage == true then
  3689. FireballBarrage = false
  3690. end
  3691. end
  3692.  
  3693. if Use_HopperBin == false then
  3694.  
  3695. Mouse.Button1Down:connect(function(NEWKEY)
  3696. MouseDown(NEWKEY)
  3697. end)
  3698. Mouse.Button1Up:connect(function(NEWKEY)
  3699. MouseUp(NEWKEY)
  3700. end)
  3701. Mouse.KeyDown:connect(function(NEWKEY)
  3702. KeyDown(NEWKEY)
  3703. end)
  3704. Mouse.KeyUp:connect(function(NEWKEY)
  3705. KeyUp(NEWKEY)
  3706. end)
  3707.  
  3708. elseif Use_HopperBin == true then
  3709. WEAPONTOOL.Parent = Backpack
  3710. script.Parent = WEAPONTOOL
  3711. function SelectTool(Mouse)
  3712. Mouse.Button1Down:connect(function()
  3713. MouseDown(Mouse)
  3714. end)
  3715. Mouse.Button1Up:connect(function()
  3716. MouseUp(Mouse)
  3717. end)
  3718. Mouse.KeyDown:connect(KeyDown)
  3719. Mouse.KeyUp:connect(KeyUp)
  3720. end
  3721. function DeselectTool(Mouse)
  3722. end
  3723. WEAPONTOOL.Selected:connect(SelectTool)
  3724. WEAPONTOOL.Deselected:connect(DeselectTool)
  3725. end
  3726.  
  3727. --//=================================\\
  3728. --\\=================================//
  3729.  
  3730.  
  3731.  
  3732.  
  3733.  
  3734. --//=================================\\
  3735. --|| WRAP THE WHOLE SCRIPT UP
  3736. --\\=================================//
  3737.  
  3738. while true do
  3739. Swait()
  3740. if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then
  3741. HitboxPart.Name = "NilHitbox"
  3742. else
  3743. HitboxPart.Name = "Hitbox"
  3744. end
  3745. if Enable_Gui == true then
  3746. UpdateGUI()
  3747. end
  3748. UpdateSkillsAndStuff()
  3749. if Walkspeed_Depends_On_Movement_Value == true then
  3750. if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then
  3751. Humanoid.WalkSpeed = 0
  3752. else
  3753. Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size
  3754. end
  3755. end
  3756. if Enable_Stun == true and StunValue.Value >= Max_Stun then
  3757. StunValue.Value = 0
  3758. Stun.Value = true
  3759. end
  3760. if Enable_Stagger_Hit == true then
  3761. if StaggerHit.Value == true and STAGGERHITANIM == false then
  3762. coroutine.resume(coroutine.create(function()
  3763. STAGGERHITANIM = true
  3764. while ATTACK == true do
  3765. Swait()
  3766. end
  3767. StaggerHitAnimation()
  3768. StaggerHit.Value = false
  3769. STAGGERHITANIM = false
  3770. end))
  3771. end
  3772. else
  3773. StaggerHit.Value = false
  3774. end
  3775. if Enable_Stagger == true then
  3776. if Stagger.Value == true and STAGGERANIM == false then
  3777. coroutine.resume(coroutine.create(function()
  3778. STAGGERANIM = true
  3779. while ATTACK == true do
  3780. Swait()
  3781. end
  3782. StaggerAnimation()
  3783. Stagger.Value = false
  3784. STAGGERANIM = false
  3785. end))
  3786. end
  3787. else
  3788. Stagger.Value = false
  3789. end
  3790. if Enable_Stun == true then
  3791. if Stun.Value == true and STUNANIM == false then
  3792. coroutine.resume(coroutine.create(function()
  3793. StunValue.Value = 0
  3794. STUNANIM = true
  3795. while ATTACK == true do
  3796. Swait()
  3797. end
  3798. StunAnimation()
  3799. Stun.Value = false
  3800. STUNANIM = false
  3801. end))
  3802. end
  3803. else
  3804. StunValue.Value = 0
  3805. Stun.Value = false
  3806. end
  3807. if DONUMBER >= .5 then
  3808. HANDIDLE = true
  3809. elseif DONUMBER <= 0 then
  3810. HANDIDLE = false
  3811. end
  3812. if HANDIDLE == false then
  3813. DONUMBER = DONUMBER + 0.003 / Animation_Speed
  3814. else
  3815. DONUMBER = DONUMBER - 0.003 / Animation_Speed
  3816. end
  3817. if ATTACK == false then
  3818. IDLENUMBER = IDLENUMBER + 1
  3819. else
  3820. IDLENUMBER = 0
  3821. end
  3822. if Enable_Stats == true then
  3823. for _, v in pairs (ChangeStat:GetChildren()) do
  3824. if v:FindFirstChild("Duration") ~= nil then
  3825. v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed
  3826. if v:FindFirstChild("Duration").Value <= 0 then
  3827. v.Parent = nil
  3828. end
  3829. end
  3830. if v.Name == "ChangeDefense" then
  3831. CHANGEDEFENSE = CHANGEDEFENSE + v.Value
  3832. elseif v.Name == "ChangeDamage" then
  3833. CHANGEDAMAGE = CHANGEDAMAGE + v.Value
  3834. elseif v.Name == "ChangeMovement" then
  3835. CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value
  3836. end
  3837. end
  3838. Defense.Value = 1 + (CHANGEDEFENSE)
  3839. if Defense.Value <= 0.01 then
  3840. Defense.Value = 0.01
  3841. end
  3842. Damage.Value = 1 + (CHANGEDAMAGE)
  3843. if Damage.Value <= 0 then
  3844. Damage.Value = 0
  3845. end
  3846. Movement.Value = 1 + (CHANGEMOVEMENT)
  3847. if Movement.Value <= 0 then
  3848. Movement.Value = 0
  3849. end
  3850. CHANGEDEFENSE = 0
  3851. CHANGEDAMAGE = 0
  3852. CHANGEMOVEMENT = 0
  3853. end
  3854. SINE = SINE + CHANGE
  3855. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3856. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3857. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  3858. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  3859. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3860. if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then
  3861. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3862. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3863. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3864. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3865. elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then
  3866. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3867. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3868. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3869. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3870. end
  3871. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3872. ANIM = "Jump"
  3873. if EQUIPPED == true and ATTACK == false then
  3874. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3875. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3876. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3877. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3878. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3879. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3880. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3881. end
  3882. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3883. ANIM = "Fall"
  3884. if EQUIPPED == true and ATTACK == false then
  3885. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3886. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3887. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3889. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3890. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  3891. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3892. end
  3893. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3894. ANIM = "Idle"
  3895. if EQUIPPED == true and ATTACK == false then
  3896. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  3897. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  3898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3900. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  3901. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  3902. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed)
  3903. end
  3904. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3905. ANIM = "Walk"
  3906. WALK = WALK + 1 / Animation_Speed
  3907. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  3908. WALK = 0
  3909. if WALKINGANIM == true then
  3910. WALKINGANIM = false
  3911. elseif WALKINGANIM == false then
  3912. WALKINGANIM = true
  3913. end
  3914. end
  3915. if EQUIPPED == true and ATTACK == false then
  3916. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * RIGHTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3920. RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3921. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3922. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3923. end
  3924. end
  3925.  
  3926. end
  3927.  
  3928. --//=================================\\
  3929. --\\=================================//
  3930.  
  3931.  
  3932.  
  3933.  
  3934.  
  3935. --//====================================================\\--
  3936. --|| END OF SCRIPT
  3937. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement