Advertisement
dahpiglz

Untitled

Aug 13th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. character = player.Character
  3. script.Parent = character.Torso
  4. character.Humanoid.WalkSpeed = 24
  5. character.Humanoid.MaxHealth = math.huge
  6. character.Humanoid.Health = math.huge
  7.  
  8. function onTouched (hit)
  9. hit:Destroy()
  10. end
  11.  
  12. script.Parent.Touched:connect(onTouched)
  13.  
  14. game:GetService("UserInputService").InputBegan:connect(function(input)
  15. if input.KeyCode == Enum.KeyCode.LeftShift then
  16. character.Humanoid.WalkSpeed = (100)
  17. end
  18. end)
  19.  
  20. game:GetService("UserInputService").InputEnded:connect(function(input)
  21. if input.KeyCode == Enum.KeyCode.LeftShift then
  22. character.Humanoid.WalkSpeed = (24)
  23. end
  24. end)
  25.  
  26. game:GetService("UserInputService").InputBegan:connect(function(input)
  27. if input.KeyCode == Enum.KeyCode.Zero then
  28. boom = Instance.new("Explosion")
  29. boom.Parent = character
  30. boom.BlastRadius = 1000
  31. boom.Position = (character.Torso.Position)
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement