I made a Main Menu Screen for my upcoming game, and I was scripting the play button like this, however it doesn’t work. Can someone point out the issue for me? Any help appreciated. Thanks.
local TweenService = game:GetService('TweenService')
local Frame = script.Parent.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
TweenService:Create(
Frame,
TweenInfo.new(2),
{BackgroundTransparency = 1}
):Play()
end)

Image of the setup.