Advertisement
Nexthestar

$(#^%$*#@^$#@$&#@*$%^#@*

Jun 24th, 2022
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.44 KB | None
  1. repeat wait() until game.Players.LocalPlayer
  2. local player = game.Players.LocalPlayer
  3. player.CameraMaxZoomDistance = 500000
  4. local mouse = player:GetMouse()
  5. local tween = game:GetService("TweenService")
  6. local stamp = tick()
  7. local wstamp = tick()
  8. local teleport = false
  9. game.Players.PlayerRemoving:Connect(function(p)
  10.     if p.Name==player.Name then
  11.         p:Kick()
  12.     end
  13. end)
  14.  
  15. mouse.KeyDown:Connect(function(k)
  16.     local character = player.Character
  17.     if k == "-" then
  18.         if tick()-stamp > 0.3 then
  19.             character.Humanoid.WalkSpeed = 50
  20.             character.Humanoid.JumpPower = 150
  21.             stamp = tick()
  22.         else
  23.             character.Humanoid.WalkSpeed = 80
  24.             character.Humanoid.JumpPower = 150
  25.             stamp = tick()
  26.         end
  27.     elseif k == "x" then
  28.         lastp = character.Humanoid.JumpPower
  29.         character.Humanoid.JumpPower = 100
  30.         character.Humanoid.Jump = true
  31.         character.HumanoidRootPart.Velocity = character.HumanoidRootPart.CFrame.LookVector*150
  32.         wait()
  33.         character.Humanoid.JumpPower = lastp
  34.     elseif k == "v" then
  35.         for i, v in pairs(character:GetDescendants())do
  36.             if(v:IsA("BasePart"))then
  37.                 v.Anchored = true
  38.             end
  39.         end
  40.     --[[elseif(k=="c")then
  41.         local t = mouse.Target
  42.         if(t.CanCollide==true)then
  43.             t.CanCollide = false
  44.         else
  45.             t.CanCollide = true
  46.         end]]
  47.     elseif(k==" ")then
  48.         hrp = game.Players.LocalPlayer.Character.HumanoidRootPart
  49.         hrp.Velocity = Vector3.new(hrp.Velocity.X,50,hrp.Velocity.Z)
  50.     elseif(k=="g")then
  51.         teleport = true
  52.     end
  53. end)
  54. mouse.KeyUp:Connect(function(k)
  55.     local character = player.Character
  56.     if k == "-" then
  57.         character.Humanoid.WalkSpeed = 16
  58.         character.Humanoid.JumpPower = 50
  59.         hrp = character.HumanoidRootPart
  60.         for i = 1, 10 do
  61.             hrp.Velocity = hrp.Velocity+Vector3.new(0,-hrp.Velocity.Y/10,0)
  62.             wait()
  63.         end
  64.     elseif k == "v" then
  65.         for i, v in pairs(character:GetDescendants())do
  66.             if(v:IsA("BasePart"))then
  67.                 v.Anchored = false
  68.             end
  69.         end
  70.     elseif(k=="g")then
  71.         teleport = false
  72.     end
  73. end)
  74.  
  75. mouse.Button1Down:Connect(function()
  76.     local character = player.Character
  77.     if(teleport)then
  78.         character.HumanoidRootPart.CFrame = mouse.Hit
  79.     end
  80. end)
Advertisement
RAW Paste Data Copied
Advertisement