Trying to make a quest GUI that opens when you click something.
script.Parent.MouseClick:Connect(function()
game.Players.LocalPlayer.PlayerGui.QuestGUI.Frame.Visible = true
end)
I have that in a local script but nothing happens when I click it. Do I need to use remote events just to change the visibility of a GUI? I also tried it in a non-local script and it said that the GUI was nil even though it was not.
Can anyone enlightenment in how I'm supposed to do this?

3 comments
What's the error when you use a local script? If it is a different ScreenGui you can use BindableEvents.
why would u need a bindable event?
It's just a way that I personally use, we can also index the target gui normally. Anyways, the problem has been answered (MouseClick -> Activated).