Advertisement
End_Wolf

Untitled

Sep 9th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. --//====================================================\\--
  7. --|| CREATED BY SHACKLUSTER
  8. --\\====================================================//--
  9.  
  10. --8th mode added by delta1035. Had to reuse moves, lol
  11.  
  12. wait(0.2)
  13.  
  14.  
  15.  
  16. Player = game:GetService("Players").LocalPlayer
  17. PlayerGui = Player.PlayerGui
  18. Cam = workspace.CurrentCamera
  19. Backpack = Player.Backpack
  20. Character = Player.Character
  21. Humanoid = Character.Humanoid
  22. Mouse = Player:GetMouse()
  23. RootPart = Character["HumanoidRootPart"]
  24. Torso = Character["Torso"]
  25. Head = Character["Head"]
  26. RightArm = Character["Right Arm"]
  27. LeftArm = Character["Left Arm"]
  28. RightLeg = Character["Right Leg"]
  29. LeftLeg = Character["Left Leg"]
  30. RootJoint = RootPart["RootJoint"]
  31. Neck = Torso["Neck"]
  32. RightShoulder = Torso["Right Shoulder"]
  33. LeftShoulder = Torso["Left Shoulder"]
  34. RightHip = Torso["Right Hip"]
  35. LeftHip = Torso["Left Hip"]
  36. local sick = Instance.new("Sound",Character)
  37. sick.SoundId = "rbxassetid://196739738"
  38. sick.Looped = true
  39. sick.Pitch = 1
  40. sick.Volume = 2
  41. sick:Play()
  42.  
  43. IT = Instance.new
  44. CF = CFrame.new
  45. VT = Vector3.new
  46. RAD = math.rad
  47. C3 = Color3.new
  48. UD2 = UDim2.new
  49. BRICKC = BrickColor.new
  50. ANGLES = CFrame.Angles
  51. EULER = CFrame.fromEulerAnglesXYZ
  52. COS = math.cos
  53. ACOS = math.acos
  54. SIN = math.sin
  55. ASIN = math.asin
  56. ABS = math.abs
  57. MRANDOM = math.random
  58. FLOOR = math.floor
  59.  
  60. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  61. local NEWMESH = IT(MESH)
  62. if MESH == "SpecialMesh" then
  63. NEWMESH.MeshType = MESHTYPE
  64. if MESHID ~= "nil" and MESHID ~= "" then
  65. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  66. end
  67. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  68. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  69. end
  70. end
  71. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  72. NEWMESH.Scale = SCALE
  73. NEWMESH.Parent = PARENT
  74. return NEWMESH
  75. end
  76.  
  77. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  78. local NEWPART = IT("Part")
  79. NEWPART.formFactor = FORMFACTOR
  80. NEWPART.Reflectance = REFLECTANCE
  81. NEWPART.Transparency = TRANSPARENCY
  82. NEWPART.CanCollide = false
  83. NEWPART.Locked = true
  84. NEWPART.Anchored = true
  85. if ANCHOR == false then
  86. NEWPART.Anchored = false
  87. end
  88. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  89. NEWPART.Name = NAME
  90. NEWPART.Size = SIZE
  91. NEWPART.Position = Torso.Position
  92. NEWPART.Material = MATERIAL
  93. NEWPART:BreakJoints()
  94. NEWPART.Parent = PARENT
  95. return NEWPART
  96. end
  97.  
  98. --//=================================\\
  99. --|| CUSTOMIZATION
  100. --\\=================================//
  101.  
  102. Class_Name = "Template"
  103. Weapon_Name = "Add-ons"
  104.  
  105. Custom_Colors = {
  106. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  107. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  108.  
  109. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  110. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  111. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  112. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  113. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  114.  
  115. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  116. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  117. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  118. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  119. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  120. }
  121.  
  122.  
  123. Player_Size = 1 --Size of the player.
  124. Animation_Speed = 3
  125. Animation_Speed2 = 1
  126. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  127.  
  128. local Speed = 16
  129. local Effects2 = {}
  130.  
  131. --//=================================\\
  132. --|| END OF CUSTOMIZATION
  133. --\\=================================//
  134.  
  135. local function weldBetween(a, b)
  136. local weldd = Instance.new("ManualWeld")
  137. weldd.Part0 = a
  138. weldd.Part1 = b
  139. weldd.C0 = CFrame.new()
  140. weldd.C1 = b.CFrame:inverse() * a.CFrame
  141. weldd.Parent = a
  142. return weldd
  143. end
  144.  
  145. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  146. local acs = Instance.new("Part")
  147. acs.CanCollide = false
  148. acs.Anchored = false
  149. acs.Size = Vector3.new(0,0,0)
  150. acs.CFrame = attachmentpart.CFrame
  151. acs.Parent = Character
  152. acs.BrickColor = color
  153. local meshs = Instance.new("SpecialMesh")
  154. meshs.MeshId = mesh
  155. meshs.TextureId = texture
  156. meshs.Parent = acs
  157. meshs.Scale = scale
  158. meshs.Offset = offset
  159. weldBetween(attachmentpart,acs)
  160. end
  161.  
  162. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  163. if TYPE == "Gem" then
  164. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  165. acs.Anchored = false
  166. acs.CanCollide = false
  167. acs.CFrame = PART.CFrame
  168. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  169. weldBetween(PART,acs)
  170. elseif TYPE == "Skull" then
  171. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  172. acs.Anchored = false
  173. acs.CanCollide = false
  174. acs.CFrame = PART.CFrame
  175. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  176. weldBetween(PART,acs)
  177. elseif TYPE == "Eye" then
  178. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  179. acs.Anchored = false
  180. acs.CanCollide = false
  181. acs.CFrame = PART.CFrame
  182. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  183. weldBetween(PART,acs)
  184. end
  185. end
  186.  
  187. --//=================================\\
  188. --|| USEFUL VALUES
  189. --\\=================================//
  190.  
  191. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  192. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  193. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  194. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  195. local CHANGEDEFENSE = 0
  196. local CHANGEDAMAGE = 0
  197. local CHANGEMOVEMENT = 0
  198. local ANIM = "Idle"
  199. local ATTACK = false
  200. local EQUIPPED = false
  201. local HOLD = false
  202. local COMBO = 1
  203. local Rooted = false
  204. local SINE = 0
  205. local KEYHOLD = false
  206. local CHANGE = 2 / Animation_Speed
  207. local WALKINGANIM = false
  208. local WALK = 0
  209. local VALUE1 = false
  210. local VALUE2 = false
  211. local ROBLOXIDLEANIMATION = IT("Animation")
  212. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  213. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  214. --ROBLOXIDLEANIMATION.Parent = Humanoid
  215. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  216. WEAPONGUI.Name = "Weapon GUI"
  217. local Weapon = IT("Model")
  218. Weapon.Name = Weapon_Name
  219. local Effects = IT("Folder", Weapon)
  220. Effects.Name = "Effects"
  221. local ANIMATOR = Humanoid.Animator
  222. local ANIMATE = Character.Animate
  223. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  224. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  225. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  226. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  227. local CASTSOUNDS = {"1369158","2974000","2974249"}
  228. local BOLTSOUNDS = {"821439273","224339201","168586586"}
  229. local TORNADOSOUND = "362395087"
  230. local UNANCHOR = true
  231.  
  232. local SKILLTEXTCOLOR = C3(0,0,0)
  233.  
  234. --//=================================\\
  235. --\\=================================//
  236.  
  237.  
  238. --//=================================\\
  239. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  240. --\\=================================//
  241.  
  242. ArtificialHB = Instance.new("BindableEvent", script)
  243. ArtificialHB.Name = "ArtificialHB"
  244.  
  245. script:WaitForChild("ArtificialHB")
  246.  
  247. frame = Frame_Speed
  248. tf = 0
  249. allowframeloss = false
  250. tossremainder = false
  251. lastframe = tick()
  252. script.ArtificialHB:Fire()
  253.  
  254. game:GetService("RunService").Heartbeat:connect(function(s, p)
  255. tf = tf + s
  256. if tf >= frame then
  257. if allowframeloss then
  258. script.ArtificialHB:Fire()
  259. lastframe = tick()
  260. else
  261. for i = 1, math.floor(tf / frame) do
  262. script.ArtificialHB:Fire()
  263. end
  264. lastframe = tick()
  265. end
  266. if tossremainder then
  267. tf = 0
  268. else
  269. tf = tf - frame * math.floor(tf / frame)
  270. end
  271. end
  272. end)
  273.  
  274. --//=================================\\
  275. --\\=================================//
  276.  
  277.  
  278.  
  279.  
  280.  
  281. --//=================================\\
  282. --|| SOME FUNCTIONS
  283. --\\=================================//
  284.  
  285. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  286. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  287. end
  288.  
  289. function PositiveAngle(NUMBER)
  290. if NUMBER >= 0 then
  291. NUMBER = 0
  292. end
  293. return NUMBER
  294. end
  295.  
  296. function NegativeAngle(NUMBER)
  297. if NUMBER <= 0 then
  298. NUMBER = 0
  299. end
  300. return NUMBER
  301. end
  302.  
  303. function Swait(NUMBER)
  304. if NUMBER == 0 or NUMBER == nil then
  305. ArtificialHB.Event:wait()
  306. else
  307. for i = 1, NUMBER do
  308. ArtificialHB.Event:wait()
  309. end
  310. end
  311. end
  312.  
  313. function QuaternionFromCFrame(cf)
  314. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  315. local trace = m00 + m11 + m22
  316. if trace > 0 then
  317. local s = math.sqrt(1 + trace)
  318. local recip = 0.5 / s
  319. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  320. else
  321. local i = 0
  322. if m11 > m00 then
  323. i = 1
  324. end
  325. if m22 > (i == 0 and m00 or m11) then
  326. i = 2
  327. end
  328. if i == 0 then
  329. local s = math.sqrt(m00 - m11 - m22 + 1)
  330. local recip = 0.5 / s
  331. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  332. elseif i == 1 then
  333. local s = math.sqrt(m11 - m22 - m00 + 1)
  334. local recip = 0.5 / s
  335. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  336. elseif i == 2 then
  337. local s = math.sqrt(m22 - m00 - m11 + 1)
  338. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  339. end
  340. end
  341. end
  342.  
  343. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  344. local xs, ys, zs = x + x, y + y, z + z
  345. local wx, wy, wz = w * xs, w * ys, w * zs
  346. local xx = x * xs
  347. local xy = x * ys
  348. local xz = x * zs
  349. local yy = y * ys
  350. local yz = y * zs
  351. local zz = z * zs
  352. 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))
  353. end
  354.  
  355. function QuaternionSlerp(a, b, t)
  356. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  357. local startInterp, finishInterp;
  358. if cosTheta >= 0.0001 then
  359. if (1 - cosTheta) > 0.0001 then
  360. local theta = ACOS(cosTheta)
  361. local invSinTheta = 1 / SIN(theta)
  362. startInterp = SIN((1 - t) * theta) * invSinTheta
  363. finishInterp = SIN(t * theta) * invSinTheta
  364. else
  365. startInterp = 1 - t
  366. finishInterp = t
  367. end
  368. else
  369. if (1 + cosTheta) > 0.0001 then
  370. local theta = ACOS(-cosTheta)
  371. local invSinTheta = 1 / SIN(theta)
  372. startInterp = SIN((t - 1) * theta) * invSinTheta
  373. finishInterp = SIN(t * theta) * invSinTheta
  374. else
  375. startInterp = t - 1
  376. finishInterp = t
  377. end
  378. end
  379. 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
  380. end
  381.  
  382. function Clerp(a, b, t)
  383. local qa = {QuaternionFromCFrame(a)}
  384. local qb = {QuaternionFromCFrame(b)}
  385. local ax, ay, az = a.x, a.y, a.z
  386. local bx, by, bz = b.x, b.y, b.z
  387. local _t = 1 - t
  388. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  389. end
  390.  
  391. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  392. local frame = IT("Frame")
  393. frame.BackgroundTransparency = TRANSPARENCY
  394. frame.BorderSizePixel = BORDERSIZEPIXEL
  395. frame.Position = POSITION
  396. frame.Size = SIZE
  397. frame.BackgroundColor3 = COLOR
  398. frame.BorderColor3 = BORDERCOLOR
  399. frame.Name = NAME
  400. frame.Parent = PARENT
  401. return frame
  402. end
  403.  
  404. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  405. local label = IT("TextLabel")
  406. label.BackgroundTransparency = 1
  407. label.Size = UD2(1, 0, 1, 0)
  408. label.Position = UD2(0, 0, 0, 0)
  409. label.TextColor3 = TEXTCOLOR
  410. label.TextStrokeTransparency = STROKETRANSPARENCY
  411. label.TextTransparency = TRANSPARENCY
  412. label.FontSize = TEXTFONTSIZE
  413. label.Font = TEXTFONT
  414. label.BorderSizePixel = BORDERSIZEPIXEL
  415. label.TextScaled = false
  416. label.Text = TEXT
  417. label.Name = NAME
  418. label.Parent = PARENT
  419. return label
  420. end
  421.  
  422. function NoOutlines(PART)
  423. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  424. end
  425.  
  426.  
  427. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  428. local NEWWELD = IT(TYPE)
  429. NEWWELD.Part0 = PART0
  430. NEWWELD.Part1 = PART1
  431. NEWWELD.C0 = C0
  432. NEWWELD.C1 = C1
  433. NEWWELD.Parent = PARENT
  434. return NEWWELD
  435. end
  436.  
  437. function CreateSound(ID, PARENT, VOLUME, PITCH)
  438. local NEWSOUND = nil
  439. coroutine.resume(coroutine.create(function()
  440. NEWSOUND = IT("Sound", PARENT)
  441. NEWSOUND.Volume = VOLUME
  442. NEWSOUND.Pitch = PITCH
  443. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  444. NEWSOUND:play()
  445. game:GetService("Debris"):AddItem(NEWSOUND, 20)
  446. end))
  447. return NEWSOUND
  448. end
  449.  
  450. function CFrameFromTopBack(at, top, back)
  451. local right = top:Cross(back)
  452. 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)
  453. end
  454.  
  455. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  456. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  457. local mesh = IT("SpecialMesh",wave)
  458. mesh.MeshType = "FileMesh"
  459. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  460. mesh.Scale = SIZE
  461. mesh.Offset = VT(0,0,-SIZE.X/8)
  462. wave.CFrame = CFRAME
  463. coroutine.resume(coroutine.create(function(PART)
  464. for i = 1, WAIT do
  465. Swait()
  466. mesh.Scale = mesh.Scale + GROW
  467. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  468. if DOESROT == true then
  469. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  470. end
  471. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  472. if wave.Transparency > 0.99 then
  473. wave:remove()
  474. end
  475. end
  476. end))
  477. end
  478.  
  479. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  480. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  481. local mesh = IT("SpecialMesh",wave)
  482. mesh.MeshType = "FileMesh"
  483. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  484. mesh.Scale = SIZE
  485. mesh.Offset = VT(0,0,-SIZE.X/8)
  486. wave.CFrame = CFRAME
  487. coroutine.resume(coroutine.create(function(PART)
  488. for i = 1, WAIT do
  489. Swait()
  490. mesh.Scale = mesh.Scale + GROW
  491. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  492. if DOESROT == true then
  493. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  494. end
  495. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  496. if wave.Transparency > 0.99 then
  497. wave:remove()
  498. end
  499. end
  500. end))
  501. end
  502.  
  503. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  504. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  505. local mesh = IT("SpecialMesh",wave)
  506. mesh.MeshType = "FileMesh"
  507. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  508. mesh.Scale = SIZE
  509. mesh.Offset = VT(0,0,-SIZE.X/8)
  510. wave.CFrame = CFRAME
  511. coroutine.resume(coroutine.create(function(PART)
  512. for i = 1, WAIT do
  513. Swait()
  514. mesh.Scale = mesh.Scale + GROW
  515. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  516. if DOESROT == true then
  517. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  518. end
  519. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  520. if wave.Transparency > 0.99 then
  521. wave:remove()
  522. end
  523. end
  524. end))
  525. end
  526.  
  527. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  528. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  529. local mesh = IT("SpecialMesh",wave)
  530. mesh.MeshType = "FileMesh"
  531. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  532. mesh.Scale = SIZE
  533. mesh.Offset = VT(0,0,-SIZE.X/8)
  534. wave.CFrame = CFRAME
  535. coroutine.resume(coroutine.create(function(PART)
  536. for i = 1, WAIT do
  537. Swait()
  538. mesh.Scale = mesh.Scale + GROW
  539. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  540. if DOESROT == true then
  541. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  542. end
  543. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  544. if wave.Transparency > 0.99 then
  545. wave:remove()
  546. end
  547. end
  548. end))
  549. end
  550.  
  551. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS)
  552. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  553. local mesh = IT("SpecialMesh",wave)
  554. mesh.MeshType = "FileMesh"
  555. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  556. mesh.Scale = SIZE
  557. wave.CFrame = CFRAME
  558. coroutine.resume(coroutine.create(function(PART)
  559. for i = 1, WAIT do
  560. Swait()
  561. mesh.Scale = mesh.Scale + GROW
  562. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  563. if DOESROT == true then
  564. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  565. end
  566. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  567. if wave.Transparency > 0.99 then
  568. wave:remove()
  569. end
  570. end
  571. end))
  572. end
  573.  
  574. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS)
  575. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  576. local mesh = IT("SpecialMesh",wave)
  577. mesh.MeshType = "FileMesh"
  578. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  579. mesh.Scale = SIZE
  580. wave.CFrame = CFRAME
  581. coroutine.resume(coroutine.create(function(PART)
  582. for i = 1, WAIT do
  583. Swait()
  584. mesh.Scale = mesh.Scale + GROW
  585. if DOESROT == true then
  586. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  587. end
  588. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  589. if wave.Transparency > 0.99 then
  590. wave:remove()
  591. end
  592. end
  593. end))
  594. end
  595.  
  596. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS)
  597. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0))
  598. local mesh = IT("SpecialMesh",wave)
  599. mesh.MeshType = "FileMesh"
  600. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  601. mesh.Scale = SIZE
  602. mesh.Offset = VT(0,0,0)
  603. wave.CFrame = CFRAME
  604. coroutine.resume(coroutine.create(function(PART)
  605. for i = 1, WAIT do
  606. Swait()
  607. mesh.Scale = mesh.Scale + GROW
  608. if DOESROT == true then
  609. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  610. end
  611. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  612. if wave.Transparency > 0.99 then
  613. wave:remove()
  614. end
  615. end
  616. end))
  617. end
  618.  
  619. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS)
  620. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  621. local mesh = IT("SpecialMesh",wave)
  622. mesh.MeshType = "Sphere"
  623. mesh.Scale = SIZE
  624. mesh.Offset = VT(0,0,0)
  625. wave.CFrame = CFRAME
  626. coroutine.resume(coroutine.create(function(PART)
  627. for i = 1, WAIT do
  628. Swait()
  629. mesh.Scale = mesh.Scale + GROW
  630. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  631. if wave.Transparency > 0.99 then
  632. wave:remove()
  633. end
  634. end
  635. end))
  636. end
  637.  
  638. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS)
  639. local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  640. wave.CFrame = CFRAME
  641. coroutine.resume(coroutine.create(function(PART)
  642. for i = 1, WAIT do
  643. Swait()
  644. wave.Size = wave.Size + GROW
  645. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  646. wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT)
  647. if wave.Transparency > 0.99 then
  648. wave:remove()
  649. end
  650. end
  651. end))
  652. end
  653.  
  654. function MakeForm(PART,TYPE)
  655. if TYPE == "Cyl" then
  656. local MSH = IT("CylinderMesh",PART)
  657. elseif TYPE == "Ball" then
  658. local MSH = IT("SpecialMesh",PART)
  659. MSH.MeshType = "Sphere"
  660. elseif TYPE == "Wedge" then
  661. local MSH = IT("SpecialMesh",PART)
  662. MSH.MeshType = "Wedge"
  663. end
  664. end
  665.  
  666. function CheckTableForString(Table, String)
  667. for i, v in pairs(Table) do
  668. if string.find(string.lower(String), string.lower(v)) then
  669. return true
  670. end
  671. end
  672. return false
  673. end
  674.  
  675. function CheckIntangible(Hit)
  676. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  677. if Hit and Hit.Parent then
  678. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  679. return true
  680. end
  681. end
  682. return false
  683. end
  684.  
  685. Debris = game:GetService("Debris")
  686.  
  687. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  688. local Direction = CFrame.new(StartPos, Vec).lookVector
  689. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  690. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  691. if RayHit and CheckIntangible(RayHit) then
  692. if DelayIfHit then
  693. wait()
  694. end
  695. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  696. end
  697. return RayHit, RayPos, RayNormal
  698. end
  699.  
  700. function turnto(position)
  701. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  702. end
  703.  
  704. --//=================================\\
  705. --|| SPEECH
  706. --\\=================================//
  707.  
  708. function chatfunc(text,waitt)
  709. local chat = coroutine.wrap(function()
  710. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  711. Character:FindFirstChild("TalkingBillBoard"):destroy()
  712. end
  713. local naeeym2 = Instance.new("BillboardGui",Character)
  714. naeeym2.Size = UDim2.new(0,100,0,40)
  715. naeeym2.StudsOffset = Vector3.new(0,5,0)
  716. naeeym2.Adornee = Character.Head
  717. naeeym2.Name = "TalkingBillBoard"
  718. naeeym2.AlwaysOnTop = true
  719. local tecks2 = Instance.new("TextLabel",naeeym2)
  720. tecks2.BackgroundTransparency = 1
  721. tecks2.BorderSizePixel = 0
  722. tecks2.Text = ""
  723. tecks2.Font = "SciFi"
  724. tecks2.TextSize = 30
  725. tecks2.TextStrokeTransparency = 1
  726. tecks2.TextColor3 = SKILLTEXTCOLOR
  727. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  728. tecks2.Size = UDim2.new(1,0,0.5,0)
  729. for i = 1,string.len(text),1 do
  730. tecks2.Text = string.sub(text,1,i)
  731. Swait()
  732. end
  733. wait(waitt)
  734. coroutine.resume(coroutine.create(function()
  735. for i = 1, 10 do
  736. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  737. Swait()
  738. end
  739. naeeym2:Destroy()
  740. end))
  741. end)
  742. chat()
  743. end
  744.  
  745. --//=================================\\
  746. --|| WEAPON CREATION
  747. --\\=================================//
  748.  
  749. function CreateGauntlet(LIMB,ROT,OFFSET)
  750. local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.025,2.025,1.025),false)
  751. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LIMB, FIST, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  752. FIST.CanCollide = true
  753. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.075,0.25,1.075),false)
  754. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  755. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,0.15,1.1),false)
  756. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  757. --ALL OF THE 04--
  758. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.5,0.5),false)
  759. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  760. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false)
  761. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  762. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false)
  763. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  764.  
  765. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  766. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  767. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  768. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  769. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false)
  770. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  771. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,2.065,1.065),false)
  772. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/4, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  773. MakeForm(part,"Wedge")
  774. -----------------
  775. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.45,0.45),false)
  776. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  777. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false)
  778. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  779. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false)
  780. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  781.  
  782. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.075,2.075,1.075),false)
  783. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3.5, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  784. MakeForm(part,"Wedge")
  785. local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,2.1,1.1),false)
  786. local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3, 0.1, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0))
  787. MakeForm(part,"Wedge")
  788. end
  789.  
  790. CreateGauntlet(RightArm,180,0.3)
  791. CreateGauntlet(LeftArm,0,-0.3)
  792.  
  793. for _, c in pairs(Weapon:GetChildren()) do
  794. if c.ClassName == "Part" then
  795. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  796. end
  797. end
  798.  
  799. Weapon.Parent = Character
  800.  
  801. Humanoid.Died:connect(function()
  802. ATTACK = true
  803. end)
  804.  
  805. print(Class_Name.." loaded.")
  806.  
  807. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  808. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  809. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  810.  
  811. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Turret cannon", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  812. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Shield pulse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  813. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[1-8] Switch stance", C3(0,0,0), 6, "SciFi", 0, 2, 1, "Text 3")
  814.  
  815. --//=================================\\
  816. --|| DAMAGE FUNCTIONS
  817. --\\=================================//
  818.  
  819. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  820. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  821. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  822. local BODYGYRO = IT("BodyGyro", STATPART)
  823. local BODYPOSITION = IT("BodyPosition", STATPART)
  824. BODYPOSITION.P = 2000
  825. BODYPOSITION.D = 100
  826. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  827. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  828. game:GetService("Debris"):AddItem(STATPART ,5)
  829. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  830. BILLBOARDGUI.Adornee = STATPART
  831. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  832. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  833. BILLBOARDGUI.AlwaysOnTop = true
  834. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  835. TEXTLABEL.BackgroundTransparency = 1
  836. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  837. TEXTLABEL.Text = TEXT
  838. TEXTLABEL.Font = "SciFi"
  839. TEXTLABEL.FontSize="Size42"
  840. TEXTLABEL.TextColor3 = COLOR
  841. TEXTLABEL.TextStrokeTransparency = 1
  842. TEXTLABEL.TextScaled = true
  843. TEXTLABEL.TextWrapped = true
  844. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  845. if LABELTYPE == "Normal" then
  846. for i = 1, 20 do
  847. Swait()
  848. STATPART.Position = STATPART.Position + VT(0, (10-i)/10 ,0)
  849. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  850. end
  851. elseif LABELTYPE == "Debuff" then
  852. for i = 1, 20 do
  853. Swait()
  854. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  855. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  856. end
  857. elseif LABELTYPE == "Shock" then
  858. local ORIGIN = STATPART.Position
  859. for i = 1, 20 do
  860. Swait()
  861. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  862. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20)
  863. end
  864. end
  865. THEPART.Parent = nil
  866. end),STATPART, BODYPOSITION, TEXTLABEL)
  867. end
  868.  
  869.  
  870. --//=================================\\
  871. --|| DAMAGING
  872. --\\=================================//
  873.  
  874. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  875. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  876. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  877. local dmg = math.random(min,max)
  878. if humanoid.Health > 0 then
  879. if beserk == true then
  880. humanoid.Health = 0
  881. else
  882. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  883. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  884. if math.random(1,100) < critrate+1 then
  885. humanoid.Health = humanoid.Health - dmg*critmultiplier
  886. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  887. else
  888. humanoid.Health = humanoid.Health - dmg
  889. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  890. end
  891. local defence = Instance.new("BoolValue",hit.Parent)
  892. defence.Name = ("HitBy"..Player.Name)
  893. game:GetService("Debris"):AddItem(defence, 0.1)
  894. end
  895. end
  896. end
  897. end
  898.  
  899. function AoEWarp(position,radius)
  900. for i,v in ipairs(workspace:GetChildren()) do
  901. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  902. local body = v:GetChildren()
  903. for part = 1, #body do
  904. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  905. if(body[part].Position - position).Magnitude < radius then
  906. if v.ClassName == "Model" then
  907. if v:FindFirstChild("Humanoid") then
  908. if v.Humanoid.Health ~= 0 then
  909. if body[part].Position.Y < position.Y+12 then
  910. print("Got "..v.Name)
  911. local defence = Instance.new("BoolValue",v)
  912. defence.Name = ("HitBy"..Player.Name)
  913. game:GetService("Debris"):AddItem(defence, 0.01)
  914. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  915. Warp(TORSO)
  916. end
  917. end
  918. end
  919. end
  920. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  921. end
  922. end
  923. end
  924. end
  925. end
  926. end
  927.  
  928. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  929. local dmg = math.random(min,max)
  930. for i,v in ipairs(workspace:GetChildren()) do
  931. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  932. local body = v:GetChildren()
  933. for part = 1, #body do
  934. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  935. if(body[part].Position - position).Magnitude < radius then
  936. if v.ClassName == "Model" then
  937. if v:FindFirstChild("Humanoid") then
  938. if v.Humanoid.Health ~= 0 then
  939. if CanBeDodgedByJumping == true then
  940. if body[part].Position.Y < position.Y+5 then
  941. if math.random(1,100) < critrate+1 then
  942. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  943. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  944. else
  945. v.Humanoid.Health = v.Humanoid.Health - dmg
  946. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  947. end
  948. local defence = Instance.new("BoolValue",v)
  949. defence.Name = ("HitBy"..Player.Name)
  950. game:GetService("Debris"):AddItem(defence, 0.1)
  951. end
  952. else
  953. if beserk == true then
  954. v.Humanoid.Health = 0
  955. end
  956. if math.random(1,100) < critrate+1 then
  957. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  958. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  959. else
  960. v.Humanoid.Health = v.Humanoid.Health - dmg
  961. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  962. end
  963. local defence = Instance.new("BoolValue",v)
  964. defence.Name = ("HitBy"..Player.Name)
  965. game:GetService("Debris"):AddItem(defence, 0.1)
  966. end
  967. end
  968. end
  969. end
  970. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  971. end
  972. end
  973. end
  974. if v.ClassName == "Part" then
  975. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  976. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  977. end
  978. end
  979. end
  980. end
  981. end
  982.  
  983. function AoEStun(POS,RANGE,LAST,TYPE)
  984. for i,v in ipairs(workspace:GetChildren()) do
  985. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  986. local body = v:GetChildren()
  987. for part = 1, #body do
  988. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  989. if(body[part].Position - POS).Magnitude < RANGE then
  990. if v.ClassName == "Model" then
  991. if v:FindFirstChild("Humanoid") then
  992. if v.Humanoid.Health ~= 0 then
  993. if TYPE == "Stun" then
  994. Stun(v.Humanoid,LAST)
  995. elseif TYPE == "Freeze" then
  996. Freeze(v.Humanoid,LAST)
  997. end
  998. local defence = Instance.new("BoolValue",v)
  999. defence.Name = ("StunnedBy"..Player.Name)
  1000. game:GetService("Debris"):AddItem(defence, 0.1)
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. end
  1008. end
  1009. end
  1010.  
  1011. function Warp(Victim)
  1012. print("Warping "..Victim.Name.."...")
  1013. Victim.Anchored = true
  1014. coroutine.resume(coroutine.create(function()
  1015. local GUI,GUI2 = CreateGUICircle(Victim)
  1016. CreateSound("1208650519", Victim, 10, 1)
  1017. for i = 1, 200 do
  1018. Swait()
  1019. GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0)
  1020. GUI2.Rotation = GUI2.Rotation + 2
  1021. end
  1022. CastWarpOutlines(Victim.Parent)
  1023. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  1024. CreateSound("1177785010", Victim, 10, 1)
  1025. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  1026. if HUMANOID ~= nil then
  1027. local dmg = MRANDOM(75,95)
  1028. HUMANOID.Health = HUMANOID.Health - dmg
  1029. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  1030. end
  1031. for i = 1, 50 do
  1032. Swait()
  1033. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1034. GUI2.Rotation = GUI2.Rotation - 8
  1035. end
  1036. Victim.Anchored = false
  1037. GUI:remove()
  1038. end))
  1039. end
  1040.  
  1041. function Stun(HUMANOID,LAST)
  1042. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  1043. HUMANOID.PlatformStand = true
  1044. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  1045. defence.Name = ("StunnedBy"..Player.Name)
  1046. game:GetService("Debris"):AddItem(defence, LAST)
  1047. if HUMANOID.Parent:FindFirstChild("Head") then
  1048. StatLabel("Shock", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  1049. end
  1050. coroutine.resume(coroutine.create(function()
  1051. Swait(LAST*100)
  1052. HUMANOID.PlatformStand = false
  1053. end))
  1054. end
  1055. end
  1056.  
  1057. function Freeze(HUMANOID,LAST)
  1058. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  1059. local q = HUMANOID.Parent:GetChildren()
  1060. for i = 1, #q do
  1061. local bob = q[i]
  1062. if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1063. if bob.Transparency < 1 then
  1064. bob.Anchored = true
  1065. local icelayer = bob:Clone()
  1066. icelayer.Parent = bob
  1067. icelayer.Material = "Ice"
  1068. icelayer.CanCollide = false
  1069. icelayer.BrickColor = BRICKC"Steel blue"
  1070. icelayer.Transparency = 0.5
  1071. icelayer.CFrame = bob.CFrame
  1072. icelayer.Name = "Ice"
  1073. icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1)
  1074. if icelayer:FindFirstChildOfClass("Decal") then
  1075. icelayer:FindFirstChildOfClass("Decal"):remove()
  1076. end
  1077. end
  1078. end
  1079. end
  1080. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  1081. defence.Name = ("StunnedBy"..Player.Name)
  1082. game:GetService("Debris"):AddItem(defence, LAST)
  1083. if HUMANOID.Parent:FindFirstChild("Head") then
  1084. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Frozen!", C3(0.3, 0.3, 0.3))
  1085. end
  1086. coroutine.resume(coroutine.create(function()
  1087. Swait(LAST*100)
  1088. local q = HUMANOID.Parent:GetChildren()
  1089. for i = 1, #q do
  1090. local bob = q[i]
  1091. if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then
  1092. if bob.Transparency < 1 then
  1093. bob.Anchored = false
  1094. bob.Ice:remove()
  1095. end
  1096. end
  1097. end
  1098. end))
  1099. end
  1100. end
  1101.  
  1102. function killnearest(position,range,maxstrength)
  1103. for i,v in ipairs(workspace:GetChildren()) do
  1104. local body = v:GetChildren()
  1105. for part = 1, #body do
  1106. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1107. if(body[part].Position - position).Magnitude < range then
  1108. table.insert(Effects2,{body[part],"Evaporate",0.005,2,2,2,2})
  1109. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1110. end
  1111. end
  1112. end
  1113. if v.ClassName == "Part" then
  1114. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1115. table.insert(Effects2,{v,"Evaporate",0.005,2,2,2,2})
  1116. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1117. end
  1118. end
  1119. end
  1120. end
  1121.  
  1122. --//=================================\\
  1123. --|| ATTACK FUNCTIONS AND STUFF
  1124. --\\=================================//
  1125.  
  1126. function Stance1()
  1127. VALUE1 = 1
  1128. SKILL1TEXT.Text = "[Z] Turret cannon"
  1129. SKILL2TEXT.Text = "[X] Shield pulse"
  1130. sick.SoundId = "rbxassetid://196739738"
  1131. local wep = Weapon:GetChildren()
  1132. for part = 1, #wep do
  1133. if wep[part].ClassName == "Part" then
  1134. local P = wep[part]
  1135. if P.Name == "01-Type" then
  1136. P.Material = "Granite"
  1137. P.BrickColor = BRICKC"Pearl"
  1138. elseif P.Name == "02-Type" then
  1139. P.Material = "Metal"
  1140. P.BrickColor = BRICKC"Pearl"
  1141. elseif P.Name == "03-Type" then
  1142. P.Material = "Metal"
  1143. P.BrickColor = BRICKC"Really black"
  1144. elseif P.Name == "04-Type" then
  1145. P.Material = "Neon"
  1146. P.BrickColor = BRICKC"Pearl"
  1147. end
  1148. end
  1149. end
  1150. end
  1151.  
  1152. function Stance2()
  1153. VALUE1 = 2
  1154. SKILL1TEXT.Text = "[Z] Fireball"
  1155. SKILL2TEXT.Text = "[X] Fire field"
  1156. sick.SoundId = "rbxassetid://231131640"
  1157. local wep = Weapon:GetChildren()
  1158. for part = 1, #wep do
  1159. if wep[part].ClassName == "Part" then
  1160. local P = wep[part]
  1161. if P.Name == "01-Type" then
  1162. P.Material = "Granite"
  1163. P.BrickColor = BRICKC"Deep orange"
  1164. elseif P.Name == "02-Type" then
  1165. P.Material = "Metal"
  1166. P.BrickColor = BRICKC"Maroon"
  1167. elseif P.Name == "03-Type" then
  1168. P.Material = "Metal"
  1169. P.BrickColor = BRICKC"Really black"
  1170. elseif P.Name == "04-Type" then
  1171. P.Material = "Neon"
  1172. P.BrickColor = BRICKC"CGA brown"
  1173. end
  1174. end
  1175. end
  1176. end
  1177.  
  1178. function Stance3()
  1179. VALUE1 = 3
  1180. SKILL1TEXT.Text = "[Z] Icicle storm"
  1181. SKILL2TEXT.Text = "[X] Frost breath"
  1182. sick.SoundId = "rbxassetid://590071128"
  1183. local wep = Weapon:GetChildren()
  1184. for part = 1, #wep do
  1185. if wep[part].ClassName == "Part" then
  1186. local P = wep[part]
  1187. if P.Name == "01-Type" then
  1188. P.Material = "Marble"
  1189. P.BrickColor = BRICKC"Medium stone grey"
  1190. elseif P.Name == "02-Type" then
  1191. P.Material = "Neon"
  1192. P.BrickColor = BRICKC"Cyan"
  1193. elseif P.Name == "03-Type" then
  1194. P.Material = "Metal"
  1195. P.BrickColor = BRICKC"Cyan"
  1196. elseif P.Name == "04-Type" then
  1197. P.Material = "Ice"
  1198. P.BrickColor = BRICKC"Steel blue"
  1199. end
  1200. end
  1201. end
  1202. end
  1203.  
  1204. function Stance4()
  1205. VALUE1 = 4
  1206. SKILL1TEXT.Text = "[Z] Shriek"
  1207. SKILL2TEXT.Text = "[X] Bloodbath"
  1208. sick.SoundId = "rbxassetid://614032233"
  1209. local wep = Weapon:GetChildren()
  1210. for part = 1, #wep do
  1211. if wep[part].ClassName == "Part" then
  1212. local P = wep[part]
  1213. if P.Name == "01-Type" then
  1214. P.Material = "Cobblestone"
  1215. P.BrickColor = BRICKC"Really black"
  1216. elseif P.Name == "02-Type" then
  1217. P.Material = "Metal"
  1218. P.BrickColor = BRICKC"Maroon"
  1219. elseif P.Name == "03-Type" then
  1220. P.Material = "Metal"
  1221. P.BrickColor = BRICKC"Black"
  1222. elseif P.Name == "04-Type" then
  1223. P.Material = "Neon"
  1224. P.BrickColor = BRICKC"Dark indigo"
  1225. end
  1226. end
  1227. end
  1228. end
  1229. function Stance5()
  1230. VALUE1 = 5
  1231. SKILL1TEXT.Text = "[Z] Rock throw"
  1232. SKILL2TEXT.Text = "[X] Earth tremor"
  1233. sick.SoundId = "rbxassetid://167492778"
  1234. local wep = Weapon:GetChildren()
  1235. for part = 1, #wep do
  1236. if wep[part].ClassName == "Part" then
  1237. local P = wep[part]
  1238. if P.Name == "01-Type" then
  1239. P.Material = "Cobblestone"
  1240. P.BrickColor = BRICKC"Rust"
  1241. elseif P.Name == "02-Type" then
  1242. P.Material = "Cobblestone"
  1243. P.BrickColor = BRICKC"CGA brown"
  1244. elseif P.Name == "03-Type" then
  1245. P.Material = "Marble"
  1246. P.BrickColor = BRICKC"Black"
  1247. elseif P.Name == "04-Type" then
  1248. P.Material = "Slate"
  1249. P.BrickColor = BRICKC"Pine cone"
  1250. end
  1251. end
  1252. end
  1253. end
  1254.  
  1255. function Stance6()
  1256. VALUE1 = 6
  1257. SKILL1TEXT.Text = "[Z] Radiant void"
  1258. SKILL2TEXT.Text = "[X] Void warp"
  1259. sick.SoundId = "rbxassetid://275188871"
  1260. local wep = Weapon:GetChildren()
  1261. for part = 1, #wep do
  1262. if wep[part].ClassName == "Part" then
  1263. local P = wep[part]
  1264. if P.Name == "01-Type" then
  1265. P.Material = "Granite"
  1266. P.BrickColor = BRICKC"Royal purple"
  1267. elseif P.Name == "02-Type" then
  1268. P.Material = "Slate"
  1269. P.BrickColor = BRICKC"Really black"
  1270. elseif P.Name == "03-Type" then
  1271. P.Material = "Metal"
  1272. P.BrickColor = BRICKC"Black"
  1273. elseif P.Name == "04-Type" then
  1274. P.Material = "Neon"
  1275. P.BrickColor = BRICKC"Royal purple"
  1276. end
  1277. end
  1278. end
  1279. end
  1280.  
  1281. function Stance7()
  1282. VALUE1 = 7
  1283. SKILL1TEXT.Text = "[Z] Divine glow"
  1284. SKILL2TEXT.Text = "[X] Divine evaporation"
  1285. sick.SoundId = "rbxassetid://965804171"
  1286. local wep = Weapon:GetChildren()
  1287. for part = 1, #wep do
  1288. if wep[part].ClassName == "Part" then
  1289. local P = wep[part]
  1290. if P.Name == "01-Type" then
  1291. P.Material = "Neon"
  1292. P.BrickColor = BRICKC"Stone grey"
  1293. elseif P.Name == "02-Type" then
  1294. P.Material = "Granite"
  1295. P.BrickColor = BRICKC"Gold"
  1296. elseif P.Name == "03-Type" then
  1297. P.Material = "Metal"
  1298. P.BrickColor = BRICKC"Gold"
  1299. elseif P.Name == "04-Type" then
  1300. P.Material = "Granite"
  1301. P.BrickColor = BRICKC"New Yeller"
  1302. end
  1303. end
  1304. end
  1305. end
  1306.  
  1307. function Stance8()
  1308. VALUE1 = 8
  1309. SKILL1TEXT.Text = "[Z] Leaf Storm"
  1310. SKILL2TEXT.Text = "[X] Leaf Field"
  1311. sick.SoundId = "rbxassetid://630020632"
  1312. local wep = Weapon:GetChildren()
  1313. for part = 1, #wep do
  1314. if wep[part].ClassName == "Part" then
  1315. local P = wep[part]
  1316. if P.Name == "01-Type" then
  1317. P.Material = "Granite"
  1318. P.BrickColor = BRICKC"1020"
  1319. elseif P.Name == "02-Type" then
  1320. P.Material = "Slate"
  1321. P.BrickColor = BRICKC"Really black"
  1322. elseif P.Name == "03-Type" then
  1323. P.Material = "Metal"
  1324. P.BrickColor = BRICKC"Shamrock"
  1325. elseif P.Name == "04-Type" then
  1326. P.Material = "Neon"
  1327. P.BrickColor = BRICKC"1020"
  1328. end
  1329. end
  1330. end
  1331. end
  1332.  
  1333. function createfireball(size,explosionsize,pos,velocity)
  1334. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1335. local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"}
  1336. local FIREBALL = IT("Part",Effects)
  1337. FIREBALL.Shape = "Ball"
  1338. FIREBALL.Size = VT(size,size,size)
  1339. FIREBALL.Material = "Neon"
  1340. FIREBALL.CFrame = CF(pos)
  1341. FIREBALL.Transparency = 1
  1342. local bv = Instance.new("BodyVelocity")
  1343. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1344. bv.velocity = velocity
  1345. bv.Parent = FIREBALL
  1346. bv.Name = "MOVE"
  1347. local HIT = false
  1348. local harm = FIREBALL.Touched:Connect(function(hit)
  1349. if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then
  1350. HIT = true
  1351. coroutine.resume(coroutine.create(function()
  1352. FIREBALL.Anchored = true
  1353. FIREBALL.CanCollide = false
  1354. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1)
  1355. AoEDamage(FIREBALL.Position,explosionsize*2,45,65,25,false,3,2,false,true)
  1356. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3,3,3),0)
  1357. MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3.5,3.5,3.5),0)
  1358. Swait(250)
  1359. FIREBALL:remove()
  1360. end))
  1361. end
  1362. end)
  1363. coroutine.resume(coroutine.create(function()
  1364. repeat
  1365. Swait()
  1366. MagicSphere(VT(size,size,size),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-size/15,-size/15,-size/15),0)
  1367. until HIT == true
  1368. end))
  1369. return FIREBALL
  1370. end
  1371.  
  1372. function AttackTemplate()
  1373. ATTACK = true
  1374. Rooted = false
  1375. for i=0, 1, 0.1 / Animation_Speed do
  1376. Swait()
  1377. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1378. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1379. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1380. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1381. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1382. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1383. end
  1384. ATTACK = false
  1385. Rooted = false
  1386. end
  1387.  
  1388. local asd = Instance.new("ParticleEmitter")
  1389. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1390. asd.LightEmission = .1
  1391. asd.Size = NumberSequence.new(0.2)
  1392. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1393. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1394. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1395. asd.Transparency = bbb
  1396. asd.Size = aaa
  1397. asd.ZOffset = .9
  1398. asd.Acceleration = Vector3.new(0, -15, 0)
  1399. asd.LockedToPart = false
  1400. asd.EmissionDirection = "Back"
  1401. asd.Lifetime = NumberRange.new(1, 2)
  1402. asd.Rotation = NumberRange.new(-100, 100)
  1403. asd.RotSpeed = NumberRange.new(-100, 100)
  1404. asd.Speed = NumberRange.new(25,35)
  1405. asd.Enabled = false
  1406. asd.VelocitySpread = 15
  1407.  
  1408. function getbloody(victim,amount)
  1409. local PART = IT("Part",Effects)
  1410. PART.Transparency = 1
  1411. PART.Size = victim.Size
  1412. PART.Anchored = true
  1413. PART.CanCollide = false
  1414. PART.CFrame = CF(victim.Position,Torso.Position)
  1415. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1416. Debris:AddItem(PART,5)
  1417. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1418. local prtcl = asd:Clone()
  1419. prtcl.Parent = PART
  1420. prtcl:Emit(amount*10)
  1421. end
  1422.  
  1423. function CreateMagicCircle()
  1424. local sinkhole = IT("Part")
  1425. sinkhole.Size = VT(0,0,0)
  1426. sinkhole.Parent = Effects
  1427. sinkhole.Material = "Neon"
  1428. sinkhole.Color = C3(0,0,0)
  1429. sinkhole.Anchored = true
  1430. sinkhole.CanCollide = false
  1431. sinkhole.Transparency = 1
  1432. local decal = IT("Decal",sinkhole)
  1433. decal.Face = "Top"
  1434. decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1435. local decal2 = IT("Decal",sinkhole)
  1436. decal2.Face = "Bottom"
  1437. decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  1438. return sinkhole
  1439. end
  1440.  
  1441. function CreateLeafMagicCircle()
  1442. local sinkhole = IT("Part")
  1443. sinkhole.Size = VT(0,0,0)
  1444. sinkhole.Parent = Effects
  1445. sinkhole.Material = "Neon"
  1446. sinkhole.Color = C3(0,0,0)
  1447. sinkhole.Anchored = true
  1448. sinkhole.CanCollide = false
  1449. sinkhole.Transparency = 1
  1450. local decal = IT("Decal",sinkhole)
  1451. decal.Face = "Top"
  1452. decal.Texture = "http://www.roblox.com/asset/?id=332014171"
  1453. local decal2 = IT("Decal",sinkhole)
  1454. decal2.Face = "Bottom"
  1455. decal2.Texture = "http://www.roblox.com/asset/?id=332014171"
  1456. return sinkhole
  1457. end
  1458.  
  1459. function CreateGUICircle(TARGET)
  1460. local GUI = Instance.new("BillboardGui",Character)
  1461. GUI.Size = UDim2.new(0,0,0,0)
  1462. GUI.Adornee = TARGET
  1463. local GUI2 = IT("ImageLabel",GUI)
  1464. GUI2.BackgroundTransparency = 1
  1465. GUI2.BorderSizePixel = 0
  1466. GUI2.Size = UDim2.new(1,0,1,0)
  1467. GUI2.SizeConstraint = "RelativeYY"
  1468. GUI.AlwaysOnTop = true
  1469. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  1470. return GUI,GUI2
  1471. end
  1472.  
  1473. function CastWarpOutlines(TARGET)
  1474. coroutine.resume(coroutine.create(function()
  1475. local T = TARGET:GetChildren()
  1476. for i = 1, # T do
  1477. local child = T[i]
  1478. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1479. local clone = child:Clone()
  1480. clone.Parent = Effects
  1481. clone.Anchored = true
  1482. clone.CanCollide = false
  1483. clone:ClearAllChildren()
  1484. clone.CFrame = child.CFrame
  1485. if clone.Name == "Head" then
  1486. if TARGET:FindFirstChildOfClass("MeshPart") == nil then
  1487. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  1488. end
  1489. end
  1490. if clone.ClassName == "MeshPart" then
  1491. clone.TextureID = ""
  1492. end
  1493. clone.BrickColor = BRICKC"Black"
  1494. clone.Material = "Neon"
  1495. coroutine.resume(coroutine.create(function()
  1496. for i = 1, 200 do
  1497. Swait()
  1498. clone.Transparency = clone.Transparency + 0.005
  1499. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  1500. end
  1501. clone:remove()
  1502. end))
  1503. end
  1504. end
  1505. end))
  1506. end
  1507.  
  1508. --Z MOVES--
  1509.  
  1510. function TurretCannon()
  1511. ATTACK = true
  1512. Rooted = false
  1513. for i=0, 2, 0.1 / Animation_Speed do
  1514. Swait()
  1515. turnto(Mouse.Hit.p)
  1516. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1517. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1518. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1519. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1520. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1521. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1522. end
  1523. Rooted = true
  1524. local TURRETS = {RightArm,LeftArm}
  1525. local soundeffect = IT("Sound",Torso)
  1526. soundeffect.SoundId = "rbxassetid://337638956"
  1527. soundeffect.Looped = true
  1528. soundeffect.Volume = 1
  1529. soundeffect.Playing = true
  1530. repeat
  1531. Swait()
  1532. turnto(Mouse.Hit.p)
  1533. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  1534. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"New Yeller",VT(0.3,0.3,0.3),0)
  1535. local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  1536. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  1537. local bv = Instance.new("BodyVelocity")
  1538. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1539. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  1540. bv.Parent = BULLET
  1541. bv.Name = "PROJECTILEVELOCITY"
  1542. MakeForm(BULLET,"Ball")
  1543. local BOO = BULLET.Touched:Connect(function(hit)
  1544. dealdamage(hit,5,8,5,false,2,3)
  1545. end)
  1546. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  1547. until KEYHOLD == false
  1548. soundeffect:remove()
  1549. ATTACK = false
  1550. Rooted = false
  1551. end
  1552.  
  1553. function Fireball()
  1554. ATTACK = true
  1555. Rooted = true
  1556. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1557. CreateSound("169445572", RightArm, 2, 1.6)
  1558. for i=0, 5, 0.1 / Animation_Speed2 do
  1559. Swait()
  1560. MagicSphere(VT(2,2,2),35,RightArm.CFrame*CF(0,-1,0),FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-2/35,-2/35,-2/35),0.6)
  1561. turnto(Mouse.Hit.p)
  1562. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2)
  1563. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2)
  1564. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1565. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1566. 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_Speed2)
  1567. 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_Speed2)
  1568. end
  1569. local aimpos = Mouse.Hit.p
  1570. createfireball(2,8,RightArm.CFrame * CF(0,-2,0).p,CF(RightArm.CFrame * CF(0,-2,0).p,aimpos).lookVector*100)
  1571. for i=0, 1.5, 0.1 / Animation_Speed2 do
  1572. Swait()
  1573. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2)
  1574. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2)
  1575. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1576. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1577. 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_Speed2)
  1578. 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_Speed2)
  1579. end
  1580. ATTACK = false
  1581. Rooted = false
  1582. end
  1583.  
  1584. function IcicleStorm()
  1585. ATTACK = true
  1586. Rooted = false
  1587. local BulletHolder = IT("Folder",Weapon)
  1588. BulletHolder.Name = "Bullets"
  1589. game:GetService("Debris"):AddItem(BulletHolder, 40)
  1590. for i=0, 3, 0.1 / Animation_Speed do
  1591. Swait()
  1592. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1593. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1594. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1595. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1596. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1597. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1598. end
  1599. CreateSound("333476017", Torso, 10, 1)
  1600. for i = 1, 150 do
  1601. Swait()
  1602. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1603. coroutine.resume(coroutine.create(function()
  1604. local gem = IT("Part",BulletHolder)
  1605. gem.Size = VT(0.3,0.3,0.3)
  1606. gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(25,50),math.random(-25,25))
  1607. gem.Anchored = true
  1608. gem.BrickColor = BRICKC"Steel blue"
  1609. local Cys = Instance.new("SpecialMesh", gem)
  1610. Cys.MeshType = "FileMesh"
  1611. Cys.MeshId = "rbxassetid://9756362"
  1612. Cys.Scale = Vector3.new(2,2,2)
  1613. end))
  1614. end
  1615. local IceHitSounds = {
  1616. "338594737",
  1617. "338594687",
  1618. "338594666",
  1619. "338594648",
  1620. "338594606",
  1621. "338594574",
  1622. "338594556",
  1623. "338594524",
  1624. "338594467"
  1625. }
  1626. coroutine.resume(coroutine.create(function()
  1627. q = BulletHolder:GetChildren()
  1628. for i = 1, #q do
  1629. Swait()
  1630. turnto(Mouse.Hit.p)
  1631. local bullet = q[i]
  1632. local bv = Instance.new("BodyVelocity")
  1633. bullet.Mesh.Scale = VT(2,2,5)
  1634. bullet.CFrame = CF(bullet.Position,Mouse.Hit.p)
  1635. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1636. bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*500
  1637. bv.Parent = bullet
  1638. bv.Name = "DASH"
  1639. bullet.Anchored = false
  1640. local paw = bullet.Touched:Connect(function(hit)
  1641. if bullet.Anchored == false then
  1642. CreateSound(IceHitSounds[math.random(1, #IceHitSounds)], bullet, 3, 1)
  1643. local cframe = bullet.CFrame
  1644. bullet.Anchored = true
  1645. table.insert(Effects2,{bullet,"Block1",0.15,0,0,0,5})
  1646. AoEDamage(bullet.Position,5,15,15,0,false,5,3,false)
  1647. if MRANDOM(1,45) == 1 then
  1648. AoEStun(bullet.Position,5,5,"Freeze")
  1649. end
  1650. end
  1651. end)
  1652. end
  1653. end))
  1654. ATTACK = false
  1655. Rooted = false
  1656. end
  1657.  
  1658. function Shriek()
  1659. ATTACK = true
  1660. Rooted = false
  1661. for i=0, 1, 0.1 / Animation_Speed do
  1662. Swait()
  1663. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1667. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  1668. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 , -0.8, -0.2) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  1669. end
  1670. Rooted = true
  1671. CreateSound("439369949", Effects, 10, 1)
  1672. for i=0, 3, 0.1 / Animation_Speed do
  1673. Swait()
  1674. MagicSphere(VT(2,2,2),5,Head.CFrame,"Pearl",VT(35,35,35),0.97)
  1675. AoEDamage(Head.Position,65,3,5,4,false,12,3,false)
  1676. AoEStun(Head.Position,65,2,"Stun")
  1677. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1678. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)),1 / Animation_Speed)
  1679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1681. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 1 / Animation_Speed)
  1682. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.2) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1683. end
  1684. ATTACK = false
  1685. Rooted = false
  1686. end
  1687.  
  1688. function clerp(a, b, t)
  1689. return a:lerp(b, t)
  1690. end
  1691.  
  1692. function newBezier(startpos, pos2, pos3, endpos, t)
  1693. local A = clerp(startpos, pos2, t)
  1694. local B = clerp(pos2, pos3, t)
  1695. local C = clerp(pos3, endpos, t)
  1696. local lerp1 = clerp(A, B, t)
  1697. local lerp2 = clerp(B, C, t)
  1698. local cubic = clerp(lerp1, lerp2, t)
  1699. return cubic
  1700. end
  1701.  
  1702. function RockThrow()
  1703. ATTACK = true
  1704. Rooted = false
  1705. for i=0, 2, 0.1 / Animation_Speed do
  1706. Swait()
  1707. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1708. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1709. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1710. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1711. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1712. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1713. end
  1714. local ROCK = IT("Part",Effects)
  1715. ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0)
  1716. ROCK.Size = VT(1.2,1.2,1.2)
  1717. ROCK.Material = "Cobblestone"
  1718. ROCK.Transparency = 1
  1719. ROCK.BrickColor = BRICKC"Pine Cone"
  1720. local WELD = weldBetween(RightArm,ROCK)
  1721. ROCK.CanCollide = false
  1722. for i = 1, 10 do
  1723. Swait()
  1724. ROCK.Transparency = ROCK.Transparency - 0.1
  1725. end
  1726. for i=0, 0.2, 0.1 / Animation_Speed do
  1727. Swait()
  1728. turnto(Mouse.Hit.p)
  1729. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1730. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed)
  1731. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1732. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1733. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1734. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1735. end
  1736. WELD:remove()
  1737. coroutine.resume(coroutine.create(function()
  1738. local POS = ROCK.Position
  1739. ROCK.Anchored = true
  1740. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  1741. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  1742. for i = 0, 1, 0.07 do
  1743. Swait()
  1744. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  1745. end
  1746. ROCK.Anchored = false
  1747. ROCK.CanCollide = true
  1748. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Pearl",VT(1,0.2,1),0.5)
  1749. AoEDamage(ROCK.Position,5,35,55,4,false,12,3,true)
  1750. Swait(500)
  1751. ROCK.Anchored = true
  1752. ROCK.CanCollide = false
  1753. for i = 1, 10 do
  1754. Swait()
  1755. ROCK.Transparency = ROCK.Transparency + 0.1
  1756. end
  1757. ROCK:remove()
  1758. end))
  1759. for i=0, 1.6, 0.1 / Animation_Speed do
  1760. Swait()
  1761. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1762. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed)
  1763. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1764. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1765. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1766. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1767. end
  1768. ATTACK = false
  1769. Rooted = false
  1770. end
  1771.  
  1772. function RadiantVoid()
  1773. ATTACK = true
  1774. Rooted = true
  1775. for i=0, 1, 0.1 / Animation_Speed do
  1776. Swait()
  1777. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1778. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1781. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1782. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1783. end
  1784. local RING = CreateMagicCircle()
  1785. RING.CFrame = CF(RootPart.Position)*CF(0,-2.8,0)
  1786. CreateSound("1208650519", Torso, 10, 1)
  1787. for i = 1, 200 do
  1788. Swait()
  1789. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/15),RAD(0))
  1790. RING.Size = RING.Size + VT(1,0,1)
  1791. end
  1792. AoEWarp(RING.Position,RING.Size.X/2)
  1793. coroutine.resume(coroutine.create(function()
  1794. Swait(75)
  1795. for i = 1, 50 do
  1796. Swait()
  1797. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(-i/2),RAD(0))
  1798. RING.Size = RING.Size - VT(4,0,4)
  1799. end
  1800. RING:remove()
  1801. end))
  1802. ATTACK = false
  1803. Rooted = false
  1804. end
  1805.  
  1806. function DivineGlow()
  1807. ATTACK = true
  1808. Rooted = true
  1809. for i=0, 2, 0.1 / Animation_Speed do
  1810. Swait()
  1811. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,0.5),0.5)
  1812. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1813. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1814. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1815. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1816. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1817. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1818. end
  1819. CreateSound("3264923", Torso, 10, 3)
  1820. coroutine.resume(coroutine.create(function()
  1821. local FRAME = Torso.CFrame
  1822. MagicSphere(VT(3,3,3),450,FRAME,"New Yeller",VT(-3/550,-3/550,-3/550),0)
  1823. for i = 1, 450 do
  1824. Swait()
  1825. MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"New Yeller",VT(0.001,0.001,2.5),0.5)
  1826. AoEDamage(FRAME.p,1,1,1,-5,false,12,3,false)
  1827. end
  1828. MagicSphere(VT(6,6,6),70,FRAME,"New Yeller",VT(1,1,1),0)
  1829. MagicSphere(VT(5,5,5),70,FRAME,"Pearl",VT(1,1,1),0.5)
  1830. AoEDamage(FRAME.p,55,45,45,-5,false,2,30,false)
  1831. end))
  1832. ATTACK = false
  1833. Rooted = false
  1834. end
  1835.  
  1836. --X MOVES--
  1837.  
  1838. function ShieldPulse()
  1839. ATTACK = true
  1840. Rooted = false
  1841. for i=0, 1, 0.1 / Animation_Speed do
  1842. Swait()
  1843. turnto(Mouse.Hit.p)
  1844. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1845. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1846. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1847. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1848. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1849. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1850. end
  1851. local shield = IT("Part",Effects)
  1852. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1853. shield.Size = VT(0.2,0.2,0.2)
  1854. shield.Anchored = true
  1855. shield.Material = "Neon"
  1856. shield.Color = C3(1,1,1)
  1857. shield.Transparency = 0.5
  1858. repeat
  1859. Swait()
  1860. turnto(Mouse.Hit.p)
  1861. shield.CFrame = RootPart.CFrame * CF(0,0,-3)
  1862. shield.Size = shield.Size + VT(0.2,0.2,0)
  1863. until KEYHOLD == false
  1864. local bv = Instance.new("BodyVelocity")
  1865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1866. bv.velocity = RootPart.CFrame.lookVector*300
  1867. bv.Parent = shield
  1868. shield.Anchored = false
  1869. shield.CanCollide = false
  1870. bv.Name = "PROJECTILEVELOCITY"
  1871. local BOO = shield.Touched:Connect(function(hit)
  1872. dealdamage(hit,55,75,5,false,2,3)
  1873. end)
  1874. Debris:AddItem(shield,5)
  1875. ATTACK = false
  1876. Rooted = false
  1877. end
  1878.  
  1879. function FireField()
  1880. ATTACK = true
  1881. Rooted = true
  1882. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  1883. Swait()
  1884. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1885. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1886. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1887. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1888. 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)
  1889. 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)
  1890. end
  1891. CreateSound("217767125", LeftArm, 10, 1)
  1892. local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"}
  1893. coroutine.resume(coroutine.create(function()
  1894. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  1895. for i = 1, 450 do
  1896. Swait()
  1897. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  1898. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  1899. end
  1900. end))
  1901. for i=0, 1.5, 0.1 / Animation_Speed do
  1902. Swait()
  1903. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  1904. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1905. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1906. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1907. 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)
  1908. 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)
  1909. end
  1910. ATTACK = false
  1911. Rooted = false
  1912. end
  1913.  
  1914. function FrostBreath()
  1915. ATTACK = true
  1916. Rooted = true
  1917. for i=0, 2, 0.1 / Animation_Speed do
  1918. Swait()
  1919. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1920. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1921. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1922. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1923. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1924. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1925. end
  1926. CreateSound("976606790", Head, 10, 2)
  1927. local IceColors = {"Steel blue","Cyan","Pastel blue-green"}
  1928. for i=0, 4, 0.1 / Animation_Speed do
  1929. Swait()
  1930. for i = 1, 6 do
  1931. AoEStun(Head.CFrame * CF(0,-0.4,-i*3).p,i*3,35,"Freeze")
  1932. CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/15,i/10,i/15),0.7)
  1933. CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/10,i/10,i/10),0.7)
  1934. end
  1935. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1936. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1937. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1939. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1940. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1941. end
  1942. ATTACK = false
  1943. Rooted = false
  1944. end
  1945.  
  1946. function Bloodbath()
  1947. local HASSTARTED = false
  1948. local target = nil
  1949. local targettorso = nil
  1950. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1951. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  1952. target = Mouse.Target.Parent.Humanoid
  1953. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  1954. end
  1955. end
  1956. if target ~= nil then
  1957. CreateSound("305685800", Head, 10, 1)
  1958. targettorso.Anchored = true
  1959. HASSTARTED = true
  1960. ATTACK = true
  1961. Rooted = true
  1962. CastWarpOutlines(Character)
  1963. RootPart.CFrame = targettorso.CFrame * CF(0,0,2)
  1964. coroutine.resume(coroutine.create(function()
  1965. Swait(10*100)
  1966. if HASSTARTED == true then
  1967. ATTACK = false
  1968. Rooted = false
  1969. UNANCHOR = true
  1970. end
  1971. end))
  1972. UNANCHOR = false
  1973. RootPart.Anchored = true
  1974. coroutine.resume(coroutine.create(function()
  1975. for i=0, 3, 0.1 / Animation_Speed do
  1976. Swait()
  1977. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed)
  1978. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed)
  1979. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1980. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed)
  1981. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1982. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1983. end
  1984. for i=0, 3, 0.1 / Animation_Speed do
  1985. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed)
  1986. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed)
  1987. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1988. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1989. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1990. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1991. end
  1992. getbloody(targettorso,25)
  1993. Swait(5)
  1994. targettorso:remove()
  1995. Swait(15)
  1996. ATTACK = false
  1997. Rooted = false
  1998. HASSTARTED = false
  1999. UNANCHOR = true
  2000. end))
  2001. end
  2002. end
  2003.  
  2004. function EarthTremor()
  2005. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2006. if HITFLOOR ~= nil then
  2007. ATTACK = true
  2008. Rooted = true
  2009. for i=0, 2, 0.1 / Animation_Speed do
  2010. Swait()
  2011. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2012. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2013. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2014. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2015. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2016. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.3 / Animation_Speed)
  2017. end
  2018. for i=0, 0.3, 0.1 / Animation_Speed do
  2019. Swait()
  2020. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2021. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2022. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2023. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2024. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  2025. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed)
  2026. end
  2027. CreateSound("438666141", RightLeg, 5, 1)
  2028. local sinkhole = IT("Part")
  2029. sinkhole.Size = VT(35,0,35)
  2030. sinkhole.Parent = Effects
  2031. sinkhole.Material = "Neon"
  2032. sinkhole.Color = C3(0,0,0)
  2033. sinkhole.Anchored = true
  2034. sinkhole.CanCollide = false
  2035. sinkhole.Transparency = 1
  2036. local decal = IT("Decal",sinkhole)
  2037. decal.Face = "Top"
  2038. decal.Texture = "http://www.roblox.com/asset/?id=29268434"
  2039. decal.Transparency = 1
  2040. sinkhole.CFrame = CF(RightLeg.Position)*CF(0,-0.75,0)
  2041. AoEDamage(RightLeg.Position,35,15,25,4,false,32,7,true)
  2042. coroutine.resume(coroutine.create(function()
  2043. for i = 1, 5 do
  2044. Swait()
  2045. decal.Transparency = decal.Transparency - 0.2
  2046. end
  2047. Swait(500)
  2048. for i = 1, 5 do
  2049. Swait()
  2050. decal.Transparency = decal.Transparency + 0.2
  2051. end
  2052. sinkhole:remove()
  2053. end))
  2054. for i=0, 1, 0.1 / Animation_Speed do
  2055. Swait()
  2056. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2057. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  2058. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2059. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  2060. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  2061. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed)
  2062. end
  2063. ATTACK = false
  2064. Rooted = false
  2065. end
  2066. end
  2067.  
  2068. function VoidWarp()
  2069. local HASSTARTED = false
  2070. local target = nil
  2071. local targettorso = nil
  2072. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  2073. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  2074. target = Mouse.Target.Parent.Humanoid
  2075. targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  2076. end
  2077. end
  2078. if target ~= nil then
  2079. ATTACK = true
  2080. Rooted = true
  2081. for i=0, 1.5, 0.1 / Animation_Speed do
  2082. Swait()
  2083. if targettorso ~= nil then
  2084. turnto(targettorso.Position)
  2085. end
  2086. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2087. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2088. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2089. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2090. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2091. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2092. end
  2093. if targettorso ~= nil then
  2094. local GUI,GUI3 = CreateGUICircle(targettorso)
  2095. local GUI2,GUI4 = CreateGUICircle(Torso)
  2096. CreateSound("1208650519", targettorso, 10, 1)
  2097. CreateSound("1208650519", Torso, 10, 1)
  2098. targettorso.Anchored = true
  2099. for i = 1, 200 do
  2100. Swait()
  2101. GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0)
  2102. GUI2.Size = GUI.Size
  2103. GUI3.Rotation = GUI3.Rotation + 2
  2104. GUI4.Rotation = GUI4.Rotation - 2
  2105. end
  2106. if targettorso ~= nil then
  2107. CastWarpOutlines(targettorso.Parent)
  2108. CastWarpOutlines(Character)
  2109. local TFrame = Torso.CFrame
  2110. local TTFrame = targettorso.CFrame
  2111. Torso.CFrame = TTFrame
  2112. targettorso.CFrame = TFrame
  2113. local HUMANOID = targettorso.Parent:FindFirstChildOfClass("Humanoid")
  2114. local dmg = MRANDOM(75,95)
  2115. HUMANOID.Health = HUMANOID.Health - dmg
  2116. StatLabel("Normal", targettorso.CFrame * CF(0, 0 + (targettorso.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  2117. CreateSound("1177785010", targettorso, 10, 1)
  2118. CreateSound("1177785010", Torso, 10, 1)
  2119. HASSTARTED = true
  2120. coroutine.resume(coroutine.create(function()
  2121. for i = 1, 50 do
  2122. Swait()
  2123. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  2124. GUI2.Size = GUI.Size
  2125. GUI3.Rotation = GUI3.Rotation - 8
  2126. GUI4.Rotation = GUI4.Rotation + 8
  2127. end
  2128. GUI:remove()
  2129. GUI2:remove()
  2130. targettorso.Anchored = false
  2131. end))
  2132. end
  2133. if HASSTARTED == false then
  2134. GUI:remove()
  2135. GUI2:remove()
  2136. end
  2137. end
  2138. ATTACK = false
  2139. Rooted = false
  2140. end
  2141. end
  2142.  
  2143. function DivineEvaporation()
  2144. ATTACK = true
  2145. Rooted = false
  2146. for i=0, 6, 0.1 / Animation_Speed do
  2147. Swait()
  2148. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,1),0)
  2149. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2150. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2151. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2152. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2153. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2154. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2155. end
  2156. CreateSound("3264923", Torso, 10, 1)
  2157. for i = 1, 50 do
  2158. MagicSphere(VT(0.2,0.2,0.2),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.005,0.005,0.1),0)
  2159. end
  2160. MagicSphere(VT(20,20,20),50,Torso.CFrame,"New Yeller",VT(0,0,0),0.9)
  2161. killnearest(Torso.Position,15,5)
  2162. ATTACK = false
  2163. Rooted = false
  2164. end
  2165.  
  2166.  
  2167. function LeafField()
  2168. ATTACK = true
  2169. Rooted = true
  2170. for i=0, 1.5, 0.1 / Animation_Speed*3 do
  2171. Swait()
  2172. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2173. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2174. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2175. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2176. 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)
  2177. 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)
  2178. end
  2179. CreateSound("217767125", LeftArm, 10, 1)
  2180. local FIREBALLCOLORS = {"Lime green", "Mint", "Forest green"}
  2181. coroutine.resume(coroutine.create(function()
  2182. local CFRAME = RootPart.CFrame * CF(0,-3.4,0)
  2183. for i = 1, 450 do
  2184. Swait()
  2185. AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true)
  2186. MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8)
  2187. end
  2188. end))
  2189. for i=0, 1.5, 0.1 / Animation_Speed do
  2190. Swait()
  2191. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2195. 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)
  2196. 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)
  2197. end
  2198. ATTACK = false
  2199. Rooted = false
  2200. end
  2201.  
  2202.  
  2203. function LeafStorm()
  2204. ATTACK = true
  2205. ATTACK = true
  2206. Rooted = false
  2207. for i=0, 2, 0.1 / Animation_Speed do
  2208. Swait()
  2209. turnto(Mouse.Hit.p)
  2210. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2211. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2212. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2213. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2214. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2215. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2216. end
  2217. Rooted = true
  2218. local TURRETS = {RightArm,LeftArm}
  2219. local soundeffect = IT("Sound",Torso)
  2220. soundeffect.SoundId = "rbxassetid://337638956"
  2221. soundeffect.Looped = true
  2222. soundeffect.Volume = 1
  2223. soundeffect.Playing = true
  2224. repeat
  2225. Swait()
  2226. turnto(Mouse.Hit.p)
  2227. local TURRET = TURRETS[MRANDOM(1,#TURRETS)]
  2228. MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Shamrock",VT(0.3,0.3,0.3),0)
  2229. local BULLET = CreatePart(3, Effects, "Grass", 0, 0, "Shamrock", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  2230. BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  2231. local bv = Instance.new("BodyVelocity")
  2232. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2233. bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300
  2234. bv.Parent = BULLET
  2235. bv.Name = "PROJECTILEVELOCITY"
  2236. MakeForm(BULLET,"Ball")
  2237. local BOO = BULLET.Touched:Connect(function(hit)
  2238. dealdamage(hit,5,8,5,false,2,3)
  2239. end)
  2240. table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2})
  2241. until KEYHOLD == false
  2242. soundeffect:remove()
  2243. ATTACK = false
  2244. Rooted = false
  2245. end
  2246.  
  2247. --//=================================\\
  2248. --|| ASSIGN THINGS TO KEYS
  2249. --\\=================================//
  2250.  
  2251. function ChineseEarthquake()
  2252. Rooted = true
  2253. local icri = CreateSound("1177999394", Torso, 10, 1)
  2254. Swait(130)
  2255. local FRAME = Torso.CFrame
  2256. repeat
  2257. Swait()
  2258. Torso.CFrame = FRAME * CF(0,1,0)
  2259. Swait()
  2260. Torso.CFrame = FRAME
  2261. until icri.Playing == false
  2262. Rooted = false
  2263. end
  2264.  
  2265. function MouseDown(Mouse)
  2266. if ATTACK == false then
  2267. end
  2268. end
  2269.  
  2270. function MouseUp(Mouse)
  2271. HOLD = false
  2272. end
  2273.  
  2274. function KeyDown(Key)
  2275. KEYHOLD = true
  2276. if Rooted == false then
  2277. if Key == "z" and ATTACK == false then
  2278. if VALUE1 == 1 then
  2279. TurretCannon()
  2280. elseif VALUE1 == 2 then
  2281. Fireball()
  2282. elseif VALUE1 == 3 then
  2283. IcicleStorm()
  2284. elseif VALUE1 == 4 then
  2285. Shriek()
  2286. elseif VALUE1 == 5 then
  2287. RockThrow()
  2288. elseif VALUE1 == 6 then
  2289. RadiantVoid()
  2290. elseif VALUE1 == 7 then
  2291. DivineGlow()
  2292. elseif VALUE1 == 8 then
  2293. LeafStorm()
  2294. end
  2295. end
  2296.  
  2297. if Key == "x" and ATTACK == false then
  2298. if VALUE1 == 1 then
  2299. ShieldPulse()
  2300. elseif VALUE1 == 2 then
  2301. FireField()
  2302. elseif VALUE1 == 3 then
  2303. FrostBreath()
  2304. elseif VALUE1 == 4 then
  2305. Bloodbath()
  2306. elseif VALUE1 == 5 then
  2307. EarthTremor()
  2308. elseif VALUE1 == 6 then
  2309. VoidWarp()
  2310. elseif VALUE1 == 7 then
  2311. DivineEvaporation()
  2312. elseif VALUE1 == 8 then
  2313. LeafField()
  2314. end
  2315. end
  2316.  
  2317. if Key == "1" and ATTACK == false then
  2318. Stance1()
  2319. end
  2320.  
  2321. if Key == "2" and ATTACK == false then
  2322. Stance2()
  2323. end
  2324.  
  2325. if Key == "3" and ATTACK == false then
  2326. Stance3()
  2327. end
  2328.  
  2329. if Key == "4" and ATTACK == false then
  2330. Stance4()
  2331. end
  2332.  
  2333. if Key == "5" and ATTACK == false then
  2334. Stance5()
  2335. end
  2336.  
  2337. if Key == "6" and ATTACK == false then
  2338. Stance6()
  2339. end
  2340.  
  2341. if Key == "7" and ATTACK == false then
  2342. Stance7()
  2343. end
  2344.  
  2345. if Key == "8" and ATTACK == false then
  2346. Stance8()
  2347. end
  2348.  
  2349. if Key == "t" and ATTACK == false and VALUE1 == 5 then
  2350. ChineseEarthquake()
  2351. end
  2352. end
  2353. end
  2354.  
  2355. function KeyUp(Key)
  2356. KEYHOLD = false
  2357. end
  2358.  
  2359. Mouse.Button1Down:connect(function(NEWKEY)
  2360. MouseDown(NEWKEY)
  2361. end)
  2362. Mouse.Button1Up:connect(function(NEWKEY)
  2363. MouseUp(NEWKEY)
  2364. end)
  2365. Mouse.KeyDown:connect(function(NEWKEY)
  2366. KeyDown(NEWKEY)
  2367. end)
  2368. Mouse.KeyUp:connect(function(NEWKEY)
  2369. KeyUp(NEWKEY)
  2370. end)
  2371.  
  2372. --//=================================\\
  2373. --\\=================================//
  2374.  
  2375.  
  2376. function unanchor()
  2377. if UNANCHOR == true then
  2378. g = Character:GetChildren()
  2379. for i = 1, #g do
  2380. if g[i].ClassName == "Part" then
  2381. g[i].Anchored = false
  2382. end
  2383. end
  2384. end
  2385. end
  2386.  
  2387.  
  2388. --//=================================\\
  2389. --|| WRAP THE WHOLE SCRIPT UP
  2390. --\\=================================//
  2391.  
  2392. Humanoid.Changed:connect(function(Jump)
  2393. if Jump == "Jump" and (Disable_Jump == true) then
  2394. Humanoid.Jump = false
  2395. end
  2396. end)
  2397.  
  2398. VALUE1 = 1
  2399. Speed = 25
  2400.  
  2401. while true do
  2402. Swait()
  2403. ANIMATE.Parent = nil
  2404. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2405. IDLEANIMATION:Play()
  2406. SINE = SINE + CHANGE
  2407. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2408. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2409. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2410. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2411. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  2412. if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then
  2413. 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)
  2414. 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)
  2415. --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)
  2416. --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)
  2417. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2418. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2419. 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)
  2420. --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)
  2421. --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)
  2422. end
  2423. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2424. ANIM = "Jump"
  2425. if ATTACK == false then
  2426. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2427. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2428. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2429. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2430. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2431. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2432. end
  2433. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2434. ANIM = "Fall"
  2435. if ATTACK == false then
  2436. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2437. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2438. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2439. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2440. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2441. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2442. end
  2443. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2444. ANIM = "Idle"
  2445. if ATTACK == false then
  2446. if VALUE1 == 1 then
  2447. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2448. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2449. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2450. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2451. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2452. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2453. elseif VALUE1 == 2 then
  2454. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  2455. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  2456. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2457. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2458. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2459. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2460. elseif VALUE1 == 3 then
  2461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2465. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2467. elseif VALUE1 == 4 then
  2468. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2469. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2470. if MRANDOM(1,5) == 1 then
  2471. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1)
  2472. end
  2473. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2474. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2475. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2476. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2477. elseif VALUE1 == 5 then
  2478. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2479. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2480. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2481. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2482. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2483. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2484. elseif VALUE1 == 6 then
  2485. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2486. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2487. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2488. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2489. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2490. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2491. if MRANDOM(1,25) == 1 then
  2492. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1)
  2493. end
  2494. elseif VALUE1 == 7 then
  2495. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2496. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2497. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2498. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2499. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2500. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2501. elseif VALUE1 == 8 then
  2502. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + -0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  2503. 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(25)), 0.15 / Animation_Speed)
  2504. 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)
  2505. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2506. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2507. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2508. end
  2509. end
  2510. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2511. ANIM = "Walk"
  2512. WALK = WALK + 1 / Animation_Speed
  2513. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2514. WALK = 0
  2515. if WALKINGANIM == true then
  2516. WALKINGANIM = false
  2517. elseif WALKINGANIM == false then
  2518. WALKINGANIM = true
  2519. end
  2520. end
  2521. --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)
  2522. --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)
  2523. if ATTACK == false then
  2524. if VALUE1 < 4 or VALUE1 == 6 then
  2525. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2526. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2527. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2528. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2529. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2530. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2531. elseif VALUE1 == 4 then
  2532. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2533. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2534. if MRANDOM(1,15) == 1 then
  2535. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1)
  2536. end
  2537. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2538. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2539. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed)
  2540. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed)
  2541. elseif VALUE1 == 7 then
  2542. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2543. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2544. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2545. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2546. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2547. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2548. elseif VALUE1 == 5 then
  2549. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2550. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2551. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2552. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2553. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2554. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2555. elseif VALUE1 == 8 then
  2556. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2558. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2560. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2561. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2562. end
  2563. end
  2564. end
  2565. if #Effects2>0 then
  2566. for e=1,#Effects2 do
  2567. if Effects2[e]~=nil then
  2568. local Thing=Effects2[e]
  2569. if Thing~=nil then
  2570. local Part=Thing[1]
  2571. local Mode=Thing[2]
  2572. local Delay=Thing[3]
  2573. local IncX=Thing[4]
  2574. local IncY=Thing[5]
  2575. local IncZ=Thing[6]
  2576. local Part2=Thing[8]
  2577. if Thing[1].Transparency<=1 then
  2578. if Thing[2]=="Block1" then
  2579. Thing[1].CFrame=Thing[1].CFrame
  2580. Mesh=Thing[1].Mesh
  2581. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2582. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2583. elseif Thing[2]=="Cylinder" then
  2584. Mesh=Thing[1].Mesh
  2585. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2586. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2587. elseif Thing[2]=="Blood" then
  2588. Mesh=Thing[7]
  2589. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2590. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2591. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2592. elseif Thing[2]=="Elec" then
  2593. Mesh=Thing[1].Mesh
  2594. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2595. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2596. elseif Thing[2]=="Disappear" then
  2597. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2598. elseif Thing[2]=="Evaporate" then
  2599. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2600. local C = {-5,-2,2,5}
  2601. MagicSphere(VT(0,0,0),15,CF(Thing[1].CFrame*CF(C[MRANDOM(1,#C)],C[MRANDOM(1,#C)],C[MRANDOM(1,#C)]).p,Thing[1].Position),"New Yeller",VT(0.01,0.01,0.5),0.8)
  2602. end
  2603. else
  2604. Part.Parent=nil
  2605. table.remove(Effects2,e)
  2606. end
  2607. end
  2608. end
  2609. end
  2610. end
  2611. unanchor()
  2612. Humanoid.MaxHealth = "inf"
  2613. Humanoid.Health = "inf"
  2614. if Rooted == false then
  2615. Disable_Jump = false
  2616. Humanoid.WalkSpeed = Speed
  2617. elseif Rooted == true then
  2618. Disable_Jump = true
  2619. Humanoid.WalkSpeed = 0
  2620. end
  2621. local MATHS = {"0","1"}
  2622. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  2623. Humanoid.PlatformStand = false
  2624. end
  2625.  
  2626. --//=================================\\
  2627. --\\=================================//
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633. --//====================================================\\--
  2634. --|| END OF SCRIPT
  2635. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement