Advertisement
Mz_TH_edit

v2

Aug 31st, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --| CREATED BY SHACKLUSTER by edit 5mzazatv
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. local rp = RealPlayer
  9. script.Parent = rp.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent then
  35. for _,f in pairs(t.Functions) do
  36. f(...)
  37. end
  38. end
  39. end
  40. m.TrigEvent = te
  41. UIS.TrigEvent = te
  42.  
  43. Event.OnServerEvent:Connect(function(plr,io)
  44. if plr~=rp then return end
  45. m.Target = io.Target
  46. m.Hit = io.Hit
  47. if not io.isMouse then
  48. local b = io.UserInputState == Enum.UserInputState.Begin
  49. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  50. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  51. end
  52. for _,t in pairs(CAS.Actions) do
  53. for _,k in pairs(t.Keys) do
  54. if k==io.KeyCode then
  55. t.Function(t.Name,io.UserInputState,io)
  56. end
  57. end
  58. end
  59. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  60. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  61. end
  62. end)
  63. Event.Parent = NLS([==[
  64. local Player = game:GetService("Players").LocalPlayer
  65. local Event = script:WaitForChild("UserInput_Event")
  66.  
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76.  
  77. local h,t
  78. --Give the server mouse data 30 times every second, but only if the values changed
  79. --If player is not moving their mouse, client won't fire events
  80. while wait(1/30) do
  81. if h~=Mouse.Hit or t~=Mouse.Target then
  82. h,t=Mouse.Hit,Mouse.Target
  83. Event:FireServer({isMouse=true,Target=t,Hit=h})
  84. end
  85. end]==],Player.Character)
  86.  
  87. ----Sandboxed game object that allows the usage of client-side methods and services
  88. --Real game object
  89. local _rg = game
  90.  
  91. --Metatable for fake service
  92. local fsmt = {
  93. __index = function(self,k)
  94. local s = rawget(self,"_RealService")
  95. if s then return s[k] end
  96. end,
  97. __newindex = function(self,k,v)
  98. local s = rawget(self,"_RealService")
  99. if s then s[k]=v end
  100. end,
  101. __call = function(self,...)
  102. local s = rawget(self,"_RealService")
  103. if s then return s(...) end
  104. end
  105. }
  106. local function FakeService(t,RealService)
  107. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  108. return setmetatable(t,fsmt)
  109. end
  110.  
  111. --Fake game object
  112. local g = {
  113. GetService = function(self,s)
  114. return self[s]
  115. end,
  116. Players = FakeService({
  117. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  118. },"Players"),
  119. UserInputService = FakeService(UIS,"UserInputService"),
  120. ContextActionService = FakeService(CAS,"ContextActionService"),
  121. }
  122. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  123. g.service = g.GetService
  124.  
  125. g.RunService = FakeService({
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134.  
  135. setmetatable(g,{
  136. __index=function(self,s)
  137. return _rg:GetService(s) or typeof(_rg[s])=="function"
  138. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  139. end,
  140. __newindex = fsmt.__newindex,
  141. __call = fsmt.__call
  142. })
  143. --Changing owner to fake player object to support owner:GetMouse()
  144. game,owner = g,g.Players.LocalPlayer
  145. end
  146.  
  147. wait(0.2)
  148.  
  149. warn("Edit by 5mzazatv")
  150.  
  151. Player = game:GetService("Players").LocalPlayer
  152. PlayerGui = Player.PlayerGui
  153. Cam = workspace.CurrentCamera
  154. Backpack = Player.Backpack
  155. Character = Player.Character
  156. Humanoid = Character.Humanoid
  157. Mouse = Player:GetMouse()
  158. RootPart = Character["HumanoidRootPart"]
  159. Torso = Character["Torso"]
  160. Head = Character["Head"]
  161. RightArm = Character["Right Arm"]
  162. LeftArm = Character["Left Arm"]
  163. RightLeg = Character["Right Leg"]
  164. LeftLeg = Character["Left Leg"]
  165. RootJoint = RootPart["RootJoint"]
  166. Neck = Torso["Neck"]
  167. RightShoulder = Torso["Right Shoulder"]
  168. LeftShoulder = Torso["Left Shoulder"]
  169. RightHip = Torso["Right Hip"]
  170. LeftHip = Torso["Left Hip"]
  171. local sick = Instance.new("Sound",LeftArm)
  172. sick.SoundId = "rbxassetid://1244332148"
  173. sick.Looped = true
  174. sick.Pitch = 1
  175. sick.Volume = 5
  176. sick:Play()
  177. local DRONES = {}
  178. local COLOR = nil
  179.  
  180. IT = Instance.new
  181. CF = CFrame.new
  182. VT = Vector3.new
  183. RAD = math.rad
  184. C3 = Color3.new
  185. UD2 = UDim2.new
  186. BRICKC = BrickColor.new
  187. ANGLES = CFrame.Angles
  188. EULER = CFrame.fromEulerAnglesXYZ
  189. COS = math.cos
  190. ACOS = math.acos
  191. SIN = math.sin
  192. ASIN = math.asin
  193. ABS = math.abs
  194. MRANDOM = math.random
  195. FLOOR = math.floor
  196.  
  197. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  198. local NEWMESH = IT(MESH)
  199. if MESH == "SpecialMesh" then
  200. NEWMESH.MeshType = MESHTYPE
  201. if MESHID ~= "nil" and MESHID ~= "" then
  202. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  203. end
  204. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  205. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  206. end
  207. end
  208. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  209. NEWMESH.Scale = SCALE
  210. NEWMESH.Parent = PARENT
  211. return NEWMESH
  212. end
  213.  
  214. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  215. local NEWPART = IT("Part")
  216. NEWPART.formFactor = FORMFACTOR
  217. NEWPART.Reflectance = REFLECTANCE
  218. NEWPART.Transparency = TRANSPARENCY
  219. NEWPART.CanCollide = false
  220. NEWPART.Locked = true
  221. NEWPART.Anchored = true
  222. if ANCHOR == false then
  223. NEWPART.Anchored = false
  224. end
  225. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  226. NEWPART.Name = NAME
  227. NEWPART.Size = SIZE
  228. NEWPART.Position = Torso.Position
  229. NEWPART.Material = MATERIAL
  230. NEWPART:BreakJoints()
  231. NEWPART.Parent = PARENT
  232. return NEWPART
  233. end
  234.  
  235. --//=================================\\
  236. --|| CUSTOMIZATION
  237. --\\=================================//
  238.  
  239. Player_Size = 1 --Size of the player.
  240. Animation_Speed = 3
  241. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  242.  
  243. local Speed = 16
  244. local Effects2 = {}
  245.  
  246. --//=================================\\
  247. --|| END OF CUSTOMIZATION
  248. --\\=================================//
  249.  
  250. local function weldBetween(a, b)
  251. local weldd = Instance.new("ManualWeld")
  252. weldd.Part0 = a
  253. weldd.Part1 = b
  254. weldd.C0 = CFrame.new()
  255. weldd.C1 = b.CFrame:inverse() * a.CFrame
  256. weldd.Parent = a
  257. return weldd
  258. end
  259.  
  260. --//=================================\\
  261. --|| USEFUL VALUES
  262. --\\=================================//
  263.  
  264. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  265. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  266. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  267. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  268. local CHANGEDEFENSE = 0
  269. local CHANGEDAMAGE = 0
  270. local CHANGEMOVEMENT = 0
  271. local ANIM = "Idle"
  272. local ATTACK = false
  273. local EQUIPPED = false
  274. local HOLD = false
  275. local COMBO = 1
  276. local Rooted = false
  277. local SINE = 0
  278. local KEYHOLD = false
  279. local CHANGE = 2 / Animation_Speed
  280. local WALKINGANIM = false
  281. local WALK = 0
  282. local VALUE1 = false
  283. local VALUE2 = nil
  284. local ROBLOXIDLEANIMATION = IT("Animation")
  285. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  286. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  287. --ROBLOXIDLEANIMATION.Parent = Humanoid
  288. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  289. WEAPONGUI.Name = "Weapon GUI"
  290. local Weapon = IT("Model")
  291. Weapon.Name = "Adds"
  292. local Effects = IT("Folder", Weapon)
  293. Effects.Name = "Effects"
  294. local ANIMATOR = Humanoid.Animator
  295. local ANIMATE = Character.Animate
  296. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  297. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  298. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  299. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  300. local UNANCHOR = true
  301.  
  302. local SKILLTEXTCOLOR = C3(0,0,0)
  303.  
  304. --//=================================\\
  305. --\\=================================//
  306.  
  307.  
  308. --//=================================\\
  309. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  310. --\\=================================//
  311.  
  312. ArtificialHB = Instance.new("BindableEvent", script)
  313. ArtificialHB.Name = "ArtificialHB"
  314.  
  315. script:WaitForChild("ArtificialHB")
  316.  
  317. frame = Frame_Speed
  318. tf = 0
  319. allowframeloss = false
  320. tossremainder = false
  321. lastframe = tick()
  322. script.ArtificialHB:Fire()
  323.  
  324. game:GetService("RunService").Heartbeat:connect(function(s, p)
  325. tf = tf + s
  326. if tf >= frame then
  327. if allowframeloss then
  328. script.ArtificialHB:Fire()
  329. lastframe = tick()
  330. else
  331. for i = 1, math.floor(tf / frame) do
  332. script.ArtificialHB:Fire()
  333. end
  334. lastframe = tick()
  335. end
  336. if tossremainder then
  337. tf = 0
  338. else
  339. tf = tf - frame * math.floor(tf / frame)
  340. end
  341. end
  342. end)
  343.  
  344. --//=================================\\
  345. --\\=================================//
  346.  
  347.  
  348.  
  349.  
  350.  
  351. --//=================================\\
  352. --|| SOME FUNCTIONS
  353. --\\=================================//
  354.  
  355. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  356. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  357. end
  358.  
  359. function PositiveAngle(NUMBER)
  360. if NUMBER >= 0 then
  361. NUMBER = 0
  362. end
  363. return NUMBER
  364. end
  365.  
  366. function NegativeAngle(NUMBER)
  367. if NUMBER <= 0 then
  368. NUMBER = 0
  369. end
  370. return NUMBER
  371. end
  372.  
  373. function Swait(NUMBER)
  374. if NUMBER == 0 or NUMBER == nil then
  375. ArtificialHB.Event:wait()
  376. else
  377. for i = 1, NUMBER do
  378. ArtificialHB.Event:wait()
  379. end
  380. end
  381. end
  382.  
  383. function QuaternionFromCFrame(cf)
  384. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  385. local trace = m00 + m11 + m22
  386. if trace > 0 then
  387. local s = math.sqrt(1 + trace)
  388. local recip = 0.5 / s
  389. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  390. else
  391. local i = 0
  392. if m11 > m00 then
  393. i = 1
  394. end
  395. if m22 > (i == 0 and m00 or m11) then
  396. i = 2
  397. end
  398. if i == 0 then
  399. local s = math.sqrt(m00 - m11 - m22 + 1)
  400. local recip = 0.5 / s
  401. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  402. elseif i == 1 then
  403. local s = math.sqrt(m11 - m22 - m00 + 1)
  404. local recip = 0.5 / s
  405. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  406. elseif i == 2 then
  407. local s = math.sqrt(m22 - m00 - m11 + 1)
  408. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  409. end
  410. end
  411. end
  412.  
  413. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  414. local xs, ys, zs = x + x, y + y, z + z
  415. local wx, wy, wz = w * xs, w * ys, w * zs
  416. local xx = x * xs
  417. local xy = x * ys
  418. local xz = x * zs
  419. local yy = y * ys
  420. local yz = y * zs
  421. local zz = z * zs
  422. 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))
  423. end
  424.  
  425. function QuaternionSlerp(a, b, t)
  426. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  427. local startInterp, finishInterp;
  428. if cosTheta >= 0.0001 then
  429. if (1 - cosTheta) > 0.0001 then
  430. local theta = ACOS(cosTheta)
  431. local invSinTheta = 1 / SIN(theta)
  432. startInterp = SIN((1 - t) * theta) * invSinTheta
  433. finishInterp = SIN(t * theta) * invSinTheta
  434. else
  435. startInterp = 1 - t
  436. finishInterp = t
  437. end
  438. else
  439. if (1 + cosTheta) > 0.0001 then
  440. local theta = ACOS(-cosTheta)
  441. local invSinTheta = 1 / SIN(theta)
  442. startInterp = SIN((t - 1) * theta) * invSinTheta
  443. finishInterp = SIN(t * theta) * invSinTheta
  444. else
  445. startInterp = t - 1
  446. finishInterp = t
  447. end
  448. end
  449. 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
  450. end
  451.  
  452. function Clerp(a, b, t)
  453. local qa = {QuaternionFromCFrame(a)}
  454. local qb = {QuaternionFromCFrame(b)}
  455. local ax, ay, az = a.x, a.y, a.z
  456. local bx, by, bz = b.x, b.y, b.z
  457. local _t = 1 - t
  458. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  459. end
  460.  
  461. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  462. local frame = IT("Frame")
  463. frame.BackgroundTransparency = TRANSPARENCY
  464. frame.BorderSizePixel = BORDERSIZEPIXEL
  465. frame.Position = POSITION
  466. frame.Size = SIZE
  467. frame.BackgroundColor3 = COLOR
  468. frame.BorderColor3 = BORDERCOLOR
  469. frame.Name = NAME
  470. frame.Parent = PARENT
  471. return frame
  472. end
  473.  
  474. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  475. local label = IT("TextLabel")
  476. label.BackgroundTransparency = 1
  477. label.Size = UD2(1, 0, 1, 0)
  478. label.Position = UD2(0, 0, 0, 0)
  479. label.TextColor3 = TEXTCOLOR
  480. label.TextStrokeTransparency = STROKETRANSPARENCY
  481. label.TextTransparency = TRANSPARENCY
  482. label.FontSize = TEXTFONTSIZE
  483. label.Font = TEXTFONT
  484. label.BorderSizePixel = BORDERSIZEPIXEL
  485. label.TextScaled = false
  486. label.Text = TEXT
  487. label.Name = NAME
  488. label.Parent = PARENT
  489. return label
  490. end
  491.  
  492. function NoOutlines(PART)
  493. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  494. end
  495.  
  496.  
  497. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  498. local NEWWELD = IT(TYPE)
  499. NEWWELD.Part0 = PART0
  500. NEWWELD.Part1 = PART1
  501. NEWWELD.C0 = C0
  502. NEWWELD.C1 = C1
  503. NEWWELD.Parent = PARENT
  504. return NEWWELD
  505. end
  506.  
  507. function CreateSound(ID, PARENT, VOLUME, PITCH)
  508. local NEWSOUND = nil
  509. coroutine.resume(coroutine.create(function()
  510. NEWSOUND = IT("Sound", PARENT)
  511. NEWSOUND.Volume = VOLUME
  512. NEWSOUND.Pitch = PITCH
  513. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  514. Swait()
  515. NEWSOUND:play()
  516. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  517. end))
  518. return NEWSOUND
  519. end
  520.  
  521. function CFrameFromTopBack(at, top, back)
  522. local right = top:Cross(back)
  523. 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)
  524. end
  525.  
  526. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  527. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  528. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  529. wave.CFrame = CFRAME
  530. coroutine.resume(coroutine.create(function(PART)
  531. for i = 1, WAIT do
  532. Swait()
  533. mesh.Scale = mesh.Scale + GROW
  534. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  535. if DOESROT == true then
  536. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  537. end
  538. wave.Transparency = wave.Transparency + (0.5/WAIT)
  539. if wave.Transparency > 0.99 then
  540. wave:remove()
  541. end
  542. end
  543. end))
  544. end
  545.  
  546. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  547. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  548. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  549. wave.CFrame = CFRAME
  550. coroutine.resume(coroutine.create(function(PART)
  551. for i = 1, WAIT do
  552. Swait()
  553. mesh.Scale = mesh.Scale + GROW
  554. if DOESROT == true then
  555. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  556. end
  557. wave.Transparency = wave.Transparency + (0.5/WAIT)
  558. if wave.Transparency > 0.99 then
  559. wave:remove()
  560. end
  561. end
  562. end))
  563. end
  564.  
  565. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  566. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  567. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  568. wave.CFrame = CFRAME
  569. coroutine.resume(coroutine.create(function(PART)
  570. for i = 1, WAIT do
  571. Swait()
  572. mesh.Scale = mesh.Scale + GROW
  573. wave.Transparency = wave.Transparency + (1/WAIT)
  574. if wave.Transparency > 0.99 then
  575. wave:remove()
  576. end
  577. end
  578. end))
  579. end
  580.  
  581. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  582. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  583. local mesh = nil
  584. if KIND == "Base" then
  585. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  586. elseif KIND == "Thin" then
  587. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  588. elseif KIND == "Round" then
  589. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  590. end
  591. wave.CFrame = CFRAME
  592. coroutine.resume(coroutine.create(function(PART)
  593. for i = 1, WAIT do
  594. Swait()
  595. mesh.Scale = mesh.Scale + GROW/10
  596. wave.Transparency = wave.Transparency + (0.5/WAIT)
  597. if wave.Transparency > 0.99 then
  598. wave:remove()
  599. end
  600. end
  601. end))
  602. end
  603.  
  604. function MakeForm(PART,TYPE)
  605. local MSH = nil
  606. if TYPE == "Cyl" then
  607. MSH = IT("CylinderMesh",PART)
  608. elseif TYPE == "Ball" then
  609. MSH = IT("SpecialMesh",PART)
  610. MSH.MeshType = "Sphere"
  611. elseif TYPE == "Wedge" then
  612. MSH = IT("SpecialMesh",PART)
  613. MSH.MeshType = "Wedge"
  614. end
  615. return MSH
  616. end
  617.  
  618. function CheckTableForString(Table, String)
  619. for i, v in pairs(Table) do
  620. if string.find(string.lower(String), string.lower(v)) then
  621. return true
  622. end
  623. end
  624. return false
  625. end
  626.  
  627. function CheckIntangible(Hit)
  628. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  629. if Hit and Hit.Parent then
  630. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  631. return true
  632. end
  633. end
  634. return false
  635. end
  636.  
  637. Debris = game:GetService("Debris")
  638.  
  639. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  640. local Direction = CFrame.new(StartPos, Vec).lookVector
  641. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  642. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  643. if RayHit and CheckIntangible(RayHit) then
  644. if DelayIfHit then
  645. wait()
  646. end
  647. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  648. end
  649. return RayHit, RayPos, RayNormal
  650. end
  651.  
  652. function turnto(position)
  653. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  654. end
  655.  
  656. --//=================================\\
  657. --|| WEAPON CREATION
  658. --\\=================================//
  659.  
  660. LeftArm.Transparency = 1
  661. local PART = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Gear", LeftArm.Size*1.1, false)
  662. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  663. local PART = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Gear", LeftArm.Size*1.11, false)
  664. MakeForm(PART,"Wedge")
  665. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,0,-0.01) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  666. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", LeftArm.Size*1.11, false)
  667. MakeForm(PART,"Wedge")
  668. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,0,-0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  669. local PART = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Gear", VT(1,1,1)*1.11, false)
  670. MakeForm(PART,"Wedge")
  671. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,-1.655,-0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(180), RAD(180), RAD(0)), CF(0, 0, 0))
  672. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", LeftArm.Size*0.3, false)
  673. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.2,1.7,0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  674. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", LeftArm.Size*0.3, false)
  675. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.2,1.7,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  676. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", LeftArm.Size*0.3, false)
  677. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.2,1.7,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  678. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", VT(0.5,0.5,1.2), false)
  679. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.45,1.15,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  680. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", VT(0.5,0.5,1.2), false)
  681. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.45,0.55,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  682. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Gear", VT(0.5,0.5,1.2), false)
  683. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.45,-0.05,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  684. local PART = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Gear", VT(0.5,3,0.8), false)
  685. MakeForm(PART,"Ball")
  686. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.45,0.55,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  687. local PART = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Gear", LeftArm.Size*0.8, false)
  688. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  689. local PART = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really blue", "Gear", LeftArm.Size*0.7, false)
  690. PART.Color = C3(0,0,0)
  691. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,1.11,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  692. local PART = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Gear", LeftArm.Size*0.7, false)
  693. MakeForm(PART,"Ball")
  694. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.6,1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  695. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Claw", VT(0,0,0), false)
  696. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.5,0.5,2) * ANGLES(RAD(90), RAD(90), RAD(0)), CF(0, 0, 0))
  697. CreateMesh("SpecialMesh", PART, "FileMesh", "448386996", "", VT(0.001,0.02,0.02), VT(0,0,0))
  698. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Claw", VT(0,0,0), false)
  699. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0,0.5,2) * ANGLES(RAD(90), RAD(90), RAD(0)), CF(0, 0, 0))
  700. CreateMesh("SpecialMesh", PART, "FileMesh", "448386996", "", VT(0.001,0.025,0.025), VT(0,0,0))
  701. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Claw", VT(0,0,0), false)
  702. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(-0.5,0.5,2) * ANGLES(RAD(90), RAD(90), RAD(0)), CF(0, 0, 0))
  703. CreateMesh("SpecialMesh", PART, "FileMesh", "448386996", "", VT(0.001,0.02,0.02), VT(0,0,0))
  704. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Claw", VT(0,0,0), false)
  705. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(-0.25,1,1) * ANGLES(RAD(90), RAD(45), RAD(0)), CF(0, 0, 0))
  706. CreateMesh("SpecialMesh", PART, "FileMesh", "448386996", "", VT(0.001,0.02,0.02), VT(0,0,0))
  707. local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really blue", "Claw", VT(0,0,0), false)
  708. CreateWeldOrSnapOrMotor("Weld", LeftArm, PART, LeftArm, CF(0.25,1,1) * ANGLES(RAD(90), RAD(180-45), RAD(0)), CF(0, 0, 0))
  709. CreateMesh("SpecialMesh", PART, "FileMesh", "448386996", "", VT(0.001,0.02,0.02), VT(0,0,0))
  710.  
  711. for _, c in pairs(Weapon:GetChildren()) do
  712. if c.ClassName == "Part" then
  713. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  714. end
  715. end
  716.  
  717. Weapon.Parent = Character
  718.  
  719. Humanoid.Died:connect(function()
  720. ATTACK = true
  721. end)
  722.  
  723. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  724. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  725. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  726. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  727. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  728.  
  729. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Claw Combo", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 0, "Text 1")
  730. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Z] Uppercut", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 2")
  731. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[B] Claw Wheel", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 3")
  732. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Laser Blast", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 4")
  733. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[V] Drone display", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 5")
  734.  
  735. --//=================================\\
  736. --|| DAMAGE FUNCTIONS
  737. --\\=================================//
  738.  
  739. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  740. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really blue", "Effect", VT())
  741. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  742. local BODYGYRO = IT("BodyGyro", STATPART)
  743. local BODYPOSITION = IT("BodyPosition", STATPART)
  744. BODYPOSITION.P = 2000
  745. BODYPOSITION.D = 100
  746. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  747. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  748. game:GetService("Debris"):AddItem(STATPART ,5)
  749. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  750. BILLBOARDGUI.Adornee = STATPART
  751. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  752. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  753. BILLBOARDGUI.AlwaysOnTop = false
  754. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  755. TEXTLABEL.BackgroundTransparency = 1
  756. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  757. TEXTLABEL.Text = TEXT
  758. TEXTLABEL.Font = "SciFi"
  759. TEXTLABEL.FontSize="Size42"
  760. TEXTLABEL.TextColor3 = COLOR
  761. TEXTLABEL.TextStrokeTransparency = 1
  762. TEXTLABEL.TextScaled = true
  763. TEXTLABEL.TextWrapped = true
  764. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  765. if LABELTYPE == "Normal" then
  766. for i = 1, 30 do
  767. Swait()
  768. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  769. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  770. end
  771. elseif LABELTYPE == "Debuff" then
  772. for i = 1, 30 do
  773. Swait()
  774. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  775. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  776. end
  777. elseif LABELTYPE == "Shock" then
  778. local ORIGIN = STATPART.Position
  779. for i = 1, 30 do
  780. Swait()
  781. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  782. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  783. end
  784. end
  785. THEPART.Parent = nil
  786. end),STATPART, BODYPOSITION, TEXTLABEL)
  787. end
  788.  
  789. --//=================================\\
  790. --|| DAMAGING
  791. --\\=================================//
  792.  
  793. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  794. local defence = Instance.new("BoolValue",Humanoid.Parent)
  795. defence.Name = ("HitBy"..Player.Name)
  796. game:GetService("Debris"):AddItem(defence, 0.001)
  797. local ROOT = Humanoid.Parent:FindFirstChild("HumanoidRootPart") or Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
  798. if ROOT ~= nil then
  799. VALUE2 = ROOT
  800. end
  801. if Humanoid.Health ~= 0 then
  802. local CritChance = MRANDOM(1,100)
  803. if CritChance < CritRate + 1 then
  804. Damage = Damage*CritMultiplier
  805. end
  806. if Damage > Humanoid.Health then
  807. Damage = math.ceil(Humanoid.Health)
  808. if Damage == 0 then
  809. Damage = 0.1
  810. end
  811. end
  812. Humanoid.Health = Humanoid.Health - Damage
  813. if Humanoid.Parent:FindFirstChild("Head") then
  814. if CritChance < CritRate + 1 then
  815. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  816. else
  817. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  818. end
  819. end
  820. end
  821. end
  822.  
  823. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  824. local dmg = math.random(min,max)
  825. for i,v in ipairs(workspace:GetChildren()) do
  826. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  827. local body = v:GetChildren()
  828. for part = 1, #body do
  829. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  830. if(body[part].Position - position).Magnitude < radius then
  831. if v.ClassName == "Model" then
  832. if v:FindFirstChildOfClass("Humanoid") then
  833. if CanBeDodgedByJumping == true then
  834. if body[part].Position.Y < position.Y+5 then
  835. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  836. end
  837. else
  838. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  839. end
  840. local bv = Instance.new("BodyVelocity")
  841. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  842. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  843. bv.Parent = body[part]
  844. Debris:AddItem(bv,0.2)
  845. end
  846. end
  847. end
  848. end
  849. end
  850. end
  851. if v:FindFirstChild("HitBy"..Player.Name) then
  852. v:FindFirstChild("HitBy"..Player.Name):remove()
  853. end
  854. end
  855. end
  856.  
  857. function AoEStun(POS,RANGE,LAST)
  858. for i,v in ipairs(workspace:GetChildren()) do
  859. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  860. local body = v:GetChildren()
  861. for part = 1, #body do
  862. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  863. if(body[part].Position - POS).Magnitude < RANGE then
  864. if v.ClassName == "Model" then
  865. if v:FindFirstChild("Humanoid") then
  866. if v.Humanoid.Health ~= 0 then
  867. Stun(v.Humanoid,LAST)
  868. local defence = Instance.new("BoolValue",v)
  869. defence.Name = ("StunnedBy"..Player.Name)
  870. game:GetService("Debris"):AddItem(defence, 0.1)
  871. end
  872. end
  873. end
  874. end
  875. end
  876. end
  877. end
  878. end
  879. end
  880.  
  881. function Stun(HUMANOID,LAST)
  882. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  883. HUMANOID.PlatformStand = true
  884. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  885. defence.Name = ("StunnedBy"..Player.Name)
  886. game:GetService("Debris"):AddItem(defence, LAST)
  887. if HUMANOID.Parent:FindFirstChild("Head") then
  888. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  889. end
  890. coroutine.resume(coroutine.create(function()
  891. Swait(LAST*100)
  892. HUMANOID.PlatformStand = false
  893. end))
  894. end
  895. end
  896.  
  897. function Poison(HUMANOID,LAST,DAMAGE)
  898. if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
  899. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  900. defence.Name = ("PoisonedBy"..Player.Name)
  901. game:GetService("Debris"):AddItem(defence, LAST)
  902. coroutine.resume(coroutine.create(function()
  903. for i = 1, LAST/2 do
  904. if HUMANOID.Parent:FindFirstChild("Head") then
  905. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0))
  906. end
  907. Swait(2)
  908. HUMANOID.Health = HUMANOID.Health - DAMAGE
  909. end
  910. end))
  911. end
  912. end
  913.  
  914. function killnearest(position,range,maxstrength)
  915. for i,v in ipairs(workspace:GetChildren()) do
  916. local body = v:GetChildren()
  917. for part = 1, #body do
  918. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  919. if(body[part].Position - position).Magnitude < range then
  920. if v.ClassName == "Model" then
  921. v:BreakJoints()
  922. end
  923. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  924. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  925. end
  926. end
  927. end
  928. if v.ClassName == "Part" then
  929. if v.Anchored == false and (v.Position - position).Magnitude < range then
  930. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  931. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  932. end
  933. end
  934. end
  935. end
  936.  
  937. --//=================================\\
  938. --|| ATTACK FUNCTIONS AND STUFF
  939. --\\=================================//
  940.  
  941. function SpawnDrone()
  942. local DRONEMODEL = IT("Model",Weapon)
  943. DRONEMODEL.Name = "Drone"
  944. local CENTERPART = CreatePart(3, DRONEMODEL, "DiamondPlate", 0, 0, "Really blue", "Torso", VT(1,1,1), false)
  945. CENTERPART.CFrame = LeftArm.CFrame*CF(0,-3.5,0)
  946. MakeForm(CENTERPART,"Ball")
  947.  
  948. local PART = CreatePart(3, DRONEMODEL, "Neon", 0, 0, "Really blue", "Neon", VT(1.01,0.2,1.01), false)
  949. MakeForm(PART,"Ball")
  950. CreateWeldOrSnapOrMotor("Weld", CENTERPART, PART, CENTERPART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  951.  
  952. local PART = CreatePart(3, DRONEMODEL, "Neon", 0, 0, "Really blue", "Neon", VT(1.01,0.2,1.01), false)
  953. MakeForm(PART,"Ball")
  954. CreateWeldOrSnapOrMotor("Weld", CENTERPART, PART, CENTERPART, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  955.  
  956. local PART = CreatePart(3, DRONEMODEL, "Neon", 0, 0, "Really blue", "Neon", VT(1.01,0.2,1.01), false)
  957. MakeForm(PART,"Ball")
  958. CreateWeldOrSnapOrMotor("Weld", CENTERPART, PART, CENTERPART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  959.  
  960. local PART = CreatePart(3, DRONEMODEL, "Neon", 0, 1, "Really blue", "Head", VT(0.3,0.3,0.3), false)
  961. CreateWeldOrSnapOrMotor("Weld", CENTERPART, PART, CENTERPART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  962. local HUMANOID = IT("Humanoid",DRONEMODEL)
  963. HUMANOID.MaxHealth = 35
  964. HUMANOID.Health = 35
  965. HUMANOID.PlatformStand = true
  966. local GYRO = IT("BodyGyro",CENTERPART)
  967. GYRO.D = 100
  968. GYRO.P = 2000
  969. GYRO.MaxTorque = VT(0,4000000,0)
  970. local POS = Instance.new("BodyPosition",CENTERPART)
  971. POS.P = 20000
  972. POS.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  973. table.insert(DRONES,{DRONEMODEL,CENTERPART,GYRO,POS,HUMANOID})
  974. return DRONEMODEL
  975. end
  976.  
  977. function ClawCombo()
  978. ATTACK = true
  979. Rooted = false
  980. if COMBO == 1 then
  981. COMBO = 2
  982. for i=0, 1, 0.1 / Animation_Speed do
  983. Swait()
  984. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  985. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 0.15 / Animation_Speed)
  986. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  987. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  988. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  989. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  990. end
  991. CreateSound("199150686", LeftArm, 3, 1)
  992. for i=0, 0.1, 0.1 / Animation_Speed do
  993. Swait()
  994. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)) * ANGLES(RAD(45), RAD(34), RAD(45)), 2 / Animation_Speed)
  995. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  996. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(45), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  997. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.3) * ANGLES(RAD(155), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  998. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  999. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1000. end
  1001. AoEDamage(LeftArm.CFrame*CF(0,-3,0).p,5,10,12,0,2,2,false)
  1002. Slice("Thin",0,15,RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(0),RAD(90),RAD(0)),COLOR,VT(0.1,0,0.1))
  1003. for i=0, 0.15, 0.1 / Animation_Speed do
  1004. Swait()
  1005. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)) * ANGLES(RAD(45), RAD(34), RAD(45)), 2 / Animation_Speed)
  1006. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  1007. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(45), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1008. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.3) * ANGLES(RAD(155), RAD(0), RAD(55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1009. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1010. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1011. end
  1012. for i=0, 0.3, 0.1 / Animation_Speed do
  1013. Swait()
  1014. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1015. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 0.15 / Animation_Speed)
  1016. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1017. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1018. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1019. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1020. end
  1021. elseif COMBO == 2 then
  1022. COMBO = 3
  1023. for i=0, 1, 0.1 / Animation_Speed do
  1024. Swait()
  1025. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1026. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 0.15 / Animation_Speed)
  1027. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.3) * ANGLES(RAD(155), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1029. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1030. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1031. end
  1032. local LOOP = 0
  1033. for i = 1, 10 do
  1034. CreateSound("199150686", LeftArm, 3, MRANDOM(8,12)/10)
  1035. for i=0, 0.2, 0.1 / Animation_Speed do
  1036. Swait()
  1037. LOOP = LOOP + 45
  1038. Slice("Thin",0,15,Torso.CFrame*CF(0,MRANDOM(-15,15)/10,0)*ANGLES(RAD(0),RAD(90),RAD(45)),COLOR,VT(0.1,0,0.1))
  1039. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90+LOOP)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  1040. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  1041. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1042. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1043. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1044. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1045. end
  1046. AoEDamage(RootPart.Position,15,2,5,0,2,2,false)
  1047. end
  1048. elseif COMBO == 3 then
  1049. COMBO = 1
  1050. for i=0, 1, 0.1 / Animation_Speed do
  1051. Swait()
  1052. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1053. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 0.15 / Animation_Speed)
  1054. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1055. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1056. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1057. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1058. end
  1059. Rooted = true
  1060. VALUE1 = true
  1061. CreateSound("92597369", LeftArm, 3, 1)
  1062. CreateSound("92597369", LeftArm, 3, 0.9)
  1063. CreateSound("92597369", LeftArm, 3, 0.8)
  1064. for i = 1, 3 do
  1065. for i=0, 0.1, 0.1 / Animation_Speed do
  1066. Swait()
  1067. CreateWave(VT(12,0.2,12),24,RootPart.CFrame*CF(0,0,-5)*ANGLES(RAD(90),RAD(0),RAD(0)),true,5,COLOR,VT(-1,0,-1)/2)
  1068. RootPart.CFrame = RootPart.CFrame*CF(0,0,-1)
  1069. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-120)) * ANGLES(RAD(45), RAD(34), RAD(45)), 2 / Animation_Speed)
  1070. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(75), RAD(0), RAD(0)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  1071. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(45), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1072. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.3) * ANGLES(RAD(-25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1073. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1074. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1075. end
  1076. AoEDamage(LeftArm.CFrame*CF(0,-3,0).p,10,20,22,0,2,2,false)
  1077. end
  1078. for i=0, 0.15, 0.1 / Animation_Speed do
  1079. Swait()
  1080. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.2)
  1081. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-120)) * ANGLES(RAD(45), RAD(34), RAD(45)), 2 / Animation_Speed)
  1082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(75), RAD(0), RAD(0)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  1083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(45), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.3) * ANGLES(RAD(-25), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1085. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1087. end
  1088. VALUE1 = false
  1089. for i=0, 0.3, 0.1 / Animation_Speed do
  1090. Swait()
  1091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 0.15 / Animation_Speed)
  1093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-120)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1095. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1096. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1097. end
  1098. end
  1099. ATTACK = false
  1100. Rooted = false
  1101. end
  1102.  
  1103. function UpperCut()
  1104. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1105. if HITFLOOR ~= nil then
  1106. ATTACK = true
  1107. Rooted = true
  1108. VALUE1 = true
  1109. UNANCHOR = false
  1110. RootPart.Anchored = true
  1111. CreateSound("199150686", LeftArm, 3, MRANDOM(8,12)/10)
  1112. for i=1, 12 do
  1113. Swait()
  1114. RootPart.CFrame = RootPart.CFrame * CF(0,0.4,-1)
  1115. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-i*30), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  1116. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1117. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1118. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1119. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(12), RAD(0), RAD(0)), 2 / Animation_Speed)
  1120. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed)
  1121. AoEDamage(LeftArm.CFrame*CF(0,-2,0).p,5,6,12,5,0,1,1.5,false)
  1122. Slice("Base",2,5,LeftArm.CFrame*CF(0,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)),COLOR,VT(0,0,0))
  1123. end
  1124. UNANCHOR = true
  1125. RootPart.Anchored = false
  1126. for i=0, 0.2, 0.1 / Animation_Speed do
  1127. Swait()
  1128. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(25)), 2 / Animation_Speed)
  1129. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-25)), 2 / Animation_Speed)
  1130. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(75), RAD(-25), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1131. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(45), RAD(-25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1132. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1133. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1134. end
  1135. VALUE1 = false
  1136. ATTACK = false
  1137. Rooted = false
  1138. end
  1139. end
  1140.  
  1141. function ClawWheel()
  1142. ATTACK = true
  1143. Rooted = true
  1144. VALUE1 = true
  1145. for i=0, 0.2, 0.1 / Animation_Speed do
  1146. Swait()
  1147. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  1148. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  1149. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1150. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1151. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1152. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1153. end
  1154. for i=1, 70 do
  1155. Swait()
  1156. VALUE1 = true
  1157. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
  1158. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, (5-(3-i/50))) * ANGLES(RAD(0), RAD(65), RAD(i*50)), 2 / Animation_Speed)
  1159. 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)
  1160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1162. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1163. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1164. AoEDamage(LeftArm.CFrame*CF(0,-2,0).p,5,5,5,5,0,1,1.5,false)
  1165. CreateSound("199150686", LeftArm, 3, MRANDOM(8,12)/10)
  1166. Slice("Base",1,5,LeftArm.CFrame*CF(0,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)),COLOR,VT(0,0,0))
  1167. end
  1168. for i=0, 0.2, 0.1 / Animation_Speed do
  1169. Swait()
  1170. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(25)), 2 / Animation_Speed)
  1171. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-25)), 2 / Animation_Speed)
  1172. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(75), RAD(-25), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1173. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(45), RAD(-25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1174. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  1175. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1176. end
  1177. VALUE1 = false
  1178. ATTACK = false
  1179. Rooted = false
  1180. end
  1181.  
  1182. function LaserBlast()
  1183. ATTACK = true
  1184. Rooted = true
  1185. for i=0, 1, 0.1 / Animation_Speed do
  1186. Swait()
  1187. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1188. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1189. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1190. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1191. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1192. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1193. end
  1194. local AIMPOS = Mouse.Hit.p
  1195. VALUE1 = true
  1196. CreateSound("1368573150", LeftArm, 3, 1)
  1197. for i=0, 2, 0.1 / Animation_Speed do
  1198. Swait()
  1199. CreateRing(VT(0,0,0),false,0,15,LeftArm.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLOR,VT(0.2,0.2,0)/10)
  1200. CreateRing(VT(15,15,0)/10,false,0,15,LeftArm.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLOR,VT(-1,-1,0)/10)
  1201. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1203. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1204. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1205. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1206. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1207. end
  1208. local DIRECTION = CF(LeftArm.CFrame*CF(0,-3,0).p,AIMPOS).lookVector
  1209. CreateSound("1368598393", LeftArm, 3, 1)
  1210. local FIRE1 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Laser", VT(0,0,0))
  1211. MakeForm(FIRE1,"Ball")
  1212. local FIRE2 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Laser", VT(0,0,0))
  1213. MakeForm(FIRE2,"Cyl")
  1214. for i=1, 45 do
  1215. Swait()
  1216. if i == 15 then
  1217. for i = 1, math.ceil(FIRE2.Size.Y/30) do
  1218. AoEDamage(FIRE2.CFrame*CF(0,i*15,0).p,25,25,35,5,0,1,1.5,false)
  1219. Slice("Round",1,45,FIRE2.CFrame*CF(0,i*15,0) * ANGLES(RAD(90), RAD(0), RAD(MRANDOM(-180,180))),COLOR,VT(0,0,0))
  1220. end
  1221. for i = 1, math.ceil(FIRE2.Size.Y/30) do
  1222. AoEDamage(FIRE2.CFrame*CF(0,-i*15,0).p,25,25,35,5,0,1,1.5,false)
  1223. Slice("Round",1,45,FIRE2.CFrame*CF(0,i*15,0) * ANGLES(RAD(90), RAD(0), RAD(MRANDOM(-180,180))),COLOR,VT(0,0,0))
  1224. end
  1225. end
  1226. FIRE1.Color = COLOR
  1227. FIRE2.Color = COLOR
  1228. local HIT,POS = Raycast(LeftArm.CFrame*CF(0,-3,0).p, DIRECTION, 1500, workspace)
  1229. local DISTANCE = (LeftArm.CFrame*CF(0,-3,0).p - POS).Magnitude
  1230. FIRE2.Size = VT(i/15,DISTANCE,i/15)
  1231. FIRE2.CFrame = CF(LeftArm.CFrame*CF(0,-3,0).p, POS) * CF(0, 0, -DISTANCE/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1232. FIRE1.Size = VT(i/15,i/15,i/15)
  1233. FIRE1.CFrame = FIRE2.CFrame*CF(0,FIRE2.Size.Y/2,0)
  1234. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  1235. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1236. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1237. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1238. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1239. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1240. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1241. end
  1242. for i=1, 40 do
  1243. Swait()
  1244. FIRE1.Color = COLOR
  1245. FIRE2.Color = COLOR
  1246. local HIT,POS = Raycast(LeftArm.CFrame*CF(0,-3,0).p, DIRECTION, 1500, workspace)
  1247. local DISTANCE = (LeftArm.CFrame*CF(0,-3,0).p - POS).Magnitude
  1248. FIRE2.Size = VT(FIRE2.Size.X * 0.9,DISTANCE,FIRE2.Size.Z * 0.9)
  1249. FIRE2.CFrame = CF(LeftArm.CFrame*CF(0,-3,0).p, POS) * CF(0, 0, -DISTANCE/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1250. FIRE1.Size = FIRE1.Size * 0.9
  1251. FIRE1.CFrame = FIRE2.CFrame*CF(0,FIRE2.Size.Y/2,0)
  1252. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  1253. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1254. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1255. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1256. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1257. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1258. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1259. end
  1260. FIRE1:remove()
  1261. FIRE2:remove()
  1262. VALUE1 = false
  1263. ATTACK = false
  1264. Rooted = false
  1265. end
  1266.  
  1267. function DroneDisplay()
  1268. ATTACK = true
  1269. Rooted = true
  1270. VALUE1 = true
  1271. for i=0, 1, 0.1 / Animation_Speed do
  1272. Swait()
  1273. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1274. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1275. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1276. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1277. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1278. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1279. end
  1280. CreateSound("90655239", LeftArm, 3, 1)
  1281. MagicSphere(VT(0,0,0),25,LeftArm.CFrame*CF(0,-3,0),COLOR,VT(0.3,0.3,0.3))
  1282. CreateWave(VT(12,0.2,12),24,LeftArm.CFrame*CF(0,-2.5,0),true,5,COLOR,VT(-1,0,-1)/2)
  1283. SpawnDrone()
  1284. for i=0, 0.3, 0.1 / Animation_Speed do
  1285. Swait()
  1286. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  1287. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1288. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1289. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1290. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.55, 0) * ANGLES(RAD(90), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1291. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1292. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1293. end
  1294. VALUE1 = false
  1295. ATTACK = false
  1296. Rooted = false
  1297. end
  1298.  
  1299. --//=================================\\
  1300. --|| ASSIGN THINGS TO KEYS
  1301. --\\=================================//
  1302.  
  1303. function MouseDown(Mouse)
  1304. if ATTACK == false then
  1305. ClawCombo()
  1306. end
  1307. end
  1308.  
  1309. function MouseUp(Mouse)
  1310. HOLD = false
  1311. end
  1312.  
  1313. function KeyDown(Key)
  1314. KEYHOLD = true
  1315. if Key == "z" and ATTACK == false then
  1316. UpperCut()
  1317. end
  1318.  
  1319. if Key == "b" and ATTACK == false then
  1320. ClawWheel()
  1321. end
  1322.  
  1323. if Key == "c" and ATTACK == false then
  1324. LaserBlast()
  1325. end
  1326.  
  1327. if Key == "v" and ATTACK == false then
  1328. if #DRONES < 5 then
  1329. DroneDisplay()
  1330. end
  1331. end
  1332. end
  1333.  
  1334. function KeyUp(Key)
  1335. KEYHOLD = false
  1336. end
  1337.  
  1338. Mouse.Button1Down:connect(function(NEWKEY)
  1339. MouseDown(NEWKEY)
  1340. end)
  1341. Mouse.Button1Up:connect(function(NEWKEY)
  1342. MouseUp(NEWKEY)
  1343. end)
  1344. Mouse.KeyDown:connect(function(NEWKEY)
  1345. KeyDown(NEWKEY)
  1346. end)
  1347. Mouse.KeyUp:connect(function(NEWKEY)
  1348. KeyUp(NEWKEY)
  1349. end)
  1350.  
  1351. --//=================================\\
  1352. --\\=================================//
  1353.  
  1354.  
  1355. function unanchor()
  1356. if UNANCHOR == true then
  1357. g = Character:GetChildren()
  1358. for i = 1, #g do
  1359. if g[i].ClassName == "Part" then
  1360. g[i].Anchored = false
  1361. end
  1362. end
  1363. end
  1364. end
  1365.  
  1366.  
  1367. --//=================================\\
  1368. --|| WRAP THE WHOLE SCRIPT UP
  1369. --\\=================================//
  1370.  
  1371. Humanoid.Changed:connect(function(Jump)
  1372. if Jump == "Jump" and (Disable_Jump == true) then
  1373. Humanoid.Jump = false
  1374. end
  1375. end)
  1376.  
  1377. Speed = 25
  1378. local GYRO = IT("BodyGyro",RootPart)
  1379. GYRO.D = 100
  1380. GYRO.P = 2000
  1381. GYRO.MaxTorque = VT(0,4000000,0)
  1382. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1383.  
  1384. while true do
  1385. Swait()
  1386. if VALUE1 == false then
  1387. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1388. end
  1389. ANIMATE.Parent = nil
  1390. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1391. IDLEANIMATION:Play()
  1392. SINE = SINE + CHANGE
  1393. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1394. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1395. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1396. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1397. local WALKSPEEDVALUE = 5
  1398. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1399. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1400. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1401. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1402. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1403. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1404. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1405. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1406. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1407. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1408. end
  1409. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1410. ANIM = "Jump"
  1411. if ATTACK == false then
  1412. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1413. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1414. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1415. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1416. 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)
  1417. 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)
  1418. end
  1419. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1420. ANIM = "Fall"
  1421. if ATTACK == false then
  1422. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1425. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1426. 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)
  1427. 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)
  1428. end
  1429. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1430. ANIM = "Idle"
  1431. if ATTACK == false then
  1432. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1433. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-25)), 0.15 / Animation_Speed)
  1434. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(75), RAD(-25), RAD(-45)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1435. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(45), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1436. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  1437. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1438. end
  1439. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1440. ANIM = "Walk"
  1441. WALK = WALK + 1 / Animation_Speed
  1442. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1443. WALK = 0
  1444. if WALKINGANIM == true then
  1445. WALKINGANIM = false
  1446. elseif WALKINGANIM == false then
  1447. WALKINGANIM = true
  1448. end
  1449. end
  1450. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1451. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1452. if ATTACK == false then
  1453. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3) * ANGLES(RAD(15 + 5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(25)), 2 / Animation_Speed)
  1454. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1455. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(25)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1456. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(35), RAD(-45)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1457. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -0.8 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1458. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-115), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1459. end
  1460. end
  1461. unanchor()
  1462. Humanoid.MaxHealth = "inf"
  1463. Humanoid.Health = "inf"
  1464. if Rooted == false then
  1465. Disable_Jump = false
  1466. Humanoid.WalkSpeed = Speed
  1467. elseif Rooted == true then
  1468. Disable_Jump = true
  1469. Humanoid.WalkSpeed = 0
  1470. end
  1471. COLOR = C3(sick.PlaybackLoudness/250,0,0)
  1472. for _, c in pairs(Weapon:GetChildren()) do
  1473. if c.ClassName == "Part" then
  1474. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1475. if c.Material == Enum.Material.Neon then
  1476. c.Color = COLOR
  1477. end
  1478. elseif c.ClassName == "Model" then
  1479. for _, q in pairs(c:GetChildren()) do
  1480. if q.ClassName == "Part" then
  1481. q.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1482. if q.Material == Enum.Material.Neon then
  1483. q.Color = COLOR
  1484. end
  1485. end
  1486. end
  1487. end
  1488. end
  1489. SKILL1TEXT.TextColor3 = COLOR
  1490. SKILL2TEXT.TextColor3 = COLOR
  1491. SKILL3TEXT.TextColor3 = COLOR
  1492. SKILL4TEXT.TextColor3 = COLOR
  1493. SKILL5TEXT.TextColor3 = COLOR
  1494. if #DRONES>0 then
  1495. for e=1,#DRONES do
  1496. if DRONES[e]~=nil then
  1497. local Thing=DRONES[e]
  1498. if Thing~=nil then
  1499. local Model=Thing[1]
  1500. local CenterPart=Thing[2]
  1501. local Gyro=Thing[3]
  1502. local Pos=Thing[4]
  1503. local Humanoid=Thing[5]
  1504. if VALUE2 == nil then
  1505. Gyro.cframe = CF(CenterPart.Position,Mouse.Hit.p)
  1506. Pos.Position = RootPart.CFrame*CF(3+((1+e*2)-2),0.7 + (1+e*2) - 0.15 * COS(SINE/12),-1).p
  1507. else
  1508. if VALUE2.ClassName == "Part" or VALUE2.ClassName == "MeshPart" then
  1509. Gyro.cframe = CF(CenterPart.Position,VALUE2.Position)
  1510. Pos.Position = VALUE2.CFrame*CF(0,5,0)*ANGLES(RAD(0),RAD(360/e),RAD(0)) * CF(0,0,5).p
  1511. local HUMAN = VALUE2.Parent:FindFirstChildOfClass("Humanoid")
  1512. if HUMAN then
  1513. if HUMAN.Health == 0 then
  1514. VALUE2 = nil
  1515. end
  1516. end
  1517. if MRANDOM(1,75) == 1 then
  1518. local DIRECTION = CF(CenterPart.Position,VALUE2.Position)
  1519. CreateWave(VT(0,2,0),24,DIRECTION*CF(0,0,-1)*ANGLES(RAD(90),RAD(0),RAD(0)),true,5,COLOR,VT(0.1,0,0.1))
  1520. CreateSound("950831913", CenterPart, 3, 1)
  1521. MagicSphere(VT(0,0,0),25,CenterPart.CFrame,COLOR,VT(0.2,0.2,0.2))
  1522. AoEDamage(VALUE2.Position,3,5,5,0,2,2,false)
  1523. end
  1524. end
  1525. end
  1526. if Humanoid.Health == 0 then
  1527. Gyro:remove()
  1528. Pos:remove()
  1529. AoEDamage(CenterPart.Position,25,45,45,0,2,2,false)
  1530. for i = 1, 3 do
  1531. CreateRing(VT(0,0,0),false,0,15,CenterPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLOR,VT(0.6,0.6,0)/10)
  1532. end
  1533. CreateSound("952307359", CenterPart, 3, 1)
  1534. Humanoid:remove()
  1535. Debris:AddItem(Model,2)
  1536. CenterPart.RotVelocity = VT(0,0,0)
  1537. table.remove(DRONES,e)
  1538. end
  1539. end
  1540. end
  1541. end
  1542. end
  1543. end
  1544.  
  1545. --//=================================\\
  1546. --\\=================================//
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552. --//====================================================\\--
  1553. --|| END OF SCRIPT
  1554. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement