"game.Workspace.[Partname]:Destroy()" script not working

so when you reset the gui continues or???

Well, when the player steps onto the part which triggers the GUI, after the text-string is done, and I have the lines:

script.Parent.Enabled = false

game.Workspace.PopupActivate:Destroy()

at the end of the script, the part is supposed to be destroyed and the GUI is supposed to be not enabled. The part does get destroyed, but whenever a player touches where the part would be, the GUI shows again and does not dissapear. This happens both when I set “ResetOnSpawn” to true, and false.

Have you used any print statements to try and find where the script stops?
I’ve only just joined this topic so if you’ve already done this or it isnt the script then just ignore this.

Usually when I try and disable scripts they dont disable. I dont know why.

2 Likes

If you are doing this in the client it will only destroy for you.

Yeah, I know. I do want it to destroy for only me, but it still shows up for me though.

I haven’t, and I really don’t know how to.

I have a friend who told me that I need to like stop the event or something like that?

The thing is. Its not really recommended to destroy a part with the client. Its recommended setting the transparency to 0 and cancollide false.

But then the player would be able to have the GUI appear again, which I don’t want.

Can touch events happen when can collide is false? I thought they didn’t and if they don’t, I think that’s the solution

Touched events still work even when CanCollide is set to false.

@Normalshow12345 Are you destroying the part on the client, but checking the .Touched event on the server? If so that may be part of the problem.

2 Likes