So I want a script that when a block is clicked, a gui appears on screen. I have created a script here, but I don't know what I'm doing wrong. Please explain and correct my mistake, thanks in advance! script:
function onClicked() wait(0) player = game.Players.LocalPlayer player.PlayerGui.ScreenGui.ToDoList1.TextBox.Visible = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)