Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't my menu disappearing on button press?

So essentially, I made a menu that fades away when the button is clicked, it works fine in experimental, but in the published version, It doesn't disappear. No errors show up in the developers console. I originally thought it might have to do with FE so I turned it off but that didn't help.

button = script.Parent.Enter
button.MouseButton1Click:Connect(function()
button.Active = false
button.Visible = false
for loop = 1,10 do
	wait(0.1)
	script.Parent.BackgroundTransparency = loop/10
    game:GetService("RunService").Stepped:Wait()
end
end)

Game>StarterGUI>Menu(ScreenGUI)>MainFrame(Frame)>Script + Enter(Textbutton)

4 comments

0

Is it a server script or a local script? Make sure it's a local script or won't work.

0

Also, FE is forced so even if Workspace.FilteringEnabled is false it's still true and just a dummy tick box

0

I dont think it is, roblox specifically said that if its disabled it will only be available to friends. Implying you COULD do it.

0

And its a server script, thanks for the help, but why doesn't it work as a server script?

1 answer

✓ Accepted answer

Every script in a GUI should be a local one, or else it won't work. I've encountered the same mistake too.

This discussion is preserved as it was. New answers, comments, and votes are closed.