What's wrong with my gui script?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    to solve with my gui problems

  2. What is the issue? Include screenshots / videos if possible!


    my script is not working (the gui should disappear after if the players click the ‘play’ button)

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried to fix scripts and others

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- script.Parent.MouseButton1Click:Connect(function()
	script:Parent.Parent.Visible = false
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Try removing the comments from the code and put this instead:

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.Visible = false
end)

Also, make sure it’s a LocalScript

script.Parent.MouseButton1Click:Connect(function()
	  script.Parent.Parent.Visible = false
end)

wouldnt it not have the colon between the script and the Parent?

Literally had no idea that was there lol, yeah you’re right. Big oversight on my part.

1 Like

oh my goddddddd this worked really thx your the best

1 Like