local s = 0 -- shield
local s2 = 0
local mh = hum.MaxHealth -- max health
local ms = 100 -- max normal shield
local ms2 = 200
if mh > smh and h > smh then -- set shield
local lmh = mh
s = h - smh -- smh = setmaxhealth(100)
ms = mh - smh
mh = 0
h = h - s
mh = lmh
end
bar.Size = UDim2.new((h/smh)*0.25,0,0,35)
bar2.Size = UDim2.new((s/smh),0,1,0)
bar3.Size = UDim2.new((s/smh2),0,1,0)
I need to make the x scale of bar3 1 by finding how much bigger s is than smh2 which is 200
s is calculated in if statement
the problem is that bar3 scales before the first bar is over 200 or that's roughly what the problem is, i honestly dont know
I wish my lawn was emo so it could cut itself |