With this current script, you are accessing the StarterGui, not the player specific gui, as such...
clicking the button will do nothing, since it is not looking for your player.
Functional Improvements:
yesGui= script.Parent
gui= game.Players.LocalPlayer.Tutorial.YES
function onClick()
yesGui.Visible= false
end
gui.MouseButton1Down:connect(onClick)
I also suggest formatting your code as such to save line space...
Additional Improvements:
yesGui= script.Parent
gui= game.Players.LocalPlayer.Tutorial.YES
gui.MouseButton1Down:connect(function()
yesGui.Visible= false
end)
~ Taryo