Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- character = player.Character
- script.Parent = character.Torso
- character.Humanoid.WalkSpeed = 24
- character.Humanoid.MaxHealth = math.huge
- character.Humanoid.Health = math.huge
- function onTouched (hit)
- hit:Destroy()
- end
- script.Parent.Touched:connect(onTouched)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- character.Humanoid.WalkSpeed = (100)
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- character.Humanoid.WalkSpeed = (24)
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Zero then
- boom = Instance.new("Explosion")
- boom.Parent = character
- boom.BlastRadius = 1000
- boom.Position = (character.Torso.Position)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement