I made a custom health bar and it works fine when I'm using roblox studio's server test mode but when I actually activate my game and play on a real server the health bar screws up. I tool screen shots so you can see what I mean.
In studio's server test mode: http://imgur.com/a/R5UOj
On a real server: http://imgur.com/a/PHnx3
Local Script inside Frame:
wait()
local Player = game:GetService'Players'.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Human = Character:WaitForChild("Humanoid")
local HealthFrame = script.Parent
Human.HealthChanged:connect(function(Health)
HealthFrame.Size = UDim2.new(Health/Human.MaxHealth / 3.7,10,0.15,0)
end)
Frame Size: {0, 305},{0, 42} Frame Position: {0, 28},{0, 33}
Thanks!

3 comments
Is the Green Bar inside of the red bar frame?
Because we are basically have the same concept but yours popout for some reason or you have higher zindex
The green bar is not inside the red bar frame, they are both in a screen gui together. The zindex for the green bar is 2 and for the red bar its 1.