Advertisement
filipaopastebins2134

Larva (Yellow) Health Bar Test

Feb 23rd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local ImageLabel = Instance.new("ImageLabel")
  6. local HealthFrame = Instance.new("Frame")
  7. local HealthBar = Instance.new("Frame")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. ImageLabel.Parent = ScreenGui
  13. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  14. ImageLabel.BackgroundTransparency = 100
  15. ImageLabel.Position = UDim2.new(0.649722755, 0, 0, 0)
  16. ImageLabel.Size = UDim2.new(0, 379, 0, 152)
  17. ImageLabel.Image = "rbxassetid://2889967040"
  18.  
  19. HealthFrame.Name = "HealthFrame"
  20. HealthFrame.Parent = ScreenGui
  21. HealthFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  22. HealthFrame.BorderColor3 = Color3.new(1, 0.666667, 0)
  23. HealthFrame.BorderSizePixel = 5
  24. HealthFrame.Position = UDim2.new(0.700944304, 0, 0.0501582101, 0)
  25. HealthFrame.Size = UDim2.new(0, 157, 0, 37)
  26.  
  27. HealthBar.Name = "HealthBar"
  28. HealthBar.Parent = HealthFrame
  29. HealthBar.BackgroundColor3 = Color3.new(0, 1, 0)
  30. HealthBar.BorderSizePixel = 0
  31. HealthBar.Position = UDim2.new(0, 0, -0.0199763328, 0)
  32. HealthBar.Size = UDim2.new(0, 157, 0, 37)
  33. -- Scripts:
  34. function SCRIPT_UALV77_FAKESCRIPT() -- HealthBar.LocalScript
  35.     local script = Instance.new('LocalScript')
  36.     script.Parent = HealthBar
  37.     wait(.1)
  38.     while true do
  39.         hp = game.Players.LocalPlayer.Character.Humanoid.Health/100
  40.         script.Parent:TweenSize(UDim2.new(hp,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.15)
  41.         wait(.2)
  42.     end
  43.  
  44. end
  45. coroutine.resume(coroutine.create(SCRIPT_UALV77_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement