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

I have a main menu and when you click play I want the store and settings button to become visible?

Here is the script i have for the main menu:

--variables--
local MainFrame = script.Parent
local PlayButton = script.Parent.PlayButton
local UpdateLogButton = script.Parent.UpdateLogButton
local UpdateLogFrame = script.Parent.Parent.UpdateLogFrame
local QuitGameButton = script.Parent.QuitGameButton
local Click = script.Parent.Parent.SoundEffects.ClickSound
local settingsButton = game.StarterGui.SettingsGUI.SettingsButton
local StoreButton = game.StarterGui.StoreGui.ShopButton

--scripts--
PlayButton.MouseButton1Click:Connect(function()
	Click:Play()
	MainFrame.Visible = false
	settingsButton.Visible = true
	StoreButton.Visible = true

end)

UpdateLogButton.MouseButton1Click:Connect(function()
	Click:Play()
	UpdateLogFrame.Visible = true
end)

QuitGameButton.MouseButton1Click:Connect(function()
	Click:Play()
	game.Players.LocalPlayer:Kick("Quit Game")
end)

1 comment

0

Lol main men

1 answer

✓ Accepted answer
	--scripts--
	PlayButton.MouseButton1Click:Connect(function()
	    Click:Play()
	    if MainFrame.Visible == true then
	    MainFrame.Visible = false
	    settingsButton.Visible = true
	    StoreButton.Visible = true

1 comment

0

It seems to not work

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