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?
COMMUNITY QUESTION
How do I make something that is printed, enable a Screen GUI?
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.

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