Advertisement
PasterXIV

Untitled

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