BloodBathOwner

cool

Jan 24th, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 KB | None | 0 0
  1. speeds = 0.5
  2.  
  3. local speaker = game:GetService("Players").LocalPlayer
  4.  
  5. local chr = game.Players.LocalPlayer.Character
  6. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  7.  
  8. nowe = false
  9.  
  10. if nowe == true then
  11. nowe = false
  12.  
  13. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  14. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  15. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  16. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  17. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  18. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  19. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  20. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  21. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  22. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  23. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  24. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  25. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  26. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  27. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  28. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  29. else
  30. nowe = true
  31.  
  32.  
  33.  
  34. for i = 1, speeds do
  35. spawn(function()
  36.  
  37. local hb = game:GetService("RunService").Heartbeat
  38.  
  39.  
  40. tpwalking = true
  41. local chr = game.Players.LocalPlayer.Character
  42. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  43. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  44. if hum.MoveDirection.Magnitude > 0 then
  45. chr:TranslateBy(hum.MoveDirection)
  46. end
  47. end
  48.  
  49. end)
  50. end
  51. game.Players.LocalPlayer.Character.Animate.Disabled = true
  52. local Char = game.Players.LocalPlayer.Character
  53. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  54.  
  55. for i,v in next, Hum:GetPlayingAnimationTracks() do
  56. v:AdjustSpeed(0)
  57. end
  58. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  59. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  60. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  61. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  62. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  63. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  64. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  65. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  66. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  67. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  68. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  69. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  70. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  71. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  72. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  73. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  74. end
  75.  
  76.  
  77.  
  78.  
  79.  
  80. local plr = game.Players.LocalPlayer
  81. local UpperTorso = plr.Character.LowerTorso
  82. local flying = true
  83. local deb = true
  84. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  85. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  86. local maxspeed = 50
  87. local speed = 0
  88.  
  89.  
  90. local bg = Instance.new("BodyGyro", UpperTorso)
  91. bg.P = 9e4
  92. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  93. bg.cframe = UpperTorso.CFrame
  94. local bv = Instance.new("BodyVelocity", UpperTorso)
  95. bv.velocity = Vector3.new(0,0.1,0)
  96. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  97. if nowe == true then
  98. plr.Character.Humanoid.PlatformStand = true
  99. end
  100. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  101. wait()
  102.  
  103. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  104. speed = speed+.5+(speed/maxspeed)
  105. if speed > maxspeed then
  106. speed = maxspeed
  107. end
  108. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  109. speed = speed-1
  110. if speed < 0 then
  111. speed = 0
  112. end
  113. end
  114. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  115. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  116. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  117. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  118. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  119. else
  120. bv.velocity = Vector3.new(0,0,0)
  121. end
  122.  
  123. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  124. end
  125. ctrl = {f = 0, b = 0, l = 0, r = 0}
  126. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  127. speed = 0
  128. bg:Destroy()
  129. bv:Destroy()
  130. plr.Character.Humanoid.PlatformStand = false
  131. game.Players.LocalPlayer.Character.Animate.Disabled = false
  132. tpwalking = false
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. up.MouseButton1Down:connect(function()
  146. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  147.  
  148. end)
  149.  
  150.  
  151. down.MouseButton1Down:connect(function()
  152.  
  153. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2,0)
  154.  
  155. end)
  156.  
  157.  
  158. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  159. wait(0.7)
  160. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  161. game.Players.LocalPlayer.Character.Animate.Disabled = false
  162.  
  163. end)
  164.  
  165.  
  166. plus.MouseButton1Down:connect(function()
  167. speeds = speeds + 1
  168. speed.Text = speeds
  169. if nowe == true then
  170.  
  171.  
  172. tpwalking = false
  173. for i = 1, speeds do
  174. spawn(function()
  175.  
  176. local hb = game:GetService("RunService").Heartbeat
  177.  
  178.  
  179. tpwalking = true
  180. local chr = game.Players.LocalPlayer.Character
  181. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  182. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  183. if hum.MoveDirection.Magnitude > 0 then
  184. chr:TranslateBy(hum.MoveDirection)
  185. end
  186. end
  187.  
  188. end)
  189. end
  190. end
  191. end)
  192. mine.MouseButton1Down:connect(function()
  193. if speeds == 1 then
  194. speed.Text = 'can not be less than 1'
  195. wait(1)
  196. speed.Text = speeds
  197. else
  198. speeds = speeds - 1
  199. speed.Text = speeds
  200. if nowe == true then
  201. tpwalking = false
  202. for i = 1, speeds do
  203. spawn(function()
  204.  
  205. local hb = game:GetService("RunService").Heartbeat
  206.  
  207.  
  208. tpwalking = true
  209. local chr = game.Players.LocalPlayer.Character
  210. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  211. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  212. if hum.MoveDirection.Magnitude > 0 then
  213. chr:TranslateBy(hum.MoveDirection)
  214. end
  215. end
  216.  
  217. end)
  218. end
  219. end
  220. end
  221. end)
Advertisement
Add Comment
Please, Sign In to add comment