I made local script in click detector
local ClickDetector = script.Parent
ClickDetector.MouseClick:Connect(function()
script.Parent.Parent.Parent["Change Class"]:Destroy()
end)
It didn't work as I expected... it should like Destroy the npc when u click on the npc but it doesn't do anything

3 comments
I did it for opening gui but I can't cuz if I open gui through normal script I can close it in button. I tried to make a button to close the gui through the server but it didn't work...
use TextButton.MouseButton1Down instead
How do I get the Plr now? :u, I can't use parameter there I guess..