Hi, I am making a hotel, but I want it so when you get into your room you click a button to change a block's text It is so Reception see what rooms are checked in. But when I do local CheckIn = game.Workspace.Availability201 it does not come in the menu to autofill and it does not work when I do the function and make it so CheckIn.SurfaceGui.TextLabel.Text = Room 201 Taken, it does not work.
Here is my code:
local CheckIn = game.Workspace.Availability201
function onClicked(playerWhoClicked)
CheckIn.SurfaceGui.TextLabel.Text = Room 201 Taken
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
What do I do?

1 comment
I have a click detector in the button BTW.