I've tried this but it gives an error for some reason:

script.Parent.Size.X.Offset = 2 * health

Error: Offset cannot be assigned to

4 comments

1

script.Parent.Size = script.Parent.Size + UDim2.new(0, health*2, 0, 0)

0

For some reason we can't manually edit those properties

1

Are you trying to make a bar that resizes to the player's health?

0

Yeah. I think I've got it now though.