I am trying to add a bar underneath this GUI where they hover over a TextButton and their bar underneath would “de-grow” the problem I am having is the bar does not look natural when “degrowing”, the bar from the left side would position itself in the middle area and the right side would play its animation. Anyone have any solutions?
Photo
Script
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
local object = script.Parent
object.AnchorPoint = Vector2.new(0, 0)
object.Position = UDim2.new(0.208, 0, 0.222, 0)
script.Parent.Parent.Advertisers.MouseEnter:Connect(function()
object:TweenSize(UDim2.new(0, 20, 0, 3))
object.Position = UDim2.new(0.447, 0, 0.222, 0)
end)
script.Parent.Parent.Advertisers.MouseLeave:Connect(function()
object:TweenSize(UDim2.new(0, 177, 0, 3))
object.Position = UDim2.new(0.208, 0, 0.222, 0)
end)