Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CD.MouseClick:Connect(function(player)
- local healAmount = 15
- local canDrink = true
- local cooldown = 0.8
- local h = player.Character.Humanoid
- local currentHealth = h.Health
- local newHealth = currentHealth + 15
- local gui = player.PlayerGui.Interaction.Int
- if h and canDrink == true then
- if h.Health > 0 and h.Health < h.MaxHealth then
- canDrink = false
- local currentHealth = h.Health
- local newHealth = currentHealth + healAmount
- h.Health = newHealth
- wait(0.8)
- canDrink = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment