Why isnt my script working?

Hello viewer, I am trying to make a part that when you click it, it changes the text of a sign (not a textlabel) behind it here is some backround info:

A. I have a ClickDetector in the part.
B. I have a part with a surfaceGUI and a text in it named SIGN.

Script:

script.Parent.MouseButton1Down:Connect(function()
game.Workspace.DevSign.SurfaceGui.SIGN.Text = “Dev Meeting Initiated”
wait(5)
game.Workspace.DevSign.SurfaceGui.SIGN.Text = “Dev Meeting In Progress”
end)

So that is my script please help.

The event for ClickDetectors is MouseClick, not MouseButton1Down

3 Likes

As @Subsz said, I recommend changing MouseButton1Down to MouseClick.

2 Likes

As @Amazin_Builds and @Subsz said

Here’s what you have to do

script.parent.ClickDetector.MouseClick:Connect(function()

game.Workspace.DevSign.SurfaceGui.SIGN.Text = “Dev Meeting Initiated”
wait(5)
game.Workspace.DevSign.SurfaceGui.SIGN.Text = “Dev Meeting In Progress”

end)
2 Likes

Thank you to all who replied this will help me alot suprisingly

1 Like