Basically what i’m doing is an oxygen system for my game, and i am currently making the oxygen bar.
The problem is i’m using TweenSize for the bar and this is my current script:
wait(0.2)
while true do
local hp = game.Players.LocalPlayer.Oxygen
script.Parent:TweenSize(UDim2.new(0, 15, 0, hp.Value), "Out", "Sine", 0.15)
wait(0.2)
end
It does work, kind of because when i go play and change the value this is what i get: