samuelrichter66

death by poisoned lightning

May 28th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.41 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 V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153.  
  154.  
  155. --//====================================================\\--
  156. --|| CREATED BY SHACKLUSTER
  157. --\\====================================================//--
  158.  
  159. wait(0.2)
  160.  
  161. Player = game:GetService("Players").LocalPlayer
  162. PlayerGui = Player.PlayerGui
  163. Cam = workspace.CurrentCamera
  164. Backpack = Player.Backpack
  165. Character = Player.Character
  166. Humanoid = Character.Humanoid
  167. Mouse = Player:GetMouse()
  168. RootPart = Character["HumanoidRootPart"]
  169. Torso = Character["Torso"]
  170. Head = Character["Head"]
  171. RightArm = Character["Right Arm"]
  172. LeftArm = Character["Left Arm"]
  173. RightLeg = Character["Right Leg"]
  174. LeftLeg = Character["Left Leg"]
  175. RootJoint = RootPart["RootJoint"]
  176. Neck = Torso["Neck"]
  177. RightShoulder = Torso["Right Shoulder"]
  178. LeftShoulder = Torso["Left Shoulder"]
  179. RightHip = Torso["Right Hip"]
  180. LeftHip = Torso["Left Hip"]
  181. local sick = Instance.new("Sound",Character)
  182.  
  183. IT = Instance.new
  184. CF = CFrame.new
  185. VT = Vector3.new
  186. RAD = math.rad
  187. C3 = Color3.new
  188. UD2 = UDim2.new
  189. BRICKC = BrickColor.new
  190. ANGLES = CFrame.Angles
  191. EULER = CFrame.fromEulerAnglesXYZ
  192. COS = math.cos
  193. ACOS = math.acos
  194. SIN = math.sin
  195. ASIN = math.asin
  196. ABS = math.abs
  197. MRANDOM = math.random
  198. FLOOR = math.floor
  199.  
  200. --//=================================\\
  201. --|| USEFUL VALUES
  202. --\\=================================//
  203.  
  204. Animation_Speed = 3
  205. local Walkspeed = 16
  206. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  207. local Speed = 16
  208. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  209. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  210. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  211. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  212. local DAMAGEMULTIPLIER = 1
  213. local ANIM = "Idle"
  214. local ATTACK = false
  215. local EQUIPPED = false
  216. local HOLD = false
  217. local COMBO = 1
  218. local Rooted = false
  219. local SINE = 0
  220. local KEYHOLD = false
  221. local CHANGE = 2 / Animation_Speed
  222. local WALKINGANIM = false
  223. local VALUE1 = false
  224. local VALUE2 = false
  225. local ROBLOXIDLEANIMATION = IT("Animation")
  226. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  227. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  228. --ROBLOXIDLEANIMATION.Parent = Humanoid
  229. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  230. WEAPONGUI.Name = "Weapon GUI"
  231. local Effects = IT("Folder", Character)
  232. Effects.Name = "Effects"
  233. local ANIMATOR = Humanoid.Animator
  234. local ANIMATE = Character.Animate
  235. local UNANCHOR = true
  236. local SHOCKSOUND = 1544280726
  237. local RINGSOUND = 340505360
  238. local ULTHIT = 412831137
  239.  
  240. --//=================================\\
  241. --\\=================================//
  242.  
  243.  
  244. --//=================================\\
  245. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  246. --\\=================================//
  247.  
  248. ArtificialHB = Instance.new("BindableEvent", script)
  249. ArtificialHB.Name = "ArtificialHB"
  250.  
  251. script:WaitForChild("ArtificialHB")
  252.  
  253. frame = Frame_Speed
  254. tf = 0
  255. allowframeloss = false
  256. tossremainder = false
  257. lastframe = tick()
  258. script.ArtificialHB:Fire()
  259.  
  260. game:GetService("RunService").Heartbeat:connect(function(s, p)
  261. tf = tf + s
  262. if tf >= frame then
  263. if allowframeloss then
  264. script.ArtificialHB:Fire()
  265. lastframe = tick()
  266. else
  267. for i = 1, math.floor(tf / frame) do
  268. script.ArtificialHB:Fire()
  269. end
  270. lastframe = tick()
  271. end
  272. if tossremainder then
  273. tf = 0
  274. else
  275. tf = tf - frame * math.floor(tf / frame)
  276. end
  277. end
  278. end)
  279.  
  280. --//=================================\\
  281. --\\=================================//
  282.  
  283. --//=================================\\
  284. --|| SOME FUNCTIONS
  285. --\\=================================//
  286.  
  287. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  288. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  289. end
  290.  
  291. function PositiveAngle(NUMBER)
  292. if NUMBER >= 0 then
  293. NUMBER = 0
  294. end
  295. return NUMBER
  296. end
  297.  
  298. function NegativeAngle(NUMBER)
  299. if NUMBER <= 0 then
  300. NUMBER = 0
  301. end
  302. return NUMBER
  303. end
  304.  
  305. function Swait(NUMBER)
  306. if NUMBER == 0 or NUMBER == nil then
  307. ArtificialHB.Event:wait()
  308. else
  309. for i = 1, NUMBER do
  310. ArtificialHB.Event:wait()
  311. end
  312. end
  313. end
  314.  
  315. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  316. local NEWMESH = IT(MESH)
  317. if MESH == "SpecialMesh" then
  318. NEWMESH.MeshType = MESHTYPE
  319. if MESHID ~= "nil" and MESHID ~= "" then
  320. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  321. end
  322. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  323. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  324. end
  325. end
  326. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  327. NEWMESH.Scale = SCALE
  328. NEWMESH.Parent = PARENT
  329. return NEWMESH
  330. end
  331.  
  332. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  333. local NEWPART = IT("Part")
  334. NEWPART.formFactor = FORMFACTOR
  335. NEWPART.Reflectance = REFLECTANCE
  336. NEWPART.Transparency = TRANSPARENCY
  337. NEWPART.CanCollide = false
  338. NEWPART.Locked = true
  339. NEWPART.Anchored = true
  340. if ANCHOR == false then
  341. NEWPART.Anchored = false
  342. end
  343. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  344. NEWPART.Name = NAME
  345. NEWPART.Size = SIZE
  346. NEWPART.Position = Torso.Position
  347. NEWPART.Material = MATERIAL
  348. NEWPART:BreakJoints()
  349. NEWPART.Parent = PARENT
  350. return NEWPART
  351. end
  352.  
  353. local function weldBetween(a, b)
  354. local weldd = Instance.new("ManualWeld")
  355. weldd.Part0 = a
  356. weldd.Part1 = b
  357. weldd.C0 = CFrame.new()
  358. weldd.C1 = b.CFrame:inverse() * a.CFrame
  359. weldd.Parent = a
  360. return weldd
  361. end
  362.  
  363.  
  364. function QuaternionFromCFrame(cf)
  365. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  366. local trace = m00 + m11 + m22
  367. if trace > 0 then
  368. local s = math.sqrt(1 + trace)
  369. local recip = 0.5 / s
  370. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  371. else
  372. local i = 0
  373. if m11 > m00 then
  374. i = 1
  375. end
  376. if m22 > (i == 0 and m00 or m11) then
  377. i = 2
  378. end
  379. if i == 0 then
  380. local s = math.sqrt(m00 - m11 - m22 + 1)
  381. local recip = 0.5 / s
  382. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  383. elseif i == 1 then
  384. local s = math.sqrt(m11 - m22 - m00 + 1)
  385. local recip = 0.5 / s
  386. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  387. elseif i == 2 then
  388. local s = math.sqrt(m22 - m00 - m11 + 1)
  389. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  390. end
  391. end
  392. end
  393.  
  394. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  395. local xs, ys, zs = x + x, y + y, z + z
  396. local wx, wy, wz = w * xs, w * ys, w * zs
  397. local xx = x * xs
  398. local xy = x * ys
  399. local xz = x * zs
  400. local yy = y * ys
  401. local yz = y * zs
  402. local zz = z * zs
  403. 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))
  404. end
  405.  
  406. function QuaternionSlerp(a, b, t)
  407. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  408. local startInterp, finishInterp;
  409. if cosTheta >= 0.0001 then
  410. if (1 - cosTheta) > 0.0001 then
  411. local theta = ACOS(cosTheta)
  412. local invSinTheta = 1 / SIN(theta)
  413. startInterp = SIN((1 - t) * theta) * invSinTheta
  414. finishInterp = SIN(t * theta) * invSinTheta
  415. else
  416. startInterp = 1 - t
  417. finishInterp = t
  418. end
  419. else
  420. if (1 + cosTheta) > 0.0001 then
  421. local theta = ACOS(-cosTheta)
  422. local invSinTheta = 1 / SIN(theta)
  423. startInterp = SIN((t - 1) * theta) * invSinTheta
  424. finishInterp = SIN(t * theta) * invSinTheta
  425. else
  426. startInterp = t - 1
  427. finishInterp = t
  428. end
  429. end
  430. 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
  431. end
  432.  
  433. function Clerp(a, b, t)
  434. local qa = {QuaternionFromCFrame(a)}
  435. local qb = {QuaternionFromCFrame(b)}
  436. local ax, ay, az = a.x, a.y, a.z
  437. local bx, by, bz = b.x, b.y, b.z
  438. local _t = 1 - t
  439. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  440. end
  441.  
  442. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  443. local frame = IT("Frame")
  444. frame.BackgroundTransparency = TRANSPARENCY
  445. frame.BorderSizePixel = BORDERSIZEPIXEL
  446. frame.Position = POSITION
  447. frame.Size = SIZE
  448. frame.BackgroundColor3 = COLOR
  449. frame.BorderColor3 = BORDERCOLOR
  450. frame.Name = NAME
  451. frame.Parent = PARENT
  452. return frame
  453. end
  454.  
  455. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  456. local label = IT("TextLabel")
  457. label.BackgroundTransparency = 1
  458. label.Size = UD2(1, 0, 1, 0)
  459. label.Position = UD2(0, 0, 0, 0)
  460. label.TextColor3 = TEXTCOLOR
  461. label.TextStrokeTransparency = STROKETRANSPARENCY
  462. label.TextTransparency = TRANSPARENCY
  463. label.FontSize = TEXTFONTSIZE
  464. label.Font = TEXTFONT
  465. label.BorderSizePixel = BORDERSIZEPIXEL
  466. label.TextScaled = false
  467. label.Text = TEXT
  468. label.Name = NAME
  469. label.Parent = PARENT
  470. return label
  471. end
  472.  
  473. function NoOutlines(PART)
  474. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  475. end
  476.  
  477. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  478. local NEWWELD = IT(TYPE)
  479. NEWWELD.Part0 = PART0
  480. NEWWELD.Part1 = PART1
  481. NEWWELD.C0 = C0
  482. NEWWELD.C1 = C1
  483. NEWWELD.Parent = PARENT
  484. return NEWWELD
  485. end
  486.  
  487. local S = IT("Sound")
  488. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  489. local NEWSOUND = nil
  490. coroutine.resume(coroutine.create(function()
  491. NEWSOUND = S:Clone()
  492. NEWSOUND.Parent = PARENT
  493. NEWSOUND.Volume = VOLUME
  494. NEWSOUND.Pitch = PITCH
  495. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  496. NEWSOUND:play()
  497. if DOESLOOP == true then
  498. NEWSOUND.Looped = true
  499. else
  500. repeat wait(1) until NEWSOUND.Playing == false
  501. NEWSOUND:remove()
  502. end
  503. end))
  504. return NEWSOUND
  505. end
  506.  
  507. function CFrameFromTopBack(at, top, back)
  508. local right = top:Cross(back)
  509. 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)
  510. end
  511.  
  512. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  513. function WACKYEFFECT(Table)
  514. local TYPE = (Table.EffectType or "Sphere")
  515. local SIZE = (Table.Size or VT(1,1,1))
  516. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  517. local TRANSPARENCY = (Table.Transparency or 0)
  518. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  519. local CFRAME = (Table.CFrame or Torso.CFrame)
  520. local MOVEDIRECTION = (Table.MoveToPos or nil)
  521. local ROTATION1 = (Table.RotationX or 0)
  522. local ROTATION2 = (Table.RotationY or 0)
  523. local ROTATION3 = (Table.RotationZ or 0)
  524. local MATERIAL = (Table.Material or "Neon")
  525. local COLOR = (Table.Color or C3(1,1,1))
  526. local TIME = (Table.Time or 45)
  527. local SOUNDID = (Table.SoundID or nil)
  528. local SOUNDPITCH = (Table.SoundPitch or nil)
  529. local SOUNDVOLUME = (Table.SoundVolume or nil)
  530. coroutine.resume(coroutine.create(function()
  531. local PLAYSSOUND = false
  532. local SOUND = nil
  533. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  534. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  535. PLAYSSOUND = true
  536. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  537. end
  538. EFFECT.Color = COLOR
  539. local MSH = nil
  540. if TYPE == "Sphere" then
  541. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  542. elseif TYPE == "Block" then
  543. MSH = IT("BlockMesh",EFFECT)
  544. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  545. elseif TYPE == "Wave" then
  546. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  547. elseif TYPE == "Ring" then
  548. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  549. elseif TYPE == "Slash" then
  550. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  551. elseif TYPE == "Round Slash" then
  552. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  553. elseif TYPE == "Swirl" then
  554. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  555. elseif TYPE == "Skull" then
  556. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  557. elseif TYPE == "Crystal" then
  558. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  559. elseif TYPE == "Cloud" then
  560. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
  561. end
  562. if MSH ~= nil then
  563. local MOVESPEED = nil
  564. if MOVEDIRECTION ~= nil then
  565. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  566. end
  567. local GROWTH = SIZE - ENDSIZE
  568. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  569. if TYPE == "Block" then
  570. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  571. else
  572. EFFECT.CFrame = CFRAME
  573. end
  574. for LOOP = 1, TIME+1 do
  575. Swait()
  576. MSH.Scale = MSH.Scale - GROWTH/TIME
  577. if TYPE == "Wave" then
  578. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  579. end
  580. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  581. if TYPE == "Block" then
  582. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  583. else
  584. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  585. end
  586. if MOVEDIRECTION ~= nil then
  587. local ORI = EFFECT.Orientation
  588. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  589. EFFECT.Orientation = ORI
  590. end
  591. end
  592. if PLAYSSOUND == false then
  593. EFFECT:remove()
  594. else
  595. repeat Swait() until SOUND.Playing == false
  596. EFFECT:remove()
  597. end
  598. else
  599. if PLAYSSOUND == false then
  600. EFFECT:remove()
  601. else
  602. repeat Swait() until SOUND.Playing == false
  603. EFFECT:remove()
  604. end
  605. end
  606. end))
  607. end
  608.  
  609. function MakeForm(PART,TYPE)
  610. if TYPE == "Cyl" then
  611. local MSH = IT("CylinderMesh",PART)
  612. elseif TYPE == "Ball" then
  613. local MSH = IT("SpecialMesh",PART)
  614. MSH.MeshType = "Sphere"
  615. elseif TYPE == "Wedge" then
  616. local MSH = IT("SpecialMesh",PART)
  617. MSH.MeshType = "Wedge"
  618. end
  619. end
  620.  
  621. Debris = game:GetService("Debris")
  622.  
  623. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  624. local DIRECTION = CF(StartPos,EndPos).lookVector
  625. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  626. end
  627.  
  628. function turnto(position)
  629. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  630. end
  631.  
  632. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  633. function Lightning(Table)
  634. local Color = Table.Color or C3(1,1,1)
  635. local StartPos = Table.Start or Torso.Position
  636. local EndPos = Table.End or Mouse.Hit.p
  637. local SegmentLength = Table.SegmentL or 2
  638. local Thickness = Table.Thickness or 0.1
  639. local Dissapear = Table.DoesFade or false
  640. local Parent = Table.Ignore or Character
  641. local MaxDist = Table.MaxDist or 400
  642. local Branches = Table.Branches or false
  643. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  644. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  645. local LIGHTNINGMODEL = IT("Model",Effects)
  646. LIGHTNINGMODEL.Name = "Lightning"
  647. local LastBolt = nil
  648. for E = 1, DISTANCE do
  649. local ExtraSize = (DISTANCE-E)/25
  650. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  651. PART.Color = Color
  652. MakeForm(PART,"Cyl")
  653. if LastBolt == nil then
  654. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  655. else
  656. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  657. end
  658. LastBolt = PART
  659. if Branches == true then
  660. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  661. if CHOICE == 1 then
  662. local LASTBRANCH = nil
  663. for i = 1, MRANDOM(2,5) do
  664. local ExtraSize2 = ((DISTANCE-E)/35)/i
  665. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  666. PART.Color = Color
  667. MakeForm(PART,"Cyl")
  668. if LASTBRANCH == nil then
  669. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  670. else
  671. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  672. end
  673. LASTBRANCH = PART
  674. end
  675. end
  676. end
  677. end
  678. if Dissapear == true then
  679. coroutine.resume(coroutine.create(function()
  680. for i = 1, 30 do
  681. Swait()
  682. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  683. if c.ClassName == "Part" then
  684. c.Transparency = i/30
  685. end
  686. end
  687. end
  688. LIGHTNINGMODEL:remove()
  689. end))
  690. elseif Dissapear == false then
  691. Debris:AddItem(LIGHTNINGMODEL,0.1)
  692. end
  693. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  694. end
  695.  
  696. local Particle = IT("ParticleEmitter",nil)
  697. Particle.Enabled = false
  698. Particle.LightEmission = 1
  699. Particle.Rate = 150
  700. Particle.ZOffset = 1
  701. Particle.Rotation = NumberRange.new(-180, 180)
  702.  
  703. --ParticleEmitter({Speed = 5, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
  704. function ParticleEmitter(Table)
  705. local PRTCL = Particle:Clone()
  706. local Color1 = Table.Color1 or C3(1,1,1)
  707. local Color2 = Table.Color2 or C3(1,1,1)
  708. local Speed = Table.Speed or 5
  709. local Drag = Table.Drag or 0
  710. local Size1 = Table.Size1 or 1
  711. local Size2 = Table.Size2 or 5
  712. local Lifetime1 = Table.Lifetime1 or 1
  713. local Lifetime2 = Table.Lifetime2 or 1.5
  714. local Parent = Table.Parent or Torso
  715. local Emit = Table.Emit or 100
  716. local Offset = Table.Offset or 360
  717. local Acel = Table.Acel or VT(0,0,0)
  718. local Enabled = Table.Enabled or false
  719. local Texture = Table.Texture or "281983280"
  720. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  721. local Trans1 = Table.Transparency1 or 0
  722. local Trans2 = Table.Transparency2 or 0
  723. PRTCL.Parent = Parent
  724. PRTCL.RotSpeed = RotS
  725. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  726. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  727. PRTCL.Color = ColorSequence.new(Color1,Color2)
  728. PRTCL.Size = NumberSequence.new(Size1,Size2)
  729. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  730. PRTCL.Speed = NumberRange.new(Speed)
  731. PRTCL.VelocitySpread = Offset
  732. PRTCL.Drag = Drag
  733. PRTCL.Acceleration = Acel
  734. if Enabled == false then
  735. PRTCL:Emit(Emit)
  736. Debris:AddItem(PRTCL,Lifetime2)
  737. else
  738. PRTCL.Enabled = true
  739. end
  740. return PRTCL
  741. end
  742.  
  743. --//=================================\\
  744. --|| WEAPON CREATION
  745. --\\=================================//
  746.  
  747. local SKILLTEXTCOLOR = C3(1,1,1)
  748. local SKILLFONT = "Fantasy"
  749. local SKILLTEXTSIZE = 5
  750. local POWER = 250
  751. local MAXPOWER = 500
  752.  
  753. Humanoid.Died:connect(function()
  754. ATTACK = true
  755. end)
  756.  
  757. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.83, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  758. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.012, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  759. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.03, 0, 0.73, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  760. local SHIFTFR = CreateFrame(WEAPONGUI, 1, 2, UD2(0.30, 0, 0.87, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Charging")
  761.  
  762. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Poison Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  763. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Toxic Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  764. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Toxic Devastation", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  765. local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift")
  766.  
  767. local MANABAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar")
  768. local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Dark indigo".Color, C3(0, 0, 0),"Mana Cover")
  769. local MANATEXT = CreateLabel(MANABAR, POWER.."/"..MAXPOWER, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "MP")
  770.  
  771. local A = IT("Attachment",Torso)
  772. local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  773. TORSOTHUNDER.Enabled = false
  774. TORSOTHUNDER.Rate = 5
  775. local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  776. TORSOTHUNDER2.Enabled = false
  777. TORSOTHUNDER2.Rate = 5
  778. local B = IT("Attachment",RootPart)
  779. B.Position = VT(0,-3,0)
  780. local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  781. CHARGE.ZOffset = 1.5
  782. CHARGE.Enabled = false
  783. CHARGE.Rate = 999
  784.  
  785. local FF = IT("ForceField",Character)
  786. FF.Visible = false
  787. Humanoid.MaxHealth = 1200
  788. Humanoid.Health = 1200
  789. local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.93, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar")
  790. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
  791. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  792. Character.Health:remove()
  793.  
  794. --//=================================\\
  795. --|| DAMAGING
  796. --\\=================================//
  797.  
  798. function ApplyDamage(Humanoid,Damage,TorsoPart)
  799. local defence = Instance.new("BoolValue",Humanoid.Parent)
  800. defence.Name = ("HitBy"..Player.Name)
  801. game:GetService("Debris"):AddItem(defence, 0.001)
  802. Damage = Damage * DAMAGEMULTIPLIER
  803. if Humanoid.Health ~= 0 then
  804. local CritChance = MRANDOM(1,100)
  805. if Damage > Humanoid.Health then
  806. Damage = math.ceil(Humanoid.Health)
  807. if Damage == 0 then
  808. Damage = 0.1
  809. end
  810. end
  811. Humanoid.Health = Humanoid.Health - Damage
  812. end
  813. end
  814.  
  815. function AfterZap(Humanoid,Times,Dmg)
  816. coroutine.resume(coroutine.create(function()
  817. if Humanoid ~= nil then
  818. local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  819. ZAP.Rate = 75
  820. for i = 1, Times do
  821. wait(1)
  822. if Humanoid ~= nil and Humanoid.Health > 0 then
  823. Humanoid.Health = Humanoid.Health - Dmg
  824. CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
  825. else
  826. break
  827. end
  828. end
  829. ZAP.Enabled = false
  830. Debris:AddItem(ZAP,3)
  831. end
  832. end))
  833. end
  834.  
  835. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
  836. local CHILDREN = workspace:GetDescendants()
  837. for index, CHILD in pairs(CHILDREN) do
  838. if CHILD.ClassName == "Model" and CHILD ~= Character then
  839. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  840. if HUM then
  841. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  842. if TORSO then
  843. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  844. if DOESAFTERZAP == true then
  845. AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
  846. end
  847. local DMG = MRANDOM(MINDMG,MAXDMG)
  848. ApplyDamage(HUM,DMG,TORSO)
  849. if FLING > 0 then
  850. for _, c in pairs(CHILD:GetChildren()) do
  851. if c:IsA("BasePart") then
  852. local bv = Instance.new("BodyVelocity")
  853. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  854. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  855. bv.Parent = c
  856. Debris:AddItem(bv,0.05)
  857. end
  858. end
  859. end
  860. end
  861. end
  862. end
  863. end
  864. end
  865. end
  866.  
  867. --//=================================\\
  868. --|| ATTACK FUNCTIONS AND STUFF
  869. --\\=================================//
  870.  
  871. local DECAL = IT("Decal",nil)
  872.  
  873. function MagicRing(PART,CFRAME)
  874. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false)
  875. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  876. local MESH = IT("BlockMesh",RING)
  877. local BOTTOMTEXTURE = DECAL:Clone()
  878. BOTTOMTEXTURE.Parent = RING
  879. BOTTOMTEXTURE.Face = "Bottom"
  880. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449"
  881. BOTTOMTEXTURE.Name = "BottomTexture"
  882. local TOPTEXTURE = DECAL:Clone()
  883. TOPTEXTURE.Parent = RING
  884. TOPTEXTURE.Face = "Top"
  885. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191"
  886. TOPTEXTURE.Name = "TopTexture"
  887. local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  888. T.LockedToPart = true
  889. return RING,WELD,MESH
  890. end
  891.  
  892. function Charge()
  893. ATTACK = true
  894. Rooted = true
  895. TORSOTHUNDER.Enabled = true
  896. TORSOTHUNDER2.Enabled = true
  897. CHARGE.Enabled = true
  898. local LOOP = CreateSound(516142778,Torso,0,1,true)
  899. local LOOP2 = CreateSound(1393698948,Torso,0,2,true)
  900. repeat
  901. Swait()
  902. if POWER < MAXPOWER then
  903. POWER = POWER + 1
  904. elseif POWER > MAXPOWER then
  905. POWER = MAXPOWER
  906. end
  907. if LOOP.Volume < 5 then
  908. LOOP.Volume = LOOP.Volume + 0.2
  909. end
  910. if LOOP2.Volume < 5 then
  911. LOOP2.Volume = LOOP2.Volume + 0.2
  912. end
  913. TORSOTHUNDER.Rate = MRANDOM(15,45)
  914. TORSOTHUNDER2.Rate = MRANDOM(15,45)
  915. Humanoid.Health = Humanoid.Health + 1
  916. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  920. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  921. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  922. until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth
  923. CHARGE.Enabled = false
  924. TORSOTHUNDER.Enabled = false
  925. TORSOTHUNDER2.Enabled = false
  926. coroutine.resume(coroutine.create(function()
  927. repeat
  928. Swait()
  929. LOOP.Volume = LOOP.Volume - 0.2
  930. LOOP2.Volume = LOOP2.Volume - 0.2
  931. until LOOP.Volume <= 0
  932. LOOP:remove()
  933. end))
  934. ATTACK = false
  935. Rooted = false
  936. end
  937.  
  938. function PoisonBolt()
  939. ATTACK = true
  940. Rooted = true
  941. local STRENGTH = 100
  942. local TIER = 1
  943. local GRAV = IT("BodyPosition",RootPart)
  944. GRAV.D = 250
  945. GRAV.P = 20000
  946. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  947. GRAV.Position = RootPart.Position
  948. local G = IT("BodyGyro",RootPart)
  949. G.D = 250
  950. G.P = 200000
  951. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  952. local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0))
  953. CreateSound(RINGSOUND,RING,5,1,false)
  954. repeat
  955. Swait()
  956. STRENGTH = STRENGTH + 0.3
  957. if STRENGTH > 200 then
  958. STRENGTH = 200
  959. end
  960. if MESH.Scale.X < 120 then
  961. MESH.Scale = MESH.Scale + VT(3,0,3)
  962. elseif MESH.Scale.X < 200 then
  963. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  964. end
  965. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  966. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  967. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  968. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  969. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  970. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  971. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  972. until KEYHOLD == false and MESH.Scale.X >= 120
  973. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then
  974. POWER = POWER - 35
  975. TIER = 2
  976. elseif STRENGTH == 200 and POWER >= 75 then
  977. POWER = POWER - 75
  978. TIER = 3
  979. end
  980. --print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
  981. if TIER == 1 then
  982. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
  983. if ZAP.End ~= nil then
  984. ApplyAoE(ZAP.End,10,5,15,35,true,6)
  985. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
  986. WACKYEFFECT({Time = 65, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  987. end
  988. elseif TIER == 2 then
  989. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
  990. if ZAP.End ~= nil then
  991. ApplyAoE(ZAP.End,15,15,25,35,true,8)
  992. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
  993. WACKYEFFECT({Time = 75, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*2, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  994. end
  995. elseif TIER == 3 then
  996. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
  997. if ZAP.End ~= nil then
  998. ApplyAoE(ZAP.End,20,15,25,35,true,12)
  999. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1000. WACKYEFFECT({Time = 125, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*4, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  1001. for i = 1, 4 do
  1002. Lightning({Color = BRICKC"Dark indigo".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
  1003. end
  1004. end
  1005. end
  1006. wait(0.5)
  1007. RING.Anchored = true
  1008. WELD:remove()
  1009. coroutine.resume(coroutine.create(function()
  1010. for i = 1, 25 do
  1011. Swait()
  1012. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1013. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1014. MESH.Scale = MESH.Scale - VT(3,0,3)
  1015. end
  1016. RING:remove()
  1017. end))
  1018. ATTACK = false
  1019. Rooted = false
  1020. G:remove()
  1021. GRAV:remove()
  1022. end
  1023.  
  1024. function ToxicStomp()
  1025. ATTACK = true
  1026. Rooted = false
  1027. local GRAV = IT("BodyPosition",RootPart)
  1028. GRAV.D = 250
  1029. GRAV.P = 20000
  1030. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1031. GRAV.Position = RootPart.Position
  1032. local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
  1033. CreateSound(RINGSOUND,RING,5,1,false)
  1034. local STRENGTH = 100
  1035. local TIER = 1
  1036. repeat
  1037. Swait()
  1038. STRENGTH = STRENGTH + 0.3
  1039. if STRENGTH > 200 then
  1040. STRENGTH = 200
  1041. end
  1042. if MESH.Scale.X < 120 then
  1043. MESH.Scale = MESH.Scale + VT(3,0,3)
  1044. elseif MESH.Scale.X < 200 then
  1045. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  1046. end
  1047. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1048. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1049. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1050. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1051. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1052. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1053. until KEYHOLD == false and MESH.Scale.X >= 120
  1054. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
  1055. POWER = POWER - 45
  1056. TIER = 2
  1057. elseif STRENGTH == 200 and POWER >= 100 then
  1058. POWER = POWER - 100
  1059. TIER = 3
  1060. end
  1061. for i=0, 0.2, 0.1 / Animation_Speed do
  1062. Swait()
  1063. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1064. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1065. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1066. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1067. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1068. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1069. end
  1070. for i=0, 0.2, 0.1 / Animation_Speed do
  1071. Swait()
  1072. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1076. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1078. end
  1079. coroutine.resume(coroutine.create(function()
  1080. if TIER == 1 then
  1081. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(30,0,30))
  1082. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1083. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1084. PARTCL.Rate = 999
  1085. CreateSound(304999618,AOE,5,1,false)
  1086. CreateSound(130972023,AOE,4,1,false)
  1087. ApplyAoE(AOE.Position,15,15,25,35,true,5)
  1088. WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1089. wait(2)
  1090. PARTCL.Enabled = false
  1091. Debris:AddItem(AOE,2)
  1092. elseif TIER == 2 then
  1093. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(40,0,40))
  1094. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1095. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1096. PARTCL.Rate = 999
  1097. CreateSound(304999618,AOE,5,1,false)
  1098. CreateSound(130972023,AOE,4,1,false)
  1099. ApplyAoE(AOE.Position,20,25,35,35,true,6)
  1100. WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1101. wait(2)
  1102. PARTCL.Enabled = false
  1103. Debris:AddItem(AOE,2)
  1104. elseif TIER == 3 then
  1105. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(50,0,50))
  1106. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1107. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1108. PARTCL.Rate = 999
  1109. CreateSound(304999618,AOE,5,1,false)
  1110. CreateSound(130972023,AOE,4,1,false)
  1111. for i = 1, 3 do
  1112. ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1113. wait(0.5)
  1114. end
  1115. wait(1.5)
  1116. PARTCL.Enabled = false
  1117. Debris:AddItem(AOE,2)
  1118. end
  1119. end))
  1120. for i=0, 2, 0.1 / Animation_Speed do
  1121. Swait()
  1122. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1123. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1124. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1125. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1126. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1127. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1128. end
  1129. RING.Anchored = true
  1130. WELD:remove()
  1131. coroutine.resume(coroutine.create(function()
  1132. for i = 1, 25 do
  1133. Swait()
  1134. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1135. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1136. MESH.Scale = MESH.Scale - VT(3,0,3)
  1137. end
  1138. RING:remove()
  1139. end))
  1140. GRAV:remove()
  1141. ATTACK = false
  1142. Rooted = false
  1143. end
  1144.  
  1145. function ToxicDevastation()
  1146. ATTACK = true
  1147. Rooted = false
  1148. Speed = 5
  1149. local STRENGTH = 50
  1150. local TIER = 1
  1151. for i=0, 1, 0.1 / Animation_Speed do
  1152. Swait()
  1153. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1154. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1155. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1156. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1157. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.15, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1158. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1159. end
  1160. local POS = RootPart.Position
  1161. Rooted = true
  1162. Speed = Walkspeed
  1163. local TIMER = 0
  1164. local bv = Instance.new("BodyVelocity")
  1165. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1166. bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150
  1167. bv.Parent = RootPart
  1168. WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position+VT(0,-3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BRICKC"Pearl".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1169. repeat
  1170. Swait()
  1171. TIMER = TIMER + 1
  1172. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1173. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1174. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1175. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1176. 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)
  1177. 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)
  1178. until RootPart.Position.Y > POS.Y+80 or TIMER > 100
  1179. local GRAV = IT("BodyPosition",RootPart)
  1180. GRAV.D = 250
  1181. GRAV.P = 20000
  1182. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1183. GRAV.Position = RootPart.Position
  1184. bv:remove()
  1185. local G = IT("BodyGyro",RootPart)
  1186. G.D = 250
  1187. G.P = 200000
  1188. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1189. local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0))
  1190. CreateSound(RINGSOUND,RING,5,1,false)
  1191. local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", VT(3,3,3))
  1192. MakeForm(ORB,"Ball")
  1193. local LOOP = 0
  1194. repeat
  1195. Swait()
  1196. LOOP = LOOP + 1
  1197. ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0)
  1198. STRENGTH = STRENGTH + 0.3
  1199. if STRENGTH > 200 then
  1200. STRENGTH = 200
  1201. else
  1202. ORB.Size = ORB.Size + VT(0.02,0.02,0.02)
  1203. end
  1204. if MESH.Scale.X < 120 then
  1205. MESH.Scale = MESH.Scale + VT(5,0,5)
  1206. elseif MESH.Scale.X < 200 then
  1207. MESH.Scale = MESH.Scale + VT(0.6,0,0.6)
  1208. end
  1209. if LOOP == 4 then
  1210. LOOP = 0
  1211. POWER = POWER - 1
  1212. end
  1213. if MRANDOM(1,25) == 1 then
  1214. Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
  1215. end
  1216. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1217. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1218. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1219. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1220. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1221. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1222. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1223. until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0
  1224. if STRENGTH >= 150 and STRENGTH ~= 200 then
  1225. TIER = 2
  1226. elseif STRENGTH == 200 then
  1227. TIER = 3
  1228. end
  1229. coroutine.resume(coroutine.create(function()
  1230. ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
  1231. CreateSound(1112042117,ORB,5,0.8,false)
  1232. for i = 1, 200 do
  1233. Swait()
  1234. ORB.CFrame = ORB.CFrame*CF(0,0,-2)
  1235. if MRANDOM(1,5) == 1 then
  1236. Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
  1237. end
  1238. local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character)
  1239. if HIT ~= nil then
  1240. ORB.Transparency = 1
  1241. coroutine.resume(coroutine.create(function()
  1242. local COLOR = ORB.Color
  1243. local POS = ORB.Position
  1244. local SIZE = ORB.Size
  1245. local TIMES = 12 + TIER*3
  1246. local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", ORB.Size)
  1247. FAKEORB.CFrame = CF(POS)
  1248. MakeForm(FAKEORB,"Ball")
  1249. local TIME = 0
  1250. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1251. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
  1252. for i = 1, 5 do
  1253. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1254. end
  1255. for i = 1, TIMES*20 do
  1256. TIME = TIME + 1
  1257. wait()
  1258. if MRANDOM(1,math.ceil(5+(i/15))) == 1 then
  1259. Lightning({Color = ORB.Color, Start = FAKEORB.Position, End = FAKEORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = i/5, Branches = false})
  1260. end
  1261. FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20)
  1262. if TIME >= 20 then
  1263. TIME = 0
  1264. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1265. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
  1266. for i = 1, 5 do
  1267. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1268. end
  1269. end
  1270. end
  1271. FAKEORB:remove()
  1272. end))
  1273. break
  1274. end
  1275. end
  1276. ORB:remove()
  1277. end))
  1278. for i=0, 1, 0.1 / Animation_Speed do
  1279. Swait()
  1280. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1281. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1282. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1283. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1284. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1285. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1286. end
  1287. coroutine.resume(coroutine.create(function()
  1288. for i = 1, 25 do
  1289. Swait()
  1290. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1291. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1292. MESH.Scale = MESH.Scale - VT(3,0,3)
  1293. end
  1294. RING:remove()
  1295. end))
  1296. GRAV:remove()
  1297. G:remove()
  1298. ATTACK = false
  1299. Rooted = false
  1300. end
  1301.  
  1302. --//=================================\\
  1303. --|| ASSIGN THINGS TO KEYS
  1304. --\\=================================//
  1305.  
  1306. function MouseDown(Mouse)
  1307. if ATTACK == false then
  1308. end
  1309. end
  1310.  
  1311. function MouseUp(Mouse)
  1312. HOLD = false
  1313. end
  1314.  
  1315. function KeyDown(Key)
  1316. KEYHOLD = true
  1317. if Key == "q" and ATTACK == false and POWER >= 50 then
  1318. POWER = POWER - 50
  1319. PoisonBolt()
  1320. end
  1321.  
  1322. if Key == "r" and ATTACK == false and POWER >= 125 then
  1323. POWER = POWER - 125
  1324. ToxicStomp()
  1325. end
  1326.  
  1327. if Key == "x" and ATTACK == false and POWER >= 250 then
  1328. POWER = POWER - 250
  1329. ToxicDevastation()
  1330. end
  1331.  
  1332. if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then
  1333. Charge()
  1334. end
  1335.  
  1336. if string.byte(Key) == 50 and ATTACK == false then
  1337. if Walkspeed == 16 then
  1338. Walkspeed = 30
  1339. Speed = 30
  1340. elseif Walkspeed == 30 then
  1341. Walkspeed = 16
  1342. Speed = 16
  1343. end
  1344. end
  1345. end
  1346.  
  1347. function KeyUp(Key)
  1348. KEYHOLD = false
  1349. end
  1350.  
  1351. Mouse.Button1Down:connect(function(NEWKEY)
  1352. MouseDown(NEWKEY)
  1353. end)
  1354. Mouse.Button1Up:connect(function(NEWKEY)
  1355. MouseUp(NEWKEY)
  1356. end)
  1357. Mouse.KeyDown:connect(function(NEWKEY)
  1358. KeyDown(NEWKEY)
  1359. end)
  1360. Mouse.KeyUp:connect(function(NEWKEY)
  1361. KeyUp(NEWKEY)
  1362. end)
  1363.  
  1364. --//=================================\\
  1365. --\\=================================//
  1366.  
  1367.  
  1368. function unanchor()
  1369. if UNANCHOR == true then
  1370. g = Character:GetChildren()
  1371. for i = 1, #g do
  1372. if g[i].ClassName == "Part" then
  1373. g[i].Anchored = false
  1374. end
  1375. end
  1376. end
  1377. end
  1378.  
  1379.  
  1380. --//=================================\\
  1381. --|| WRAP THE WHOLE SCRIPT UP
  1382. --\\=================================//
  1383.  
  1384. Humanoid.Changed:connect(function(Jump)
  1385. if Jump == "Jump" and (Disable_Jump == true) then
  1386. Humanoid.Jump = false
  1387. end
  1388. end)
  1389.  
  1390. while true do
  1391. Swait()
  1392. script.Parent = WEAPONGUI
  1393. ANIMATE.Parent = nil
  1394. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1395. v:Stop();
  1396. end
  1397. SINE = SINE + CHANGE
  1398. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1399. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1400. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1401. local WALKSPEEDVALUE = 5
  1402. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1403. if Humanoid.WalkSpeed <= 20 then
  1404. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1405. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1406. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1407. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1408. else
  1409. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1410. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1411. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1412. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1413. end
  1414. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1415. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1416. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1417. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1418. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1419. end
  1420. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1421. ANIM = "Jump"
  1422. if ATTACK == false then
  1423. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1424. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1425. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1426. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1427. 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)
  1428. 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)
  1429. end
  1430. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1431. ANIM = "Fall"
  1432. if ATTACK == false then
  1433. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1434. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1435. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1436. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1437. 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)
  1438. 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)
  1439. end
  1440. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1441. ANIM = "Idle"
  1442. if ATTACK == false then
  1443. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1444. 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)
  1445. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1447. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1448. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1449. end
  1450. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1451. ANIM = "Walk"
  1452. if ATTACK == false then
  1453. if Humanoid.WalkSpeed <= 20 then
  1454. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1455. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1456. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
  1457. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
  1458. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1459. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1460. elseif Humanoid.WalkSpeed > 20 then
  1461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1465. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
  1466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1467. end
  1468. end
  1469. end
  1470. unanchor()
  1471. if Rooted == false then
  1472. Disable_Jump = false
  1473. Humanoid.WalkSpeed = Speed
  1474. elseif Rooted == true then
  1475. Disable_Jump = true
  1476. Humanoid.WalkSpeed = 0
  1477. end
  1478. sick.SoundId = "rbxassetid://598848368"
  1479. sick.Looped = true
  1480. sick.Pitch = 1
  1481. sick.Volume = 3
  1482. sick.Parent = Torso
  1483. sick.Playing = true
  1484. MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1485. MANATEXT.Text = POWER.."/"..MAXPOWER
  1486. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1487. HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1488. Humanoid.Health = Humanoid.Health + 0.05
  1489. end
  1490.  
  1491. --//=================================\\
  1492. --\\=================================//
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498. --//====================================================\\--
  1499. --|| END OF SCRIPT
  1500. --\\====================================================//--
Add Comment
Please, Sign In to add comment