So I have been using my health bar script for awhile now. But for some reason they stopped working out side of studio even though I didn't do any changes. Is there some other way I have to do it now? I have check the output and stuff
mob = script.Parent.Parent.Parent.Parent.Parent.Parent
mob:WaitForChild("Humanoid")
function c()
print"changing"
local x = mob.Humanoid.Health/mob.Humanoid.MaxHealth
script.Parent:TweenSize(UDim2.new(x,0,1,0),"Out","Quad",.5,true)
end
c()
mob.Humanoid.HealthChanged:connect(c)
this is parented to a billboard gui in the mobs head basically. In the game it does print "changing" but it doesn't actually change. If someone could point out whats going on it would be really helpful. Thanks.

4 comments
i have almost the same problem. i have a hunger and a thirst bar and they're broken because of roblox. your guis just dont move same as mine. that might be caused because of a tweening error because i use tweeining for my hunger/thirst bars too
try just sizing them instead of tweening
I haven't gotten tweening to work in the past couple of days. People are saying to put it in a local script but that hasn't worked for me. I just set the position and size of the object. [Item is just the placeholder for this] Instead of [item]:TweenPosition, I used [item].Position =
thanks guys, yeah it was a problem with the tweening.