local TweenService = game:GetService("TweenService")
local SupportButton = script.Parent
local FrameFolder = SupportButton.Parent:WaitForChild("FrameFolder")
local SupportFrame = FrameFolder:WaitForChild("SupportFrame")
local PropertyTable = {}
SupportButton.Activated:Connect(function()
if not SupportFrame.Visible then
SupportFrame.Visible = true
SupportButton.Active = false
local Info = TweenInfo.new(.5,
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out
)
PropertyTable.Size = UDim2.new(0.6, 0, 0.6, 0)
local Tween = TweenService:Create(SupportFrame, Info, PropertyTable)
Tween:Play()
local Connect
Connect = Tween.Completed:Connect(function()
print(SupportFrame.Size)
SupportButton.Active = true
Connect:Disconnect()
end)
end
if SupportFrame.Visible then
SupportButton.Active = false
local NewInfo = TweenInfo.new(.5,
Enum.EasingStyle.Quad,
Enum.EasingDirection.In)
PropertyTable.Size = UDim2.new(0, 0, 0, 0)
local NewTween = TweenService:Create(SupportFrame, NewInfo, PropertyTable)
NewTween:Play()
local Connection
Connection = NewTween.Completed:Connect(function()
SupportFrame.Visible = false
SupportButton.Active = true
Connection:Disconnect()
end)
end
end)
When I test this in game, the UI is just a tiny little dot and its size hasn’t changed at all.
There are no errors in the output by the way,