Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. -- Variables
  2.  
  3. local player = game.Players.LocalPlayer
  4.  
  5. local mouse = player:GetMouse()
  6.  
  7. -- Settings
  8.  
  9. bind = "r" -- has to be lowercase
  10.  
  11. bind2 = "t"
  12.  
  13. -- Script
  14.  
  15. mouse.KeyDown:connect(function(key)
  16.  
  17. if key == bind then
  18.  
  19. if (game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15) then
  20.  
  21. if (game.Players.LocalPlayer.Character:FindFirstChild("UpperTorso")) then
  22.  
  23. if (game.Players.LocalPlayer.Character.UpperTorso:FindFirstChild("Waist")) then
  24.  
  25. game.Players.LocalPlayer.Character.UpperTorso.Waist:remove()
  26.  
  27. end
  28.  
  29. end
  30.  
  31. end
  32.  
  33. end
  34.  
  35. end)
  36.  
  37. mouse.KeyDown:connect(function(key2)
  38.  
  39. if key2 == bind2 then
  40.  
  41. if (game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15) then
  42.  
  43. if (game.Players.LocalPlayer.Character:FindFirstChild("LowerTorso")) then
  44.  
  45. if (game.Players.LocalPlayer.Character.LowerTorso:FindFirstChild("Root")) then
  46.  
  47. game.Players.LocalPlayer.Character.LowerTorso.Root:remove()
  48.  
  49. end
  50.  
  51. end
  52.  
  53. end
  54.  
  55. end
  56.  
  57. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement