Advertisement
zXzGamePROzXz

Untitled

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