The frame changes visibility, but why doesn’t the UI change sizes?
Note: There are no errors
local ShopButton = script.Parent.ShopButton
ShopButton.MouseButton1Click:Connect(function()
ShopFrame.Visible = not ShopFrame.Visible
local tweenInfo = TweenInfo.new(.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, true)
TweenService:Create(ShopButton, tweenInfo, { Size = UDim2.new(0.047, 0, 0.083, 0) })
end)
2 Likes
you don’t have :Play() in there
Revised code:
local ShopButton = script.Parent.ShopButton
ShopButton.MouseButton1Click:Connect(function()
ShopFrame.Visible = not ShopFrame.Visible
local tweenInfo = TweenInfo.new(.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, true)
TweenService:Create(ShopButton, tweenInfo, { Size = UDim2.new(0.047, 0, 0.083, 0) }):Play()
end)
2 Likes
system
(system)
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.