My SurfaceGUI button doesnt work if i hover over it when invisible

Hello guys,

my SurfaceGUI button doesnt work when i hover my mouse over the spot where itll be visible

YES its top layer
YES its a button

but if i dont hover my mouse over it itll work like normal

script for functions:

local Title = script.Parent.Title
local Settings = script.Parent.Settings
local Achv = script.Parent.Achv

----Title----

local TweenService = game:GetService('TweenService')
local TweenTitle = TweenInfo.new(
	0.5,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.Out,
	0,
	false,
	0
)

Title.Play.MouseEnter:Connect(function()
	print("Enter")
	TweenService:Create(Title.Play, TweenTitle, {TextSize = 100}):Play()
end)

Title.Play.MouseLeave:Connect(function()
	print("Leave")
	TweenService:Create(Title.Play, TweenTitle, {TextSize = 80}):Play()
end)

Title.Play.MouseButton1Click:Connect(function()
	Title.Visible = false
end)

script for vis (the intro):

game.ReplicatedStorage.LoadingDone.OnClientEvent:Connect(function()
	--Group intro
	
	task.wait(1)
	
	script.Parent.Parent.Menu.Title.Visible = true
	
	script.Parent:Destroy()
end)

ask me for anything abt scripts if you need it

heres clips for demo

not working (hovering over button)


working (not hover over button)

If you haven’t already done so, you could try placing the SurfaceGUI inside of the StarterGui and setting the adornee property to the part it is placed on. This is because problems can sometimes occur when it is placed in the workspace.

Note: I’m not sure why this doesn’t work when placed in the workspace

it is already in starter gui and i have done the adornee

the error only occurs when i hover the mouse over the button when its invisible