Advertisement
filipaopastebins2134

TTG - Jump Jousts (HealthBar)

Jul 5th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local CustomHealthGUI = Instance.new("ScreenGui")
  5. local HealthFrame = Instance.new("Frame")
  6. local HealthBar = Instance.new("Frame")
  7. local ImageLabel = Instance.new("ImageLabel")
  8. --Properties:
  9. CustomHealthGUI.Name = "Custom Health GUI"
  10. CustomHealthGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11.  
  12. HealthFrame.Name = "HealthFrame"
  13. HealthFrame.Parent = CustomHealthGUI
  14. HealthFrame.BackgroundColor3 = Color3.new(0.333333, 0, 0.498039)
  15. HealthFrame.BorderColor3 = Color3.new(0.333333, 0, 0.498039)
  16. HealthFrame.BorderSizePixel = 0
  17. HealthFrame.Position = UDim2.new(0.0329999998, 0, 0.121693119, 0)
  18. HealthFrame.Size = UDim2.new(0, 389, 0, 44)
  19.  
  20. HealthBar.Name = "HealthBar"
  21. HealthBar.Parent = HealthFrame
  22. HealthBar.BackgroundColor3 = Color3.new(0, 1, 0)
  23. HealthBar.BorderSizePixel = 0
  24. HealthBar.Position = UDim2.new(0, 0, -0.00909094419, 0)
  25. HealthBar.Size = UDim2.new(0, 389, 0, 44)
  26.  
  27. ImageLabel.Parent = HealthFrame
  28. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  29. ImageLabel.BackgroundTransparency = 100
  30. ImageLabel.Position = UDim2.new(-0.0441825502, 0, -0.0939393044, 0)
  31. ImageLabel.Size = UDim2.new(0, 423, 0, 48)
  32. ImageLabel.Image = "rbxassetid://3421766825"
  33. -- Scripts:
  34. function SCRIPT_OLMI77_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_OLMI77_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement