local TweenService = game:GetService('TweenService')
local HomeTab = script.Parent
local LeaderboardsTab = script.Parent.Parent.Parent.LeaderboardsTab
local Play = script.Parent.Parent.Parent.Play
local TopBar = script.Parent.Parent.Parent.TopBar
local function HomeTween(t)
if t == 'HomeTween' then
script.Parent:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Exponential, 1)
end
end
game.ReplicatedStorage.TweenEvent.Event:Connect(HomeTween)
local TweenService = game:GetService('TweenService')
local HomeTab = script.Parent
local LeaderboardsTab = script.Parent.Parent.Parent.LeaderboardsTab
local Play = script.Parent.Parent.Parent.Play
local TopBar = script.Parent.Parent.Parent.TopBar
local function TweenCallbacked(state) -- would print out the `Enum.TweenStatus`
warn("tween has been callbacked, state: " .. tostring(state))
end
local function HomeTween(t)
if t == 'HomeTween' then
script.Parent:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Exponential, 1, false, TweenCallbacked)
end
end
game.ReplicatedStorage.TweenEvent.Event:Connect(HomeTween)
This is tweening it shut as in it is going to the size of 0, this is not what is making it visible.
is this possibly whats making it visible? HomeTab.HomeBG.Visible = true