Advertisement
zXzGamePROzXz

Untitled

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