Advertisement
Dark_EccentricYT

Untitled

Oct 3rd, 2018
4,777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.10 KB | None | 0 0
  1. warn("if ur reading this ur gay")
  2. Player = game:GetService("Players").LocalPlayer
  3. Mouse = Player:GetMouse()
  4. PlayerGui = Player.PlayerGui
  5. Cam = workspace.CurrentCamera
  6. Backpack = Player.Backpack
  7. Character = Player.Character
  8. Humanoid = Character.Humanoid
  9. RootPart = Character["HumanoidRootPart"]
  10. Torso = Character["Torso"]
  11. Head = Character["Head"]
  12. RightArm = Character["Right Arm"]
  13. LeftArm = Character["Left Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LeftLeg = Character["Left Leg"]
  16. RootJoint = RootPart["RootJoint"]
  17. Neck = Torso["Neck"]
  18. RightShoulder = Torso["Right Shoulder"]
  19. LeftShoulder = Torso["Left Shoulder"]
  20. RightHip = Torso["Right Hip"]
  21. LeftHip = Torso["Left Hip"]
  22. local TIME = 0
  23. local sick = Instance.new("Sound",Torso)
  24.  
  25. IT = Instance.new
  26. CF = CFrame.new
  27. VT = Vector3.new
  28. RAD = math.rad
  29. C3 = Color3.new
  30. UD2 = UDim2.new
  31. BRICKC = BrickColor.new
  32. ANGLES = CFrame.Angles
  33. EULER = CFrame.fromEulerAnglesXYZ
  34. COS = math.cos
  35. ACOS = math.acos
  36. SIN = math.sin
  37. ASIN = math.asin
  38. ABS = math.abs
  39. MRANDOM = math.random
  40. FLOOR = math.floor
  41.  
  42. --//=================================\\
  43. --|| Value shit things
  44. --\\=================================//
  45.  
  46. Animation_Speed = 3
  47. local FORCERESET = false
  48. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  49. local SIZE = 1
  50. local Speed = 24
  51. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  52. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  53. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  54. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  55. local DAMAGEMULTIPLIER = 1
  56. local ANIM = "Idle"
  57. local ATTACK = false
  58. local EQUIPPED = false
  59. local HOLD = false
  60. local COMBO = 1
  61. local Rooted = false
  62. local SINE = 0
  63. local KEYHOLD = false
  64. local CHANGE = 2 / Animation_Speed
  65. local WALKINGANIM = false
  66. local VALUE1 = false
  67. local VALUE2 = false
  68. local ROBLOXIDLEANIMATION = IT("Animation")
  69. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  70. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  71. --ROBLOXIDLEANIMATION.Parent = Humanoid
  72. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  73. WEAPONGUI.Name = "BanishV3Gui"
  74. local Weapon = IT("Model")
  75. Weapon.Name = "Adds"
  76. local Effects = IT("Folder", Weapon)
  77. Effects.Name = "Effects"
  78. local ANIMATOR = Humanoid.Animator
  79. local ANIMATE = Character:FindFirstChild("Animate")
  80. local UNANCHOR = true
  81. local TOBANISH = {}
  82. Player_Size = 1
  83. local kan = Instance.new("Sound",Character)
  84. kan.Volume = 1.25
  85. kan.TimePosition = 0
  86. kan.PlaybackSpeed = 1
  87. kan.Pitch = 1
  88. kan.SoundId = "rbxassetid://614032233"
  89. kan.Name = "wrecked"
  90. kan.Looped = true
  91. kan:Play()
  92. local Mode = 1
  93. local currentThemePlaying = kan.SoundId
  94. local currentPitch = kan.Pitch
  95. local currentVol = kan.Volume
  96. --//=================================\\
  97. --\\=================================//
  98. for i,v in pairs(Character:children()) do
  99. if v:IsA("Accessory") then
  100. v:Destroy()
  101. end
  102. end
  103.  
  104. warn("CREATED BY AlmightyToast#6465")
  105. warn("aka KrYn0MoRe or ShrekBenson")
  106. warn("DOnt rEm0vE tH1s 0r uR gAy")
  107. --//=================================\\
  108. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  109. --\\=================================//
  110.  
  111. ArtificialHB = Instance.new("BindableEvent", script)
  112. ArtificialHB.Name = "ArtificialHB"
  113.  
  114. script:WaitForChild("ArtificialHB")
  115.  
  116. frame = Frame_Speed
  117. tf = 0
  118. allowframeloss = false
  119. tossremainder = false
  120. lastframe = tick()
  121. script.ArtificialHB:Fire()
  122.  
  123. game:GetService("RunService").Heartbeat:connect(function(s, p)
  124. tf = tf + s
  125. if tf >= frame then
  126. if allowframeloss then
  127. script.ArtificialHB:Fire()
  128. lastframe = tick()
  129. else
  130. for i = 1, math.floor(tf / frame) do
  131. script.ArtificialHB:Fire()
  132. end
  133. lastframe = tick()
  134. end
  135. if tossremainder then
  136. tf = 0
  137. else
  138. tf = tf - frame * math.floor(tf / frame)
  139. end
  140. end
  141. end)
  142.  
  143. --//=================================\\
  144. --\\=================================//
  145.  
  146. --//=================================\\
  147. --|| MOST FUNCTIONS
  148. --\\=================================//
  149.  
  150. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  151. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  152. end
  153.  
  154. function PositiveAngle(NUMBER)
  155. if NUMBER >= 0 then
  156. NUMBER = 0
  157. end
  158. return NUMBER
  159. end
  160.  
  161. function NegativeAngle(NUMBER)
  162. if NUMBER <= 0 then
  163. NUMBER = 0
  164. end
  165. return NUMBER
  166. end
  167.  
  168. function Swait(NUMBER)
  169. if NUMBER == 0 or NUMBER == nil then
  170. ArtificialHB.Event:wait()
  171. else
  172. for i = 1, NUMBER do
  173. ArtificialHB.Event:wait()
  174. end
  175. end
  176. end
  177.  
  178. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  179. local NEWMESH = IT(MESH)
  180. if MESH == "SpecialMesh" then
  181. NEWMESH.MeshType = MESHTYPE
  182. if MESHID ~= "nil" and MESHID ~= "" then
  183. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  184. end
  185. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  186. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  187. end
  188. end
  189. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  190. NEWMESH.Scale = SCALE
  191. NEWMESH.Parent = PARENT
  192. return NEWMESH
  193. end
  194.  
  195. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  196. local NEWPART = IT("Part")
  197. NEWPART.formFactor = FORMFACTOR
  198. NEWPART.Reflectance = REFLECTANCE
  199. NEWPART.Transparency = TRANSPARENCY
  200. NEWPART.CanCollide = false
  201. NEWPART.Locked = true
  202. NEWPART.Anchored = true
  203. if ANCHOR == false then
  204. NEWPART.Anchored = false
  205. end
  206. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  207. NEWPART.Name = NAME
  208. NEWPART.Size = SIZE
  209. NEWPART.Position = Torso.Position
  210. NEWPART.Material = MATERIAL
  211. NEWPART:BreakJoints()
  212. NEWPART.Parent = PARENT
  213. return NEWPART
  214. end
  215.  
  216. local function weldBetween(a, b)
  217. local weldd = IT("Weld")
  218. weldd.Part0 = a
  219. weldd.Part1 = b
  220. weldd.C0 = CF()
  221. weldd.C1 = b.CFrame:inverse() * a.CFrame
  222. weldd.Parent = a
  223. return weldd
  224. end
  225.  
  226.  
  227. function QuaternionFromCFrame(cf)
  228. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  229. local trace = m00 + m11 + m22
  230. if trace > 0 then
  231. local s = math.sqrt(1 + trace)
  232. local recip = 0.5 / s
  233. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  234. else
  235. local i = 0
  236. if m11 > m00 then
  237. i = 1
  238. end
  239. if m22 > (i == 0 and m00 or m11) then
  240. i = 2
  241. end
  242. if i == 0 then
  243. local s = math.sqrt(m00 - m11 - m22 + 1)
  244. local recip = 0.5 / s
  245. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  246. elseif i == 1 then
  247. local s = math.sqrt(m11 - m22 - m00 + 1)
  248. local recip = 0.5 / s
  249. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  250. elseif i == 2 then
  251. local s = math.sqrt(m22 - m00 - m11 + 1)
  252. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  253. end
  254. end
  255. end
  256.  
  257. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  258. local xs, ys, zs = x + x, y + y, z + z
  259. local wx, wy, wz = w * xs, w * ys, w * zs
  260. local xx = x * xs
  261. local xy = x * ys
  262. local xz = x * zs
  263. local yy = y * ys
  264. local yz = y * zs
  265. local zz = z * zs
  266. 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))
  267. end
  268.  
  269. function QuaternionSlerp(a, b, t)
  270. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  271. local startInterp, finishInterp;
  272. if cosTheta >= 0.0001 then
  273. if (1 - cosTheta) > 0.0001 then
  274. local theta = ACOS(cosTheta)
  275. local invSinTheta = 1 / SIN(theta)
  276. startInterp = SIN((1 - t) * theta) * invSinTheta
  277. finishInterp = SIN(t * theta) * invSinTheta
  278. else
  279. startInterp = 1 - t
  280. finishInterp = t
  281. end
  282. else
  283. if (1 + cosTheta) > 0.0001 then
  284. local theta = ACOS(-cosTheta)
  285. local invSinTheta = 1 / SIN(theta)
  286. startInterp = SIN((t - 1) * theta) * invSinTheta
  287. finishInterp = SIN(t * theta) * invSinTheta
  288. else
  289. startInterp = t - 1
  290. finishInterp = t
  291. end
  292. end
  293. 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
  294. end
  295.  
  296. function Clerp(a, b, t)
  297. local qa = {QuaternionFromCFrame(a)}
  298. local qb = {QuaternionFromCFrame(b)}
  299. local ax, ay, az = a.x, a.y, a.z
  300. local bx, by, bz = b.x, b.y, b.z
  301. local _t = 1 - t
  302. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  303. end
  304.  
  305. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  306. local frame = IT("Frame")
  307. frame.BackgroundTransparency = TRANSPARENCY
  308. frame.BorderSizePixel = BORDERSIZEPIXEL
  309. frame.Position = POSITION
  310. frame.Size = SIZE
  311. frame.BackgroundColor3 = COLOR
  312. frame.BorderColor3 = BORDERCOLOR
  313. frame.Name = NAME
  314. frame.Parent = PARENT
  315. return frame
  316. end
  317.  
  318. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  319. local label = IT("TextLabel")
  320. label.BackgroundTransparency = 1
  321. label.Size = UD2(1, 0, 1, 0)
  322. label.Position = UD2(0, 0, 0, 0)
  323. label.TextColor3 = TEXTCOLOR
  324. label.TextStrokeTransparency = STROKETRANSPARENCY
  325. label.TextTransparency = TRANSPARENCY
  326. label.FontSize = TEXTFONTSIZE
  327. label.Font = TEXTFONT
  328. label.BorderSizePixel = BORDERSIZEPIXEL
  329. label.TextScaled = false
  330. label.Text = TEXT
  331. label.Name = NAME
  332. label.Parent = PARENT
  333. return label
  334. end
  335.  
  336. function NoOutlines(PART)
  337. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  338. end
  339.  
  340. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  341. local NEWWELD = IT(TYPE)
  342. NEWWELD.Part0 = PART0
  343. NEWWELD.Part1 = PART1
  344. NEWWELD.C0 = C0
  345. NEWWELD.C1 = C1
  346. NEWWELD.Parent = PARENT
  347. return NEWWELD
  348. end
  349.  
  350. local S = IT("Sound")
  351. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  352. local NEWSOUND = nil
  353. coroutine.resume(coroutine.create(function()
  354. NEWSOUND = S:Clone()
  355. NEWSOUND.Parent = PARENT
  356. NEWSOUND.Volume = VOLUME
  357. NEWSOUND.Pitch = PITCH
  358. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  359. NEWSOUND:play()
  360. if DOESLOOP == true then
  361. NEWSOUND.Looped = true
  362. else
  363. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  364. NEWSOUND:remove()
  365. end
  366. end))
  367. return NEWSOUND
  368. end
  369.  
  370. function CFrameFromTopBack(at, top, back)
  371. local right = top:Cross(back)
  372. 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)
  373. end
  374.  
  375. --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})
  376. function WACKYEFFECT(Table)
  377. local TYPE = (Table.EffectType or "Sphere")
  378. local SIZE = (Table.Size or VT(1,1,1))
  379. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  380. local TRANSPARENCY = (Table.Transparency or 0)
  381. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  382. local CFRAME = (Table.CFrame or Torso.CFrame)
  383. local MOVEDIRECTION = (Table.MoveToPos or nil)
  384. local ROTATION1 = (Table.RotationX or 0)
  385. local ROTATION2 = (Table.RotationY or 0)
  386. local ROTATION3 = (Table.RotationZ or 0)
  387. local MATERIAL = (Table.Material or "Neon")
  388. local COLOR = (Table.Color or C3(1,1,1))
  389. local TIME = (Table.Time or 45)
  390. local SOUNDID = (Table.SoundID or nil)
  391. local SOUNDPITCH = (Table.SoundPitch or nil)
  392. local SOUNDVOLUME = (Table.SoundVolume or nil)
  393. coroutine.resume(coroutine.create(function()
  394. local PLAYSSOUND = false
  395. local SOUND = nil
  396. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  397. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  398. PLAYSSOUND = true
  399. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  400. end
  401. EFFECT.Color = COLOR
  402. local MSH = nil
  403. if TYPE == "Sphere" then
  404. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  405. elseif TYPE == "Block" then
  406. MSH = IT("BlockMesh",EFFECT)
  407. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  408. elseif TYPE == "Wave" then
  409. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  410. elseif TYPE == "Ring" then
  411. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  412. elseif TYPE == "Slash" then
  413. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  414. elseif TYPE == "Round Slash" then
  415. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  416. elseif TYPE == "Swirl" then
  417. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  418. elseif TYPE == "Skull" then
  419. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  420. elseif TYPE == "Crystal" then
  421. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  422. end
  423. if MSH ~= nil then
  424. local MOVESPEED = nil
  425. if MOVEDIRECTION ~= nil then
  426. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  427. end
  428. local GROWTH = SIZE - ENDSIZE
  429. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  430. if TYPE == "Block" then
  431. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  432. else
  433. EFFECT.CFrame = CFRAME
  434. end
  435. for LOOP = 1, TIME+1 do
  436. Swait()
  437. MSH.Scale = MSH.Scale - GROWTH/TIME
  438. if TYPE == "Wave" then
  439. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  440. end
  441. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  442. if TYPE == "Block" then
  443. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  444. else
  445. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  446. end
  447. if MOVEDIRECTION ~= nil then
  448. local ORI = EFFECT.Orientation
  449. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  450. EFFECT.Orientation = ORI
  451. end
  452. end
  453. if PLAYSSOUND == false then
  454. EFFECT:remove()
  455. else
  456. SOUND.Stopped:Connect(function()
  457. EFFECT:remove()
  458. end)
  459. end
  460. else
  461. if PLAYSSOUND == false then
  462. EFFECT:remove()
  463. else
  464. repeat Swait() until SOUND.Playing == false
  465. EFFECT:remove()
  466. end
  467. end
  468. end))
  469. end
  470.  
  471. function MakeForm(PART,TYPE)
  472. if TYPE == "Cyl" then
  473. local MSH = IT("CylinderMesh",PART)
  474. elseif TYPE == "Ball" then
  475. local MSH = IT("SpecialMesh",PART)
  476. MSH.MeshType = "Sphere"
  477. elseif TYPE == "Wedge" then
  478. local MSH = IT("SpecialMesh",PART)
  479. MSH.MeshType = "Wedge"
  480. end
  481. end
  482.  
  483. function SpawnTrail(FROM,TO,BIG)
  484. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  485. MakeForm(TRAIL,"Cyl")
  486. local DIST = (FROM - TO).Magnitude
  487. if BIG == true then
  488. TRAIL.Size = VT(0.5,DIST,0.5)
  489. else
  490. TRAIL.Size = VT(0.25,DIST,0.25)
  491. end
  492. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  493. coroutine.resume(coroutine.create(function()
  494. for i = 1, 5 do
  495. Swait()
  496. TRAIL.Transparency = TRAIL.Transparency + 0.1
  497. end
  498. TRAIL:remove()
  499. end))
  500. end
  501.  
  502. Debris = game:GetService("Debris")
  503.  
  504. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  505. local DIRECTION = CF(StartPos,EndPos).lookVector
  506. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  507. end
  508.  
  509. function turnto(position)
  510. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  511. end
  512. local asd = Instance.new("ParticleEmitter")
  513. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  514. asd.LightEmission = .1
  515. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  516. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  517. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  518. asd.Transparency = bbb
  519. asd.Size = aaa
  520. asd.ZOffset = .9
  521. asd.Acceleration = Vector3.new(0, -15, 0)
  522. asd.LockedToPart = false
  523. asd.EmissionDirection = "Back"
  524. asd.Lifetime = NumberRange.new(1, 2)
  525. asd.Rotation = NumberRange.new(-100, 100)
  526. asd.RotSpeed = NumberRange.new(-100, 100)
  527. asd.Speed = NumberRange.new(10)
  528. asd.Enabled = false
  529. asd.VelocitySpread = 999
  530.  
  531. function getbloody(victim,amount)
  532. local PART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Blood", victim.Size)
  533. PART.CFrame = victim.CFrame
  534. local HITPLAYERSOUNDS = {"356551938","264486467"}
  535. Debris:AddItem(PART,5)
  536. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  537. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  538. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  539. local prtcl = asd:Clone()
  540. prtcl.Parent = PART
  541. prtcl:Emit(amount*10)
  542. end
  543.  
  544. local Particle = IT("ParticleEmitter",nil)
  545. Particle.Enabled = false
  546. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  547. Particle.LightEmission = 0.5
  548. Particle.Rate = 150
  549. Particle.ZOffset = 1
  550. Particle.Rotation = NumberRange.new(-180, 180)
  551. Particle.RotSpeed = NumberRange.new(-180, 180)
  552. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  553. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  554.  
  555. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  556. function ParticleEmitter(Table)
  557. local PRTCL = Particle:Clone()
  558. local Speed = Table.Speed or 5
  559. local Drag = Table.Drag or 0
  560. local Size1 = Table.Size1 or 1
  561. local Size2 = Table.Size2 or 5
  562. local Lifetime1 = Table.Lifetime1 or 1
  563. local Lifetime2 = Table.Lifetime2 or 1.5
  564. local Parent = Table.Parent or Torso
  565. local Emit = Table.Emit or 100
  566. local Offset = Table.Offset or 360
  567. local Acel = Table.Acel or VT(0,0,0)
  568. local Enabled = Table.Enabled or false
  569. PRTCL.Parent = Parent
  570. PRTCL.Size = NumberSequence.new(Size1,Size2)
  571. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  572. PRTCL.Speed = NumberRange.new(Speed)
  573. PRTCL.VelocitySpread = Offset
  574. PRTCL.Drag = Drag
  575. PRTCL.Acceleration = Acel
  576. if Enabled == false then
  577. PRTCL:Emit(Emit)
  578. Debris:AddItem(PRTCL,Lifetime2)
  579. else
  580. PRTCL.Enabled = true
  581. end
  582. return PRTCL
  583. end
  584.  
  585. function unanchor()
  586. if UNANCHOR == true then
  587. g = Character:GetChildren()
  588. for i = 1, #g do
  589. if g[i].ClassName == "Part" then
  590. g[i].Anchored = false
  591. end
  592. end
  593. end
  594. end
  595.  
  596. function newTheme(ID,timepos,pitch,vol)
  597. local kanz = kan
  598. --kanz:Stop()
  599. kanz.Volume = vol
  600. --kanz.TimePosition = timepos
  601. kanz.PlaybackSpeed = pitch
  602. kanz.Pitch = pitch
  603. kanz.SoundId = ID
  604. kanz.Name = "wrecked"
  605. kanz.Looped = true
  606. currentThemePlaying = kanz.SoundId
  607. currentVol = kanz.Volume
  608. currentPitch = kanz.Pitch
  609. --kanz:Play()
  610. --coroutine.resume(coroutine.create(function()
  611. --wait(0.05)
  612. --end))
  613. end
  614. newTheme("rbxassetid://1191722766",0,1,1)
  615.  
  616. --//=================================\\
  617. --|| Clothing,Meshes,etc
  618. --\\=================================//
  619. for i,v in pairs(Character:children()) do
  620. if v:IsA("Clothing") then
  621. v:Destroy()
  622. end
  623. end
  624.  
  625. local top = Instance.new("Shirt")
  626. top.ShirtTemplate = "rbxassetid://2370477670"
  627. top.Parent = Character
  628. top.Name = "Shirt"
  629.  
  630. local bottom = Instance.new("Pants")
  631. bottom.PantsTemplate = "rbxassetid://1134873684"
  632. bottom.Parent = Character
  633. bottom.Name = "Pants"
  634.  
  635. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  636. PRT.Color = C3(0.7,0,1)
  637. local TopHat = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.87,0), CF(0, 0, 0))
  638. CreateMesh("SpecialMesh", PRT, "FileMesh", "1033213385", "", VT(1,1,1)*1.05, VT(0,0,0))
  639. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  640. PRT.Color = C3(0.7,0,1)
  641.  
  642. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  643. PRT.Color = C3(86,66,54)
  644. local Hair = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,0), ANGLES(0,3.5,0))
  645. CreateMesh("SpecialMesh", PRT, "FileMesh", "1702831244", "1702831287", VT(1,1,1)*1.05, VT(0,0,0))
  646. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  647. PRT.Color = C3(0.86,0.66,0.54)
  648.  
  649. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1, 4.1, 0.532),false)
  650. PRT.Color = C3(86,66,54)
  651. local Umbrella = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(-1.3,-0.8,0), ANGLES(0,0,-1.5))
  652. CreateMesh("SpecialMesh", PRT, "FileMesh", "1304506613", "1304506638", VT(1,1,1)*1.05, VT(0,0,0))
  653. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1,1,1),false)
  654. PRT.Color = C3(0.86,0.66,0.54)
  655.  
  656. for i = 1, 10 do
  657. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FAAEC", VT(1.01,0.5,1.01),false)
  658. FACE.Color = C3(0,0,0)
  659. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  660. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  661. end
  662. Head.face.Texture = "http://www.roblox.com/asset/?id=632698682"
  663. --//=================================\\
  664. --|| Attacks
  665. --\\=================================//
  666. function switch()
  667. ATTACK = true
  668. Rooted = true
  669. CreateSound("363808674",workspace,8,1,false)
  670. for i=0, 1.5, 0.1 / Animation_Speed do
  671. Swait()
  672. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(18), RAD(0)), 1 / Animation_Speed)
  673. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  674. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  675. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  676. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  677. end
  678. CreateSound("363808674",workspace,8,1,false)
  679. for i=0, 1.5, 0.1 / Animation_Speed do
  680. Swait()
  681. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-18), RAD(0)), 1 / Animation_Speed)
  682. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  683. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(24)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  684. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  685. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  686. end
  687. if Mode == 1 and Mode ~= 2 then
  688. Mode = 2
  689. Speed = 38
  690. Humanoid.WalkSpeed = Speed
  691. newTheme("rbxassetid://228255592",0,1,1)
  692. elseif Mode == 2 and Mode ~= 1 then
  693. Mode = 1
  694. Speed = 24
  695. Humanoid.WalkSpeed = Speed
  696. newTheme("rbxassetid://1191722766",0,1,1)
  697. end
  698. ATTACK = false
  699. Rooted = false
  700. end
  701.  
  702. function Spinning_Attack()
  703. ATTACK = true
  704. CreatePart("Block",LeftArm,"Plastic",0,1,BrickColor.new(0,0,0),"HitBox",Vector3.new(1,2,1),false)
  705. local HitBox = LeftArm.HitBox
  706. weldBetween(HitBox, LeftArm)
  707. Humanoid.WalkSpeed = 3.01
  708. for i = 0, 1.2, 0.1 do
  709. Swait()
  710. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(-65)), 0.3)
  711. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  712. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  713. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-35), math.rad(0), math.rad(-10)), 0.3)
  714. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  715. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  716. end
  717. for i = 0, 4.6, 0.1 do
  718. Swait()
  719. CreateSound("2304904662",workspace,3,1,false)
  720. HitBox.Touched:connect(function(hit)
  721. if hit.Parent and hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass('Humanoid') then
  722. hit.Parent:FindFirstChildOfClass('Humanoid').Health = 1 - 9999e+999
  723. end
  724. end)
  725. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(65 + 255.45 * i)), 0.3)
  726. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  727. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(0), math.rad(47)), 0.1)
  728. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(-90), math.rad(-47)), 0.3)
  729. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  730. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-4.5), math.rad(0), math.rad(30)), 0.3)
  731. end
  732. ATTACK = false
  733. Humanoid.WalkSpeed = 8
  734. HitBox:Destroy()
  735. end
  736.  
  737. --//=================================\\
  738. --|| Key Functions
  739. --\\=================================//
  740. Mouse.KeyDown:connect(function(k)
  741. if(ATTACK)then return end
  742. if(k == 't')then
  743. switch()
  744. elseif(k == 'v')then
  745. Spinning_Attack()
  746. end
  747. end)
  748. --//=================================\\
  749. --|| Animations
  750. --\\=================================//
  751.  
  752. local CONNECT = nil
  753.  
  754. while true do
  755. Swait()
  756. ANIMATE.Parent = nil
  757. if Character:FindFirstChildOfClass("Humanoid") == nil then
  758. Humanoid = IT("Humanoid",Character)
  759. end
  760. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  761. v:Stop();
  762. end
  763. SINE = SINE + CHANGE
  764. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  765. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  766. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  767. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 12)
  768. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  769. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  770. 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)
  771. 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)
  772. 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)
  773. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  774. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  775. 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)
  776. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  777. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  778. end
  779. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  780. ANIM = "Jump"
  781. if ATTACK == false then
  782. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  783. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  784. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  785. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  786. 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)
  787. 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)
  788. end
  789. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  790. ANIM = "Fall"
  791. if ATTACK == false then
  792. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  793. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  794. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  795. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  796. 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)
  797. 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)
  798. end
  799. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  800. ANIM = "Idle"
  801. if ATTACK == false and Mode == 1 then
  802. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(220), RAD(45), RAD(-75))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  808. end
  809. if Mode == 2 then
  810. ANIM = "Idle"
  811. RightHip.C0=Clerp(RightHip.C0,CF(1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(25 - 2 * math.cos(SINE / 32))),.1)
  812. LeftHip.C0=Clerp(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-25 + 2 * math.cos(SINE / 32))),.1)
  813. RootJoint.C0=Clerp(RootJoint.C0,ROOTC0*CF(0,-0.25 + 0.02 * math.cos(SINE / 32),-0.1 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(25 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(0)),.1)
  814. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  815. RightShoulder.C0=Clerp(RightShoulder.C0,CF(1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 + 5 * math.cos(SINE / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(SINE / 53)),math.rad(1 + 3 * math.cos(SINE / 45))),.1)
  816. LeftShoulder.C0=Clerp(LeftShoulder.C0,CF(-1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 - 3 * math.cos(SINE / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(SINE / 55)),math.rad(-3 - 3 * math.cos(SINE / 45))),.1)
  817. end
  818. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  819. ANIM = "Walk"
  820. if ATTACK == false then
  821. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  822. 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)
  823. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  824. 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)
  825. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  826. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  827. end
  828. end
  829. unanchor()
  830. Humanoid.MaxHealth = "inf"
  831. Humanoid.Health = "inf"
  832. if Rooted == false then
  833. Disable_Jump = false
  834. Humanoid.WalkSpeed = Speed
  835. elseif Rooted == true then
  836. Disable_Jump = true
  837. Humanoid.WalkSpeed = 0
  838. end
  839. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement