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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
script.Parent.Size = script.Parent.Size + UDim2.new(0, health*2, 0, 0)
For some reason we can't manually edit those properties
Are you trying to make a bar that resizes to the player's health?
Yeah. I think I've got it now though.