Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

SOLVED Why doesn't my script work? It just doesn't work, I did it all correct.

Asked by 5 years ago
Edited 5 years ago

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)

0
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) saenae 318 — 5y
0
ok User#23407 5 — 5y

Answer this question