Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local hum = plr.Character.Humanoid
- local sc = Instance.new("ScreenGui", plr.PlayerGui)
- local i = Instance.new("ImageLabel", sc)
- i.Image = "rbxassetid://119611997"
- i.Position = UDim2.new(0,500,0,300)
- i.BackgroundColor3 = Color3.new(255,255,255)
- i.BorderColor3 = Color3.new(255,255,255)
- i.BackgroundTransparency = 10
- i.Size = UDim2.new(0, (hum.MaxHealth+250),0,60)
- local f = Instance.new("Frame", i)
- f.Position = UDim2.new(0,0,0,0)
- f.BackgroundColor3 = Color3.new(255,255,255)
- f.BorderColor3 = Color3.new(255,255,255)
- f.BackgroundTransparency = 10
- f.Size = UDim2.new(1,0,0,60)
- local h = Instance.new("ImageLabel", f)
- h.Image = "rbxassetid://119612014"
- h.Position = UDim2.new(0,0,0,0)
- h.BackgroundColor3 = Color3.new(255,255,255)
- h.BorderColor3 = Color3.new(255,255,255)
- h.BackgroundTransparency = 10
- h.Size = UDim2.new(1,0,0,60)
- hum.Changed:connect(function()
- f:TweenSize(UDim2.new(0,(hum.Health*3.5),1,0))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement