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
Lol main men