How do I print to the Client F9 Menu?

Hello everyone! This is my first post on the forum, and I have a strange question.

How can I send prints to the F9 menu (not entirely sure what its called) for players in-game to see? I’ve tried using a LocalScript with a click detector and print function, but this did not work. I’ve checked the forum for similar questions but could not find anything. (unless I’m just blind).

Here is the script I tried:

local CDetector = script.Parent.ClickDetector

function onClick()
	print("Hello!")
end

CDetector.MouseClick:Connect(function()
	onClick()
end)

For clarity: This script does not print anything, but I need it to print the F9 Menu. I am not sure what the problem is.

For further clarity (I realized I was super vague): I want to make it so it prints to a specific player’s client when they themselves click an object, I do not want it to be if another player clicks the object everyone gets the print.

I believe it goes there anytime you print on the Client.

anything that prints goes directly to the developer console (F9)
print
warn
error
TestService

Yes I know, but my issue is different. I am not quite sure why the script I provided isn’t printing at all.

is it running at all where is it parented to
(oh i see it now it needs to be parented to lets say starter gui or starterplayer > starterplayerscripts)

insert a normal script, and go to properties, and set the runcontext to “Client”

your script can now run anywhere while being ran on a client.