My Script is not working

I want to make a quest system but the main script is not working

script.Parent.MouseClick:Connect(function()
	game.StarterGui.QuestScreen.Enabled = true
	print("it works")
end)

Thats the code, but when i press the button the screenGui Does not show up

It prints but nothing shows up
What do i do?

Sorry if its simple i started scripting this year

Access it from the PlayerGui. All contents of StarterGui get automatically replicated over to the Player’s PlayerGui, when they spawn. I believe accessing from StarterGui will only show up if you reset. You can pass the player who has the clicked the clicked detector in the MouseClick parameter, in which you can access the PlayerGui.

2 Likes