Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't my menu disappearing on button press?

Asked by 6 years ago

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)

0
Is it a server script or a local script? Make sure it's a local script or won't work. User#19524 175 — 6y
0
Also, FE is forced so even if Workspace.FilteringEnabled is false it's still true and just a dummy tick box User#19524 175 — 6y
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. DominousSyndicate 41 — 6y
0
And its a server script, thanks for the help, but why doesn't it work as a server script? DominousSyndicate 41 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question