Advertisement
Dark_EccentricYT

Untitled

Aug 17th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.68 KB | None | 0 0
  1. ----------------------------------
  2.  
  3. --Made by goodguyaiden------------
  4. --Infinity war gauntlet-----------
  5. --prob my biggest project---------
  6. --sorry i couldnt do reality------
  7.  
  8. ----------------------------------
  9.  
  10. wait(0.2)
  11. plr = game.Players.LocalPlayer
  12. repeat wait() until plr.Character
  13. char = plr.Character
  14. local mouse = plr:GetMouse()
  15. local Player = game:service'Players'.localPlayer
  16. local chara = Player.Character
  17. Player=game:GetService("Players").LocalPlayer
  18. Character=Player.Character
  19. PlayerGui=Player.PlayerGui
  20. Backpack=Player.Backpack
  21. Torso=Character.Torso
  22. Head=Character.Head
  23. Humanoid=Character.Humanoid
  24. m=Instance.new('Model',Character)
  25. LeftArm=Character["Left Arm"]
  26. LeftLeg=Character["Left Leg"]
  27. RightArm=Character["Right Arm"]
  28. RightLeg=Character["Right Leg"]
  29. LS=Torso["Left Shoulder"]
  30. LH=Torso["Left Hip"]
  31. RS=Torso["Right Shoulder"]
  32. RH=Torso["Right Hip"]
  33. Face = Head.face
  34. Neck=Torso.Neck
  35. it=Instance.new
  36. attacktype=1
  37. vt=Vector3.new
  38. cf=CFrame.new
  39. cl3=Color3.new
  40. rgb=Color3.fromRGB
  41. bcn=BrickColor.new
  42. euler=CFrame.fromEulerAnglesXYZ
  43. angles=CFrame.Angles
  44. Humanoid.WalkSpeed = 16
  45. Player = game:GetService("Players").LocalPlayer
  46. PlayerGui = Player.PlayerGui
  47. Cam = workspace.CurrentCamera
  48. Backpack = Player.Backpack
  49. Character = Player.Character
  50. Humanoid = Character.Humanoid
  51. Mouse = Player:GetMouse()
  52. RootPart = Character["HumanoidRootPart"]
  53. Torso = Character["Torso"]
  54. Head = Character["Head"]
  55. RightArm = Character["Right Arm"]
  56. LeftArm = Character["Left Arm"]
  57. RightLeg = Character["Right Leg"]
  58. LeftLeg = Character["Left Leg"]
  59. RootJoint = RootPart["RootJoint"]
  60. Neck = Torso["Neck"]
  61. RightShoulder = Torso["Right Shoulder"]
  62. LeftShoulder = Torso["Left Shoulder"]
  63. RightHip = Torso["Right Hip"]
  64. LeftHip = Torso["Left Hip"]
  65. pumpk = Instance.new("Sound")
  66. pumpk.Parent = game.Players.LocalPlayer.Character.Head
  67. pumpk.SoundId = "rbxassetid://1771675015"
  68. pumpk.Volume = 2
  69. pumpk.Looped = true
  70. pumpk:Play()
  71. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 99999999999999999
  72. game.Players.LocalPlayer.Character.Humanoid.Health = 99999999999999
  73.  
  74. IT = Instance.new
  75. CF = CFrame.new
  76. VT = Vector3.new
  77. RAD = math.rad
  78. C3 = Color3.new
  79. UD2 = UDim2.new
  80. BRICKC = BrickColor.new
  81. ANGLES = CFrame.Angles
  82. EULER = CFrame.fromEulerAnglesXYZ
  83. COS = math.cos
  84. ACOS = math.acos
  85. SIN = math.sin
  86. ASIN = math.asin
  87. ABS = math.abs
  88. MRANDOM = math.random
  89. FLOOR = math.floor
  90. Animation_Speed = 3
  91. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  92. local Speed = 12
  93. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  94. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  95. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  96. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  97. local DAMAGEMULTIPLIER = 1
  98. local ANIM = "Idle"
  99. local ATTACK = false
  100. local EQUIPPED = false
  101. local HOLD = false
  102. local COMBO = 1
  103. local Rooted = false
  104. local SINE = 0
  105. local KEYHOLD = false
  106. local CHANGE = 2 / Animation_Speed
  107. local WALKINGANIM = false
  108. local VALUE1 = false
  109. local VALUE2 = false
  110. local ROBLOXIDLEANIMATION = IT("Animation")
  111. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  112. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  113. --ROBLOXIDLEANIMATION.Parent = Humanoid
  114. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  115. WEAPONGUI.Name = "Weapon GUI"
  116. local Weapon = IT("Model")
  117. Weapon.Name = "Adds"
  118. local Effects = IT("Folder", Weapon)
  119. Effects.Name = "Effects"
  120. local ANIMATOR = Humanoid.Animator
  121. local ANIMATE = Character.Animate
  122. local UNANCHOR = true
  123. local PLAYANIMS = true
  124. ArtificialHB = Instance.new("BindableEvent", script)
  125. ArtificialHB.Name = "ArtificialHB"
  126.  
  127.  
  128. Player_Size = 1 --Size of the player.
  129. Animation_Speed = 3
  130. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  131.  
  132. local Speed = 16
  133. local Effects2 = {}
  134.  
  135.  
  136.  
  137. script:WaitForChild("ArtificialHB")
  138.  
  139. frame = Frame_Speed
  140. tf = 0
  141. allowframeloss = false
  142. tossremainder = false
  143. lastframe = tick()
  144. script.ArtificialHB:Fire()
  145.  
  146. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  147. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  148. end
  149.  
  150. function PositiveAngle(NUMBER)
  151. if NUMBER >= 0 then
  152. NUMBER = 0
  153. end
  154. return NUMBER
  155. end
  156.  
  157. function NegativeAngle(NUMBER)
  158. if NUMBER <= 0 then
  159. NUMBER = 0
  160. end
  161. return NUMBER
  162. end
  163.  
  164. function Swait(NUMBER)
  165. if NUMBER == 0 or NUMBER == nil then
  166. ArtificialHB.Event:wait()
  167. else
  168. for i = 1, NUMBER do
  169. ArtificialHB.Event:wait()
  170. end
  171. end
  172. end
  173.  
  174. function QuaternionFromCFrame(cf)
  175. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  176. local trace = m00 + m11 + m22
  177. if trace > 0 then
  178. local s = math.sqrt(1 + trace)
  179. local recip = 0.5 / s
  180. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  181. else
  182. local i = 0
  183. if m11 > m00 then
  184. i = 1
  185. end
  186. if m22 > (i == 0 and m00 or m11) then
  187. i = 2
  188. end
  189. if i == 0 then
  190. local s = math.sqrt(m00 - m11 - m22 + 1)
  191. local recip = 0.5 / s
  192. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  193. elseif i == 1 then
  194. local s = math.sqrt(m11 - m22 - m00 + 1)
  195. local recip = 0.5 / s
  196. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  197. elseif i == 2 then
  198. local s = math.sqrt(m22 - m00 - m11 + 1)
  199. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  200. end
  201. end
  202. end
  203.  
  204. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  205. local xs, ys, zs = x + x, y + y, z + z
  206. local wx, wy, wz = w * xs, w * ys, w * zs
  207. local xx = x * xs
  208. local xy = x * ys
  209. local xz = x * zs
  210. local yy = y * ys
  211. local yz = y * zs
  212. local zz = z * zs
  213. 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))
  214. end
  215.  
  216. function QuaternionSlerp(a, b, t)
  217. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  218. local startInterp, finishInterp;
  219. if cosTheta >= 0.0001 then
  220. if (1 - cosTheta) > 0.0001 then
  221. local theta = ACOS(cosTheta)
  222. local invSinTheta = 1 / SIN(theta)
  223. startInterp = SIN((1 - t) * theta) * invSinTheta
  224. finishInterp = SIN(t * theta) * invSinTheta
  225. else
  226. startInterp = 1 - t
  227. finishInterp = t
  228. end
  229. else
  230. if (1 + cosTheta) > 0.0001 then
  231. local theta = ACOS(-cosTheta)
  232. local invSinTheta = 1 / SIN(theta)
  233. startInterp = SIN((t - 1) * theta) * invSinTheta
  234. finishInterp = SIN(t * theta) * invSinTheta
  235. else
  236. startInterp = t - 1
  237. finishInterp = t
  238. end
  239. end
  240. 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
  241. end
  242.  
  243. function Clerp(a, b, t)
  244. local qa = {QuaternionFromCFrame(a)}
  245. local qb = {QuaternionFromCFrame(b)}
  246. local ax, ay, az = a.x, a.y, a.z
  247. local bx, by, bz = b.x, b.y, b.z
  248. local _t = 1 - t
  249. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  250. end
  251.  
  252. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  253. local frame = IT("Frame")
  254. frame.BackgroundTransparency = TRANSPARENCY
  255. frame.BorderSizePixel = BORDERSIZEPIXEL
  256. frame.Position = POSITION
  257. frame.Size = SIZE
  258. frame.BackgroundColor3 = COLOR
  259. frame.BorderColor3 = BORDERCOLOR
  260. frame.Name = NAME
  261. frame.Parent = PARENT
  262. return frame
  263. end
  264.  
  265. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  266. local label = IT("TextLabel")
  267. label.BackgroundTransparency = 1
  268. label.Size = UD2(1, 0, 1, 0)
  269. label.Position = UD2(0, 0, 0, 0)
  270. label.TextColor3 = TEXTCOLOR
  271. label.TextStrokeTransparency = STROKETRANSPARENCY
  272. label.TextTransparency = TRANSPARENCY
  273. label.FontSize = TEXTFONTSIZE
  274. label.Font = TEXTFONT
  275. label.BorderSizePixel = BORDERSIZEPIXEL
  276. label.TextScaled = false
  277. label.Text = TEXT
  278. label.Name = NAME
  279. label.Parent = PARENT
  280. return label
  281. end
  282.  
  283. function NoOutlines(PART)
  284. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  285. end
  286.  
  287.  
  288. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  289. local NEWWELD = IT(TYPE)
  290. NEWWELD.Part0 = PART0
  291. NEWWELD.Part1 = PART1
  292. NEWWELD.C0 = C0
  293. NEWWELD.C1 = C1
  294. NEWWELD.Parent = PARENT
  295. return NEWWELD
  296. end
  297.  
  298. local S = IT("Sound")
  299.  
  300. function CreateSound(ID, PARENT, VOLUME, PITCH)
  301. local NEWSOUND = nil
  302. coroutine.resume(coroutine.create(function()
  303. NEWSOUND = S:Clone()
  304. NEWSOUND.Parent = PARENT
  305. NEWSOUND.Volume = VOLUME
  306. NEWSOUND.Pitch = PITCH
  307. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  308. Swait()
  309. NEWSOUND:play()
  310. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  311. end))
  312. return NEWSOUND
  313. end
  314.  
  315. function CFrameFromTopBack(at, top, back)
  316. local right = top:Cross(back)
  317. 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)
  318. end
  319.  
  320. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  321. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  322. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  323. wave.CFrame = CFRAME
  324. coroutine.resume(coroutine.create(function(PART)
  325. for i = 1, WAIT do
  326. Swait()
  327. mesh.Scale = mesh.Scale + GROW
  328. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  329. if DOESROT == true then
  330. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  331. end
  332. wave.Transparency = wave.Transparency + (0.5/WAIT)
  333. if wave.Transparency > 0.99 then
  334. wave:remove()
  335. end
  336. end
  337. end))
  338. end
  339.  
  340. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  341. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  342. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  343. wave.CFrame = CFRAME
  344. coroutine.resume(coroutine.create(function(PART)
  345. for i = 1, WAIT do
  346. Swait()
  347. mesh.Scale = mesh.Scale + GROW
  348. if DOESROT == true then
  349. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  350. end
  351. wave.Transparency = wave.Transparency + (0.5/WAIT)
  352. if wave.Transparency > 0.99 then
  353. wave:remove()
  354. end
  355. end
  356. end))
  357. end
  358.  
  359. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  360. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  361. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  362. wave.CFrame = CFRAME
  363. coroutine.resume(coroutine.create(function(PART)
  364. for i = 1, WAIT do
  365. Swait()
  366. mesh.Scale = mesh.Scale + GROW
  367. wave.Transparency = wave.Transparency + (1/WAIT)
  368. if wave.Transparency > 0.99 then
  369. wave:remove()
  370. end
  371. end
  372. end))
  373. end
  374.  
  375. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  376. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  377. local mesh = nil
  378. if KIND == "Base" then
  379. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  380. elseif KIND == "Thin" then
  381. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  382. elseif KIND == "Round" then
  383. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  384. end
  385. wave.CFrame = CFRAME
  386. coroutine.resume(coroutine.create(function(PART)
  387. for i = 1, WAIT do
  388. Swait()
  389. mesh.Scale = mesh.Scale + GROW/10
  390. wave.Transparency = wave.Transparency + (0.5/WAIT)
  391. if wave.Transparency > 0.99 then
  392. wave:remove()
  393. end
  394. end
  395. end))
  396. end
  397.  
  398. function MakeForm(PART,TYPE)
  399. if TYPE == "Cyl" then
  400. local MSH = IT("CylinderMesh",PART)
  401. elseif TYPE == "Ball" then
  402. local MSH = IT("SpecialMesh",PART)
  403. MSH.MeshType = "Sphere"
  404. elseif TYPE == "Wedge" then
  405. local MSH = IT("SpecialMesh",PART)
  406. MSH.MeshType = "Wedge"
  407. end
  408. end
  409.  
  410.  
  411. function CheckTableForString(Table, String)
  412. for i, v in pairs(Table) do
  413. if string.find(string.lower(String), string.lower(v)) then
  414. return true
  415. end
  416. end
  417. return false
  418. end
  419.  
  420. function CheckIntangible(Hit)
  421. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  422. if Hit and Hit.Parent then
  423. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  424. return true
  425. end
  426. end
  427. return false
  428. end
  429.  
  430. Debris = game:GetService("Debris")
  431.  
  432. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  433. local Direction = CFrame.new(StartPos, Vec).lookVector
  434. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  435. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  436. if RayHit and CheckIntangible(RayHit) then
  437. if DelayIfHit then
  438. wait()
  439. end
  440. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  441. end
  442. return RayHit, RayPos, RayNormal
  443. end
  444.  
  445. function turnto(position)
  446. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  447. end
  448.  
  449.  
  450.  
  451. game:GetService("RunService").Heartbeat:connect(function(s, p)
  452. tf = tf + s
  453. if tf >= frame then
  454. if allowframeloss then
  455. script.ArtificialHB:Fire()
  456. lastframe = tick()
  457. else
  458. for i = 1, math.floor(tf / frame) do
  459. script.ArtificialHB:Fire()
  460. end
  461. lastframe = tick()
  462. end
  463. if tossremainder then
  464. tf = 0
  465. else
  466. tf = tf - frame * math.floor(tf / frame)
  467. end
  468. end
  469. end)
  470. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  471. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  472. end
  473.  
  474. function PositiveAngle(NUMBER)
  475. if NUMBER >= 0 then
  476. NUMBER = 0
  477. end
  478. return NUMBER
  479. end
  480.  
  481. function NegativeAngle(NUMBER)
  482. if NUMBER <= 0 then
  483. NUMBER = 0
  484. end
  485. return NUMBER
  486. end
  487.  
  488. function Swait(NUMBER)
  489. if NUMBER == 0 or NUMBER == nil then
  490. ArtificialHB.Event:wait()
  491. else
  492. for i = 1, NUMBER do
  493. ArtificialHB.Event:wait()
  494. end
  495. end
  496. end
  497.  
  498. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  499. local NEWMESH = IT(MESH)
  500. if MESH == "SpecialMesh" then
  501. NEWMESH.MeshType = MESHTYPE
  502. if MESHID ~= "nil" and MESHID ~= "" then
  503. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  504. end
  505. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  506. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  507. end
  508. end
  509. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  510. NEWMESH.Scale = SCALE
  511. NEWMESH.Parent = PARENT
  512. return NEWMESH
  513. end
  514.  
  515. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  516. local NEWPART = IT("Part")
  517. NEWPART.formFactor = FORMFACTOR
  518. NEWPART.Reflectance = REFLECTANCE
  519. NEWPART.Transparency = TRANSPARENCY
  520. NEWPART.CanCollide = false
  521. NEWPART.Locked = true
  522. NEWPART.Anchored = true
  523. if ANCHOR == false then
  524. NEWPART.Anchored = false
  525. end
  526. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  527. NEWPART.Name = NAME
  528. NEWPART.Size = SIZE
  529. NEWPART.Position = Torso.Position
  530. NEWPART.Material = MATERIAL
  531. NEWPART:BreakJoints()
  532. NEWPART.Parent = PARENT
  533. return NEWPART
  534. end
  535.  
  536. local function weldBetween(a, b)
  537. local weldd = Instance.new("ManualWeld")
  538. weldd.Part0 = a
  539. weldd.Part1 = b
  540. weldd.C0 = CFrame.new()
  541. weldd.C1 = b.CFrame:inverse() * a.CFrame
  542. weldd.Parent = a
  543. return weldd
  544. end
  545.  
  546.  
  547. function QuaternionFromCFrame(cf)
  548. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  549. local trace = m00 + m11 + m22
  550. if trace > 0 then
  551. local s = math.sqrt(1 + trace)
  552. local recip = 0.5 / s
  553. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  554. else
  555. local i = 0
  556. if m11 > m00 then
  557. i = 1
  558. end
  559. if m22 > (i == 0 and m00 or m11) then
  560. i = 2
  561. end
  562. if i == 0 then
  563. local s = math.sqrt(m00 - m11 - m22 + 1)
  564. local recip = 0.5 / s
  565. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  566. elseif i == 1 then
  567. local s = math.sqrt(m11 - m22 - m00 + 1)
  568. local recip = 0.5 / s
  569. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  570. elseif i == 2 then
  571. local s = math.sqrt(m22 - m00 - m11 + 1)
  572. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  573. end
  574. end
  575. end
  576.  
  577. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  578. local xs, ys, zs = x + x, y + y, z + z
  579. local wx, wy, wz = w * xs, w * ys, w * zs
  580. local xx = x * xs
  581. local xy = x * ys
  582. local xz = x * zs
  583. local yy = y * ys
  584. local yz = y * zs
  585. local zz = z * zs
  586. 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))
  587. end
  588.  
  589. function QuaternionSlerp(a, b, t)
  590. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  591. local startInterp, finishInterp;
  592. if cosTheta >= 0.0001 then
  593. if (1 - cosTheta) > 0.0001 then
  594. local theta = ACOS(cosTheta)
  595. local invSinTheta = 1 / SIN(theta)
  596. startInterp = SIN((1 - t) * theta) * invSinTheta
  597. finishInterp = SIN(t * theta) * invSinTheta
  598. else
  599. startInterp = 1 - t
  600. finishInterp = t
  601. end
  602. else
  603. if (1 + cosTheta) > 0.0001 then
  604. local theta = ACOS(-cosTheta)
  605. local invSinTheta = 1 / SIN(theta)
  606. startInterp = SIN((t - 1) * theta) * invSinTheta
  607. finishInterp = SIN(t * theta) * invSinTheta
  608. else
  609. startInterp = t - 1
  610. finishInterp = t
  611. end
  612. end
  613. 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
  614. end
  615.  
  616. function Clerp(a, b, t)
  617. local qa = {QuaternionFromCFrame(a)}
  618. local qb = {QuaternionFromCFrame(b)}
  619. local ax, ay, az = a.x, a.y, a.z
  620. local bx, by, bz = b.x, b.y, b.z
  621. local _t = 1 - t
  622. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  623. end
  624.  
  625. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  626. local frame = IT("Frame")
  627. frame.BackgroundTransparency = TRANSPARENCY
  628. frame.BorderSizePixel = BORDERSIZEPIXEL
  629. frame.Position = POSITION
  630. frame.Size = SIZE
  631. frame.BackgroundColor3 = COLOR
  632. frame.BorderColor3 = BORDERCOLOR
  633. frame.Name = NAME
  634. frame.Parent = PARENT
  635. return frame
  636. end
  637.  
  638. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  639. local label = IT("TextLabel")
  640. label.BackgroundTransparency = 1
  641. label.Size = UD2(1, 0, 1, 0)
  642. label.Position = UD2(0, 0, 0, 0)
  643. label.TextColor3 = TEXTCOLOR
  644. label.TextStrokeTransparency = STROKETRANSPARENCY
  645. label.TextTransparency = TRANSPARENCY
  646. label.FontSize = TEXTFONTSIZE
  647. label.Font = TEXTFONT
  648. label.BorderSizePixel = BORDERSIZEPIXEL
  649. label.TextScaled = false
  650. label.Text = TEXT
  651. label.Name = NAME
  652. label.Parent = PARENT
  653. return label
  654. end
  655.  
  656. function NoOutlines(PART)
  657. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  658. end
  659.  
  660. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  661. local NEWWELD = IT(TYPE)
  662. NEWWELD.Part0 = PART0
  663. NEWWELD.Part1 = PART1
  664. NEWWELD.C0 = C0
  665. NEWWELD.C1 = C1
  666. NEWWELD.Parent = PARENT
  667. return NEWWELD
  668. end
  669.  
  670. local S = IT("Sound")
  671. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  672. local NEWSOUND = nil
  673. coroutine.resume(coroutine.create(function()
  674. NEWSOUND = S:Clone()
  675. NEWSOUND.Parent = PARENT
  676. NEWSOUND.Volume = VOLUME
  677. NEWSOUND.Pitch = PITCH
  678. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  679. NEWSOUND:play()
  680. if DOESLOOP == true then
  681. NEWSOUND.Looped = true
  682. else
  683. repeat wait(1) until NEWSOUND.Playing == false
  684. NEWSOUND:remove()
  685. end
  686. end))
  687. return NEWSOUND
  688. end
  689.  
  690. function MakeForm(PART,TYPE)
  691. if TYPE == "Cyl" then
  692. local MSH = IT("CylinderMesh",PART)
  693. elseif TYPE == "Ball" then
  694. local MSH = IT("SpecialMesh",PART)
  695. MSH.MeshType = "Sphere"
  696. elseif TYPE == "Wedge" then
  697. local MSH = IT("SpecialMesh",PART)
  698. MSH.MeshType = "Wedge"
  699. end
  700. end
  701.  
  702. function CFrameFromTopBack(at, top, back)
  703. local right = top:Cross(back)
  704. 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)
  705. end
  706.  
  707. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  708. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  709. if HITFLOOR ~= nil then
  710. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  711. if HITFLOOR.Name == "BloodPuddle" then
  712. local DIST = (Position - HITFLOOR.Position).Magnitude
  713. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  714. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  715. end
  716. else
  717. if HITFLOOR.Anchored == true then
  718. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  719. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  720. MakeForm(BLOOD,"Cyl")
  721. coroutine.resume(coroutine.create(function()
  722. Swait(75)
  723. while true do
  724. Swait()
  725. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  726. if BLOOD.Size.Z < 0.051 then
  727. BLOOD:remove()
  728. break
  729. end
  730. end
  731. end))
  732. end
  733. end
  734. end
  735. end
  736. end
  737.  
  738. function SprayBlood(POSITION,DIRECTION,BloodSize)
  739. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  740. BLOOD.CFrame = CF(POSITION)
  741. MakeForm(BLOOD,"Ball")
  742. local bv = Instance.new("BodyVelocity",BLOOD)
  743. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  744. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  745. bv.Name = "MOVE"
  746. Debris:AddItem(bv,0.05)
  747. coroutine.resume(coroutine.create(function()
  748. local HASTOUCHEDGROUND = false
  749. local HIT = BLOOD.Touched:Connect(function(hit)
  750. if hit.Anchored == true then
  751. HASTOUCHEDGROUND = true
  752. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  753. end
  754. end)
  755. wait(5)
  756. if HASTOUCHEDGROUND == false then
  757. BLOOD:remove()
  758. end
  759. end))
  760. end
  761.  
  762. Debris = game:GetService("Debris")
  763.  
  764. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  765. local DIRECTION = CF(StartPos,EndPos).lookVector
  766. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  767. end
  768.  
  769. function turnto(position)
  770. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  771. end
  772.  
  773. function recurse(root,callback,i)
  774. i= i or 0
  775. for _,v in pairs(root:GetChildren()) do
  776. i = i + 1
  777. callback(i,v)
  778.  
  779. if #v:GetChildren() > 0 then
  780. i = recurse(v,callback,i)
  781. end
  782. end
  783.  
  784. return i
  785. end
  786.  
  787. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  788. attachmentName = attachmentName.."RigAttachment"
  789. local constraint = Instance.new(className.."Constraint")
  790. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  791. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  792. constraint.Name = "RagdollConstraint"..part1.Name
  793.  
  794. for _,propertyData in next,properties or {} do
  795. constraint[propertyData[1]] = propertyData[2]
  796. end
  797.  
  798. constraint.Parent = character
  799. end
  800.  
  801. function getAttachment0(character, attachmentName)
  802. for _,child in next,character:GetChildren() do
  803. local attachment = child:FindFirstChild(attachmentName)
  804. if attachment then
  805. return attachment
  806. end
  807. end
  808. end
  809.  
  810. function R15Ragdoll(character)
  811. recurse(character, function(_,v)
  812. if v:IsA("Attachment") then
  813. v.Axis = Vector3.new(0, 1, 0)
  814. v.SecondaryAxis = Vector3.new(0, 0, 1)
  815. v.Rotation = Vector3.new(0, 0, 0)
  816. end
  817. end)
  818. for _,child in next,character:GetChildren() do
  819. if child:IsA("Accoutrement") then
  820. for _,part in next,child:GetChildren() do
  821. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  822. local attachment1 = part:FindFirstChildOfClass("Attachment")
  823. local attachment0 = getAttachment0(character,attachment1.Name)
  824. if attachment0 and attachment1 then
  825. local constraint = Instance.new("HingeConstraint")
  826. constraint.Attachment0 = attachment0
  827. constraint.Attachment1 = attachment1
  828. constraint.LimitsEnabled = true
  829. constraint.UpperAngle = 0
  830. constraint.LowerAngle = 0
  831. constraint.Parent = character
  832. end
  833. elseif part.Name == "HumanoidRootPart" then
  834. part:remove()
  835. end
  836. end
  837. end
  838. end
  839.  
  840. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  841. {"LimitsEnabled",true};
  842. {"UpperAngle",5};
  843. })
  844. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  845. {"LimitsEnabled",true};
  846. {"UpperAngle",15};
  847. })
  848.  
  849. local handProperties = {
  850. {"LimitsEnabled", true};
  851. {"UpperAngle",0};
  852. {"LowerAngle",0};
  853. }
  854. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  855. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  856.  
  857. local shinProperties = {
  858. {"LimitsEnabled", true};
  859. {"UpperAngle", 0};
  860. {"LowerAngle", -75};
  861. }
  862. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  863. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  864.  
  865. local footProperties = {
  866. {"LimitsEnabled", true};
  867. {"UpperAngle", 15};
  868. {"LowerAngle", -45};
  869. }
  870. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  871. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  872.  
  873. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  874. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  875. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  876. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  877. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  878. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  879. end
  880.  
  881. function Ragdoll(Character2,CharTorso)
  882. Character2:BreakJoints()
  883. local hum = Character2:findFirstChild("Humanoid")
  884. hum:remove()
  885. local function Scan(ch)
  886. local e
  887. for e = 1,#ch do
  888. Scan(ch[e]:GetChildren())
  889. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  890. ch[e]:remove()
  891. end
  892. end
  893. end
  894. local NEWHUM = IT("Humanoid")
  895. NEWHUM.Name = "Corpse"
  896. NEWHUM.Health = 0
  897. NEWHUM.MaxHealth = 0
  898. NEWHUM.PlatformStand = true
  899. NEWHUM.Parent = Character2
  900. NEWHUM.DisplayDistanceType = "None"
  901.  
  902. local ch = Character2:GetChildren()
  903. local i
  904. for i = 1,#ch do
  905. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  906. ch[i]:remove()
  907. end
  908. end
  909.  
  910. local Torso2 = Character2.Torso
  911. local movevector = Vector3.new()
  912.  
  913. if Torso2 then
  914. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  915. local Head = Character2:FindFirstChild("Head")
  916. if Head then
  917. local Neck = Instance.new("Weld")
  918. Neck.Name = "Neck"
  919. Neck.Part0 = Torso2
  920. Neck.Part1 = Head
  921. Neck.C0 = CFrame.new(0, 1.5, 0)
  922. Neck.C1 = CFrame.new()
  923. Neck.Parent = Torso2
  924.  
  925. end
  926. local Limb = Character2:FindFirstChild("Right Arm")
  927. if Limb then
  928.  
  929. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  930. local Joint = Instance.new("Glue")
  931. Joint.Name = "RightShoulder"
  932. Joint.Part0 = Torso2
  933. Joint.Part1 = Limb
  934. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  935. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  936. Joint.Parent = Torso2
  937.  
  938. local B = Instance.new("Part")
  939. B.TopSurface = 0
  940. B.BottomSurface = 0
  941. B.formFactor = "Symmetric"
  942. B.Size = Vector3.new(1, 1, 1)
  943. B.Transparency = 1
  944. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  945. B.Parent = Character2
  946. local W = Instance.new("Weld")
  947. W.Part0 = Limb
  948. W.Part1 = B
  949. W.C0 = CFrame.new(0, -0.5, 0)
  950. W.Parent = Limb
  951.  
  952. end
  953. local Limb = Character2:FindFirstChild("Left Arm")
  954. if Limb then
  955.  
  956. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  957. local Joint = Instance.new("Glue")
  958. Joint.Name = "LeftShoulder"
  959. Joint.Part0 = Torso2
  960. Joint.Part1 = Limb
  961. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  962. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  963. Joint.Parent = Torso2
  964.  
  965. local B = Instance.new("Part")
  966. B.TopSurface = 0
  967. B.BottomSurface = 0
  968. B.formFactor = "Symmetric"
  969. B.Size = Vector3.new(1, 1, 1)
  970. B.Transparency = 1
  971. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  972. B.Parent = Character2
  973. local W = Instance.new("Weld")
  974. W.Part0 = Limb
  975. W.Part1 = B
  976. W.C0 = CFrame.new(0, -0.5, 0)
  977. W.Parent = Limb
  978.  
  979. end
  980. local Limb = Character2:FindFirstChild("Right Leg")
  981. if Limb then
  982.  
  983. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  984. local Joint = Instance.new("Glue")
  985. Joint.Name = "RightHip"
  986. Joint.Part0 = Torso2
  987. Joint.Part1 = Limb
  988. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  989. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  990. Joint.Parent = Torso2
  991.  
  992. local B = Instance.new("Part")
  993. B.TopSurface = 0
  994. B.BottomSurface = 0
  995. B.formFactor = "Symmetric"
  996. B.Size = Vector3.new(1, 1, 1)
  997. B.Transparency = 1
  998. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  999. B.Parent = Character2
  1000. local W = Instance.new("Weld")
  1001. W.Part0 = Limb
  1002. W.Part1 = B
  1003. W.C0 = CFrame.new(0, -0.5, 0)
  1004. W.Parent = Limb
  1005.  
  1006. end
  1007. local Limb = Character2:FindFirstChild("Left Leg")
  1008. if Limb then
  1009.  
  1010. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1011. local Joint = Instance.new("Glue")
  1012. Joint.Name = "LeftHip"
  1013. Joint.Part0 = Torso2
  1014. Joint.Part1 = Limb
  1015. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1016. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1017. Joint.Parent = Torso2
  1018.  
  1019. local B = Instance.new("Part")
  1020. B.TopSurface = 0
  1021. B.BottomSurface = 0
  1022. B.formFactor = "Symmetric"
  1023. B.Size = Vector3.new(1, 1, 1)
  1024. B.Transparency = 1
  1025. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1026. B.Parent = Character2
  1027. local W = Instance.new("Weld")
  1028. W.Part0 = Limb
  1029. W.Part1 = B
  1030. W.C0 = CFrame.new(0, -0.5, 0)
  1031. W.Parent = Limb
  1032.  
  1033. end
  1034. --[
  1035. local Bar = Instance.new("Part")
  1036. Bar.TopSurface = 0
  1037. Bar.BottomSurface = 0
  1038. Bar.formFactor = "Symmetric"
  1039. Bar.Size = Vector3.new(1, 1, 1)
  1040. Bar.Transparency = 1
  1041. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1042. Bar.Parent = Character2
  1043. local Weld = Instance.new("Weld")
  1044. Weld.Part0 = Torso2
  1045. Weld.Part1 = Bar
  1046. Weld.C0 = CFrame.new(0, 0.5, 0)
  1047. Weld.Parent = Torso2
  1048. --]]
  1049. end
  1050. Character2.Parent = workspace
  1051. Debris:AddItem(Character2,5)
  1052.  
  1053. return Character2,Torso2
  1054. end
  1055.  
  1056. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  1057. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "1757389224", "1757405356", VT(0.07,0.07,0.07), VT(0,0, 0))
  1058. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, LeftArm, Gun, CF(0.2, -1, 0.2) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
  1059.  
  1060. canworld = true
  1061.  
  1062. we = true
  1063.  
  1064. function time()
  1065. CreateSound("907330619", Head, 10, 1)
  1066. wait(1)
  1067. local function weld(lol)
  1068. local weld = Instance.new("Weld", plr.Character.Torso)
  1069. weld.Part0 = plr.Character.Torso
  1070. weld.Part1 = lol
  1071. weld.C0 = plr.Character.Torso.CFrame:inverse()
  1072. weld.C1 = lol.CFrame:inverse()
  1073. end
  1074. wait(1.4)
  1075.  
  1076. for i, v in pairs(game.Players:GetChildren()) do
  1077. t = v.Character:FindFirstChild("Torso")
  1078. if t then
  1079. t.Anchored = true
  1080. plr.Character:FindFirstChild("Torso").Anchored = false
  1081. end
  1082. RA = v.Character:FindFirstChild("Right Arm")
  1083. if RA then
  1084. RA.Anchored = true
  1085. plr.Character:FindFirstChild("Right Arm").Anchored = false
  1086. end
  1087. LA = v.Character:FindFirstChild("Left Arm")
  1088. if LA then
  1089. LA.Anchored = true
  1090. plr.Character:FindFirstChild("Left Arm").Anchored = false
  1091. end
  1092. RL = v.Character:FindFirstChild("Right Leg")
  1093. if RL then
  1094. RL.Anchored = true
  1095. plr.Character:FindFirstChild("Right Leg").Anchored = false
  1096. end
  1097. LL = v.Character:FindFirstChild("Left Leg")
  1098. if LL then
  1099. LL.Anchored = true
  1100. plr.Character:FindFirstChild("Left Leg").Anchored = false
  1101. end
  1102. end
  1103.  
  1104. game.Lighting.TimeOfDay="00:00:00"
  1105. game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
  1106. wait(0.1)
  1107. game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
  1108. wait(0.1)
  1109. game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
  1110. wait(0.1)
  1111. game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
  1112. wait(0.1)
  1113. game.Lighting.OutdoorAmbient=Color3.new(255, 255, 355)
  1114. wait(10)
  1115. for i, v in pairs(game.Players:GetChildren()) do
  1116. t = v.Character:FindFirstChild("Torso")
  1117. if t then
  1118. t.Anchored = false
  1119. end
  1120. RA = v.Character:FindFirstChild("Right Arm")
  1121. if RA then
  1122. RA.Anchored = false
  1123. end
  1124. LA = v.Character:FindFirstChild("Left Arm")
  1125. if LA then
  1126. LA.Anchored = false
  1127. end
  1128. RL = v.Character:FindFirstChild("Right Leg")
  1129. if RL then
  1130. RL.Anchored = false
  1131. end
  1132. LL = v.Character:FindFirstChild("Left Leg")
  1133. if LL then
  1134. LL.Anchored = false
  1135. end
  1136. end
  1137.  
  1138.  
  1139. game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
  1140. wait(0.1)
  1141. game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
  1142. wait(0.1)
  1143. game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
  1144. wait(0.1)
  1145. game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
  1146.  
  1147. game.Lighting.OutdoorAmbient=Color3.new(135/255, 135/255, 128/255)
  1148. game.Lighting.TimeOfDay="15:00:00"
  1149.  
  1150. end
  1151.  
  1152. function Space()
  1153. sky = Instance.new('Sky', game.Lighting)
  1154. sky.MoonTextureId = 'rbxasset://sky/moon.png'
  1155. sky.SkyboxBk = 'http://www.roblox.com/asset/?id=159248188'
  1156. sky.SkyboxDn = 'http://www.roblox.com/asset/?id=159248183'
  1157. sky.SkyboxFt = 'http://www.roblox.com/asset/?id=159248187'
  1158. sky.SkyboxLf = 'http://www.roblox.com/asset/?id=159248173'
  1159. sky.SkyboxRt = 'http://www.roblox.com/asset/?id=159248192'
  1160. sky.SkyboxUp = 'http://www.roblox.com/asset/?id=159248176'
  1161. sky.Name = 'Space'
  1162.  
  1163. for i,v in pairs(workspace:getChildren()) do
  1164. if v.ClassName == 'Part' and v.Name == 'Base' then
  1165. v.Transparency = 1
  1166. v.Size = Vector3.new(2048, 1, 2048)
  1167. end
  1168. end
  1169. workspace.Gravity = 10
  1170. end
  1171.  
  1172.  
  1173. function Space2()
  1174. sky = game.Lighting:findFirstChild('Space')
  1175. sky:Destroy()
  1176.  
  1177. for i,v in pairs(workspace:getChildren()) do
  1178. if v.ClassName == 'Part' and v.Name == 'Base' then
  1179. v.Transparency = 0
  1180. v.Size = Vector3.new(2048, 1, 2048)
  1181. end
  1182. end
  1183. workspace.Gravity = 196.5
  1184. end
  1185. function Mind()
  1186. ATTACK = true
  1187. Rooted = true
  1188. CreateSound("907332856", Head, 10, 1)
  1189. for i=0, 1, 0.1 / Animation_Speed do
  1190. Swait()
  1191. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1195. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1196. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1197. end
  1198. for i=0, 1, 0.1 / Animation_Speed do
  1199. Swait()
  1200. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1201. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1202. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1203. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1204. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1205. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1206. end
  1207. local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
  1208. local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "495572467", "495572476", VT(1,1,1), VT(0,0, 0))
  1209. local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1210. for i=0, 1, 0.1 / Animation_Speed do
  1211. Swait()
  1212. 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)
  1213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1216. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1217. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1218. end
  1219. Wind:remove()
  1220. local broken = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "broken", VT(0, 0, 0),false)
  1221. local HandleMesh = CreateMesh("SpecialMesh", broken, "FileMesh", "926826971", "926827014", VT(1,1,1), VT(0,0, 0))
  1222. local Weld = CreateWeldOrSnapOrMotor("Weld", broken, Torso, broken, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1223. for i=0, 1, 0.1 / Animation_Speed do
  1224. Swait()
  1225. 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)
  1226. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1227. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1228. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1229. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1230. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1231. end
  1232. broken:remove()
  1233. ATTACK = false
  1234. Rooted = false
  1235. end
  1236.  
  1237. function power2()
  1238. we = true
  1239. ATTACK = true
  1240. Rooted = true
  1241. CreateSound("1843115950", Head, 10, 1)
  1242. for i=0, 1, 0.1 / Animation_Speed do
  1243. Swait()
  1244. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1245. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1246. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1247. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1248. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1249. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1250. end
  1251. for i=0, 1, 0.1 / Animation_Speed do
  1252. Swait()
  1253. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1254. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1255. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1256. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1257. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1258. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1259. end
  1260. local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
  1261. local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "433838302", "1031083476", VT(3,3,3), VT(0,0, 0))
  1262. local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -5) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1263. game.Players.LocalPlayer.Character["Wind"].Touched:connect(function(hit)
  1264. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1265. if we == true then
  1266. humanoid:TakeDamage(50)
  1267. end
  1268. end)
  1269. for i=0, 1, 0.1 / Animation_Speed do
  1270. Swait()
  1271. 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)
  1272. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1273. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1274. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1275. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1276. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1277. end
  1278. for i=0, 1, 0.1 / Animation_Speed do
  1279. Swait()
  1280. 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)
  1281. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1282. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1283. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1284. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1285. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1286. end
  1287. we = false
  1288. Wind:remove()
  1289. ATTACK = false
  1290. Rooted = false
  1291. end
  1292.  
  1293. function all_together_now()
  1294. ATTACK = true
  1295. Rooted = true
  1296. CreateSound("907329532", Head, 10, 1)
  1297. for i=0, 1, 0.1 / Animation_Speed do
  1298. Swait()
  1299. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1300. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1301. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1302. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1303. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1304. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1305. end
  1306. for i=0, 1, 0.1 / Animation_Speed do
  1307. Swait()
  1308. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1309. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1310. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1311. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1312. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1313. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1314. end
  1315. for i=0, 1, 0.1 / Animation_Speed do
  1316. Swait()
  1317. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1318. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1319. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1320. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1321. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1322. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1323. end
  1324. for i=0, 1, 0.1 / Animation_Speed do
  1325. Swait()
  1326. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1327. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1328. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1329. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1330. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1331. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1332. end
  1333. CreateSound("217767125", Head, 10, 1)
  1334. for i,v in pairs(workspace:GetChildren()) do
  1335. if v.ClassName == "Model" then
  1336. local human = v:FindFirstChildOfClass("Humanoid")
  1337. if human and human.Parent.Name ~= chara.Name then
  1338. human.Parent:BreakJoints()
  1339. end
  1340. end
  1341. end
  1342.  
  1343. for i=0, 1, 0.1 / Animation_Speed do
  1344. Swait()
  1345. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1346. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1347. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1348. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1349. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1350. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1351. end
  1352. CreateSound("907333294", Head, 10, 1)
  1353. for i=0, 1, 0.1 / Animation_Speed do
  1354. Swait()
  1355. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1356. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1357. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1358. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1359. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1360. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1361. end
  1362. for i=0, 1, 0.1 / Animation_Speed do
  1363. Swait()
  1364. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1365. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1366. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1367. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1368. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1369. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1370. end
  1371. for i=0, 1, 0.1 / Animation_Speed do
  1372. Swait()
  1373. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1374. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1375. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1376. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1377. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1378. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1379. end
  1380. ATTACK = false
  1381. Rooted = false
  1382. end
  1383.  
  1384. function Taunt()
  1385. ATTACK = true
  1386. Rooted = true
  1387. CreateSound("907331038", Head, 10, 1)
  1388. for i=0, 1, 0.1 / Animation_Speed do
  1389. Swait()
  1390. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1391. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1392. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1393. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1394. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1395. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1396. end
  1397. for i=0, 1, 0.1 / Animation_Speed do
  1398. Swait()
  1399. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1400. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1401. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1402. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1403. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1404. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1405. end
  1406. for i=0, 1, 0.1 / Animation_Speed do
  1407. Swait()
  1408. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1410. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1411. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1412. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1413. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1414. end
  1415. for i=0, 1, 0.1 / Animation_Speed do
  1416. Swait()
  1417. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1418. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1419. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1420. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1421. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1422. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1423. end
  1424. ATTACK = false
  1425. Rooted = false
  1426. end
  1427.  
  1428. function power()
  1429. we = true
  1430. ATTACK = true
  1431. Rooted = true
  1432. CreateSound("1843115950", Head, 10, 1)
  1433. for i=0, 1, 0.1 / Animation_Speed do
  1434. Swait()
  1435. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1436. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1437. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1438. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1439. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1440. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1441. end
  1442. game.Players.LocalPlayer.Character["Gun"].Touched:connect(function(hit)
  1443. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1444. if we == true then
  1445. humanoid:TakeDamage(50)
  1446. end
  1447. end)
  1448. for i=0, 1, 0.1 / Animation_Speed do
  1449. Swait()
  1450. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1454. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1455. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1456. end
  1457. we = false
  1458. ATTACK = false
  1459. Rooted = false
  1460. end
  1461.  
  1462. function MouseDown(Mouse)
  1463. end
  1464.  
  1465. function MouseUp(Mouse)
  1466. HOLD = false
  1467. end
  1468.  
  1469. function KeyDown(Key)
  1470. KEYHOLD = true
  1471. if Key == "f" and ATTACK == false then
  1472. Taunt()
  1473. end
  1474. if Key == "h" and ATTACK == false then
  1475. all_together_now()
  1476. end
  1477. if Key == "g" and ATTACK == false then
  1478. Mind()
  1479. end
  1480. if Key == "q" and ATTACK == false then
  1481. power()
  1482. end
  1483. if Key == "r" and ATTACK == false then
  1484. Space()
  1485. end
  1486. if Key == "p" and ATTACK == false then
  1487. time()
  1488. end
  1489. if Key == "t" and ATTACK == false then
  1490. Space2()
  1491. end
  1492. if Key == "e" and ATTACK == false then
  1493. power2()
  1494. end
  1495. end
  1496.  
  1497. function KeyUp(Key)
  1498. KEYHOLD = false
  1499. end
  1500.  
  1501. Mouse.Button1Down:connect(function(NEWKEY)
  1502. MouseDown(NEWKEY)
  1503. end)
  1504. Mouse.Button1Up:connect(function(NEWKEY)
  1505. MouseUp(NEWKEY)
  1506. end)
  1507. Mouse.KeyDown:connect(function(NEWKEY)
  1508. KeyDown(NEWKEY)
  1509. end)
  1510. Mouse.KeyUp:connect(function(NEWKEY)
  1511. KeyUp(NEWKEY)
  1512. end)
  1513.  
  1514. while true do
  1515. Swait()
  1516. script.Parent = WEAPONGUI
  1517. ANIMATE.Parent = nil
  1518. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1519. v:Stop();
  1520. end
  1521. SINE = SINE + CHANGE
  1522. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1523. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1524. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1525. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1526. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1527. 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)
  1528. 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)
  1529. 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.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1530. 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.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1531. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1532. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1533. 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)
  1534. 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)
  1535. 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)
  1536. end
  1537. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1538. ANIM = "Jump"
  1539. if PLAYANIMS == true then
  1540. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1541. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1542. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1543. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1544. 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)
  1545. 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)
  1546. end
  1547. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1548. ANIM = "Fall"
  1549. if PLAYANIMS == true then
  1550. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1551. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1552. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1553. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1554. 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)
  1555. 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)
  1556. end
  1557. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1558. ANIM = "Idle"
  1559. if PLAYANIMS == true then
  1560. 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)
  1561. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1562. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1563. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1564. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1565. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1566. end
  1567. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1568. ANIM = "Walk"
  1569. if PLAYANIMS == true then
  1570. 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)
  1571. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1572. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1573. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1574. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
  1575. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
  1576. end
  1577. end
  1578. end
  1579. if Rooted == false then
  1580. Disable_Jump = false
  1581. Humanoid.WalkSpeed = Speed
  1582. elseif Rooted == true then
  1583. Disable_Jump = true
  1584. Humanoid.WalkSpeed = 0
  1585. end
  1586.  
  1587. Humanoid.Health = Humanoid.Health + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement