Dark_EccentricYT

Untitled

Jun 24th, 2018
1,617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.68 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  50. local NEWMESH = IT(MESH)
  51. if MESH == "SpecialMesh" then
  52. NEWMESH.MeshType = MESHTYPE
  53. if MESHID ~= "nil" and MESHID ~= "" then
  54. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  55. end
  56. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  57. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  58. end
  59. end
  60. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  61. NEWMESH.Scale = SCALE
  62. NEWMESH.Parent = PARENT
  63. return NEWMESH
  64. end
  65.  
  66. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  67. local NEWPART = IT("Part")
  68. NEWPART.formFactor = FORMFACTOR
  69. NEWPART.Reflectance = REFLECTANCE
  70. NEWPART.Transparency = TRANSPARENCY
  71. NEWPART.CanCollide = false
  72. NEWPART.Locked = true
  73. NEWPART.Anchored = true
  74. if ANCHOR == false then
  75. NEWPART.Anchored = false
  76. end
  77. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  78. NEWPART.Name = NAME
  79. NEWPART.Size = SIZE
  80. NEWPART.Position = Torso.Position
  81. NEWPART.Material = MATERIAL
  82. NEWPART:BreakJoints()
  83. NEWPART.Parent = PARENT
  84. return NEWPART
  85. end
  86.  
  87. --//=================================\\
  88. --|| CUSTOMIZATION
  89. --\\=================================//
  90.  
  91. Player_Size = 1 --Size of the player.
  92. Animation_Speed = 3
  93. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  94.  
  95. local Speed = 16
  96. local Effects2 = {}
  97.  
  98. --//=================================\\
  99. --|| END OF CUSTOMIZATION
  100. --\\=================================//
  101.  
  102. local function weldBetween(a, b)
  103. local weldd = Instance.new("ManualWeld")
  104. weldd.Part0 = a
  105. weldd.Part1 = b
  106. weldd.C0 = CFrame.new()
  107. weldd.C1 = b.CFrame:inverse() * a.CFrame
  108. weldd.Parent = a
  109. return weldd
  110. end
  111.  
  112. --//=================================\\
  113. --|| USEFUL VALUES
  114. --\\=================================//
  115.  
  116. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  117. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  118. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  119. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  120. local CHANGEDEFENSE = 0
  121. local CHANGEDAMAGE = 0
  122. local CHANGEMOVEMENT = 0
  123. local ANIM = "Idle"
  124. local ATTACK = false
  125. local EQUIPPED = false
  126. local HOLD = false
  127. local COMBO = 1
  128. local Rooted = false
  129. local SINE = 0
  130. local KEYHOLD = false
  131. local CHANGE = 2 / Animation_Speed
  132. local WALKINGANIM = false
  133. local WALK = false
  134. local VALUE1 = false
  135. local VALUE2 = false
  136. local ROBLOXIDLEANIMATION = IT("Animation")
  137. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  138. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  139. --ROBLOXIDLEANIMATION.Parent = Humanoid
  140. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  141. WEAPONGUI.Name = "Weapon GUI"
  142. local Weapon = IT("Model")
  143. Weapon.Name = "Adds"
  144. local Effects = IT("Folder", Weapon)
  145. Effects.Name = "Effects"
  146. local ANIMATOR = Humanoid.Animator
  147. local ANIMATE = Character.Animate
  148. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  149. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  150. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  151. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  152. local UNANCHOR = true
  153.  
  154. local SKILLTEXTCOLOR = C3(1,1,1)
  155.  
  156. --//=================================\\
  157. --\\=================================//
  158.  
  159.  
  160. --//=================================\\
  161. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  162. --\\=================================//
  163.  
  164. ArtificialHB = Instance.new("BindableEvent", script)
  165. ArtificialHB.Name = "ArtificialHB"
  166.  
  167. script:WaitForChild("ArtificialHB")
  168.  
  169. frame = Frame_Speed
  170. tf = 0
  171. allowframeloss = false
  172. tossremainder = false
  173. lastframe = tick()
  174. script.ArtificialHB:Fire()
  175.  
  176. game:GetService("RunService").Heartbeat:connect(function(s, p)
  177. tf = tf + s
  178. if tf >= frame then
  179. if allowframeloss then
  180. script.ArtificialHB:Fire()
  181. lastframe = tick()
  182. else
  183. for i = 1, math.floor(tf / frame) do
  184. script.ArtificialHB:Fire()
  185. end
  186. lastframe = tick()
  187. end
  188. if tossremainder then
  189. tf = 0
  190. else
  191. tf = tf - frame * math.floor(tf / frame)
  192. end
  193. end
  194. end)
  195.  
  196. --//=================================\\
  197. --\\=================================//
  198.  
  199.  
  200.  
  201.  
  202.  
  203. --//=================================\\
  204. --|| SOME FUNCTIONS
  205. --\\=================================//
  206.  
  207. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  208. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  209. end
  210.  
  211. function PositiveAngle(NUMBER)
  212. if NUMBER >= 0 then
  213. NUMBER = 0
  214. end
  215. return NUMBER
  216. end
  217.  
  218. function NegativeAngle(NUMBER)
  219. if NUMBER <= 0 then
  220. NUMBER = 0
  221. end
  222. return NUMBER
  223. end
  224.  
  225. function Swait(NUMBER)
  226. if NUMBER == 0 or NUMBER == nil then
  227. ArtificialHB.Event:wait()
  228. else
  229. for i = 1, NUMBER do
  230. ArtificialHB.Event:wait()
  231. end
  232. end
  233. end
  234.  
  235. function QuaternionFromCFrame(cf)
  236. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  237. local trace = m00 + m11 + m22
  238. if trace > 0 then
  239. local s = math.sqrt(1 + trace)
  240. local recip = 0.5 / s
  241. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  242. else
  243. local i = 0
  244. if m11 > m00 then
  245. i = 1
  246. end
  247. if m22 > (i == 0 and m00 or m11) then
  248. i = 2
  249. end
  250. if i == 0 then
  251. local s = math.sqrt(m00 - m11 - m22 + 1)
  252. local recip = 0.5 / s
  253. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  254. elseif i == 1 then
  255. local s = math.sqrt(m11 - m22 - m00 + 1)
  256. local recip = 0.5 / s
  257. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  258. elseif i == 2 then
  259. local s = math.sqrt(m22 - m00 - m11 + 1)
  260. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  261. end
  262. end
  263. end
  264.  
  265. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  266. local xs, ys, zs = x + x, y + y, z + z
  267. local wx, wy, wz = w * xs, w * ys, w * zs
  268. local xx = x * xs
  269. local xy = x * ys
  270. local xz = x * zs
  271. local yy = y * ys
  272. local yz = y * zs
  273. local zz = z * zs
  274. 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))
  275. end
  276.  
  277. function QuaternionSlerp(a, b, t)
  278. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  279. local startInterp, finishInterp;
  280. if cosTheta >= 0.0001 then
  281. if (1 - cosTheta) > 0.0001 then
  282. local theta = ACOS(cosTheta)
  283. local invSinTheta = 1 / SIN(theta)
  284. startInterp = SIN((1 - t) * theta) * invSinTheta
  285. finishInterp = SIN(t * theta) * invSinTheta
  286. else
  287. startInterp = 1 - t
  288. finishInterp = t
  289. end
  290. else
  291. if (1 + cosTheta) > 0.0001 then
  292. local theta = ACOS(-cosTheta)
  293. local invSinTheta = 1 / SIN(theta)
  294. startInterp = SIN((t - 1) * theta) * invSinTheta
  295. finishInterp = SIN(t * theta) * invSinTheta
  296. else
  297. startInterp = t - 1
  298. finishInterp = t
  299. end
  300. end
  301. 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
  302. end
  303.  
  304. function Clerp(a, b, t)
  305. local qa = {QuaternionFromCFrame(a)}
  306. local qb = {QuaternionFromCFrame(b)}
  307. local ax, ay, az = a.x, a.y, a.z
  308. local bx, by, bz = b.x, b.y, b.z
  309. local _t = 1 - t
  310. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  311. end
  312.  
  313. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  314. local frame = IT("Frame")
  315. frame.BackgroundTransparency = TRANSPARENCY
  316. frame.BorderSizePixel = BORDERSIZEPIXEL
  317. frame.Position = POSITION
  318. frame.Size = SIZE
  319. frame.BackgroundColor3 = COLOR
  320. frame.BorderColor3 = BORDERCOLOR
  321. frame.Name = NAME
  322. frame.Parent = PARENT
  323. return frame
  324. end
  325.  
  326. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  327. local label = IT("TextLabel")
  328. label.BackgroundTransparency = 1
  329. label.Size = UD2(1, 0, 1, 0)
  330. label.Position = UD2(0, 0, 0, 0)
  331. label.TextColor3 = TEXTCOLOR
  332. label.TextStrokeTransparency = STROKETRANSPARENCY
  333. label.TextTransparency = TRANSPARENCY
  334. label.FontSize = TEXTFONTSIZE
  335. label.Font = TEXTFONT
  336. label.BorderSizePixel = BORDERSIZEPIXEL
  337. label.TextScaled = false
  338. label.Text = TEXT
  339. label.Name = NAME
  340. label.Parent = PARENT
  341. return label
  342. end
  343.  
  344. function NoOutlines(PART)
  345. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  346. end
  347.  
  348.  
  349. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  350. local NEWWELD = IT(TYPE)
  351. NEWWELD.Part0 = PART0
  352. NEWWELD.Part1 = PART1
  353. NEWWELD.C0 = C0
  354. NEWWELD.C1 = C1
  355. NEWWELD.Parent = PARENT
  356. return NEWWELD
  357. end
  358.  
  359. local SOUND = IT("Sound")
  360.  
  361. function CreateSound(ID, PARENT, VOLUME, PITCH)
  362. local NEWSOUND = nil
  363. coroutine.resume(coroutine.create(function()
  364. NEWSOUND = SOUND:Clone()
  365. NEWSOUND.Parent = PARENT
  366. NEWSOUND.Volume = VOLUME
  367. NEWSOUND.Pitch = PITCH
  368. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  369. Swait()
  370. NEWSOUND:play()
  371. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  372. end))
  373. return NEWSOUND
  374. end
  375.  
  376. function CFrameFromTopBack(at, top, back)
  377. local right = top:Cross(back)
  378. 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)
  379. end
  380.  
  381. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  382. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  383. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  384. wave.CFrame = CFRAME
  385. coroutine.resume(coroutine.create(function(PART)
  386. for i = 1, WAIT do
  387. Swait()
  388. mesh.Scale = mesh.Scale + GROW
  389. if DOESROT == true then
  390. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  391. end
  392. wave.Transparency = wave.Transparency + (0.5/WAIT)
  393. if wave.Transparency > 0.99 then
  394. wave:remove()
  395. end
  396. end
  397. end))
  398. end
  399.  
  400. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  401. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  402. local mesh = nil
  403. if KIND == "Base" then
  404. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  405. elseif KIND == "Thin" then
  406. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  407. elseif KIND == "Round" then
  408. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  409. end
  410. wave.CFrame = CFRAME
  411. coroutine.resume(coroutine.create(function(PART)
  412. for i = 1, WAIT do
  413. Swait()
  414. mesh.Scale = mesh.Scale + GROW/10
  415. wave.Transparency = wave.Transparency + (0.5/WAIT)
  416. if wave.Transparency > 0.99 then
  417. wave:remove()
  418. end
  419. end
  420. end))
  421. end
  422.  
  423. function MakeForm(PART,TYPE)
  424. if TYPE == "Cyl" then
  425. local MSH = IT("CylinderMesh",PART)
  426. elseif TYPE == "Ball" then
  427. local MSH = IT("SpecialMesh",PART)
  428. MSH.MeshType = "Sphere"
  429. elseif TYPE == "Wedge" then
  430. local MSH = IT("SpecialMesh",PART)
  431. MSH.MeshType = "Wedge"
  432. end
  433. end
  434.  
  435. function CheckTableForString(Table, String)
  436. for i, v in pairs(Table) do
  437. if string.find(string.lower(String), string.lower(v)) then
  438. return true
  439. end
  440. end
  441. return false
  442. end
  443.  
  444. function CheckIntangible(Hit)
  445. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  446. if Hit and Hit.Parent then
  447. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  448. return true
  449. end
  450. end
  451. return false
  452. end
  453.  
  454. Debris = game:GetService("Debris")
  455.  
  456. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  457. local Direction = CFrame.new(StartPos, Vec).lookVector
  458. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  459. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  460. if RayHit and CheckIntangible(RayHit) then
  461. if DelayIfHit then
  462. wait()
  463. end
  464. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  465. end
  466. return RayHit, RayPos, RayNormal
  467. end
  468.  
  469. function turnto(position)
  470. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  471. end
  472.  
  473. --//=================================\\
  474. --|| WEAPON CREATION
  475. --\\=================================//
  476.  
  477. local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Wheelie", VT(0.5,0,0.5),false)
  478. MakeForm(WHEEL1,"Cyl")
  479. WHEEL1.CFrame = LeftLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
  480. weldBetween(LeftLeg,WHEEL1)
  481.  
  482. local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Wheelie", VT(0.5,0,0.5),false)
  483. MakeForm(WHEEL1,"Cyl")
  484. WHEEL1.CFrame = RightLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
  485. weldBetween(RightLeg,WHEEL1)
  486.  
  487. local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Wheelie", VT(0.15,0.2,0.15),false)
  488. MakeForm(WHEEL1,"Cyl")
  489. WHEEL1.CFrame = LeftLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
  490. weldBetween(LeftLeg,WHEEL1)
  491.  
  492. local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Wheelie", VT(0.15,0.2,0.15),false)
  493. MakeForm(WHEEL1,"Cyl")
  494. WHEEL1.CFrame = RightLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
  495. weldBetween(RightLeg,WHEEL1)
  496.  
  497. for _, c in pairs(Weapon:GetChildren()) do
  498. if c.ClassName == "Part" then
  499. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  500. end
  501. end
  502.  
  503. Weapon.Parent = Character
  504.  
  505. Humanoid.Died:connect(function()
  506. ATTACK = true
  507. end)
  508.  
  509. 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")
  510. 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")
  511. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  512.  
  513. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Kicks", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  514. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Strafe", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  515. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Blade formation", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  516.  
  517. --//=================================\\
  518. --|| DAMAGE FUNCTIONS
  519. --\\=================================//
  520.  
  521. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  522. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  523. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  524. local BODYGYRO = IT("BodyGyro", STATPART)
  525. local BODYPOSITION = IT("BodyPosition", STATPART)
  526. BODYPOSITION.P = 2000
  527. BODYPOSITION.D = 100
  528. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  529. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  530. game:GetService("Debris"):AddItem(STATPART ,5)
  531. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  532. BILLBOARDGUI.Adornee = STATPART
  533. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  534. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  535. BILLBOARDGUI.AlwaysOnTop = false
  536. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  537. TEXTLABEL.BackgroundTransparency = 1
  538. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  539. TEXTLABEL.Text = TEXT
  540. TEXTLABEL.Font = "SciFi"
  541. TEXTLABEL.FontSize="Size42"
  542. TEXTLABEL.TextColor3 = COLOR
  543. TEXTLABEL.TextStrokeTransparency = 1
  544. TEXTLABEL.TextScaled = true
  545. TEXTLABEL.TextWrapped = true
  546. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  547. if LABELTYPE == "Normal" then
  548. for i = 1, 30 do
  549. Swait()
  550. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  551. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  552. end
  553. elseif LABELTYPE == "Debuff" then
  554. for i = 1, 30 do
  555. Swait()
  556. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  557. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  558. end
  559. elseif LABELTYPE == "Shock" then
  560. local ORIGIN = STATPART.Position
  561. for i = 1, 30 do
  562. Swait()
  563. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  564. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  565. end
  566. end
  567. THEPART.Parent = nil
  568. end),STATPART, BODYPOSITION, TEXTLABEL)
  569. end
  570.  
  571. --//=================================\\
  572. --|| DAMAGING
  573. --\\=================================//
  574.  
  575. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  576. local defence = Instance.new("BoolValue",Humanoid.Parent)
  577. defence.Name = ("HitBy"..Player.Name)
  578. game:GetService("Debris"):AddItem(defence, 0.001)
  579. if Humanoid.Health ~= 0 then
  580. local CritChance = MRANDOM(1,100)
  581. if CritChance < CritRate + 1 then
  582. Damage = Damage*CritMultiplier
  583. end
  584. if Damage > Humanoid.Health then
  585. Damage = math.ceil(Humanoid.Health)
  586. if Damage == 0 then
  587. Damage = 0.1
  588. end
  589. end
  590. Humanoid.Health = Humanoid.Health - Damage
  591. if Humanoid.Parent:FindFirstChild("Head") then
  592. if CritChance < CritRate + 1 then
  593. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  594. else
  595. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  596. end
  597. end
  598. end
  599. end
  600.  
  601. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  602. local dmg = math.random(min,max)
  603. for i,v in ipairs(workspace:GetChildren()) do
  604. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  605. local body = v:GetChildren()
  606. for part = 1, #body do
  607. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  608. if(body[part].Position - position).Magnitude < radius then
  609. if v.ClassName == "Model" then
  610. if v:FindFirstChildOfClass("Humanoid") then
  611. if CanBeDodgedByJumping == true then
  612. if body[part].Position.Y < position.Y+5 then
  613. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  614. end
  615. else
  616. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  617. end
  618. local bv = Instance.new("BodyVelocity")
  619. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  620. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  621. bv.Parent = body[part]
  622. Debris:AddItem(bv,0.2)
  623. end
  624. end
  625. end
  626. end
  627. end
  628. end
  629. if v:FindFirstChild("HitBy"..Player.Name) then
  630. v:FindFirstChild("HitBy"..Player.Name):remove()
  631. end
  632. end
  633. end
  634.  
  635. --//=================================\\
  636. --|| ATTACK FUNCTIONS AND STUFF
  637. --\\=================================//
  638.  
  639. function Transparency(TRANS)
  640. for _, c in pairs(Character:GetChildren()) do
  641. if c.ClassName == "Part" and c ~= RootPart then
  642. c.Transparency = TRANS
  643. if c:FindFirstChildOfClass("Decal") then
  644. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  645. end
  646. elseif c.ClassName == "Accessory" then
  647. c.Handle.Transparency = TRANS
  648. elseif c.ClassName == "Model" then
  649. for _, q in pairs(c:GetChildren()) do
  650. if q.ClassName == "Part" then
  651. q.Transparency = TRANS
  652. if q:FindFirstChildOfClass("Decal") then
  653. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  654. end
  655. end
  656. end
  657. end
  658. end
  659. end
  660.  
  661. function Kicks(STRAFE)
  662. ATTACK = true
  663. Rooted = false
  664. if COMBO == 1 then
  665. COMBO = 2
  666. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  667. if STRAFE == true then
  668. AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,15,17,0,2,2,false)
  669. else
  670. AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,5,7,0,2,2,false)
  671. end
  672. for i=0, 0.5, 0.1 / Animation_Speed do
  673. Swait()
  674. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed)
  675. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed)
  676. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  677. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  678. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(135), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  679. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  680. end
  681. elseif COMBO == 2 then
  682. COMBO = 1
  683. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  684. if STRAFE == true then
  685. AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,15,17,0,2,2,false)
  686. else
  687. AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,5,7,0,2,2,false)
  688. end
  689. for i=0, 0.5, 0.1 / Animation_Speed do
  690. Swait()
  691. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed)
  692. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed)
  693. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  694. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  695. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  696. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-135), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  697. end
  698. end
  699. ATTACK = false
  700. Rooted = false
  701. end
  702.  
  703. function Strafe()
  704. ATTACK = true
  705. Rooted = true
  706. for i=0, 1, 0.1 / Animation_Speed do
  707. Swait()
  708. RootPart.CFrame = RootPart.CFrame*CF(0,0,-1)
  709. local HIT = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 2, Character)
  710. if HIT ~= nil then
  711. break
  712. end
  713. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  714. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  715. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  716. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  717. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  718. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  719. end
  720. Kicks(true)
  721. ATTACK = false
  722. Rooted = false
  723. end
  724.  
  725. function BladeFormation()
  726. ATTACK = true
  727. Rooted = true
  728. for i=0, 1, 0.1 / Animation_Speed do
  729. Swait()
  730. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 2 / Animation_Speed)
  731. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  732. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  733. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  734. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  735. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  736. end
  737. Transparency(1)
  738. for i = 1, 25 do
  739. Swait()
  740. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  741. RootPart.CFrame = RootPart.CFrame * CF(0,0,-3)
  742. AoEDamage(Torso.Position,15,2,4,0,2,2,false)
  743. Slice("Round",1,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR,VT(-0.2,0,-0.2))
  744. Slice("Round",2,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR,VT(-0.2,0,-0.2))
  745. end
  746. Transparency(0)
  747. ATTACK = false
  748. Rooted = false
  749. end
  750.  
  751. --//=================================\\
  752. --|| ASSIGN THINGS TO KEYS
  753. --\\=================================//
  754.  
  755. function MouseDown(Mouse)
  756. if ATTACK == false then
  757. end
  758. end
  759.  
  760. function MouseUp(Mouse)
  761. HOLD = false
  762. end
  763.  
  764. function KeyDown(Key)
  765. KEYHOLD = true
  766. if Key == "z" and ATTACK == false then
  767. Kicks()
  768. end
  769.  
  770. if Key == "b" and ATTACK == false then
  771. Strafe()
  772. end
  773.  
  774. if Key == "c" and ATTACK == false then
  775. BladeFormation()
  776. end
  777. end
  778.  
  779. function KeyUp(Key)
  780. KEYHOLD = false
  781. end
  782.  
  783. Mouse.Button1Down:connect(function(NEWKEY)
  784. MouseDown(NEWKEY)
  785. end)
  786. Mouse.Button1Up:connect(function(NEWKEY)
  787. MouseUp(NEWKEY)
  788. end)
  789. Mouse.KeyDown:connect(function(NEWKEY)
  790. KeyDown(NEWKEY)
  791. end)
  792. Mouse.KeyUp:connect(function(NEWKEY)
  793. KeyUp(NEWKEY)
  794. end)
  795.  
  796. --//=================================\\
  797. --\\=================================//
  798.  
  799.  
  800. function unanchor()
  801. if UNANCHOR == true then
  802. g = Character:GetChildren()
  803. for i = 1, #g do
  804. if g[i].ClassName == "Part" then
  805. g[i].Anchored = false
  806. end
  807. end
  808. end
  809. end
  810.  
  811.  
  812. --//=================================\\
  813. --|| WRAP THE WHOLE SCRIPT UP
  814. --\\=================================//
  815.  
  816. Humanoid.Changed:connect(function(Jump)
  817. if Jump == "Jump" and (Disable_Jump == true) then
  818. Humanoid.Jump = false
  819. end
  820. end)
  821.  
  822. Humanoid.HipHeight = 0.3
  823.  
  824. while true do
  825. Swait()
  826. ANIMATE.Parent = nil
  827. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  828. IDLEANIMATION:Play()
  829. SINE = SINE + CHANGE
  830. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  831. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  832. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  833. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  834. local WALKSPEEDVALUE = 6
  835. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  836. ANIM = "Jump"
  837. if ATTACK == false then
  838. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  839. 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)
  840. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  841. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  842. 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)
  843. 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)
  844. end
  845. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  846. ANIM = "Fall"
  847. if ATTACK == false then
  848. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  849. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  850. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  851. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  852. 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)
  853. 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)
  854. end
  855. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  856. ANIM = "Idle"
  857. if ATTACK == false then
  858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  859. 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)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  864. end
  865. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  866. if WALK == false then
  867. coroutine.resume(coroutine.create(function()
  868. WALK = true
  869. if ATTACK == false then
  870. --CreateSound("199150686", Torso, 1, MRANDOM(15,17)/10)
  871. for i=0, 1, 0.1 / Animation_Speed do
  872. Swait()
  873. if ATTACK == true or ANIM ~= "Walk" then
  874. break
  875. end
  876. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  877. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  878. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  879. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  880. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(75), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  881. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-75), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  882. end
  883. if ATTACK == false and ANIM == "Walk" then
  884. --CreateSound("199150686", Torso, 1, MRANDOM(15,17)/10)
  885. for i=0, 1, 0.1 / Animation_Speed do
  886. Swait()
  887. if ATTACK == true or ANIM ~= "Walk" then
  888. break
  889. end
  890. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  891. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  892. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  893. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  894. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-75), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  895. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(75), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  896. end
  897. end
  898. end
  899. WALK = false
  900. end))
  901. end
  902. ANIM = "Walk"
  903. end
  904. if ANIM == "Walk" then
  905. if Speed < 75 then
  906. Speed = Speed + 0.2
  907. end
  908. else
  909. Speed = 14
  910. end
  911. unanchor()
  912. Humanoid.MaxHealth = "inf"
  913. Humanoid.Health = "inf"
  914. if Rooted == false then
  915. Disable_Jump = false
  916. Humanoid.WalkSpeed = Speed
  917. elseif Rooted == true then
  918. Disable_Jump = true
  919. Humanoid.WalkSpeed = 0
  920. end
  921. end
  922.  
  923. --//=================================\\
  924. --\\=================================//
  925.  
  926.  
  927.  
  928.  
  929.  
  930. --//====================================================\\--
  931. --|| END OF SCRIPT
  932. --\\====================================================//--
Add Comment
Please, Sign In to add comment