Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hitbox = script.Parent
- hitbox.Touched:Connect(function(touch)
- local char = touch.Parent
- if game.Players:GetPlayerFromCharacter(char) then
- if char:FindFirstChild("Humanoid") then
- char.Humanoid.MaxHealth = math.huge
- char.Humanoid.Health = math.huge
- end
- end
- end)
- hitbox.TouchEnded:Connect(function(touch)
- local char = touch.Parent
- if game.Players:GetPlayerFromCharacter(char) then
- if char:FindFirstChild("Humanoid") then
- char.Humanoid.MaxHealth = 100
- char.Humanoid.Health = 100
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement