Press to destroy gui issue

ok so I’m making this feedback system that works nicely apart from one thing I added this thing so people can delete any bad or silly feedback or bug suggestion because it has a limit and it don’t work I’m not the best at coding

code:

	script.Parent.Parent.Feedback.Destory = true
end)

You would have to use :Delete() instead.

EDIT:
So the script in your case would be

script.Parent.Parent.Feedback:Destroy()
1 Like

This didn’t work the output is having a mental breakdown of texts.

Testing the newer 1

Output

Feedback is not a valid member of TextLabel “Players.3DRobloxGameDev.PlayerGui.Settings.FeedbackFrame.FeedbackScroller.Feedback”

I’m guessing I’m going to need more .parents

Make sure you have the correct path location for feedback compared to the script.

Could you show the explorer please this could help get the position of the UI?

I cant not because the developer forum is experiencing issues…#

UPDATE just needed an extra parent thank you both but when clicking sometimes it takes a while or it remakes it or it duplicates it

it makes them on its own this is properly from another script

Use debris instead, it’s better than :Destroy(), here’s the link Debris for it.

So Debris does it better but the delete seems fine apart from my other code making soo much more stuff

The issue is that you’re just wanting to destroy an object. You have to check that the object is actually there before destroying something.

script.Parent.Parent:WaitForChild("Feedback"):Destroy

You do not control Destroy by using true or false

1 Like