Advertisement
son4399

Grow and shrink

Jun 20th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. local m = game.Players.LocalPlayer:GetMouse()
  2. db = true
  3. m.KeyDown:connect(function(k)
  4. k = k:lower()
  5. if k == "e" then
  6. if db == true then
  7. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").MaxHealth = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").MaxHealth +50
  8. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health +50
  9. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed + 5
  10. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").JumpPower = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").JumpPower + 5
  11. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  12. local bds = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyDepthScale')
  13. local bws = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyWidthScale')
  14. local bhs = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyHeightScale')
  15. local hs = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('HeadScale')
  16.  
  17. if bds and bws and bhs and hs then
  18. bds.Value = bds.Value + 0.5
  19. bws.Value = bws.Value + 0.5
  20. bhs.Value = bhs.Value + 0.5
  21. hs.Value = hs.Value + 0.5
  22. db = false
  23. wait(0.00000000001)
  24. db = true
  25. end
  26. end
  27. end
  28. end
  29. end)
  30.  
  31. local t = game.Players.LocalPlayer:GetMouse()
  32. db = true
  33. t.KeyDown:connect(function(k)
  34. k = k:lower()
  35. if k == "q" then
  36. if db == true then
  37. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").MaxHealth = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").MaxHealth -50
  38. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health -50
  39. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed - 5
  40. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").JumpPower = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").JumpPower - 5
  41. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  42. local bds = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyDepthScale')
  43. local bws = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyWidthScale')
  44. local bhs = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('BodyHeightScale')
  45. local hs = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):FindFirstChild('HeadScale')
  46.  
  47. if bds and bws and bhs and hs then
  48. bds.Value = bds.Value - 0.5
  49. bws.Value = bws.Value - 0.5
  50. bhs.Value = bhs.Value - 0.5
  51. hs.Value = hs.Value - 0.5
  52. db = false
  53. wait(0.00000000001)
  54. db = true
  55. end
  56. end
  57. end
  58. end
  59. end)
  60.  
  61. local d = game.Players.LocalPlayer:GetMouse()
  62. dd = true
  63. d.KeyDown:connect(function(k)
  64. k = k:lower()
  65. if k == "f" then
  66. if dd == true then
  67. local Player = game.Players.LocalPlayer
  68. local Charact = game.Workspace:WaitForChild(Player.name)
  69. local RightFoot = Charact:FindFirstChild("RightFoot")
  70. local LeftFoot = Charact:FindFirstChild("LeftFoot")
  71.  
  72. RightFoot.Touched:connect(function(hitpart)
  73. if hitpart.Parent:FindFirstChild("Humanoid")then
  74. hitpart.Parent:FindFirstChild("Humanoid"):TakeDamage(15)
  75. end
  76. end)
  77.  
  78. LeftFoot.Touched:connect(function(hitpart)
  79. if hitpart.Parent:FindFirstChild("Humanoid")then
  80. hitpart.Parent:FindFirstChild("Humanoid"):TakeDamage(15)
  81. end
  82. end)
  83. dd = false
  84. wait (1)
  85. dd = true
  86. end
  87. end
  88. end)
  89.  
  90. print ("'e' to grow")
  91. print ("'q' to shrink")
  92. print ("'f' to enable damage(you cant disable it")
  93. print ("r15 only")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement