Advertisement
pitrioptixiop

Roblox | 100 shield potion

Jul 15th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. --drinking it gives you 100 shield
  2. --every time you get attacked you lose a bit of your shield depending on how strong the attack was
  3. --if shield is empty every time you get attacked you lose a bit of your health depending on how strong the attack was
  4. --if health is empty you die
  5. lp = game.Players.LocalPlayer
  6. char = lp.Character
  7. bp = lp.Backpack
  8. pg = lp.PlayerGui
  9. head = char.Head
  10. hum = char:FindFirstChildOfClass("Humanoid")
  11. tool = Instance.new("Tool",bp)
  12. tool.Name = "+100 Shield Potion"
  13. tool.CanBeDropped = false
  14. handle = Instance.new("Part",tool)
  15. handle.Name = "Handle"
  16. handle.Size = Vector3.new(2,2,2)
  17. handle.BrickColor = BrickColor.new("Electric blue")
  18. sparkles = Instance.new("Sparkles",handle)
  19. sparkles.SparkleColor = Color3.new(0,0,1)
  20. tool.Activated:connect(function()
  21. tool:Destroy()
  22. msg = Instance.new("Message",pg)
  23. count = 5
  24. head.Anchored = true
  25. for i=1, 50 do
  26. wait(0.1)
  27. count = count - 0.1
  28. msg.Text = "Drinking..."..tostring(count)
  29. end
  30. msg:Destroy()
  31. head.Anchored = false
  32. mh = hum.MaxHealth
  33. hum.MaxHealth = hum.MaxHealth + 100
  34. hum.Health = hum.MaxHealth
  35. repeat
  36. wait(0.01)
  37. if hum.Health < hum.MaxHealth then
  38. hum.MaxHealth = hum.Health
  39. end
  40. until hum.MaxHealth < mh+1
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement