Advertisement
coolgoldboy166

2018

Dec 29th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.01 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. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  113. local acs = Instance.new("Part")
  114. acs.CanCollide = false
  115. acs.Anchored = false
  116. acs.Size = Vector3.new(0,0,0)
  117. acs.CFrame = attachmentpart.CFrame
  118. acs.Parent = Character
  119. acs.BrickColor = color
  120. local meshs = Instance.new("SpecialMesh")
  121. meshs.MeshId = mesh
  122. meshs.TextureId = texture
  123. meshs.Parent = acs
  124. meshs.Scale = scale
  125. meshs.Offset = offset
  126. weldBetween(attachmentpart,acs)
  127. end
  128.  
  129. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  130. if TYPE == "Gem" then
  131. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  132. acs.Anchored = false
  133. acs.CanCollide = false
  134. acs.CFrame = PART.CFrame
  135. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  136. weldBetween(PART,acs)
  137. elseif TYPE == "Skull" then
  138. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  139. acs.Anchored = false
  140. acs.CanCollide = false
  141. acs.CFrame = PART.CFrame
  142. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  143. weldBetween(PART,acs)
  144. elseif TYPE == "Eye" then
  145. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  146. acs.Anchored = false
  147. acs.CanCollide = false
  148. acs.CFrame = PART.CFrame
  149. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  150. weldBetween(PART,acs)
  151. end
  152. end
  153.  
  154. --//=================================\\
  155. --|| USEFUL VALUES
  156. --\\=================================//
  157.  
  158. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  159. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  160. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  161. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  162. local CHANGEDEFENSE = 0
  163. local CHANGEDAMAGE = 0
  164. local CHANGEMOVEMENT = 0
  165. local ANIM = "Idle"
  166. local ATTACK = false
  167. local EQUIPPED = false
  168. local HOLD = false
  169. local COMBO = 1
  170. local Rooted = false
  171. local SINE = 0
  172. local KEYHOLD = false
  173. local CHANGE = 2 / Animation_Speed
  174. local WALKINGANIM = false
  175. local WALK = 0
  176. local VALUE1 = false
  177. local VALUE2 = false
  178. local ROBLOXIDLEANIMATION = IT("Animation")
  179. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  180. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  181. --ROBLOXIDLEANIMATION.Parent = Humanoid
  182. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  183. WEAPONGUI.Name = "Weapon GUI"
  184. local Effects = IT("Folder", Character)
  185. Effects.Name = "Effects"
  186. local ANIMATOR = Humanoid.Animator
  187. local ANIMATE = Character.Animate
  188. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  189. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  190. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  191. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  192. local UNANCHOR = true
  193.  
  194. local SKILLTEXTCOLOR = C3(0,0,0)
  195.  
  196. --//=================================\\
  197. --\\=================================//
  198.  
  199.  
  200. --//=================================\\
  201. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  202. --\\=================================//
  203.  
  204. ArtificialHB = Instance.new("BindableEvent", script)
  205. ArtificialHB.Name = "ArtificialHB"
  206.  
  207. script:WaitForChild("ArtificialHB")
  208.  
  209. frame = Frame_Speed
  210. tf = 0
  211. allowframeloss = false
  212. tossremainder = false
  213. lastframe = tick()
  214. script.ArtificialHB:Fire()
  215.  
  216. game:GetService("RunService").Heartbeat:connect(function(s, p)
  217. tf = tf + s
  218. if tf >= frame then
  219. if allowframeloss then
  220. script.ArtificialHB:Fire()
  221. lastframe = tick()
  222. else
  223. for i = 1, math.floor(tf / frame) do
  224. script.ArtificialHB:Fire()
  225. end
  226. lastframe = tick()
  227. end
  228. if tossremainder then
  229. tf = 0
  230. else
  231. tf = tf - frame * math.floor(tf / frame)
  232. end
  233. end
  234. end)
  235.  
  236. --//=================================\\
  237. --\\=================================//
  238.  
  239.  
  240.  
  241.  
  242.  
  243. --//=================================\\
  244. --|| SOME FUNCTIONS
  245. --\\=================================//
  246.  
  247. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  248. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  249. end
  250.  
  251. function PositiveAngle(NUMBER)
  252. if NUMBER >= 0 then
  253. NUMBER = 0
  254. end
  255. return NUMBER
  256. end
  257.  
  258. function NegativeAngle(NUMBER)
  259. if NUMBER <= 0 then
  260. NUMBER = 0
  261. end
  262. return NUMBER
  263. end
  264.  
  265. function Swait(NUMBER)
  266. if NUMBER == 0 or NUMBER == nil then
  267. ArtificialHB.Event:wait()
  268. else
  269. for i = 1, NUMBER do
  270. ArtificialHB.Event:wait()
  271. end
  272. end
  273. end
  274.  
  275. function QuaternionFromCFrame(cf)
  276. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  277. local trace = m00 + m11 + m22
  278. if trace > 0 then
  279. local s = math.sqrt(1 + trace)
  280. local recip = 0.5 / s
  281. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  282. else
  283. local i = 0
  284. if m11 > m00 then
  285. i = 1
  286. end
  287. if m22 > (i == 0 and m00 or m11) then
  288. i = 2
  289. end
  290. if i == 0 then
  291. local s = math.sqrt(m00 - m11 - m22 + 1)
  292. local recip = 0.5 / s
  293. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  294. elseif i == 1 then
  295. local s = math.sqrt(m11 - m22 - m00 + 1)
  296. local recip = 0.5 / s
  297. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  298. elseif i == 2 then
  299. local s = math.sqrt(m22 - m00 - m11 + 1)
  300. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  301. end
  302. end
  303. end
  304.  
  305. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  306. local xs, ys, zs = x + x, y + y, z + z
  307. local wx, wy, wz = w * xs, w * ys, w * zs
  308. local xx = x * xs
  309. local xy = x * ys
  310. local xz = x * zs
  311. local yy = y * ys
  312. local yz = y * zs
  313. local zz = z * zs
  314. 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))
  315. end
  316.  
  317. function QuaternionSlerp(a, b, t)
  318. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  319. local startInterp, finishInterp;
  320. if cosTheta >= 0.0001 then
  321. if (1 - cosTheta) > 0.0001 then
  322. local theta = ACOS(cosTheta)
  323. local invSinTheta = 1 / SIN(theta)
  324. startInterp = SIN((1 - t) * theta) * invSinTheta
  325. finishInterp = SIN(t * theta) * invSinTheta
  326. else
  327. startInterp = 1 - t
  328. finishInterp = t
  329. end
  330. else
  331. if (1 + cosTheta) > 0.0001 then
  332. local theta = ACOS(-cosTheta)
  333. local invSinTheta = 1 / SIN(theta)
  334. startInterp = SIN((t - 1) * theta) * invSinTheta
  335. finishInterp = SIN(t * theta) * invSinTheta
  336. else
  337. startInterp = t - 1
  338. finishInterp = t
  339. end
  340. end
  341. 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
  342. end
  343.  
  344. function Clerp(a, b, t)
  345. local qa = {QuaternionFromCFrame(a)}
  346. local qb = {QuaternionFromCFrame(b)}
  347. local ax, ay, az = a.x, a.y, a.z
  348. local bx, by, bz = b.x, b.y, b.z
  349. local _t = 1 - t
  350. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  351. end
  352.  
  353. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  354. local frame = IT("Frame")
  355. frame.BackgroundTransparency = TRANSPARENCY
  356. frame.BorderSizePixel = BORDERSIZEPIXEL
  357. frame.Position = POSITION
  358. frame.Size = SIZE
  359. frame.BackgroundColor3 = COLOR
  360. frame.BorderColor3 = BORDERCOLOR
  361. frame.Name = NAME
  362. frame.Parent = PARENT
  363. return frame
  364. end
  365.  
  366. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  367. local label = IT("TextLabel")
  368. label.BackgroundTransparency = 1
  369. label.Size = UD2(1, 0, 1, 0)
  370. label.Position = UD2(0, 0, 0, 0)
  371. label.TextColor3 = TEXTCOLOR
  372. label.TextStrokeTransparency = STROKETRANSPARENCY
  373. label.TextTransparency = TRANSPARENCY
  374. label.FontSize = TEXTFONTSIZE
  375. label.Font = TEXTFONT
  376. label.BorderSizePixel = BORDERSIZEPIXEL
  377. label.TextScaled = false
  378. label.Text = TEXT
  379. label.Name = NAME
  380. label.Parent = PARENT
  381. return label
  382. end
  383.  
  384. function NoOutlines(PART)
  385. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  386. end
  387.  
  388.  
  389. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  390. local NEWWELD = IT(TYPE)
  391. NEWWELD.Part0 = PART0
  392. NEWWELD.Part1 = PART1
  393. NEWWELD.C0 = C0
  394. NEWWELD.C1 = C1
  395. NEWWELD.Parent = PARENT
  396. return NEWWELD
  397. end
  398.  
  399. function CreateSound(ID, PARENT, VOLUME, PITCH)
  400. local NEWSOUND = nil
  401. coroutine.resume(coroutine.create(function()
  402. NEWSOUND = IT("Sound", PARENT)
  403. NEWSOUND.Volume = VOLUME
  404. NEWSOUND.Pitch = PITCH
  405. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  406. Swait()
  407. NEWSOUND:play()
  408. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  409. end))
  410. return NEWSOUND
  411. end
  412.  
  413. function CFrameFromTopBack(at, top, back)
  414. local right = top:Cross(back)
  415. 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)
  416. end
  417.  
  418. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  419. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  420. local mesh = IT("SpecialMesh",wave)
  421. mesh.MeshType = "Sphere"
  422. mesh.Scale = SIZE
  423. mesh.Offset = VT(0,0,0)
  424. wave.CFrame = CFRAME
  425. coroutine.resume(coroutine.create(function(PART)
  426. for i = 1, WAIT do
  427. Swait()
  428. mesh.Scale = mesh.Scale + GROW
  429. wave.Transparency = wave.Transparency + (1/WAIT)
  430. if wave.Transparency > 0.99 then
  431. wave:remove()
  432. end
  433. end
  434. end))
  435. end
  436.  
  437. function MakeForm(PART,TYPE)
  438. if TYPE == "Cyl" then
  439. local MSH = IT("CylinderMesh",PART)
  440. elseif TYPE == "Ball" then
  441. local MSH = IT("SpecialMesh",PART)
  442. MSH.MeshType = "Sphere"
  443. elseif TYPE == "Wedge" then
  444. local MSH = IT("SpecialMesh",PART)
  445. MSH.MeshType = "Wedge"
  446. end
  447. end
  448.  
  449. Debris = game:GetService("Debris")
  450.  
  451. --//=================================\\
  452. --|| DAMAGE FUNCTIONS
  453. --\\=================================//
  454.  
  455. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  456. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  457. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  458. local BODYGYRO = IT("BodyGyro", STATPART)
  459. local BODYPOSITION = IT("BodyPosition", STATPART)
  460. BODYPOSITION.P = 2000
  461. BODYPOSITION.D = 100
  462. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  463. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  464. game:GetService("Debris"):AddItem(STATPART ,5)
  465. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  466. BILLBOARDGUI.Adornee = STATPART
  467. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  468. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  469. BILLBOARDGUI.AlwaysOnTop = false
  470. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  471. TEXTLABEL.BackgroundTransparency = 1
  472. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  473. TEXTLABEL.Text = TEXT
  474. TEXTLABEL.Font = "SciFi"
  475. TEXTLABEL.FontSize="Size42"
  476. TEXTLABEL.TextColor3 = COLOR
  477. TEXTLABEL.TextStrokeTransparency = 1
  478. TEXTLABEL.TextScaled = false
  479. TEXTLABEL.TextWrapped = false
  480. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  481. wait(50)
  482. if LABELTYPE == "Normal" then
  483. for i = 1, 30 do
  484. Swait()
  485. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  486. end
  487. end
  488. THEPART.Parent = nil
  489. end),STATPART, BODYPOSITION, TEXTLABEL)
  490. end
  491.  
  492. --//=================================\\
  493. --|| ATTACK FUNCTIONS AND STUFF
  494. --\\=================================//
  495.  
  496. local asd = Instance.new("ParticleEmitter")
  497. asd.LightEmission = .5
  498. asd.Size = NumberSequence.new(1)
  499. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  500. asd.Transparency = bbb
  501. asd.ZOffset = .9
  502. asd.LockedToPart = false
  503. asd.EmissionDirection = "Back"
  504. asd.Lifetime = NumberRange.new(25,35)
  505. asd.Rotation = NumberRange.new(-100, 100)
  506. asd.RotSpeed = NumberRange.new(-100, 100)
  507. asd.Speed = NumberRange.new(8)
  508. asd.Enabled = false
  509. asd.Drag = 0.5
  510. asd.VelocitySpread = 10000
  511.  
  512. function MulticolorBurst(PART,AMOUNT)
  513. local Spark1 = asd:Clone()
  514. Spark1.Color = ColorSequence.new(Color3.new(1, 0, 0))
  515. Spark1.Parent = PART
  516. Spark1:Emit(AMOUNT)
  517. local Spark2 = asd:Clone()
  518. Spark2.Color = ColorSequence.new(Color3.new(1, 0, 1))
  519. Spark2.Parent = PART
  520. Spark2:Emit(AMOUNT)
  521. local Spark3 = asd:Clone()
  522. Spark3.Color = ColorSequence.new(Color3.new(0, 1, 0))
  523. Spark3.Parent = PART
  524. Spark3:Emit(AMOUNT)
  525. end
  526.  
  527. function BigMulticolorBurst(PART,AMOUNT)
  528. local Spark1 = asd:Clone()
  529. Spark1.Color = ColorSequence.new(Color3.new(1, 0, 0))
  530. Spark1.Parent = PART
  531. Spark1.Speed = NumberRange.new(18)
  532. Spark1.Size = NumberSequence.new(3)
  533. Spark1:Emit(AMOUNT)
  534. local Spark2 = asd:Clone()
  535. Spark2.Color = ColorSequence.new(Color3.new(1, 0, 1))
  536. Spark2.Parent = PART
  537. Spark2.Speed = NumberRange.new(18)
  538. Spark2.Size = NumberSequence.new(3)
  539. Spark2:Emit(AMOUNT)
  540. local Spark3 = asd:Clone()
  541. Spark3.Color = ColorSequence.new(Color3.new(0, 1, 0))
  542. Spark3.Parent = PART
  543. Spark3.Speed = NumberRange.new(18)
  544. Spark3.Size = NumberSequence.new(3)
  545. Spark3:Emit(AMOUNT)
  546. end
  547.  
  548. function Sparks(PART,AMOUNT)
  549. coroutine.resume(coroutine.create(function()
  550. CreateSound("11565378", Effects, 1, 1.5)
  551. for i = 1, 15 do
  552. Swait()
  553. local PART2 = CreatePart(3, Effects, "Brick", 0, 0, "Tawny", "Handle", VT(0,0,0),false)
  554. PART2.CFrame = PART.CFrame*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))
  555. Debris:AddItem(PART,35)
  556. local Spark1 = asd:Clone()
  557. Spark1.Color = ColorSequence.new(Color3.new(1, 1, 1))
  558. Spark1.Parent = PART2
  559. Spark1.Drag = 5
  560. Spark1:Emit(AMOUNT)
  561. end
  562. end))
  563. end
  564.  
  565. function Celebrate1()
  566. ATTACK = true
  567. Rooted = true
  568. local Rocket = CreatePart(3, Effects, "Brick", 0, 0, "Tawny", "Handle", VT(0,0,0),false)
  569. local HandleMesh = CreateMesh("SpecialMesh", Rocket, "FileMesh", "162969265", "162969520", VT(1, 1, 1), VT(0, 0, 0.5))
  570. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Rocket, RightArm, Rocket, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(0), RAD(25)), CF(0, 0, 0))
  571. for i=0, 2, 0.1 / Animation_Speed do
  572. Swait()
  573. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.75) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  574. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  575. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  576. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  577. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  578. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.75) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  579. end
  580. CreateSound("161034732", Rocket, 1, 1)
  581. HandleWeld:remove()
  582. Rocket.Anchored = true
  583. coroutine.resume(coroutine.create(function()
  584. for i = 1, 60 do
  585. Swait()
  586. MagicSphere(VT(2,2,2),25,Rocket.CFrame,"New Yeller",VT(-2/25,-2/25,-2/25))
  587. Rocket.CFrame = Rocket.CFrame * CF(0,1+(i/20),0)
  588. end
  589. MagicSphere(VT(0,0,0),25,Rocket.CFrame,"New Yeller",VT(5,5,5))
  590. CreateSound("160248302", Effects, 1, 1)
  591. Rocket.Transparency = 1
  592. StatLabel("Normal", Rocket.CFrame, "HAPPY 2018", C3(1,0,0))
  593. MulticolorBurst(Rocket,200)
  594. local FRAME = Rocket.CFrame
  595. Debris:AddItem(Rocket,100)
  596. for i = 1, 4 do
  597. Swait(10)
  598. CreateSound("160248302", Effects, 1, 1)
  599. for i = 1, 5 do
  600. local PART = CreatePart(3, Effects, "Brick", 0, 0, "Tawny", "Handle", VT(0,0,0),false)
  601. PART.CFrame = FRAME*CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35))
  602. MulticolorBurst(PART,100)
  603. Debris:AddItem(PART,35)
  604. end
  605. end
  606. for i = 1, 2 do
  607. Swait(10)
  608. CreateSound("160248302", Effects, 1, 1)
  609. for i = 1, 15 do
  610. local PART = CreatePart(3, Effects, "Brick", 0, 0, "Tawny", "Handle", VT(0,0,0),false)
  611. PART.CFrame = FRAME*CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35))
  612. MulticolorBurst(PART,100)
  613. Debris:AddItem(PART,35)
  614. end
  615. end
  616. Swait(25)
  617. for i = 1, 2 do
  618. Swait(35)
  619. CreateSound("160248302", Effects,3, 0.8)
  620. BigMulticolorBurst(Rocket,300)
  621. end
  622. end))
  623. for i=0, 2, 0.1 / Animation_Speed do
  624. Swait()
  625. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.75) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  626. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  627. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  628. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  629. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  630. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.75) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  631. end
  632. ATTACK = false
  633. Rooted = false
  634. end
  635.  
  636. function Celebrate2()
  637. ATTACK = true
  638. Rooted = true
  639. local Rocket = CreatePart(3, Effects, "Brick", 0, 0, "Tawny", "Handle", VT(0,0,0))
  640. local HandleMesh = CreateMesh("SpecialMesh", Rocket, "FileMesh", "162969265", "162969520", VT(1, 1, 1), VT(0, 0, 0.5))
  641. Rocket.CFrame = RootPart.CFrame * CF(0,-1,-3)
  642. for i=0, 2, 0.1 / Animation_Speed do
  643. Swait()
  644. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.75) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  647. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  648. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  649. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.75) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  650. end
  651. coroutine.resume(coroutine.create(function()
  652. CreateSound("160248368", Rocket, 1, 1)
  653. for i = 1, 40 do
  654. Swait(15)
  655. local SPARK = CreatePart(3, Effects, "Brick", 0, 1, "Tawny", "Handle", VT(0.2,0.2,0.2))
  656. MakeForm(SPARK,"Ball")
  657. SPARK.CFrame = Rocket.CFrame*ANGLES(RAD(0),RAD(MRANDOM(-360,360)),RAD(0))
  658. coroutine.resume(coroutine.create(function()
  659. local TIME = MRANDOM(25,75)
  660. for i = 1, TIME do
  661. Swait()
  662. MagicSphere(VT(1,1,1),15,SPARK.CFrame,"New Yeller",VT(-1/15,-1/15,-1/15))
  663. SPARK.CFrame = SPARK.CFrame*CF(0,1,0)*ANGLES(RAD(1),RAD(0),RAD(0))
  664. end
  665. SPARK.Transparency = 1
  666. CreateSound("160248302", Effects,3, 1)
  667. Debris:AddItem(SPARK,45)
  668. MulticolorBurst(SPARK,75)
  669. end))
  670. end
  671. Swait(75)
  672. CreateSound("161034732", Rocket, 1, 1)
  673. for i = 1, 60 do
  674. Swait()
  675. MagicSphere(VT(2,2,2),25,Rocket.CFrame,"New Yeller",VT(-2/25,-2/25,-2/25))
  676. Rocket.CFrame = Rocket.CFrame * CF(0,1+(i/20),0)
  677. end
  678. Sparks(Rocket,15)
  679. Rocket.Transparency = 1
  680. StatLabel("Normal", Rocket.CFrame, "HAPPY 2018", C3(1,0,0))
  681. CreateSound("160248302", Effects,3, 0.8)
  682. BigMulticolorBurst(Rocket,300)
  683. Debris:AddItem(Rocket,100)
  684. end))
  685. for i=0, 2, 0.1 / Animation_Speed do
  686. Swait()
  687. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.75) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  688. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  689. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  690. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  691. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  692. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.75) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  693. end
  694. ATTACK = false
  695. Rooted = false
  696. end
  697.  
  698. --//=================================\\
  699. --|| ASSIGN THINGS TO KEYS
  700. --\\=================================//
  701.  
  702. function MouseDown(Mouse)
  703. if ATTACK == false then
  704. local CHANCE = MRANDOM(1,2)
  705. if CHANCE == 1 then
  706. Celebrate1()
  707. elseif CHANCE == 2 then
  708. Celebrate2()
  709. end
  710. end
  711. end
  712.  
  713. function MouseUp(Mouse)
  714. HOLD = false
  715. end
  716.  
  717.  
  718. Mouse.Button1Down:connect(function(NEWKEY)
  719. MouseDown(NEWKEY)
  720. end)
  721. Mouse.Button1Up:connect(function(NEWKEY)
  722. MouseUp(NEWKEY)
  723. end)
  724.  
  725. --//=================================\\
  726. --\\=================================//
  727.  
  728.  
  729. function unanchor()
  730. if UNANCHOR == true then
  731. g = Character:GetChildren()
  732. for i = 1, #g do
  733. if g[i].ClassName == "Part" then
  734. g[i].Anchored = false
  735. end
  736. end
  737. end
  738. end
  739.  
  740.  
  741. --//=================================\\
  742. --|| WRAP THE WHOLE SCRIPT UP
  743. --\\=================================//
  744.  
  745. Humanoid.Changed:connect(function(Jump)
  746. if Jump == "Jump" and (Disable_Jump == true) then
  747. Humanoid.Jump = false
  748. end
  749. end)
  750.  
  751. while true do
  752. Swait()
  753. ANIMATE.Parent = nil
  754. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  755. IDLEANIMATION:Play()
  756. SINE = SINE + CHANGE
  757. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  758. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  759. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  760. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  761. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  762. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  763. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  764. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  765. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  766. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  767. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  768. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  769. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  770. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  771. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  772. end
  773. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  774. ANIM = "Jump"
  775. if ATTACK == false then
  776. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  777. 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)
  778. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  779. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  780. 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)
  781. 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)
  782. end
  783. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  784. ANIM = "Fall"
  785. if ATTACK == false then
  786. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  790. 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)
  791. 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)
  792. end
  793. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  794. ANIM = "Idle"
  795. if ATTACK == false then
  796. 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)
  797. 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)
  798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  800. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  802. end
  803. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  804. ANIM = "Walk"
  805. WALK = WALK + 1 / Animation_Speed
  806. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  807. WALK = 0
  808. if WALKINGANIM == true then
  809. WALKINGANIM = false
  810. elseif WALKINGANIM == false then
  811. WALKINGANIM = true
  812. end
  813. end
  814. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  815. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  816. if ATTACK == false then
  817. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  818. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  819. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  823. end
  824. end
  825. unanchor()
  826. Humanoid.MaxHealth = "inf"
  827. Humanoid.Health = "inf"
  828. if Rooted == false then
  829. Disable_Jump = false
  830. Humanoid.WalkSpeed = Speed
  831. elseif Rooted == true then
  832. Disable_Jump = true
  833. Humanoid.WalkSpeed = 0
  834. end
  835. end
  836.  
  837. --//=================================\\
  838. --\\=================================//
  839.  
  840.  
  841.  
  842.  
  843.  
  844. --//====================================================\\--
  845. --|| END OF SCRIPT
  846. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement