Advertisement
bmrx13

BETTER WORK AAAAAA

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