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

Why won't my customization GUI become visible?

I want to have a customization button that closes the main menu frame and opens the customization frame. However, whenever I click on the text button, only the main menu disappears. This is the code I'm using.


local frame = script.Parent.Parent
local camera = game.Workspace.CamPart
local currentcamera = game.Workspace.CurrentCamera
local customframe = game.StarterGui.CustomizationGUI.Options


script.Parent.Activated:Connect(function()
	if frame.Visible == not false then
		customframe.Visible = not false
		frame.Visible = not true
	end
end)

2 comments

0

OK i have edited my answer should work now.

0

.

1 answer

Try false, not true makes no sense idk how you managed that. Also it will not be in startergui yet playergui.

local player = game.Players.LocalPlayer --grab the player
local frame = script.Parent.Parent
--didn't see why you needed all of that camera stuff
local camera = game.Workspace.CamPart
local currentcamera = game.Workspace.CurrentCamera
--lol
local customframe = player.PlayerGui.CustomizationGUI.Options--It's in playergui!


script.Parent.MouseButton1Click:Connect(function() --activated?
    if frame.Visible == true then --swapped
        customframe.Visible = true--swapped
        frame.Visible =  false--swapped
    end
end)

EDIT: Try MouseButton1Click instead of activated

6 comments

0

That doesn't work. It does absolutely nothing

0

What? Have you used it?

0

Is it a Local Script?

0

Its a local script, I published and tested

0

Hmm

0

OK, edited it.

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