Hello everyone. This is my first post here and for a while I have been studying scripting in Roblox. This is a script that isn't working for no reason.
Player=(script.Parent.Parent.Parent.Parent.Parent)
script.Parent.MouseButton1Click:connect(function(Plr) Plr.PlayerGui.ScreenGui:remove() end)

2 comments
Use Player.PlayerGui.ScreenGui:remove() instead. I don't think that 'Plr' is a valid argument for MouseButton1Click. (Also, just as a separate note, using :Destroy() rather than :remove() is a good rule of thumb :P)
ok