Advertisement
Toey8415

Red

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