You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I made a bar and I want the max bar size to be the same as it is -
What is the issue? Include screenshots / videos if possible!
the bar gets big in the start of the game (first image = normal, second = ingame)
btw the bar doesn’t go right, it goes left after it gets big -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i looked in the developer hub but found no answers
the code
local hungermax = workspace.part.stats.Hunger.Value --100
local hunger = workspace.part.stats.Hunger
hunger.Changed:Connect(function(e)
script.Parent:TweenSize(UDim2.new(e / hungermax, 0, .78, 0), "Out", "Linear", .1)
end)