Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 112.05 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11.  
  12.  
  13. CV="Magenta"
  14. p = owner
  15. char = p.Character
  16. local txt = Instance.new("BillboardGui", char)
  17. txt.Adornee = char .Head
  18. txt.Name = "_status"
  19. txt.Size = UDim2.new(2, 0, 1.2, 0)
  20. txt.StudsOffset = Vector3.new(-9, 8, 0)
  21. local text = Instance.new("TextLabel", txt)
  22. text.Size = UDim2.new(10, 0, 7, 0)
  23. text.FontSize = "Size24"
  24. text.TextScaled = true
  25. text.TextTransparency = 0
  26. text.BackgroundTransparency = 1
  27. text.TextTransparency = 0
  28. text.TextStrokeTransparency = 0
  29. text.Font = "Bodoni"
  30. text.TextStrokeColor3 = Color3.new(0,0,0)
  31.  
  32. v=Instance.new("Part")
  33. v.Name = "ColorBrick"
  34. v.Parent=p.Character
  35. v.FormFactor="Symmetric"
  36. v.Anchored=true
  37. v.CanCollide=false
  38. v.BottomSurface="Smooth"
  39. v.TopSurface="Smooth"
  40. v.Size=Vector3.new(10,5,3)
  41. v.Transparency=1
  42. v.CFrame=char.Torso.CFrame
  43. v.BrickColor=BrickColor.new(CV)
  44. v.Transparency=1
  45. text.TextColor3 = Color3.new(170,0,170)
  46. v.Shape="Block"
  47. text.Text = "Sin"
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Player = owner
  56. PlayerGui = Player.PlayerGui
  57. Cam = workspace.CurrentCamera
  58. Backpack = Player.Backpack
  59. Character = Player.Character
  60. Humanoid = Character.Humanoid
  61. Mouse = Player:GetMouse()
  62. RootPart = Character["HumanoidRootPart"]
  63. Torso = Character["Torso"]
  64. Head = Character["Head"]
  65. RightArm = Character["Right Arm"]
  66. LeftArm = Character["Left Arm"]
  67. RightLeg = Character["Right Leg"]
  68. LeftLeg = Character["Left Leg"]
  69. RootJoint = RootPart["RootJoint"]
  70. Neck = Torso["Neck"]
  71. RightShoulder = Torso["Right Shoulder"]
  72. LeftShoulder = Torso["Left Shoulder"]
  73. RightHip = Torso["Right Hip"]
  74. LeftHip = Torso["Left Hip"]
  75. local sick = Instance.new("Sound",Character)
  76. sick.SoundId = "rbxassetid://165498643"
  77. sick.Looped = true
  78. sick.Pitch = 1
  79. sick.Volume = 3
  80. sick:Play()
  81. Humanoid.DisplayDistanceType = "None"
  82.  
  83. IT = Instance.new
  84. CF = CFrame.new
  85. VT = Vector3.new
  86. RAD = math.rad
  87. C3 = Color3.new
  88. UD2 = UDim2.new
  89. BRICKC = BrickColor.new
  90. ANGLES = CFrame.Angles
  91. EULER = CFrame.fromEulerAnglesXYZ
  92. COS = math.cos
  93. ACOS = math.acos
  94. SIN = math.sin
  95. ASIN = math.asin
  96. ABS = math.abs
  97. MRANDOM = math.random
  98. FLOOR = math.floor
  99.  
  100. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  101. local NEWMESH = IT(MESH)
  102. if MESH == "SpecialMesh" then
  103. NEWMESH.MeshType = MESHTYPE
  104. if MESHID ~= "nil" and MESHID ~= "" then
  105. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  106. end
  107. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  108. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  109. end
  110. end
  111. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  112. NEWMESH.Scale = SCALE
  113. NEWMESH.Parent = PARENT
  114. return NEWMESH
  115. end
  116. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  117. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  118. local RealPlayer = Player
  119. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  120.  
  121. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  122. local NEWPART = IT("Part")
  123. NEWPART.formFactor = FORMFACTOR
  124. NEWPART.Reflectance = REFLECTANCE
  125. NEWPART.Transparency = TRANSPARENCY
  126. NEWPART.CanCollide = false
  127. NEWPART.Anchored = true
  128. NEWPART.Locked = true
  129. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  130. NEWPART.Name = NAME
  131. NEWPART.Size = SIZE
  132. NEWPART.Position = Torso.Position
  133. NEWPART.Material = MATERIAL
  134. NEWPART:BreakJoints()
  135. NEWPART.Parent = PARENT
  136. return NEWPART
  137. end
  138.  
  139.  
  140. --//=================================\\
  141. --|| CUSTOMIZATION
  142. --\\=================================//
  143.  
  144. Class_Name = "Sin"
  145. Weapon_Name = "Add-ons"
  146.  
  147. Custom_Colors = {
  148. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  149. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  150.  
  151. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  152. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  153. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  154. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  155. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  156.  
  157. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  158. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  159. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  160. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  161. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  162. }
  163.  
  164.  
  165. Player_Size = 1.15 --Size of the player.
  166. Animation_Speed = 1.2
  167. Attack_Animation_Speed = 2.5
  168. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  169.  
  170. local Speed = 45
  171. local Effects2 = {}
  172.  
  173. --//=================================\\
  174. --|| END OF CUSTOMIZATION
  175. --\\=================================//
  176.  
  177. local function weldBetween(a, b)
  178. local weldd = Instance.new("ManualWeld")
  179. weldd.Part0 = a
  180. weldd.Part1 = b
  181. weldd.C0 = CFrame.new()
  182. weldd.C1 = b.CFrame:inverse() * a.CFrame
  183. weldd.Parent = a
  184. return weldd
  185. end
  186.  
  187. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  188. local acs = Instance.new("Part")
  189. acs.CanCollide = false
  190. acs.Anchored = false
  191. acs.Size = Vector3.new(0,0,0)
  192. acs.CFrame = attachmentpart.CFrame
  193. acs.Parent = Character
  194. acs.BrickColor = color
  195. local meshs = Instance.new("SpecialMesh")
  196. meshs.MeshId = mesh
  197. meshs.TextureId = texture
  198. meshs.Parent = acs
  199. meshs.Scale = scale
  200. meshs.Offset = offset
  201. weldBetween(attachmentpart,acs)
  202. end
  203.  
  204. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  205. if TYPE == "Gem" then
  206. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  207. acs.Anchored = false
  208. acs.CanCollide = false
  209. acs.CFrame = PART.CFrame
  210. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  211. weldBetween(PART,acs)
  212. elseif TYPE == "Skull" then
  213. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  214. acs.Anchored = false
  215. acs.CanCollide = false
  216. acs.CFrame = PART.CFrame
  217. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  218. weldBetween(PART,acs)
  219. elseif TYPE == "Eye" then
  220. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  221. acs.Anchored = false
  222. acs.CanCollide = false
  223. acs.CFrame = PART.CFrame
  224. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  225. weldBetween(PART,acs)
  226. end
  227. end
  228.  
  229. --//=================================\\
  230. --|| USEFUL VALUES
  231. --\\=================================//
  232.  
  233. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  234. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  235. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  236. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  237. local CO1 = 0
  238. local CO2 = 0
  239. local CO3 = 0
  240. local CO4 = 0
  241. local CHANGEDEFENSE = 0
  242. local CHANGEDAMAGE = 1e999
  243. local CHANGEMOVEMENT = 0
  244. local ANIM = "Idle"
  245. local ATTACK = false
  246. local EQUIPPED = false
  247. local HOLD = false
  248. local COMBO = 1
  249. local LASTPOINT = nil
  250. local BLCF = nil
  251. local SCFR = nil
  252. local STAGGERHITANIM = false
  253. local STAGGERANIM = false
  254. local STUNANIM = false
  255. local CRITCHANCENUMBER = 1e999
  256. local IDLENUMBER = 0
  257. local DONUMBER = 0
  258. local HANDIDLE = false
  259. local SINE = 0
  260. local CHANGE = 2 / Animation_Speed
  261. local WALKINGANIM = false
  262. local WALK = 0
  263. local DISABLEJUMPING = false
  264. local HASBEENBLOCKED = false
  265. local STUNDELAYNUMBER = 0
  266. local MANADELAYNUMBER = 0
  267. local HASJUMPED = false
  268. local punch = 1
  269. local KEYHOLD = false
  270. local SECONDARYMANADELAYNUMBER = 0
  271. local ROBLOXIDLEANIMATION = IT("Animation")
  272. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  273. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  274. --ROBLOXIDLEANIMATION.Parent = Humanoid
  275. local WEAPONGUI = IT("ScreenGui", nil)
  276. WEAPONGUI.Name = "Weapon GUI"
  277. local WEAPONTOOL = IT("HopperBin", nil)
  278. WEAPONTOOL.Name = Weapon_Name
  279. local Weapon = IT("Model")
  280. Weapon.Name = Weapon_Name
  281. local Effects = IT("Folder", Weapon)
  282. Effects.Name = "Effects"
  283. local ANIMATOR = Humanoid.Animator
  284. local ANIMATE = Character.Animate
  285. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  286. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  287. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  288. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  289. local ATTACKSOUNDS = {"159972643","159972627"}
  290. local UNANCHOR = true
  291.  
  292. --//=================================\\
  293. --\\=================================//
  294.  
  295. --//=================================\\
  296. --|| STATS
  297. --\\=================================//
  298.  
  299. if Character:FindFirstChild("Stats") ~= nil then
  300. Character:FindFirstChild("Stats").Parent = nil
  301. end
  302.  
  303. local Stats = IT("Folder", nil)
  304. Stats.Name = "Stats"
  305. local ChangeStat = IT("Folder", Stats)
  306. ChangeStat.Name = "ChangeStat"
  307. local Defense = IT("NumberValue", Stats)
  308. Defense.Name = "Defense"
  309. Defense.Value = 1e999
  310. local Movement = IT("NumberValue", Stats)
  311. Movement.Name = "Movement"
  312. Movement.Value = 1
  313. local Damage = IT("NumberValue", Stats)
  314. Damage.Name = "Damage"
  315. Damage.Value = 1e999
  316. local Mana = IT("NumberValue", Stats)
  317. Mana.Name = "Mana"
  318. Mana.Value = 0
  319. local SecondaryMana = IT("NumberValue", Stats)
  320. SecondaryMana.Name = "SecondaryMana"
  321. SecondaryMana.Value = 0
  322. local CanCrit = IT("BoolValue", Stats)
  323. CanCrit.Name = "CanCrit"
  324. CanCrit.Value = false
  325. local CritChance = IT("NumberValue", Stats)
  326. CritChance.Name = "CritChance"
  327. CritChance.Value = 20
  328. local CanPenetrateArmor = IT("BoolValue", Stats)
  329. CanPenetrateArmor.Name = "CanPenetrateArmor"
  330. CanPenetrateArmor.Value = false
  331. local AntiTeamKill = IT("BoolValue", Stats)
  332. AntiTeamKill.Name = "AntiTeamKill"
  333. AntiTeamKill.Value = false
  334. local Rooted = IT("BoolValue", Stats)
  335. Rooted.Name = "Rooted"
  336. Rooted.Value = false
  337. local Block = IT("BoolValue", Stats)
  338. Block.Name = "Block"
  339. Block.Value = false
  340. local RecentEnemy = IT("ObjectValue", Stats)
  341. RecentEnemy.Name = "RecentEnemy"
  342. RecentEnemy.Value = nil
  343. local StaggerHit = IT("BoolValue", Stats)
  344. StaggerHit.Name = "StaggerHit"
  345. StaggerHit.Value = false
  346. local Stagger = IT("BoolValue", Stats)
  347. Stagger.Name = "Stagger"
  348. Stagger.Value = false
  349. local Stun = IT("BoolValue", Stats)
  350. Stun.Name = "Stun"
  351. Stun.Value = false
  352. local StunValue = IT("NumberValue", Stats)
  353. StunValue.Name = "StunValue"
  354. StunValue.Value = 0
  355.  
  356.  
  357. --//=================================\\
  358. --\\=================================//
  359.  
  360.  
  361.  
  362.  
  363.  
  364. --//=================================\\
  365. --|| DEBUFFS / BUFFS
  366. --\\=================================//
  367.  
  368. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  369. DEFENSECHANGE1.Name = "ChangeDefense"
  370. DEFENSECHANGE1.Value = 0
  371.  
  372. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  373. MOVEMENTCHANGE1.Name = "ChangeMovement"
  374. MOVEMENTCHANGE1.Value = 0
  375.  
  376. --//=================================\\
  377. --\\=================================//
  378.  
  379.  
  380.  
  381.  
  382.  
  383. --//=================================\\
  384. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  385. --\\=================================//
  386.  
  387. ArtificialHB = Instance.new("BindableEvent", script)
  388. ArtificialHB.Name = "ArtificialHB"
  389.  
  390. script:WaitForChild("ArtificialHB")
  391.  
  392. frame = Frame_Speed
  393. tf = 0
  394. allowframeloss = false
  395. tossremainder = false
  396. lastframe = tick()
  397. script.ArtificialHB:Fire()
  398.  
  399. game:GetService("RunService").Heartbeat:connect(function(s, p)
  400. tf = tf + s
  401. if tf >= frame then
  402. if allowframeloss then
  403. script.ArtificialHB:Fire()
  404. lastframe = tick()
  405. else
  406. for i = 1, math.floor(tf / frame) do
  407. script.ArtificialHB:Fire()
  408. end
  409. lastframe = tick()
  410. end
  411. if tossremainder then
  412. tf = 0
  413. else
  414. tf = tf - frame * math.floor(tf / frame)
  415. end
  416. end
  417. end)
  418.  
  419. --//=================================\\
  420. --\\=================================//
  421.  
  422.  
  423.  
  424.  
  425.  
  426. --//=================================\\
  427. --|| SOME FUNCTIONS
  428. --\\=================================//
  429.  
  430. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  431. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  432. end
  433.  
  434. function PositiveAngle(NUMBER)
  435. if NUMBER >= 0 then
  436. NUMBER = 0
  437. end
  438. return NUMBER
  439. end
  440.  
  441. function NegativeAngle(NUMBER)
  442. if NUMBER <= 0 then
  443. NUMBER = 0
  444. end
  445. return NUMBER
  446. end
  447.  
  448. function Swait(NUMBER)
  449. if NUMBER == 0 or NUMBER == nil then
  450. ArtificialHB.Event:wait()
  451. else
  452. for i = 1, NUMBER do
  453. ArtificialHB.Event:wait()
  454. end
  455. end
  456. end
  457.  
  458. function QuaternionFromCFrame(cf)
  459. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  460. local trace = m00 + m11 + m22
  461. if trace > 0 then
  462. local s = math.sqrt(1 + trace)
  463. local recip = 0.5 / s
  464. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  465. else
  466. local i = 0
  467. if m11 > m00 then
  468. i = 1
  469. end
  470. if m22 > (i == 0 and m00 or m11) then
  471. i = 2
  472. end
  473. if i == 0 then
  474. local s = math.sqrt(m00 - m11 - m22 + 1)
  475. local recip = 0.5 / s
  476. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  477. elseif i == 1 then
  478. local s = math.sqrt(m11 - m22 - m00 + 1)
  479. local recip = 0.5 / s
  480. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  481. elseif i == 2 then
  482. local s = math.sqrt(m22 - m00 - m11 + 1)
  483. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  484. end
  485. end
  486. end
  487.  
  488. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  489. local xs, ys, zs = x + x, y + y, z + z
  490. local wx, wy, wz = w * xs, w * ys, w * zs
  491. local xx = x * xs
  492. local xy = x * ys
  493. local xz = x * zs
  494. local yy = y * ys
  495. local yz = y * zs
  496. local zz = z * zs
  497. 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))
  498. end
  499.  
  500. function QuaternionSlerp(a, b, t)
  501. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  502. local startInterp, finishInterp;
  503. if cosTheta >= 0.0001 then
  504. if (1 - cosTheta) > 0.0001 then
  505. local theta = ACOS(cosTheta)
  506. local invSinTheta = 1 / SIN(theta)
  507. startInterp = SIN((1 - t) * theta) * invSinTheta
  508. finishInterp = SIN(t * theta) * invSinTheta
  509. else
  510. startInterp = 1 - t
  511. finishInterp = t
  512. end
  513. else
  514. if (1 + cosTheta) > 0.0001 then
  515. local theta = ACOS(-cosTheta)
  516. local invSinTheta = 1 / SIN(theta)
  517. startInterp = SIN((t - 1) * theta) * invSinTheta
  518. finishInterp = SIN(t * theta) * invSinTheta
  519. else
  520. startInterp = t - 1
  521. finishInterp = t
  522. end
  523. end
  524. 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
  525. end
  526.  
  527. function Clerp(a, b, t)
  528. local qa = {QuaternionFromCFrame(a)}
  529. local qb = {QuaternionFromCFrame(b)}
  530. local ax, ay, az = a.x, a.y, a.z
  531. local bx, by, bz = b.x, b.y, b.z
  532. local _t = 1 - t
  533. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  534. end
  535.  
  536. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  537. local frame = IT("Frame")
  538. frame.BackgroundTransparency = TRANSPARENCY
  539. frame.BorderSizePixel = BORDERSIZEPIXEL
  540. frame.Position = POSITION
  541. frame.Size = SIZE
  542. frame.BackgroundColor3 = COLOR
  543. frame.BorderColor3 = BORDERCOLOR
  544. frame.Name = NAME
  545. frame.Parent = PARENT
  546. return frame
  547. end
  548.  
  549. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  550. local label = IT("TextLabel")
  551. label.BackgroundTransparency = 1
  552. label.Size = UD2(1, 0, 1, 0)
  553. label.Position = UD2(0, 0, 0, 0)
  554. label.TextColor3 = C3(255, 255, 255)
  555. label.TextStrokeTransparency = STROKETRANSPARENCY
  556. label.TextTransparency = TRANSPARENCY
  557. label.FontSize = TEXTFONTSIZE
  558. label.Font = TEXTFONT
  559. label.BorderSizePixel = BORDERSIZEPIXEL
  560. label.TextScaled = true
  561. label.Text = TEXT
  562. label.Name = NAME
  563. label.Parent = PARENT
  564. return label
  565. end
  566.  
  567. function NoOutlines(PART)
  568. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  569. end
  570.  
  571.  
  572. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  573. local NEWWELD = IT(TYPE)
  574. NEWWELD.Part0 = PART0
  575. NEWWELD.Part1 = PART1
  576. NEWWELD.C0 = C0
  577. NEWWELD.C1 = C1
  578. NEWWELD.Parent = PARENT
  579. return NEWWELD
  580. end
  581.  
  582. function CreateSound(ID, PARENT, VOLUME, PITCH)
  583. local NEWSOUND = IT("Sound", PARENT)
  584. NEWSOUND.Volume = VOLUME
  585. NEWSOUND.Pitch = PITCH
  586. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  587. coroutine.resume(coroutine.create(function()
  588. Swait()
  589. NEWSOUND:play()
  590. repeat Swait() until NEWSOUND.Playing == false
  591. NEWSOUND:remove()
  592. end))
  593. return NEWSOUND
  594. end
  595.  
  596. function CFrameFromTopBack(at, top, back)
  597. local right = top:Cross(back)
  598. 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)
  599. end
  600.  
  601. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  602. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  603. local CURRENTPOSITION = POSITION1
  604. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  605. coroutine.resume(coroutine.create(function()
  606. for i = 1, MULTIPLIERTIME do
  607. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  608. LIGHTNINGPART.Anchored = true
  609. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  610. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  611. if MULTIPLIERTIME == i then
  612. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  613. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  614. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  615. else
  616. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  617. end
  618. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  619. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  620. coroutine.resume(coroutine.create(function()
  621. while LIGHTNINGPART.Transparency ~= 1 do
  622. --local StartTransparency = tra
  623. for i=0, 1, LASTINGTIME do
  624. Swait()
  625. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  626. end
  627. end
  628. end))
  629. Swait(LIGHTNINGDELAY / Animation_Speed)
  630. end
  631. end))
  632. end
  633.  
  634. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  635. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  636. EFFECTPART.Anchored = true
  637. EFFECTPART.CFrame = CFRAME
  638. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  639. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  640. coroutine.resume(coroutine.create(function(PART, MESH)
  641. for i = 0, 1, delay do
  642. Swait()
  643. PART.CFrame = PART.CFrame * ROTATION
  644. PART.Transparency = i
  645. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  646. end
  647. PART.Parent = nil
  648. end), EFFECTPART, EFFECTMESH)
  649. end
  650.  
  651. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  652. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  653. EFFECTPART.Anchored = true
  654. EFFECTPART.CFrame = CFRAME
  655. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  656. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  657. coroutine.resume(coroutine.create(function(PART, MESH)
  658. for i = 0, 1, delay do
  659. Swait()
  660. PART.CFrame = PART.CFrame * ROTATION
  661. PART.Transparency = i
  662. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  663. end
  664. PART.Parent = nil
  665. end), EFFECTPART, EFFECTMESH)
  666. end
  667.  
  668. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  669. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  670. EFFECTPART.Anchored = true
  671. EFFECTPART.CFrame = CFRAME
  672. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  673. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  674. coroutine.resume(coroutine.create(function(PART, MESH)
  675. for i = 0, 1, delay do
  676. Swait()
  677. PART.CFrame = PART.CFrame * ROTATION
  678. PART.Transparency = i
  679. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  680. end
  681. PART.Parent = nil
  682. end), EFFECTPART, EFFECTMESH)
  683. end
  684.  
  685. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  686. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  687. EFFECTPART.Anchored = true
  688. EFFECTPART.CFrame = CFRAME
  689. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  690. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  691. coroutine.resume(coroutine.create(function(PART, MESH)
  692. for i = 0, 1, delay do
  693. Swait()
  694. PART.CFrame = PART.CFrame * ROTATION
  695. PART.Transparency = i
  696. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  697. end
  698. PART.Parent = nil
  699. end), EFFECTPART, EFFECTMESH)
  700. end
  701.  
  702. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  703. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  704. EFFECTPART.Anchored = true
  705. EFFECTPART.CFrame = CFRAME
  706. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  707. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  708. coroutine.resume(coroutine.create(function(PART, MESH)
  709. for i = 0, 1, delay do
  710. Swait()
  711. PART.CFrame = PART.CFrame * ROTATION
  712. PART.Transparency = i
  713. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  714. end
  715. PART.Parent = nil
  716. end), EFFECTPART, EFFECTMESH)
  717. end
  718.  
  719. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  720. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  721. EFFECTPART.Anchored = true
  722. EFFECTPART.CFrame = CFRAME
  723. 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))
  724. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  725. coroutine.resume(coroutine.create(function(PART, MESH)
  726. for i = 0, 1, delay do
  727. Swait()
  728. PART.CFrame = PART.CFrame * ROTATION
  729. PART.Transparency = i
  730. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  731. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  732. end
  733. PART.Parent = nil
  734. end), EFFECTPART, EFFECTMESH)
  735. end
  736.  
  737. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  738. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  739. EFFECTPART.Anchored = true
  740. EFFECTPART.CFrame = CFRAME
  741. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  742. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  743. coroutine.resume(coroutine.create(function(PART, MESH)
  744. for i = 0, 1, delay do
  745. Swait()
  746. PART.CFrame = PART.CFrame * ROTATION
  747. PART.Transparency = i
  748. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  749. end
  750. PART.Parent = nil
  751. end), EFFECTPART, EFFECTMESH)
  752. end
  753.  
  754. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  755. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  756. EFFECTPART.Anchored = true
  757. EFFECTPART.CFrame = CFRAME
  758. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  759. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  760. coroutine.resume(coroutine.create(function(PART, MESH)
  761. for i = 0, 1, delay do
  762. Swait()
  763. PART.CFrame = PART.CFrame * ROTATION
  764. PART.Transparency = i
  765. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  766. end
  767. PART.Parent = nil
  768. end), EFFECTPART, EFFECTMESH)
  769. end
  770.  
  771. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  772. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  773. EFFECTPART.Anchored = true
  774. EFFECTPART.CFrame = CFRAME
  775. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  776. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  777. coroutine.resume(coroutine.create(function(PART, MESH)
  778. for i = 0, 1, delay do
  779. Swait()
  780. PART.CFrame = PART.CFrame * ROTATION
  781. PART.Transparency = i
  782. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  783. end
  784. PART.Parent = nil
  785. end), EFFECTPART, EFFECTMESH)
  786. end
  787.  
  788. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  789. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  790. EFFECTPART.Anchored = true
  791. EFFECTPART.CFrame = CFRAME
  792. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  793. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  794. coroutine.resume(coroutine.create(function(PART, MESH)
  795. for i = 0, 1, delay do
  796. Swait()
  797. PART.CFrame = PART.CFrame * ROTATION
  798. PART.Transparency = i
  799. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  800. end
  801. PART.Parent = nil
  802. end), EFFECTPART, EFFECTMESH)
  803. end
  804.  
  805. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  806. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  807. EFFECTPART.Anchored = true
  808. EFFECTPART.CFrame = CFRAME
  809. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  810. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  811. coroutine.resume(coroutine.create(function(PART, MESH)
  812. for i = 0, 1, delay do
  813. Swait()
  814. PART.CFrame = PART.CFrame * ROTATION
  815. PART.Transparency = i
  816. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  817. end
  818. PART.Parent = nil
  819. end), EFFECTPART, EFFECTMESH)
  820. end
  821.  
  822. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  823. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  824. EFFECTPART.Anchored = true
  825. EFFECTPART.CFrame = CFRAME
  826. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  827. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  828. coroutine.resume(coroutine.create(function(PART, MESH)
  829. for i = 0, 1, delay do
  830. Swait()
  831. PART.CFrame = PART.CFrame * ROTATION
  832. PART.Transparency = i
  833. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  834. end
  835. PART.Parent = nil
  836. end), EFFECTPART, EFFECTMESH)
  837. end
  838.  
  839. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  840. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  841. EFFECTPART.Anchored = true
  842. EFFECTPART.CFrame = CFRAME
  843. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  844. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  845. coroutine.resume(coroutine.create(function(PART, MESH)
  846. for i = 0, 1, delay do
  847. Swait()
  848. PART.CFrame = PART.CFrame * ROTATION
  849. PART.Transparency = i
  850. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  851. end
  852. PART.Parent = nil
  853. end), EFFECTPART, EFFECTMESH)
  854. end
  855.  
  856. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  857. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  858. EFFECTPART.Anchored = true
  859. EFFECTPART.CFrame = CFRAME
  860. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  861. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  862. local XVALUE = MRANDOM()
  863. local YVALUE = MRANDOM()
  864. local ZVALUE = MRANDOM()
  865. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  866. for i = 0, 1, delay do
  867. Swait()
  868. PART.CFrame = PART.CFrame * ROTATION
  869. PART.Transparency = i
  870. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  871. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  872. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  873. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  874. end
  875. PART.Parent = nil
  876. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  877. end
  878.  
  879. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  880. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  881. if MAGNITUDECFRAME > (1 / 100) then
  882. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  883. EFFECTPART.Anchored = true
  884. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  885. local THEMESHTYPE = "BlockMesh"
  886. if MESHTYPE == "Cylinder" then
  887. THEMESHTYPE = "CylinderMesh"
  888. end
  889. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  890. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  891. coroutine.resume(coroutine.create(function(PART, MESH)
  892. for i = 0, 1, delay do
  893. Swait()
  894. PART.CFrame = PART.CFrame * ROTATION
  895. PART.Transparency = i
  896. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  897. end
  898. PART.Parent = nil
  899. end), EFFECTPART, EFFECTMESH)
  900. end
  901. end
  902.  
  903. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  904. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  905. EFFECTPART.Anchored = true
  906. EFFECTPART.CFrame = CFRAME
  907. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  908. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  909. local THELASTPOINT = CFRAME
  910. coroutine.resume(coroutine.create(function(PART)
  911. for i = 1, DURATION do
  912. Swait()
  913. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  914. 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)
  915. THELASTPOINT = PART.CFrame
  916. end
  917. PART.Parent = nil
  918. end), EFFECTPART)
  919. end
  920.  
  921. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset)
  922. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  923. local mesh = IT("SpecialMesh",wave)
  924. mesh.MeshType = "FileMesh"
  925. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  926. mesh.Scale = VT(size,size,size)
  927. mesh.Offset = VT(0,0,-size/8)
  928. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  929. coroutine.resume(coroutine.create(function(PART)
  930. for i = 1, waitt do
  931. Swait()
  932. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  933. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  934. if doesrotate == true then
  935. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  936. end
  937. wave.Transparency = wave.Transparency + (0.5/waitt)
  938. if wave.Transparency > 0.99 then
  939. wave:remove()
  940. end
  941. end
  942. end))
  943. end
  944.  
  945. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2)
  946. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  947. local mesh = IT("SpecialMesh",wave)
  948. mesh.MeshType = "FileMesh"
  949. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  950. mesh.Scale = VT(size,size,size)
  951. mesh.Offset = VT(0,0,0)
  952. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  953. coroutine.resume(coroutine.create(function(PART)
  954. for i = 1, waitt do
  955. Swait()
  956. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  957. if doesrotate == true then
  958. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  959. end
  960. wave.Transparency = wave.Transparency + (0.5/waitt)
  961. if wave.Transparency > 0.99 then
  962. wave:remove()
  963. end
  964. end
  965. end))
  966. end
  967.  
  968. function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset)
  969. local sinkhole = IT("Part",Effects)
  970. sinkhole.Size = VT(size,0,size)
  971. sinkhole.CFrame = cframe * CF(0,offset,0)
  972. sinkhole.Material = "Neon"
  973. sinkhole.Color = C3(170, 0, 170)
  974. sinkhole.Anchored = true
  975. sinkhole.CanCollide = false
  976. sinkhole.Transparency = 1
  977. local decal = IT("Decal",sinkhole)
  978. decal.Face = "Top"
  979. decal.Texture = "http://www.roblox.com/asset/?id=177470914"
  980. coroutine.resume(coroutine.create(function(PART)
  981. for i = 1, waitt do
  982. Swait()
  983. if doesrotate == true then
  984. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  985. end
  986. if i > waitt-11 then
  987. decal.Transparency = decal.Transparency + 0.1
  988. end
  989. end
  990. sinkhole:remove()
  991. end))
  992. return sinkhole
  993. end
  994.  
  995. --local list={}
  996. function Triangle(Color, Material, a, b, c, delay)
  997. local edge1 = (c - a):Dot((b - a).unit)
  998. local edge2 = (a - b):Dot((c - b).unit)
  999. local edge3 = (b - c):Dot((a - c).unit)
  1000. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1001. a, b, c=a, b, c
  1002. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1003. a, b, c=b, c, a
  1004. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1005. a, b, c=c, a, b
  1006. else
  1007. assert(false, "unreachable")
  1008. end
  1009. local len1 = (c - a):Dot((b - a).unit)
  1010. local len2 = (b - a).magnitude - len1
  1011. local width = (a + (b - a).unit * len1 - c).magnitude
  1012. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1013. if len1 > 1 / 100 then
  1014. local sz = VT(0.2, width, len1)
  1015. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1016. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1017. w1.Anchored = true
  1018. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1019. coroutine.resume(coroutine.create(function()
  1020. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1021. Swait()
  1022. w1.Transparency = i
  1023. end
  1024. w1.Parent = nil
  1025. end))
  1026. game:GetService("Debris"):AddItem(w1, 10)
  1027. --table.insert(list, w1)
  1028. end
  1029. if len2 > 1 / 100 then
  1030. local sz = VT(0.2, width, len2)
  1031. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1032. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1033. w2.Anchored = true
  1034. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1035. coroutine.resume(coroutine.create(function()
  1036. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1037. Swait()
  1038. w2.Transparency = i
  1039. end
  1040. w2.Parent = nil
  1041. end))
  1042. game:GetService("Debris"):AddItem(w2, 10)
  1043. --table.insert(list, w2)
  1044. end
  1045. --return unpack(list)
  1046. end
  1047.  
  1048. --[[Usage:
  1049. local Pos = Part
  1050. local Offset = Part.CFrame * CF(0, 0, 0)
  1051. local Color = "Institutional white"
  1052. local Material = "Neon"
  1053. local TheDelay = 0.01
  1054. local Height = 4
  1055. BLCF = Offset
  1056. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1057. 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)
  1058. if a then game:GetService("Debris"):AddItem(a, 1) end
  1059. if b then game:GetService("Debris"):AddItem(b, 1) end
  1060. 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)
  1061. if a then game:GetService("Debris"):AddItem(a, 1) end
  1062. if b then game:GetService("Debris"):AddItem(b, 1) end
  1063. SCFR = BLCF
  1064. elseif not SCFR then
  1065. SCFR = BLCF
  1066. end
  1067. --
  1068. BLCF = nil
  1069. SCFR = nil
  1070. --]]
  1071.  
  1072. --//=================================\\
  1073. --\\=================================//
  1074.  
  1075. if Player_Size ~= 1 then
  1076. RootPart.Size = RootPart.Size * Player_Size
  1077. Torso.Size = Torso.Size * Player_Size
  1078. Head.Size = Head.Size * Player_Size
  1079. RightArm.Size = RightArm.Size * Player_Size
  1080. LeftArm.Size = LeftArm.Size * Player_Size
  1081. RightLeg.Size = RightLeg.Size * Player_Size
  1082. LeftLeg.Size = LeftLeg.Size * Player_Size
  1083. RootJoint.Parent = RootPart
  1084. Neck.Parent = Torso
  1085. RightShoulder.Parent = Torso
  1086. LeftShoulder.Parent = Torso
  1087. RightHip.Parent = Torso
  1088. LeftHip.Parent = Torso
  1089.  
  1090. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1091. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1092. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1093. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1094. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1095. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1096. --if Disable_Moving_Arms == false then
  1097. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1098. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1099. --else
  1100. --RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1101. --LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1102. --end
  1103. 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))
  1104. 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))
  1105. 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))
  1106. 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))
  1107. end
  1108.  
  1109. --//=================================\\
  1110. --|| WEAPON CREATION
  1111. --\\=================================//
  1112.  
  1113. if Player_Size ~= 1 then
  1114. for _, v in pairs (Weapon:GetChildren()) do
  1115. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1116. local p1 = v.Part1
  1117. v.Part1 = nil
  1118. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1119. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1120. v.Part1 = p1
  1121. elseif v.ClassName == "Part" then
  1122. for _, b in pairs (v:GetChildren()) do
  1123. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1124. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1125. end
  1126. end
  1127. end
  1128. end
  1129. end
  1130.  
  1131. createaccessory(Head,"http://www.roblox.com/asset/?id=210118899","",VT(1, 1, 1),VT(0, 0.25, 0.1),BrickColor.new"Really black")
  1132.  
  1133.  
  1134. local AT1 = IT("Attachment",RightArm)
  1135. AT1.Position = VT(0,-1.15,0)
  1136. local AT2 = IT("Attachment",LeftArm)
  1137. AT2.Position = VT(0,-1.15,0)
  1138.  
  1139. Humanoid.HealthChanged:connect(function()
  1140. if Humanoid.Health ~= "inf" then
  1141. Humanoid.Health = "inf"
  1142. end
  1143. if Humanoid.MaxHealth ~= "inf" then
  1144. Humanoid.MaxHealth = "inf"
  1145. end
  1146. end)
  1147.  
  1148. local EyeSizes={
  1149. NumberSequenceKeypoint.new(0,1.2,0),
  1150. NumberSequenceKeypoint.new(1,0,0)
  1151. }
  1152. local EyeTrans={
  1153. NumberSequenceKeypoint.new(0,0.8,0),
  1154. NumberSequenceKeypoint.new(1,1,0)
  1155. }
  1156. local PE=Instance.new("ParticleEmitter")
  1157. PE.LightEmission=0
  1158. PE.Size=NumberSequence.new(EyeSizes)
  1159. PE.Transparency=NumberSequence.new(EyeTrans)
  1160. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  1161. PE.Rotation=NumberRange.new(0,360)
  1162. PE.Rate=999
  1163. PE.Acceleration = Vector3.new(0,0,0)
  1164. PE.Drag = 5
  1165. PE.LockedToPart = false
  1166. PE.Speed = NumberRange.new(0,0,0)
  1167. PE.Rotation = NumberRange.new(-100, 100)
  1168. PE.RotSpeed = NumberRange.new(-100, 100)
  1169. PE.Texture="http://www.roblox.com/asset/?id=669492379"
  1170. PE.Color = ColorSequence.new(Color3.new(170, 0, 170))
  1171. PE.ZOffset = 0
  1172. PE.Name = "Reign"
  1173. PE.Enabled = false
  1174. PE.VelocitySpread = 10000
  1175.  
  1176. function particles(art)
  1177. local o = PE:Clone()
  1178. o.Parent = art
  1179. o.Enabled = true
  1180. return o
  1181. end
  1182.  
  1183. particles(AT1)
  1184. particles(AT2)
  1185.  
  1186. createbodypart("Gem","Magenta",Torso,VT(0, 0.2, 0.5),VT(0.6,1.5,0.5))
  1187. createbodypart("Gem","Magenta",Torso,VT(0, -0.2, 0.5),VT(0.2,1,0.5))
  1188. createbodypart("Gem","Magenta",Torso,VT(-0.3, 0.5, 0.5),VT(0.5,0.8,0.2))
  1189. createbodypart("Gem","Magenta",Torso,VT(0.3, 0.5, 0.5),VT(0.5,0.8,0.2))
  1190.  
  1191. ---ribs---
  1192. createbodypart("Gem","Magenta",Torso,VT(0.6, 0.9, -0.57),VT(0.8,0.2,0.2))
  1193. createbodypart("Gem","Magenta",Torso,VT(-0.6, 0.9, -0.57),VT(0.8,0.2,0.2))
  1194.  
  1195. createbodypart("Gem","Magenta",Torso,VT(0.7, 0.5, -0.57),VT(0.6,0.2,0.2))
  1196. createbodypart("Gem","Magenta",Torso,VT(-0.7, 0.5, -0.57),VT(0.6,0.2,0.2))
  1197.  
  1198. createbodypart("Gem","Magenta",Torso,VT(0.8, 0.2, -0.57),VT(0.4,0.2,0.2))
  1199. createbodypart("Gem","Magenta",Torso,VT(-0.8, 0.2, -0.57),VT(0.4,0.2,0.2))
  1200. ----------
  1201.  
  1202.  
  1203.  
  1204. for _, c in pairs(Weapon:GetChildren()) do
  1205. if c.ClassName == "Part" then
  1206. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1207. end
  1208. end
  1209.  
  1210. Weapon.Parent = Character
  1211.  
  1212. Humanoid.Died:connect(function()
  1213. q = workspace:GetChildren()
  1214. CreatePentagram(1500,true,-0.1,150,CF(RootPart.Position),-3)
  1215. Head.Parent = nil
  1216. Head = nil
  1217. for i = 1, #q do
  1218. local child = q[i]
  1219. if child.ClassName == "Model" and child:FindFirstChild("Humanoid") then
  1220. child:BreakJoints()
  1221. end
  1222. end
  1223. local taunt = CreateSound("135009414", workspace, 10, 1)
  1224. local effect = IT("PitchShiftSoundEffect",taunt)
  1225. effect.Octave = 0.700
  1226. ATTACK = true
  1227. end)
  1228.  
  1229. print(Class_Name.." loaded.")
  1230.  
  1231. --//=================================\\
  1232. --\\=================================//
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238. --//=================================\\
  1239. --|| DAMAGE FUNCTIONS
  1240. --\\=================================//
  1241.  
  1242. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1243. local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Effect", VT())
  1244. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1245. local BODYGYRO = IT("BodyGyro", STATPART)
  1246. local BODYPOSITION = IT("BodyPosition", STATPART)
  1247. BODYPOSITION.P = 2000
  1248. BODYPOSITION.D = 100
  1249. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1250. if LABELTYPE == "Normal" then
  1251. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1252. elseif LABELTYPE == "Debuff" then
  1253. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1254. elseif LABELTYPE == "Interruption" then
  1255. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1256. end
  1257. game:GetService("Debris"):AddItem(STATPART ,5)
  1258. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1259. BILLBOARDGUI.Adornee = STATPART
  1260. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1261. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1262. BILLBOARDGUI.AlwaysOnTop = true
  1263. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1264. TEXTLABEL.BackgroundTransparency = 1
  1265. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1266. TEXTLABEL.Text = TEXT
  1267. TEXTLABEL.Font = "Antique"
  1268. TEXTLABEL.FontSize="Size42"
  1269. TEXTLABEL.TextColor3 = COLOR
  1270. TEXTLABEL.TextStrokeTransparency = 1
  1271. TEXTLABEL.TextScaled = true
  1272. TEXTLABEL.TextWrapped = true
  1273. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1274. wait(0.2)
  1275. for i=1, 5 do
  1276. wait()
  1277. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1278. end
  1279. wait(1.2)
  1280. for i=1, 5 do
  1281. wait()
  1282. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1283. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1284. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1285. end
  1286. THEPART.Parent = nil
  1287. end),STATPART, BODYPOSITION, TEXTLABEL)
  1288. end
  1289.  
  1290.  
  1291. --//=================================\\
  1292. --|| DAMAGING
  1293. --\\=================================//
  1294.  
  1295.  
  1296.  
  1297. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1298. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1299. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1300. local dmg = math.random(min,max)
  1301. if humanoid.Health > 0 then
  1302. if beserk == true then
  1303. humanoid.Health = 0
  1304. else
  1305. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1306. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1307. if math.random(1,100) < critrate+1 then
  1308. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1309. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(1, 0, 0))
  1310. else
  1311. humanoid.Health = humanoid.Health - dmg
  1312. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1313. end
  1314. local defence = Instance.new("BoolValue",hit.Parent)
  1315. defence.Name = ("HitBy"..Player.Name)
  1316. game:GetService("Debris"):AddItem(defence, 0.5)
  1317. end
  1318. end
  1319. end
  1320. end
  1321.  
  1322. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1323. local dmg = math.random(min,max)
  1324. for i,v in ipairs(workspace:GetChildren()) do
  1325. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1326. local body = v:GetChildren()
  1327. for part = 1, #body do
  1328. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1329. if(body[part].Position - position).Magnitude < radius then
  1330. if v.ClassName == "Model" then
  1331. if v:FindFirstChild("Humanoid") then
  1332. if v.Humanoid.Health ~= 0 then
  1333. if CanBeDodgedByJumping == true then
  1334. if body[part].Position.Y < position.Y+5 then
  1335. if math.random(1,100) < critrate+1 then
  1336. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1337. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1338. else
  1339. v.Humanoid.Health = v.Humanoid.Health - dmg
  1340. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1341. end
  1342. local defence = Instance.new("BoolValue",v)
  1343. defence.Name = ("HitBy"..Player.Name)
  1344. game:GetService("Debris"):AddItem(defence, 0.5)
  1345. end
  1346. else
  1347. if beserk == true then
  1348. v.Humanoid.Health = 0
  1349. end
  1350. if math.random(1,100) < critrate+1 then
  1351. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1352. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1353. else
  1354. v.Humanoid.Health = v.Humanoid.Health - dmg
  1355. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1356. end
  1357. local defence = Instance.new("BoolValue",v)
  1358. defence.Name = ("HitBy"..Player.Name)
  1359. game:GetService("Debris"):AddItem(defence, 0.5)
  1360. end
  1361. end
  1362. end
  1363. end
  1364. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1365. end
  1366. end
  1367. end
  1368. if v.ClassName == "Part" then
  1369. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1370. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1371. end
  1372. end
  1373. end
  1374. end
  1375. end
  1376.  
  1377. function killnearest(position,range,maxstrength)
  1378. for i,v in ipairs(workspace:GetChildren()) do
  1379. local body = v:GetChildren()
  1380. for part = 1, #body do
  1381. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1382. if(body[part].Position - position).Magnitude < range then
  1383. if v.ClassName == "Model" then
  1384. v:BreakJoints()
  1385. end
  1386. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1387. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1388. end
  1389. end
  1390. end
  1391. if v.ClassName == "Part" then
  1392. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1393. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1394. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1395. end
  1396. end
  1397. end
  1398. end
  1399.  
  1400. --//=================================\\
  1401. --|| ATTACK FUNCTIONS AND STUFF
  1402. --\\=================================//
  1403.  
  1404. Humanoid.HealthChanged:connect(function()
  1405. if Humanoid.Health == 0 then
  1406. Humanoid.MaxHealth = "inf"
  1407. Humanoid.Health = "inf"
  1408. if ATTACK == false then
  1409. if Humanoid.Health == 0 then
  1410. workspace:ClearAllChildren()
  1411. else
  1412. ViolentRoar()
  1413. end
  1414. end
  1415. end
  1416. end)
  1417.  
  1418. function clerp(a, b, t)
  1419. return a:lerp(b, t)
  1420. end
  1421.  
  1422. function newBezier(startpos, pos2, pos3, endpos, t)
  1423. local A = clerp(startpos, pos2, t)
  1424. local B = clerp(pos2, pos3, t)
  1425. local C = clerp(pos3, endpos, t)
  1426. local lerp1 = clerp(A, B, t)
  1427. local lerp2 = clerp(B, C, t)
  1428. local cubic = clerp(lerp1, lerp2, t)
  1429. return cubic
  1430. end
  1431.  
  1432. function Mortar(Target)
  1433. local newball = Instance.new("Part", workspace)
  1434. newball.Anchored = true
  1435. newball.Shape = "Ball"
  1436. newball.Material = "Neon"
  1437. newball.Size = Vector3.new(2, 2, 2)
  1438. newball.CanCollide = false
  1439. newball.CFrame = Target.CFrame
  1440. newball.BrickColor = BrickColor.new("Magenta")
  1441. newball.Transparency = 0.5
  1442. local Cys = Instance.new("SpecialMesh", newball)
  1443. Cys.MeshType = "FileMesh"
  1444. Cys.MeshId = "rbxassetid://9756362"
  1445. Cys.Scale = Vector3.new(1, 1, 1)
  1446. local onefourth = Target.Position:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  1447. local threefourths = Target.Position:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  1448. local MPos = Mouse.Hit.p
  1449. local A1 = IT("Attachment",newball)
  1450. A1.Position = Vector3.new(0, 1, 0)
  1451. local A2 = IT("Attachment",newball)
  1452. A2.Position = Vector3.new(0, -1, 0)
  1453. local Trail = IT("Trail",newball)
  1454. Trail.LightEmission = 1
  1455. Trail.FaceCamera = true
  1456. Trail.Texture = "rbxassetid://945758042"
  1457. Trail.Attachment0 = A1
  1458. Trail.Attachment1 = A2
  1459. Trail.Lifetime = 0.5
  1460. Trail.MinLength = 0
  1461. Trail.Transparency = NumberSequence.new(0.3, 1)
  1462. Trail.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1463. coroutine.resume(coroutine.create(function()
  1464. local loop = 0
  1465. for i = 0, 1, 0.07 do
  1466. Swait()
  1467. loop = loop + 1
  1468. if loop == 1 then
  1469. CreateRing(0,3,true,-0.2,15,newball,0,0.3,-0.3)
  1470. elseif loop == 2 then
  1471. CreateRing(0,3,true,-0.2,15,newball,0,-0.3,0.3)
  1472. loop = 1
  1473. end
  1474. newball.CFrame = CFrame.new(newBezier(Target.Position, onefourth, threefourths, MPos, i))
  1475. end
  1476. killnearest(newball.Position,5,10)
  1477. MagicSphere("Magenta", "Neon", CF(newball.Position) * 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), 0.25, 0.25, 0.25, 7.5, 7.5, 7.5, 0.05)
  1478. MagicBlock("Magenta", "Neon", CF(newball.Position) * 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), 0.25, 0.25, 0.25, 7.5, 7.5,7.5, 0.05)
  1479. newball.Transparency = 1
  1480. CreateSound("971125740", newball, 10, 1)
  1481. for i = 1, 7 do
  1482. coroutine.resume(coroutine.create(function()
  1483. local ray = IT("Part",Effects)
  1484. ray.Size = VT(newball.Size.Y,newball.Size.Y/10,newball.Size.Y/10)
  1485. ray.CFrame = CFrame.new(newball.Position,Vector3.new(newball.Position.X+math.random(-360,360),newball.Position.Y+math.random(-360,360),newball.Position.Z+math.random(-360,360)))
  1486. local mesh = IT("BlockMesh",ray)
  1487. ray.Anchored = true
  1488. ray.CanCollide = false
  1489. ray.Material = newball.Material
  1490. ray.Color = newball.Color
  1491. table.insert(Effects2,{ray,"Block1",0.04,1,0,0,2})
  1492. end))
  1493. end
  1494. game:GetService("Debris"):AddItem(newball, 5)
  1495. end))
  1496. end
  1497.  
  1498. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1499. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1500. end
  1501.  
  1502. function JumpUp()
  1503. ATTACK = true
  1504. --Rooted = true
  1505. for i=0, 2, 0.1 / Animation_Speed do
  1506. Swait()
  1507. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1508. 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.2 / Animation_Speed)
  1509. 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)
  1510. 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)
  1511. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1512. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1513. end
  1514. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1515. CreateWave(0,3.5,true,0.2,150,RootPart,-2)
  1516. CreateWave(0,5,true,-0.2,150,RootPart,-2)
  1517. local bv = Instance.new("BodyVelocity")
  1518. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1519. bv.velocity = Vector3.new(0,300,0)
  1520. bv.Parent = Torso
  1521. bv.Name = "DASH"
  1522. ATTACK = false
  1523. --Rooted = false
  1524. game:GetService("Debris"):AddItem(bv, 0.5)
  1525. coroutine.resume(coroutine.create(function()
  1526. Swait(50)
  1527. HASJUMPED = false
  1528. end))
  1529. end
  1530.  
  1531.  
  1532. function attacktemplate()
  1533. ATTACK = true
  1534. for i=0, 1, 0.1 / Animation_Speed do
  1535. Swait()
  1536. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1537. 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(0)), 0.15 / Animation_Speed)
  1538. 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.15 / Animation_Speed)
  1539. 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.15 / Animation_Speed)
  1540. 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.15 / Animation_Speed)
  1541. 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.15 / Animation_Speed)
  1542. end
  1543. ATTACK = false
  1544. end
  1545.  
  1546.  
  1547. function Attack1()
  1548. Rooted = true
  1549. ATTACK = true
  1550. for i=0, 1, 0.1 / Animation_Speed do
  1551. Swait()
  1552. 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)
  1553. 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)
  1554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1555. 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)
  1556. 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)
  1557. 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)
  1558. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1559. break
  1560. end
  1561. end
  1562. CreatePentagram(15,true,0.1,45,CF(RootPart.Position),-3)
  1563. local paw = RightArm.Touched:Connect(function(hit)
  1564. dealdamage(hit,9999,9999,9000,false,9999,9999)
  1565. end)
  1566. local bv = Instance.new("BodyVelocity")
  1567. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1568. bv.velocity = RootPart.CFrame.lookVector * 50
  1569. bv.Parent = Torso
  1570. bv.Name = "DASH"
  1571. ATTACK = false
  1572. Rooted = false
  1573. game:GetService("Debris"):AddItem(bv, 0.05)
  1574. for i=0, 1, 0.1 / Animation_Speed do
  1575. Swait()
  1576. 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)
  1577. 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)
  1578. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(10)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1579. 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)
  1580. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(40), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  1581. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-35), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  1582. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1583. break
  1584. end
  1585. end
  1586. COMBO = 2
  1587. paw:disconnect()
  1588. BLCF = nil
  1589. SCFR = nil
  1590. ATTACK = false
  1591. Rooted = false
  1592. end
  1593.  
  1594. function Attack2()
  1595. Rooted = true
  1596. ATTACK = true
  1597. for i=0, 1, 0.1 / Animation_Speed do
  1598. Swait()
  1599. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-10)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1601. 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)
  1602. 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)
  1603. 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)
  1604. 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)
  1605. end
  1606. CreatePentagram(15,true,-0.1,45,CF(RootPart.Position),-3)
  1607. local paw = LeftArm.Touched:Connect(function(hit)
  1608. dealdamage(hit,9999,9999,9000,false,9999,9999)
  1609. end)
  1610. local bv = Instance.new("BodyVelocity")
  1611. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1612. bv.velocity = RootPart.CFrame.lookVector * 50
  1613. bv.Parent = Torso
  1614. bv.Name = "DASH"
  1615. ATTACK = false
  1616. Rooted = false
  1617. game:GetService("Debris"):AddItem(bv, 0.05)
  1618. for i=0, 1.5, 0.1 / Animation_Speed do
  1619. Swait()
  1620. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-90)), 0.4 / Animation_Speed)
  1621. 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)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1622. 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)
  1623. 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)
  1624. 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)
  1625. 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)
  1626. end
  1627. COMBO = 3
  1628. paw:disconnect()
  1629. ATTACK = false
  1630. Rooted = false
  1631. end
  1632.  
  1633. function Attack3()
  1634. ATTACK = true
  1635. Rooted = true
  1636. for i=0, 1, 0.1 / Animation_Speed do
  1637. Swait()
  1638. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1639. 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.2 / Animation_Speed)
  1640. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, -0.2 * Player_Size, 0.3 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1641. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1642. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1643. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1644. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1645. break
  1646. end
  1647. end
  1648. for i=0, 1, 0.1 / Animation_Speed do
  1649. Swait()
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1655. 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)
  1656. end
  1657. for i=0, 1, 0.1 / Animation_Speed*7 do
  1658. Swait()
  1659. 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)
  1660. 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)
  1661. 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)
  1662. 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)
  1663. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -4.7 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(45), RAD(45), RAD(0)), 0.2 / Animation_Speed)
  1664. 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*5)
  1665. end
  1666. CreateSound("2248511", RightLeg, 2, 1)
  1667. CreateWave(0,3.5,true,0.2,25,RightLeg,-1)
  1668. CreateWave(0,3,true,-0.2,25,RightLeg,-1)
  1669. CreateWave(0,2.5,true,0.2,25,RightLeg,-1)
  1670. CreateWave(0,2,true,-0.2,25,RightLeg,-1)
  1671. AoEDamage(RightLeg.Position,15,25,30,15,false,5,3,true)
  1672. COMBO = 1
  1673. Rooted = false
  1674. ATTACK = false
  1675. end
  1676.  
  1677. function Sinnerwave()
  1678. ATTACK = true
  1679. Rooted = true
  1680. for i=0, 2, 0.1 / Animation_Speed do
  1681. Swait()
  1682. Rooted = true
  1683. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1684. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1685. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1686. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1687. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1688. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1689. end
  1690. Rooted = true
  1691. local Animation_Speed2 = Animation_Speed/2
  1692. for i=0, 1, 0.1 / Animation_Speed2 do
  1693. Swait()
  1694. Rooted = true
  1695. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1699. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1700. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1701. end
  1702. CreateWave(0,4,true,0.2,45,RootPart,-5)
  1703. CreateWave(0,4.5,true,-0.2,40,RootPart,-5)
  1704. CreateWave(0,5,true,0.2,35,RootPart,-5)
  1705. CreateWave(0,5.5,true,-0.2,30,RootPart,-5)
  1706. CreateWave(0,6,true,0.2,25,RootPart,-5)
  1707. CreateSound("971126018", Torso, 2, 1)
  1708. coroutine.resume(coroutine.create(function()
  1709. local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -1, 0), (10000), {Character})
  1710. local SpawnPosition = RayPos
  1711. local floor = RayHit
  1712. local needcframe = RootPart.CFrame
  1713. local LastPosition = RootPart.Position
  1714. local Delay = 1
  1715. for i = 1, 6 do
  1716. local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
  1717. local End = RayPos
  1718. LastPosition = End
  1719. local locatepart = Instance.new("Part",Effects)
  1720. locatepart.Size = VT(0.5,0.5,0.5)
  1721. locatepart.Position = End
  1722. locatepart.CanCollide = false
  1723. locatepart.Anchored = true
  1724. locatepart.Transparency = 1
  1725. if SpawnPosition then
  1726. if i ~= 6 then
  1727. CreateSound("971125740", locatepart, 7, 1)
  1728. AoEDamage(End,15,25,30,15,false,5,3,false)
  1729. CreateWave(0,2.5,true,-0.05,25,locatepart,-2)
  1730. CreateWave(0,2,true,0.05,25,locatepart,-2)
  1731. CreateWave(0,1.5,true,-0.05,25,locatepart,-2)
  1732. CreateWave(0,1,true,0.05,25,locatepart,-2)
  1733. else
  1734. CreateRing(0,15,true,-0.2,35,locatepart,0,0.3,0.3)
  1735. CreateRing(0,12.5,true,0.2,35,locatepart,0,0.3,-0.3)
  1736. CreateRing(0,10,true,-0.2,35,locatepart,0,-0.3,0.3)
  1737. CreateRing(0,7.5,true,0.2,35,locatepart,0,-0.3,-0.3)
  1738. CreatePentagram(85,true,-0.05,75,CF(End),0)
  1739. CreateSound("971125740", locatepart, 7, 0.5)
  1740. AoEDamage(End,25,45,60,15,false,5,3,false)
  1741. CreateWave(0,6.5,true,-0.05,45,locatepart,-2)
  1742. CreateWave(0,6,true,0.05,45,locatepart,-2)
  1743. CreateWave(0,5.5,true,-0.05,45,locatepart,-2)
  1744. CreateWave(0,5,true,0.05,45,locatepart,-2)
  1745. local particle = particles(locatepart)
  1746. particle.Enabled = false
  1747. particle.Drag = 1
  1748. particle.Lifetime=NumberRange.new(2.35,2.35,2.35)
  1749. particle.Speed = NumberRange.new(25,25,25)
  1750. particle:Emit(250)
  1751. end
  1752. end
  1753. Swait(5)
  1754. game:GetService("Debris"):AddItem(locatepart, 5)
  1755. end
  1756. end))
  1757. Swait(50)
  1758. ATTACK = false
  1759. Rooted = false
  1760. end
  1761.  
  1762. function ViolentRoar()
  1763. ATTACK = true
  1764. Rooted = true
  1765. for i=0, 2, 0.1 / Animation_Speed do
  1766. Swait()
  1767. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1768. 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.2 / Animation_Speed)
  1769. 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)
  1770. 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)
  1771. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
  1772. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1773. end
  1774. if Head ~= nil then
  1775. local roar = CreateSound("577131694", Head, 10, 1)
  1776. repeat
  1777. for i=0, 1.3, 0.1 / Animation_Speed do
  1778. Swait()
  1779. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1780. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1781. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1782. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1783. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1784. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1785. end
  1786. killnearest(Head.Position,25,25)
  1787. CreateRing(0,6,true,-0.2,35,Head,0,0.3,-0.3)
  1788. CreateRing(0,6,true,-0.2,35,Head,0,0.3,0.3)
  1789. CreateWave(0,5.5,true,0.05,45,RootPart,-4)
  1790. if roar.Playing == true then
  1791. for i=0, 1.3, 0.1 / Animation_Speed do
  1792. Swait()
  1793. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1794. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1795. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1796. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1797. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1798. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1799. end
  1800. killnearest(Head.Position,25,25)
  1801. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,-0.3)
  1802. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,0.3)
  1803. CreateWave(0,5.5,true,-0.05,45,RootPart,-4)
  1804. end
  1805. until roar.Playing == false
  1806. end
  1807. Rooted = false
  1808. ATTACK = false
  1809. end
  1810.  
  1811. function BulletsFromAbove()
  1812. HASJUMPED = true
  1813. --Rooted = true
  1814. for i=0, 2, 0.1 / Animation_Speed do
  1815. Swait()
  1816. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1817. 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.2 / Animation_Speed)
  1818. 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)
  1819. 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)
  1820. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1821. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1822. end
  1823. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1824. CreateWave(0,3.5,true,0.2,150,RootPart,-2)
  1825. CreateWave(0,5,true,-0.2,150,RootPart,-2)
  1826. local bv = Instance.new("BodyVelocity")
  1827. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1828. bv.velocity = Vector3.new(0,300,0)
  1829. bv.Parent = Torso
  1830. bv.Name = "DASH"
  1831. --Rooted = false
  1832. game:GetService("Debris"):AddItem(bv, 0.5)
  1833. Swait(125)
  1834. ATTACK = true
  1835. Rooted = true
  1836. UNANCHOR = false
  1837. RootPart.Anchored = true
  1838. local BulletHolder = IT("Folder",Weapon)
  1839. BulletHolder.Name = "Bullets"
  1840. game:GetService("Debris"):AddItem(BulletHolder, 30)
  1841. for i=0, 5, 0.1 / Animation_Speed do
  1842. Swait()
  1843. Rooted = true
  1844. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1846. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1849. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1851. end
  1852. for i = 1 ,15 do
  1853. Swait()
  1854. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1855. end
  1856. CreateSound("333476017", Torso, 10, 1)
  1857. for i = 1, 35 do
  1858. Swait()
  1859. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1860. coroutine.resume(coroutine.create(function()
  1861. local gem = IT("Part",BulletHolder)
  1862. gem.Size = VT(0.2,0.2,0.2)
  1863. gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(-25,25),math.random(-25,25))
  1864. gem.Anchored = true
  1865. gem.Color = C3(170, 0, 170)
  1866. local e = particles(gem)
  1867. e.LockedToPart = false
  1868. local Cys = Instance.new("SpecialMesh", gem)
  1869. Cys.MeshType = "FileMesh"
  1870. Cys.MeshId = "rbxassetid://9756362"
  1871. Cys.Scale = Vector3.new(2,2,2)
  1872. end))
  1873. end
  1874. local Animation_Speed2 = Animation_Speed/2
  1875. for i=0, 1, 0.1 / Animation_Speed2 do
  1876. Swait()
  1877. --RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1878. Rooted = true
  1879. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1880. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1881. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1882. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1883. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1884. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1885. end
  1886. CreateSound("318745457", Torso, 2, 1)
  1887. coroutine.resume(coroutine.create(function()
  1888. q = BulletHolder:GetChildren()
  1889. for i = 1, #q do
  1890. local bullet = q[i]
  1891. local bv = Instance.new("BodyVelocity")
  1892. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1893. bv.velocity = RootPart.CFrame.lookVector * math.random(150,300)
  1894. bv.Parent = bullet
  1895. bv.Name = "DASH"
  1896. bullet.Anchored = false
  1897. local paw = bullet.Touched:Connect(function(hit)
  1898. if bullet.Reign.Enabled == true then
  1899. local cframe = bullet.CFrame
  1900. bullet.Anchored = true
  1901. bullet.Reign.Enabled = false
  1902. local particle = particles(bullet)
  1903. particle.Enabled = false
  1904. particle.Drag = 1
  1905. particle.Name = "poof"
  1906. particle.Lifetime=NumberRange.new(2.35,2.35,2.35)
  1907. particle.Speed = NumberRange.new(25,25,25)
  1908. particle:Emit(250)
  1909. CreateSound("438666196", bullet, 5, 1)
  1910. CreateRing(0,4,true,-0.2,35,bullet,0,0.3,-0.3)
  1911. CreateRing(0,4,true,-0.2,35,bullet,0,0.3,0.3)
  1912. CreateRing(0,6,true,-0.2,35,bullet,0,-0.3,0.3)
  1913. CreateRing(0,6,true,-0.2,35,bullet,0,-0.3,-0.3)
  1914. CreateWave(0,2.5,true,-0.05,25,bullet,-2)
  1915. CreateWave(0,2,true,0.05,25,bullet,-2)
  1916. CreateWave(0,1.5,true,-0.05,25,bullet,-2)
  1917. CreateWave(0,1,true,0.05,25,bullet,-2)
  1918. table.insert(Effects2,{bullet,"Block1",0.025,1,1,1,2})
  1919. AoEDamage(bullet.Position,25,25,30,15,false,5,3,false)
  1920. end
  1921. end)
  1922. end
  1923. end))
  1924. for i = 1, 35 do
  1925. Swait()
  1926. end
  1927. UNANCHOR = true
  1928. RootPart.Anchored = false
  1929. Rooted = false
  1930. ATTACK = false
  1931. coroutine.resume(coroutine.create(function()
  1932. Swait(50)
  1933. HASJUMPED = false
  1934. end))
  1935. end
  1936.  
  1937. function fromthedepths()
  1938. ATTACK = true
  1939. Rooted = true
  1940. for i=0, 2, 0.1 / Animation_Speed do
  1941. Swait()
  1942. turnto(Mouse.Hit.p)
  1943. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1944. 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.2 / Animation_Speed)
  1945. 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)
  1946. 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)
  1947. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1948. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1949. end
  1950. local sinkhole = IT("Part",Effects)
  1951. sinkhole.Size = VT(85,0,85)
  1952. sinkhole.CFrame = CF(Mouse.Hit.p)
  1953. sinkhole.Material = "Neon"
  1954. sinkhole.Color = C3(170, 0, 170)
  1955. sinkhole.Anchored = true
  1956. sinkhole.CanCollide = false
  1957. sinkhole.Transparency = 1
  1958. local decal = IT("Decal",sinkhole)
  1959. decal.Face = "Top"
  1960. decal.Texture = "http://www.roblox.com/asset/?id=177470914"
  1961. repeat
  1962. Swait()
  1963. turnto(Mouse.Hit.p)
  1964. sinkhole.CFrame = CF(Mouse.Hit.p)
  1965. until KEYHOLD == false
  1966. coroutine.resume(coroutine.create(function()
  1967. local soundeffect = IT("Sound",sinkhole)
  1968. soundeffect.SoundId = "rbxassetid://487186990"
  1969. soundeffect.Looped = true
  1970. soundeffect.Volume = 10
  1971. soundeffect.Playing = true
  1972. for i = 1, 450 do
  1973. AoEDamage(sinkhole.Position,15,666,666,15,false,0,0,false)
  1974. AoEDamage(sinkhole.Position,25,65,80,15,false,5,3,true)
  1975. AoEDamage(sinkhole.Position,45,45,60,15,false,5,3,true)
  1976. Swait()
  1977. CreateWave(0,8,true,0.05,45,sinkhole,-1)
  1978. CreateWave(0,8,true,-0.05,45,sinkhole,-1)
  1979. if i > 439 then
  1980. decal.Transparency = decal.Transparency + 0.1
  1981. soundeffect.Volume = soundeffect.Volume - 1
  1982. end
  1983. end
  1984. sinkhole:remove()
  1985. end))
  1986. for i=0, 3, 0.1 / Animation_Speed do
  1987. Swait()
  1988. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1989. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1990. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1991. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1992. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1993. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1994. end
  1995. Rooted = false
  1996. ATTACK = false
  1997. end
  1998.  
  1999. function Warp()
  2000. ATTACK = true
  2001. CreateRing(0,2,true,-0.2,35,RootPart,0,0.3,0.3)
  2002. CreateRing(0,2.5,true,-0.2,35,RootPart,0,-0.3,0.3)
  2003. CreateRing(0,3,true,-0.2,35,RootPart,0,0.3,-0.3)
  2004. CreateRing(0,3.5,true,-0.2,35,RootPart,0,-0.3,-0.3)
  2005. local originalcframe = RootPart.CFrame
  2006. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y/2),Mouse.Hit.Z),originalcframe.p)
  2007. local penta = CreatePentagram(15,false,0,45,CF(RootPart.Position),-1)
  2008. CreateSound("3264923", penta, 2, 2)
  2009. ATTACK = false
  2010. end
  2011.  
  2012. --//=================================\\
  2013. --|| ASSIGN THINGS TO KEYS
  2014. --\\=================================//
  2015.  
  2016. function turnto(pos)
  2017. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  2018. end
  2019.  
  2020. function MouseDown(Mouse)
  2021. if ATTACK == false and HASJUMPED == false and COMBO ~= "HALT" and Rooted == false then
  2022. HOLD = true
  2023. if ATTACK == false then
  2024. if COMBO == 1 then
  2025. COMBO = "HALT"
  2026. Attack1()
  2027. elseif COMBO == 2 then
  2028. COMBO = "HALT"
  2029. Attack2()
  2030. elseif COMBO == 3 then
  2031. COMBO = "HALT"
  2032. Attack3()
  2033. end
  2034. coroutine.resume(coroutine.create(function()
  2035. for i=1, 50 do
  2036. if ATTACK == false and COMBO ~= "HALT" then
  2037. Swait()
  2038. end
  2039. end
  2040. if ATTACK == false and COMBO ~= "HALT" then
  2041. COMBO = 1
  2042. end
  2043. end))
  2044. end
  2045. end
  2046. end
  2047.  
  2048. function MouseUp(Mouse)
  2049. HOLD = false
  2050. end
  2051.  
  2052. function KeyDown(Key)
  2053. KEYHOLD = true
  2054. if Key == "e" and HASJUMPED == false and ATTACK == false then
  2055. Warp()
  2056. end
  2057. if Key == "g" and HASJUMPED == false and ATTACK == false then
  2058. fromthedepths()
  2059. end
  2060. if Key == "q" and HASJUMPED == false and ATTACK == false then
  2061. ViolentRoar()
  2062. end
  2063. if Key == "x" and HASJUMPED == false and ATTACK == false then
  2064. BulletsFromAbove()
  2065. end
  2066. if Key == "f" and HASJUMPED == false and ATTACK == false then
  2067. Sinnerwave()
  2068. end
  2069. if Key == "t" and ATTACK == false then
  2070. local taunt = CreateSound("907332670", Head, 10, 1)
  2071. local effect = IT("PitchShiftSoundEffect",taunt)
  2072. effect.Octave = 0.700
  2073. end
  2074. end
  2075.  
  2076. function KeyUp(Key)
  2077. KEYHOLD = false
  2078. end
  2079.  
  2080. Mouse.Button1Down:connect(function(NEWKEY)
  2081. MouseDown(NEWKEY)
  2082. end)
  2083. Mouse.Button1Up:connect(function(NEWKEY)
  2084. MouseUp(NEWKEY)
  2085. end)
  2086. Mouse.KeyDown:connect(function(NEWKEY)
  2087. KeyDown(NEWKEY)
  2088. end)
  2089. Mouse.KeyUp:connect(function(NEWKEY)
  2090. KeyUp(NEWKEY)
  2091. end)
  2092.  
  2093. --//=================================\\
  2094. --\\=================================//
  2095.  
  2096.  
  2097. function unanchor()
  2098. if UNANCHOR == true then
  2099. g = Character:GetChildren()
  2100. for i = 1, #g do
  2101. if g[i].ClassName == "Part" then
  2102. g[i].Anchored = false
  2103. end
  2104. end
  2105. end
  2106. end
  2107.  
  2108.  
  2109. --//=================================\\
  2110. --|| WRAP THE WHOLE SCRIPT UP
  2111. --\\=================================//
  2112.  
  2113. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2114.  
  2115. Humanoid.Changed:connect(function(Jump)
  2116. if Jump == "Jump" then
  2117. Humanoid.Jump = false
  2118. if HASJUMPED == false and HITFLOOR ~= nil and ATTACK == false and DISABLEJUMPING == false then
  2119. HASJUMPED = true
  2120. JumpUp()
  2121. end
  2122. end
  2123. end)
  2124. Rooted = true
  2125. ANIMATE.Parent = nil
  2126. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2127. IDLEANIMATION:Play()
  2128. Swait()
  2129. Rooted = false
  2130.  
  2131. createbodypart("Eye","Magenta",Head,VT(0.25, 0, -0.65),VT(3,3,3))
  2132. createbodypart("Eye","Magenta",Head,VT(-0.25, 0, -0.65),VT(3,3,3))
  2133. createbodypart("Eye","Magenta",Head,VT(0, 0.2, -0.65),VT(5,5,3))
  2134.  
  2135. while true do
  2136. Swait()
  2137. SINE = SINE + CHANGE
  2138. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2139. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2140. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2141. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2142. local WALKSPEEDVALUE = 24 / (Humanoid.WalkSpeed / 16)
  2143. if ANIM == "Walk" and ATTACK == false and TORSOVELOCITY > 1 then
  2144. 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)
  2145. 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)
  2146. 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*2)
  2147. 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*2)
  2148. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2149. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2150. 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)
  2151. 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*2)
  2152. 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*2)
  2153. end
  2154. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2155. ANIM = "Jump"
  2156. if ATTACK == false then
  2157. CreateWave(180,3,true,0,15,RootPart,-4)
  2158. 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)
  2159. 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)
  2160. 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)
  2161. 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)
  2162. 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)
  2163. 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)
  2164. end
  2165. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then
  2166. ANIM = "Fall"
  2167. if ATTACK == false then
  2168. 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)
  2169. 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)
  2170. 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)
  2171. 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)
  2172. 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)
  2173. 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)
  2174. end
  2175. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil and ATTACK == false then
  2176. ANIM = "Idle"
  2177. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2178. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2179. --RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2180. --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2181. 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)
  2182. 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)
  2183. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2184. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2185. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2186. ANIM = "Walk"
  2187. WALK = WALK + 1 / Animation_Speed
  2188. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2189. WALK = 0
  2190. if WALKINGANIM == true then
  2191. WALKINGANIM = false
  2192. elseif WALKINGANIM == false then
  2193. WALKINGANIM = true
  2194. end
  2195. end
  2196. --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)
  2197. --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)
  2198. if ATTACK == false then
  2199. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.5 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2200. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2201. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2202. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2203. --RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2204. --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2205. 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.15 / Animation_Speed)
  2206. 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.15 / Animation_Speed)
  2207. end
  2208. end
  2209. if #Effects2>0 then
  2210. for e=1,#Effects2 do
  2211. if Effects2[e]~=nil then
  2212. local Thing=Effects2[e]
  2213. if Thing~=nil then
  2214. local Part=Thing[1]
  2215. local Mode=Thing[2]
  2216. local Delay=Thing[3]
  2217. local IncX=Thing[4]
  2218. local IncY=Thing[5]
  2219. local IncZ=Thing[6]
  2220. local Part2=Thing[8]
  2221. if Thing[1].Transparency<=1 then
  2222. if Thing[2]=="Block1" then
  2223. Thing[1].CFrame=Thing[1].CFrame
  2224. Mesh=Thing[1].Mesh
  2225. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2226. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2227. elseif Thing[2]=="Cylinder" then
  2228. Mesh=Thing[1].Mesh
  2229. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2230. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2231. elseif Thing[2]=="Blood" then
  2232. Mesh=Thing[7]
  2233. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2234. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2235. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2236. elseif Thing[2]=="Elec" then
  2237. Mesh=Thing[1].Mesh
  2238. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2239. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2240. elseif Thing[2]=="Disappear" then
  2241. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2242. end
  2243. else
  2244. Part.Parent=nil
  2245. table.remove(Effects2,e)
  2246. end
  2247. end
  2248. end
  2249. end
  2250. end
  2251. if UNANCHOR == true then
  2252. unanchor()
  2253. end
  2254. Humanoid.MaxHealth = "inf"
  2255. Humanoid.Health = "inf"
  2256. if Rooted == false then
  2257. DISABLEJUMPING = false
  2258. if ANIM == "Fall" then
  2259. Humanoid.WalkSpeed = Speed*3
  2260. else
  2261. Humanoid.WalkSpeed = Speed
  2262. end
  2263. elseif Rooted == true then
  2264. DISABLEJUMPING = true
  2265. Humanoid.WalkSpeed = 0
  2266. end
  2267. q = Character:GetChildren()
  2268. for u = 1, #q do
  2269. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  2270. q[u]:remove()
  2271. elseif q[u].ClassName == "Shirt" then
  2272. q[u]:Destroy()
  2273. elseif q[u].ClassName == "Pants" then
  2274. q[u]:Destroy()
  2275. elseif q[u].ClassName == "CharacterMesh" then
  2276. q[u]:remove()
  2277. elseif q[u].ClassName == "ShirtGraphic" then
  2278. q[u]:remove()
  2279. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  2280. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  2281. end
  2282. end
  2283. if Head:FindFirstChild("face") then
  2284. Head.face:remove()
  2285. end
  2286. end
  2287.  
  2288. --//=================================\\
  2289. --\\=================================//
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295. --//====================================================\\--
  2296. --|| END OF SCRIPT
  2297. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement