Gui issues charrr

why is it shrinking on the y axis? when im only changing it on the x

NewCooldown.Position = UDim2.fromScale(0,NewCooldown.Position.Y.Scale + MoveUp)
	
	task.spawn(function()
		for I = Time,0,-0.01 do
			print(I)
			local CooldownBarSize = NewCooldown.CooldownBar.Size
			NewCooldown.CooldownBar.Size = UDim2.fromScale(I/Time,1)
			task.wait(0.01)
		end
		NewCooldown:Destroy()
	end)

Have you got a UIAspectRatioConstraint placed within the bar?

yes

charrrrrrrrrrrrrrrrrr

Youll need to remove the constraint if you want to resize the bar, as in order to keep the shape at the same aspect ratio, the y axis needs to change.

this
If you want to use an AspectRatioConstraint, you’ll need to change it dynamically. That defeats the whole purpose of it, though, to be honest. If you’re using it to make scaling easier on the axes, just set the SizeConstraint variable on the GuiObject itself.

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