Help with ClickDetector and GUI

I’m just confused on why my script isn’t enabling/making a GUI visible on the player’s screen upon the left click of a mouse. Please help?

How do I fix this and what errors exist within this?

I’m basically just making a note that the player can pick up and get information on.

Are there any errors in the output?

1 Like

What is your script’s parent? LocalScripts tend to not work within workspace.

StarterGUI.

(characterlimitfill)

Not a single one.

(fillcharacterlimit)

1 Like

I put the LocalScript inside StarterGui and it worked just fine.

game.Workspace.Note.ClickDetector.MouseClick:Connect(function(PlayerWhoClicked)
	local PlayerGui = PlayerWhoClicked.PlayerGui
	PlayerGui.Note1.Enabled = true
end)

https://gyazo.com/8ebc1ab7091a45b67a3f6f1ffd5122da

Apologies, I meant to say StarterGUI, not ScreenGUI.

Do you have an image of the PlayerGui in the explorer?

1 Like

Is this what you mean?
image
Currently, the script in the screenshot is in the localscript under TextLabel

1 Like

Is the frame’s visibility property set to false?

1 Like

Omg, this was likely the most idiotic thing I’ve ever done in my career of Roblox scripting. Thank you so much! I’ve been working on this for two days and I would have never thought I would be dumb enough to accidentally disable it.

SPOILER ALERT: yeah, it was set to false.

1 Like

No problem! :smiley:

(character fill limit)

1 Like