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

How do I make something that is printed, enable a Screen GUI?

I already made it that if you click on something, it will print "Clicked!", but I want to make it so that if "Clicked!" is printed, i want it to enable a Screen Gui, how do i do that?

1 comment

0

I think you can't do that. There will always be another way ;)

1 answer

(I am assuming you meant ClickDetector)

script.Parent.ClickDetector.MouseButton1Click:Connect(function(player)
	if player.PlayerGui.ScreenGui.Frame.Visible == true then --//change to your screen gui
		player.PlayerGui.ScreenGui.Frame.Visible = false
	elseif player.PlayerGui.ScreenGui.Frame.Visible == false then
		player.PlayerGui.ScreenGui.Frame.Visible = true
	end
end

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