I was making a health gui, and i thought i was finished with it but, there was a couple problems when i tested it. One, when ever i move the Gui seems to "Leak" out and does this:
https://gyazo.com/3c022dea7e131bdf80b492e7ced04e7c
When it's susspose to look like this:
https://gyazo.com/f5afc06f1bd2b8d392c2d4afd4217509
I was thinking it was something to due to with the script which is:
--\\Player Variables
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character or Player.Character.Parent
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
local Health = Humanoid.Health
local MaxHealth = Humanoid.MaxHealth
--\\Change Frame When Humanoid Changes Health
Humanoid.Changed:connect(function(Health)
if Health then
local hp = Humanoid.Health/Humanoid.MaxHealth
script.Parent:TweenSize(UDim2.new(hp, 0, 1, 0))
wait()
end
end)
Was it the way i put the Tween Size values or something else?

1 comment
By the way, if
Humanoid.Healthis going overHumanoid.MaxHealthsomehow, that might be why.