Advertisement
filipaopastebins2134

Health Test

Feb 28th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local HealthFrame = Instance.new("Frame")
  6. local title = Instance.new("Frame")
  7. local TextLabel = Instance.new("TextLabel")
  8. local HealthBar = Instance.new("Frame")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. HealthFrame.Name = "HealthFrame"
  14. HealthFrame.Parent = ScreenGui
  15. HealthFrame.BackgroundColor3 = Color3.new(1, 0, 0)
  16. HealthFrame.BorderColor3 = Color3.new(1, 0.666667, 0)
  17. HealthFrame.BorderSizePixel = 5
  18. HealthFrame.Position = UDim2.new(0.0281162132, 0, 0.101391613, 0)
  19. HealthFrame.Size = UDim2.new(0, 344, 0, 23)
  20.  
  21. title.Name = "title"
  22. title.Parent = HealthFrame
  23. title.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  24. title.BorderColor3 = Color3.new(1, 0.666667, 0)
  25. title.BorderSizePixel = 5
  26. title.Position = UDim2.new(0, 0, -1.2899127, 0)
  27. title.Size = UDim2.new(0, 115, 0, 23)
  28.  
  29. TextLabel.Parent = title
  30. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  31. TextLabel.BackgroundTransparency = 1
  32. TextLabel.Size = UDim2.new(0, 115, 0, 23)
  33. TextLabel.Font = Enum.Font.SourceSansBold
  34. TextLabel.Text = "HEALTH"
  35. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  36. TextLabel.TextScaled = true
  37. TextLabel.TextSize = 14
  38. TextLabel.TextWrapped = true
  39.  
  40. HealthBar.Name = "HealthBar"
  41. HealthBar.Parent = HealthFrame
  42. HealthBar.BackgroundColor3 = Color3.new(0, 1, 0)
  43. HealthBar.BorderSizePixel = 0
  44. HealthBar.Position = UDim2.new(-5.58793545e-09, 0, 1.1920929e-07, 0)
  45. HealthBar.Size = UDim2.new(0, 344, 0, 23)
  46. -- Scripts:
  47. function SCRIPT_XFYX68_FAKESCRIPT() -- HealthBar.LocalScript
  48. local script = Instance.new('LocalScript')
  49. script.Parent = HealthBar
  50. wait(.1)
  51. while true do
  52. hp = game.Players.LocalPlayer.Character.Humanoid.Health/100
  53. script.Parent:TweenSize(UDim2.new(hp,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.15)
  54. wait(.2)
  55. end
  56.  
  57. end
  58. coroutine.resume(coroutine.create(SCRIPT_XFYX68_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement