So, I recently enabled filtering and I dont know if it is related to the problem I am having but it seems to be that this script only works in studio and not in-game. Why is that?
button = script.Parent
window = button.Parent
function onClicked(GUI)
window:remove()
end
script.Parent.MouseButton1Click:connect(onClicked)

2 comments
Is your game filtering enabled?
Today I made it FE