Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Roblox broke my health bar gui? New Update?

Asked by 7 years ago

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.

0
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 ARTEK22 135 — 7y
0
try just sizing them instead of tweening ARTEK22 135 — 7y
0
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 = Coasterteam 4 — 7y
0
thanks guys, yeah it was a problem with the tweening. QuantumToast 261 — 7y

Answer this question