Advertisement
fireband12

Untitled

Jan 31st, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local hum = plr.Character.Humanoid
  3. local sc = Instance.new("ScreenGui", plr.PlayerGui)
  4. local i = Instance.new("ImageLabel", sc)
  5. i.Image = "rbxassetid://119611997"
  6. i.Position = UDim2.new(0,500,0,300)
  7. i.BackgroundColor3 = Color3.new(255,255,255)
  8. i.BorderColor3 = Color3.new(255,255,255)
  9. i.BackgroundTransparency = 10
  10. i.Size = UDim2.new(0, (hum.MaxHealth+250),0,60)
  11. local f = Instance.new("Frame", i)
  12. f.Position = UDim2.new(0,0,0,0)
  13. f.BackgroundColor3 = Color3.new(255,255,255)
  14. f.BorderColor3 = Color3.new(255,255,255)
  15. f.BackgroundTransparency = 10
  16. f.Size = UDim2.new(1,0,0,60)
  17. local h = Instance.new("ImageLabel", f)
  18. h.Image = "rbxassetid://119612014"
  19. h.Position = UDim2.new(0,0,0,0)
  20. h.BackgroundColor3 = Color3.new(255,255,255)
  21. h.BorderColor3 = Color3.new(255,255,255)
  22. h.BackgroundTransparency = 10
  23. h.Size = UDim2.new(1,0,0,60)
  24. hum.Changed:connect(function()
  25. f:TweenSize(UDim2.new(0,(hum.Health*3.5),1,0))
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement