Advertisement
PasterXIV

Untitled

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