Advertisement
cobblecorn

Untitled

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