Advertisement
ManityMan

Pacifist Ghost

Jan 16th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.71 KB | None | 0 0
  1. --One Big Rip LOl
  2.  
  3.  
  4.  
  5. script.Parent = nil
  6. Character = game.Players.LocalPlayer.Character
  7. Humanoid = Character.Humanoid
  8. if Humanoid:findFirstChild("Animate") then
  9.   Humanoid:findFirstChild("Animate"):Destroy()
  10. end
  11. Player = game:GetService("Players").LocalPlayer
  12. Character = Player.Character
  13. PlayerGui = Player.PlayerGui
  14. Backpack = Player.Backpack
  15. Torso = Character.Torso
  16. Head = Character.Head
  17. Humanoid = Character.Humanoid
  18. m = Instance.new("Model", Character)
  19. LeftArm = Character["Left Arm"]
  20. LeftLeg = Character["Left Leg"]
  21. RightArm = Character["Right Arm"]
  22. RightLeg = Character["Right Leg"]
  23. LS = Torso["Left Shoulder"]
  24. LH = Torso["Left Hip"]
  25. RS = Torso["Right Shoulder"]
  26. RH = Torso["Right Hip"]
  27. Face = Head.face
  28. Neck = Torso.Neck
  29. attacktype = 1
  30. vt = Vector3.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. cloaked = false
  35. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  36. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  37. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  38. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  39. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  40. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  41. RootPart = Character.HumanoidRootPart
  42. RootJoint = RootPart.RootJoint
  43. RootCF = euler(-1.57, 0, 3.14)
  44. attack = false
  45. attackdebounce = false
  46. deb = false
  47. equipped = true
  48. hand = false
  49. MMouse = nil
  50. combo = 0
  51. mana = 0
  52. trispeed = 0.2
  53. attackmode = "none"
  54. local idle = 0
  55. local Anim = "Idle"
  56. local gun = false
  57. local shoot = false
  58. player = nil
  59. mana = 0
  60. local defensevalue = 0.3
  61. local speedvalue = 1
  62. local damagevalue = 1
  63. local cf = CFrame.new
  64. local mr = math.rad
  65. local angles = CFrame.Angles
  66. local ud = UDim2.new
  67. local c3 = Color3.new
  68. local stats = Instance.new("Folder", Character)
  69. stats.Name = "Stats"
  70. local block = Instance.new("BoolValue", stats)
  71. block.Name = "Block"
  72. block.Value = false
  73. local stun = Instance.new("BoolValue", stats)
  74. stun.Name = "Stun"
  75. stun.Value = false
  76. local defense = Instance.new("NumberValue", stats)
  77. defense.Name = "Defence"
  78. defense.Value = defensevalue
  79. local speed = Instance.new("NumberValue", stats)
  80. speed.Name = "Speed"
  81. speed.Value = speedvalue
  82. local damagea = Instance.new("NumberValue", stats)
  83. damagea.Name = "Damage"
  84. damagea.Value = damagevalue
  85. Humanoid = Character.Humanoid
  86. if Humanoid:FindFirstChild("Animator") then
  87.   Humanoid:FindFirstChild("Animator"):Destroy()
  88. end
  89. Humanoid.WalkSpeed = 20
  90. Colorpart1 = Torso.BrickColor.r
  91. Colorpart2 = Torso.BrickColor.g
  92. Colorpart3 = Torso.BrickColor.b
  93. CloakEffectLight2 = Instance.new("PointLight", Torso)
  94. CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
  95. CloakEffectLight2.Range = 7.5
  96. CloakEffectLight2.Brightness = 7.5
  97. CloakEffectLight2.Enabled = true
  98. mouse = Player:GetMouse()
  99. RSH = nil
  100. LSH = nil
  101. RW = Instance.new("Motor")
  102. LW = Instance.new("Motor")
  103. RW.Name = "Right Shoulder"
  104. LW.Name = "Left Shoulder"
  105. LH = Torso["Left Hip"]
  106. RH = Torso["Right Hip"]
  107. TorsoColor = Torso.BrickColor
  108. NoOutline = function(Part)
  109.  
  110.   Part.TopSurface = 10
  111. end
  112.  
  113. player = Player
  114. ch = Character
  115. RSH = ch.Torso["Right Shoulder"]
  116. LSH = ch.Torso["Left Shoulder"]
  117. RSH.Parent = nil
  118. LSH.Parent = nil
  119. RW.Name = "Right Shoulder"
  120. RW.Part0 = ch.Torso
  121. RW.C0 = cf(1.5, 0.5, 0)
  122. RW.C1 = cf(0, 0.5, 0)
  123. RW.Part1 = ch["Right Arm"]
  124. RW.Parent = ch.Torso
  125. LW.Name = "Left Shoulder"
  126. LW.Part0 = ch.Torso
  127. LW.C0 = cf(-1.5, 0.5, 0)
  128. LW.C1 = cf(0, 0.5, 0)
  129. LW.Part1 = ch["Left Arm"]
  130. LW.Parent = ch.Torso
  131. local weldBetween = function(a, b)
  132.  
  133.   local weldd = Instance.new("ManualWeld")
  134.   weldd.Part0 = a
  135.   weldd.Part1 = b
  136.   weldd.C0 = CFrame.new()
  137.   weldd.C1 = b.CFrame:inverse() * a.CFrame
  138.   weldd.Parent = a
  139.   return weldd
  140. end
  141.  
  142. fat = Instance.new("BindableEvent", script)
  143. fat.Name = "Heartbeat"
  144. script:WaitForChild("Heartbeat")
  145. frame = 1/30
  146. tf = 0
  147. allowframeloss = false
  148. tossremainder = false
  149. lastframe = tick()
  150. script.Heartbeat:Fire()
  151. game:GetService("RunService").Heartbeat:connect(function(s, p)
  152.  
  153.   tf = tf + s
  154.   if frame <= tf then
  155.     if allowframeloss then
  156.       script.Heartbeat:Fire()
  157.       lastframe = tick()
  158.     else
  159.       for i = 1, math.floor(tf / frame) do
  160.         script.Heartbeat:Fire()
  161.       end
  162.       lastframe = tick()
  163.     end
  164.     if tossremainder then
  165.       tf = 0
  166.     else
  167.       tf = tf - frame * math.floor(tf / frame)
  168.     end
  169.   end
  170. end
  171. )
  172. local CFrameFromTopBack = function(at, top, back)
  173.  
  174.   local right = top:Cross(back)
  175.   return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  176. end
  177.  
  178. Triangle = function(a, b, c)
  179.  
  180.   local edg1 = c - a:Dot(b - a.unit)
  181.   local edg2 = a - b:Dot(c - b.unit)
  182.   local edg3 = b - c:Dot(a - c.unit)
  183.   if edg1 <= b - a.magnitude and edg1 >= 0 then
  184.     a = a
  185.   else
  186.     -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  187.  
  188.     if edg2 <= c - b.magnitude and edg2 >= 0 then
  189.       a = b
  190.     else
  191.       -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  192.  
  193.       -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  194.  
  195.       if edg3 <= a - c.magnitude and edg3 >= 0 then
  196.         a = c
  197.       else
  198.         assert(false, "unreachable")
  199.       end
  200.     end
  201.   end
  202.   local len1 = c - a:Dot(b - a.unit)
  203.   local len2 = b - a.magnitude - len1
  204.   local width = a + b - a.unit * len1 - c.magnitude
  205.   local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  206.   local list = {}
  207.   local TrailColor = "Dark grey"
  208.   if len1 > 0.01 then
  209.     local w1 = Instance.new("WedgePart", m)
  210.     game:GetService("Debris"):AddItem(w1, 5)
  211.     w1.Material = "SmoothPlastic"
  212.     w1.FormFactor = "Custom"
  213.     w1.BrickColor = BrickColor.new(TrailColor)
  214.     w1.Transparency = 0
  215.     w1.Reflectance = 0
  216.     w1.Material = "SmoothPlastic"
  217.     w1.CanCollide = false
  218.     NoOutline(w1)
  219.     local sz = Vector3.new(0.2, width, len1)
  220.     w1.Size = sz
  221.     local sp = Instance.new("SpecialMesh", w1)
  222.     sp.MeshType = "Wedge"
  223.     sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  224.     w1:BreakJoints()
  225.     w1.Anchored = true
  226.     w1.Parent = workspace
  227.     w1.Transparency = 0.7
  228.     table.insert(Effects, {w1, "Disappear", 0.01})
  229.     w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  230.     table.insert(list, w1)
  231.   end
  232.   do
  233.     if len2 > 0.01 then
  234.       local w2 = Instance.new("WedgePart", m)
  235.       game:GetService("Debris"):AddItem(w2, 5)
  236.       w2.Material = "SmoothPlastic"
  237.       w2.FormFactor = "Custom"
  238.       w2.BrickColor = BrickColor.new(TrailColor)
  239.       w2.Transparency = 0
  240.       w2.Reflectance = 0
  241.       w2.Material = "SmoothPlastic"
  242.       w2.CanCollide = false
  243.       NoOutline(w2)
  244.       local sz = Vector3.new(0.2, width, len2)
  245.       w2.Size = sz
  246.       local sp = Instance.new("SpecialMesh", w2)
  247.       sp.MeshType = "Wedge"
  248.       sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  249.       w2:BreakJoints()
  250.       w2.Anchored = true
  251.       w2.Parent = workspace
  252.       w2.Transparency = 0.7
  253.       table.insert(Effects, {w2, "Disappear", 0.01})
  254.       w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  255.       table.insert(list, w2)
  256.     end
  257.     do
  258.       return unpack(list)
  259.     end
  260.   end
  261. end
  262.  
  263. rayCast = function(Pos, Dir, Max, Ignore)
  264.  
  265.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  266. end
  267.  
  268. clerp = function(a, b, t)
  269.  
  270.   local qa = {QuaternionFromCFrame(a)}
  271.   local qb = {QuaternionFromCFrame(b)}
  272.   local ax, ay, az = a.x, a.y, a.z
  273.   local bx, by, bz = b.x, b.y, b.z
  274.   local _t = 1 - t
  275.   return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  276. end
  277.  
  278. local clerp = CFrame.new().lerp
  279. QuaternionFromCFrame = function(cf)
  280.  
  281.   local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  282.   local trace = m00 + m11 + m22
  283.   if trace > 0 then
  284.     local s = math.sqrt(1 + trace)
  285.     local recip = 0.5 / s
  286.     return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  287.   else
  288.     do
  289.       local i = 0
  290.       if m00 < m11 then
  291.         i = 1
  292.       end
  293.       if i == 0 and m00 or m11 < m22 then
  294.         i = 2
  295.       end
  296.       if i == 0 then
  297.         local s = math.sqrt(m00 - m11 - m22 + 1)
  298.         local recip = 0.5 / s
  299.         return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  300.       else
  301.         do
  302.           if i == 1 then
  303.             local s = math.sqrt(m11 - m22 - m00 + 1)
  304.             local recip = 0.5 / s
  305.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  306.           else
  307.             do
  308.               if i == 2 then
  309.                 local s = math.sqrt(m22 - m00 - m11 + 1)
  310.                 local recip = 0.5 / s
  311.                 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  312.               end
  313.             end
  314.           end
  315.         end
  316.       end
  317.     end
  318.   end
  319. end
  320.  
  321. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  322.  
  323.   local xs, ys, zs = x + x, y + y, z + z
  324.   local wx, wy, wz = w * xs, w * ys, w * zs
  325.   local xx = x * xs
  326.   local xy = x * ys
  327.   local xz = x * zs
  328.   local yy = y * ys
  329.   local yz = y * zs
  330.   local zz = z * zs
  331.   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))
  332. end
  333.  
  334. QuaternionSlerp = function(a, b, t)
  335.  
  336.   local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  337.   local startInterp, finishInterp = nil, nil
  338.   if cosTheta >= 0.0001 then
  339.     if 1 - cosTheta > 0.0001 then
  340.       local theta = math.acos(cosTheta)
  341.       local invSinTheta = 1 / math.sin(theta)
  342.       startInterp = math.sin((1 - t) * theta) * invSinTheta
  343.       finishInterp = math.sin(t * theta) * invSinTheta
  344.     else
  345.       do
  346.         startInterp = 1 - t
  347.         finishInterp = t
  348.         if 1 + cosTheta > 0.0001 then
  349.           local theta = math.acos(-cosTheta)
  350.           local invSinTheta = 1 / math.sin(theta)
  351.           startInterp = math.sin((t - 1) * theta) * invSinTheta
  352.           finishInterp = math.sin(t * theta) * invSinTheta
  353.         else
  354.           do
  355.             startInterp = t - 1
  356.             finishInterp = t
  357.             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
  358.           end
  359.         end
  360.       end
  361.     end
  362.   end
  363. end
  364.  
  365. sitting = false
  366. resting = false
  367. meditating = false
  368. sprint = false
  369. mouse.Button1Down:connect(function()
  370.  
  371. end
  372. )
  373. print("Only instinct left is survival.")
  374. mouse.KeyDown:connect(function(k)
  375.  
  376.   k = k:lower()
  377.   if k == "z" and attack == false and resting == false and sprint == false and meditating == false then
  378.     attack = true
  379.     if sitting == false then
  380.       sitting = true
  381.       Humanoid.WalkSpeed = 0
  382.       for i = 0, 1, 0.04 do
  383.         fat.Event:wait()
  384.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  385.         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  386.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  387.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  388.         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-60), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  389.         LH.C0 = clerp(LH.C0, cf(-0.75, 0.25, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  390.       end
  391.     elseif sitting == true then
  392.           sitting = false
  393.           for i = 0, 1, 0.04 do
  394.             fat.Event:wait()
  395.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  396.             Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  397.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  398.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  399.             RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-60), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  400.             LH.C0 = clerp(LH.C0, cf(-0.75, 0.25, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  401.           end
  402.           Humanoid.WalkSpeed = 20
  403.         end
  404.         attack = false
  405. end
  406.         if k == "x" and attack == false and sitting == false and sprint == false and meditating == false then
  407.           attack = true
  408.           if resting == false then
  409.             resting = true
  410.             Humanoid.WalkSpeed = 0
  411.             for i = 0, 1, 0.04 do
  412.               fat.Event:wait()
  413.               RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  414.               Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  415.               RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  416.               LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  417.               RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  418.               LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  419.             end
  420.           elseif resting == true then
  421.                 resting = false
  422.                 for i = 0, 1, 0.04 do
  423.                   fat.Event:wait()
  424.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  425.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  426.                   RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  427.                   LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  428.                   RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  429.                   LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  430.                 end
  431.                 Humanoid.WalkSpeed = 20
  432.               end
  433.               attack = false
  434. end
  435.               if k == "c" and attack == false and sitting == false and resting == false and sprint == false then
  436.                 attack = true
  437.                 if meditating == false then
  438.                   meditating = true
  439.                   Humanoid.WalkSpeed = 0
  440.                   for i = 0, 1, 0.04 do
  441.                     fat.Event:wait()
  442.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  443.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  444.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  445.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  446.                     RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  447.                     LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  448.                   end
  449.                 elseif meditating == true then
  450.                       meditating = false
  451.                       for i = 0, 1, 0.04 do
  452.                         fat.Event:wait()
  453.                         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  454.                         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  455.                         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  456.                         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  457.                         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  458.                         LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  459.                       end
  460.                       Humanoid.WalkSpeed = 20
  461.                     end
  462.                     attack = false
  463. end
  464.                     if k == "e" and attack == false and resting == false and sitting == false and meditating == false and sprint == false then
  465.                       sprint = true
  466.                       Humanoid.WalkSpeed = 50
  467.                     end
  468.                   end
  469. )
  470. mouse.KeyUp:connect(function(k)
  471.  
  472.   if k == "e" and attack == false and resting == false and sitting == false and meditating == false and sprint == true then
  473.     sprint = false
  474.     Humanoid.WalkSpeed = 20
  475.   end
  476. end
  477. )
  478. local sine = 0
  479. local change = 1
  480. local val = 0
  481. fat.Event:connect(function()
  482.  
  483.   sine = sine + change
  484.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  485.     local velderp = RootPart.Velocity.y
  486.     hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  487.     if equipped == true or equipped == false then
  488.       if attack == false then
  489.         idle = idle + 1
  490.       else
  491.         idle = 0
  492.       end
  493.       if ((idle >= 500 and attack ~= false) or RootPart.Velocity.y > 1) and hitfloor == nil then
  494.         Anim = "Jump"
  495.         if attack == false then
  496.           change = 1
  497.           RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  498.           Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  499.           RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.15)
  500.           LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.15)
  501.           RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  502.           LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  503.         end
  504.       elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  505.           Anim = "Fall"
  506.           if attack == false then
  507.             change = 1
  508.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.15)
  509.             Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  510.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.15)
  511.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.15)
  512.             RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(10), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  513.             LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  514.           end
  515.         elseif torvel < 1 and hitfloor ~= nil then
  516.             Anim = "Idle"
  517.             if attack == false and sitting == false and resting == false and meditating == false then
  518.               change = 1
  519.               RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  520.               Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  521.               RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55 + 0.05 * math.cos(sine / 30) + -math.sin(sine / 30) / 40, 0) * angles(math.rad(5 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(10 + 5 * math.cos(sine / 30)) + math.sin(sine / 30) / 20), 0.15)
  522.               LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55 + 0.05 * math.cos(sine / 30) + -math.sin(sine / 30) / 40, 0) * angles(math.rad(5 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(-10 - 5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 20), 0.15)
  523.               RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 30), 0.025 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  524.               LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0.025 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  525.             elseif attack == false and sitting == true and resting == false and meditating == false then
  526.                 change = 1
  527.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  528.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  529.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.45, 0) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(10)), 0.15)
  530.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.45, 0) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(-10)), 0.15)
  531.                 RH.C0 = clerp(RH.C0, cf(1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(45 - 2.5 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  532.                 LH.C0 = clerp(LH.C0, cf(-1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(45 - 2.5 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  533.               elseif attack == false and sitting == false and resting == true and meditating == false then
  534.                   change = 1
  535.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.3) * angles(math.rad(-80 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  536.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5 - 1 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  537.                   RW.C0 = clerp(RW.C0, CFrame.new(1, 0.75, 0.1) * angles(math.rad(215 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(-45)), 0.15)
  538.                   LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.75, 0.1) * angles(math.rad(200 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(45)), 0.15)
  539.                   RH.C0 = clerp(RH.C0, cf(1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(25 - 1 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  540.                   LH.C0 = clerp(LH.C0, cf(-1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(10 - 1 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  541.                 elseif attack == false and sitting == false and resting == false and meditating == true then
  542.                     change = 1
  543.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * angles(math.rad(10 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  544.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - 1 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  545.                     RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(0), math.rad(165), math.rad(90)), 0.15)
  546.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(0), math.rad(-165), math.rad(-90)), 0.15)
  547.                     RH.C0 = clerp(RH.C0, cf(1, -1, 0.1) * angles(math.rad(-30), math.rad(75), math.rad(0)) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.15)
  548.                     LH.C0 = clerp(LH.C0, cf(-1, -1, 0.1) * angles(math.rad(-30), math.rad(-75), math.rad(0)) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.15)
  549.                   end
  550.           elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  551.               Anim = "Walk"
  552.               if attack == false and sprint == false then
  553.                 change = 0.5
  554.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  555.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 - 2.5 * math.cos(sine / 3.5)), math.rad(1.5 * math.cos(sine / 7)), math.rad(-7.5 * math.cos(sine / 7))), 0.15)
  556.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.15)
  557.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.15)
  558.                 RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  559.                 LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  560.               elseif attack == false and sprint == true then
  561.                   change = 1
  562.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  563.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 - 2.5 * math.cos(sine / 3.5)), math.rad(1.5 * math.cos(sine / 7)), math.rad(-7.5 * math.cos(sine / 7))), 0.15)
  564.                   RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.15)
  565.                   LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.15)
  566.                   RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.25 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  567.                   LH.C0 = clerp(LH.C0, cf(-1, -0.9 + 0.25 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  568.                 end
  569.             elseif torvel < 22 and hitfloor ~= nil then
  570.                 Anim = "Run"
  571.               end
  572.     end
  573.     if attack == false then
  574.     end
  575.   end
  576. )
  577.  
  578. plr = game.Players.LocalPlayer
  579. char = workspace:WaitForChild(plr.Name)
  580. hum = char.Humanoid
  581. Blue = Color3.new(0, 0, 85)
  582.  
  583. base = Instance.new("ScreenGui",plr.PlayerGui)
  584. bbg = Instance.new("BillboardGui",plr.Character.Head)
  585. bbg.Size = UDim2.new(0,200,0,50)
  586. bbg.StudsOffset = Vector3.new(0,3,0)
  587. bbgTl = Instance.new("TextLabel",bbg)
  588. bbgTl.BackgroundTransparency = 1
  589. bbgTl.Size = UDim2.new(10,0,1,0)
  590. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  591. bbgTl.Font = "SourceSansLight"
  592. bbgTl.Text = ""
  593. bbgTl.TextSize = 50
  594. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  595. bbgTl.TextColor3 = Blue
  596. bbgTl.TextStrokeTransparency = 0
  597. bbgTl.TextWrapped = true
  598. plr.Chatted:connect(function(msg)
  599.     bbgTl.Text = msg
  600.     wait(5)
  601.     if bbgTl.Text == msg then
  602.         bbgTl.Text = " "
  603.     end
  604. end)
  605.  
  606. --Rufus14 Did Teh Goost
  607. ma = math.random(1,999999)
  608. mouse = game.Players.LocalPlayer:GetMouse()
  609. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  610. ff.Visible = false
  611. reering = false
  612. game.Players.LocalPlayer.Character.Head.Running.Volume = 0
  613. shirt = game.Players.LocalPlayer.Character:findFirstChildOfClass("ShirtGraphic")
  614. found = false
  615. if shirt then
  616.     idd = shirt.Graphic
  617.     found = true
  618. end
  619. isinvisible = false
  620. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
  621. game.Players.LocalPlayer.Character.Archivable = true
  622. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  623.     if v.ClassName == "Part" then
  624.         v.Transparency = 1
  625.     end
  626. end
  627. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  628.     if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  629.         v:destroy()
  630.     end
  631. end
  632. killi = false
  633. function reeeee(key)
  634.     if key == "f" then
  635.         if not reering then
  636.             reering = true
  637.             REEEEEEEE = Instance.new("Sound", workspace)
  638.             REEEEEEEE.SoundId = "rbxassetid://135362176"
  639.             REEEEEEEE.Volume = 50
  640.             REEEEEEEE:Play()
  641.             for i,v in pairs(game.Players:GetChildren()) do
  642.                 if v.Name == game.Players.LocalPlayer.Name then
  643.                     --nuthin.
  644.                 else
  645.                     v.Character.Humanoid.Health = v.Character.Humanoid.Health - math.random(0, 0)
  646.                 end
  647.             end
  648.             wait(2)
  649.             reering = false
  650.         end
  651.     end
  652. end
  653. mouse.KeyDown:connect(reeeee)
  654. function isinvi(key)
  655.     if key == "q" then
  656.         isinvisible = not isinvisible
  657.     end
  658. end
  659. function kill(part)
  660.     local humanoid = part.Parent:findFirstChild("Humanoid")
  661.     if humanoid and not killi then
  662.         killi = true
  663. --oki this is face, remember dat
  664.         killi = false
  665.         humanoid.Health = 0
  666.     end
  667. end
  668. game.Players.LocalPlayer.Character.Torso.Touched:connect(kill)
  669. game.Players.LocalPlayer.Character.Head.face.Transparency = 1
  670. game.Players.LocalPlayer.Character["Left Leg"].Transparency = 1
  671. game.Players.LocalPlayer.Character["Left Arm"].Transparency = 1
  672. game.Players.LocalPlayer.Character["Right Leg"].Transparency = 1
  673. game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1
  674. game.Players.LocalPlayer.Character.Parent = workspace.Camera
  675. mouse.KeyDown:connect(isinvi)
  676. while true do
  677.     wait()
  678.     cl = game.Players.LocalPlayer.Character:Clone()
  679.     cl.Parent = workspace
  680.     cl.Humanoid:destroy()
  681.     for i,v in pairs(cl:GetChildren()) do
  682.         if v.ClassName == "Part" then
  683.             if v.Name == "HumanoidRootPart" then
  684.                 v.Transparency = 1
  685.                 v.CanCollide = false
  686.                 v.Anchored = true
  687.             else
  688.                 v.CanCollide = false
  689.                 v.Transparency = 0.6
  690.                 v.Material = "Neon"
  691.                 v.Anchored = true
  692.             end
  693.         end
  694.     end
  695.     if found then
  696.         shirt.Graphic = idd
  697.     end
  698.     for i,v in pairs(cl:GetChildren()) do
  699.         if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  700.             v:destroy()
  701.         end
  702.     end
  703.     for i,v in pairs(cl:GetChildren()) do
  704.         if v.ClassName == "Part" then
  705.             --nothin'
  706.         else
  707.             v:destroy()
  708.         end
  709.     end
  710.     cl.Head.face.Transparency = 0.6
  711.     if isinvisible then
  712.         for i,v in pairs(cl:GetChildren()) do
  713.             if v.ClassName == "Part" then
  714.                 v.Transparency = 1
  715.             end
  716.         end
  717.         cl.Head.face.Transparency = 1
  718.         if found then
  719.             shirt.Graphic = 0
  720.         end
  721.     end
  722.     cl["Left Arm"].CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
  723.     cl["Right Arm"].CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
  724.     cl["Left Leg"].CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame
  725.     cl["Right Leg"].CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame
  726.     if game.Players.LocalPlayer.Character.Humanoid.Health < 1 then
  727.         game.Players.LocalPlayer.Character:destroy()
  728.     end
  729.     game.Debris:AddItem(cl,0.07)
  730. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement