function onClicked()
	script.parent.frame1.visible = true
	script.parent.frame2.visible = false
end

script.Parent.MouseButton1Down:connect(onClicked)

I'm trying to make a script that when you click a text button it switches between guis, can someone help me fix it? BTW it's a localscript.

2 comments

0

Why do you need it to be a local script? If you do you need to use PlayerGUI

0

oh i was looking at some other ones and it said to use mousebutton1down it has to be a local script