How to tween in one direction instead of 2?

Hey! Can someone tell me how to tween in one direction?
script:

(UDim2.new(stamina / 100, 0, 1, 0), "Out", "Linear", 0)

I have had to repost this as a user by the name of xDeltaXen ghosted me after sending a script I had no idea of how it worked. If you do decide to reply, please be open to answer some other question about your solution as I am fairly new.

Thanks!

script.Parent.Size = UDim2.new(stamina/100,0,1,0)

Could you tell me why you have removed “out” and “linear”"?

you set the anchor point of the GUI to 0.5, 0.5 I think

The anchorpoint is set to “0, 0”

What do you exactly mean by one direction? What you’ve provided is exactly one direction.

1 Like

I’ve just figured out I had an aspectratioconstraint in the box, I’ve removed it and it is fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.