Board not changing text

I am trying to make a script that when you click on a block, then it changes the text of the board. But the script isn’t working.

Script:

local ClickDetector = script.Parent.ClickDetector
local Board = game.InfoBoard.SurfaceGui.BoardText

ClickDetector.MouseClick:Connect(function()
	Board.Text = "Hello"
	wait(5)
	Board.Text = "Bye"
end)

What is game.InfoBoard? You need to say game.Workspace.InfoBoard or wherever your board is.

1 Like

Are you sure InfoBoard is in game and not somewhere in workspace? (check output for errors)

devforum didn’t even load reply above what is happening

1 Like

Oh, thanks. I usually use game.Part.

1 Like