So I am making a script that will make a text pop up if you click on a brick. It doesn't work though, and there are no errors that popped up.
script.Parent.ClickDetector.MouseClick:Connect(function(onClick)
end)
game.Players.LocalPlayer.PlayerGui.DoorBGui.Locked.Visible = true
wait (5) game.Players.LocalPlayer.PlayerGui.DoorBGui.Locked.Visible = false

1 comment
The code needs to be within the function scope