I have code that in the beginning show up but has a link to another script and you can go back to that starting menu,

So this script wont work but I'm getting no errors...

local button = script.Parent
local gui = button.Parent 
local repstorage = game:GetService("ServerStorage")
local rep = repstorage.MenuGui
local play = rep.Play.PlayBut
local help = rep.Help.HelpBut
local about = rep.About.AboutBut
local player = game.Players.LocalPlayer

local function onButtonClick()
	
	local guiM = rep:Clone()
			
	player:WaitForChild("PlayerGui")		
	guiM.Parent = player.PlayerGui
	
	button.Visible = false
	button.Active = false
	
	gui.AboutTxT.Visible = false
	gui.AboutTxT.Active = false
	
	about.Visible = true
	about.Active = true
	
	help.Visible = true
	help.Active = true
	
	play.Visible = true
	play.Active = true
	
end
 
button.MouseButton1Click:connect(onButtonClick)

I've added another made another script to insert the other guis from the ServerStorage

serverStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:connect(function(player)
	
		local guiM = serverStorage.MenuGui:Clone()
			
		player:WaitForChild("PlayerGui")		
		guiM.Parent = player.PlayerGui
end)

but it still wont work!

8 comments

0

Because starterGui clones things. Manipulate them in game.Players.LocalPlayer.PlayerGui

0

alright Ill try that

0

did it work?

0

No

0

oh..

0

I misread your question let me fix this

0

Did you ever get this to work m8?

0

Yeah I did thanks!