I'm trying to make a script where if someone clicks the button. The whole Gui gets deleted on the players user. Other players will also get the GUI still
Here's the script
function onClicked(playerWhoClicked) Instance.destroy("game.StarterGui.ScreenGui) end
script.Parent.TextButton.MouseClick:connect(onClicked)
Now here's the output
12:53:04.105 - Players.Player1.PlayerGui.ScreenGui.Frame.TextButton.Script:2: unfinished string near '"game.StarterGui.ScreenGui)'
can someone tell me the correct script

1 comment
Edit your post to use Lua code formatting.