How to make a Gui open/Close For FilteringEnabled?
-- i make a gui but dont work for filtering enabled :c. SomeoneHelp me?
local menu = script.Parent.Parent
local menu2 = script.Parent.Parent.Parent.Multiplayer
local MenuSonido = script.Parent.Parent.MenuSonido
local SonidoClick = script.Parent.Parent.SonidoClick
local button = script.Parent
local text = script.Parent.Body
button.MouseEnter:connect(function()
if not inside then
inside = true
button.BackgroundTransparency = 1
text.TextColor3 = Color3.new(255,255,255)
button.Position = button.Position + UDim2.new(0.05, 0, 0, 0)
button.BorderSizePixel = 5
MenuSonido:play()
end
end)
button.MouseLeave:connect(function()
if inside then
inside = false
button.BackgroundTransparency = 1
text.TextColor3 = Color3.new(255/40, 170/255, 0/255)
button.Position = button.Position - UDim2.new(0.05, 0, 0, 0)
button.BorderSizePixel = 0
end
end)
button.MouseButton1Click:connect(function()
SonidoClick:play()
menu.Visible = false
menu2.Visible = true
end)