Back button not working in plugin

Hi there, I’m working on an update to my plugin, by adding pre-made textures, but the back button isn’t working, any idea why? No errors are outputting in the output.

script.Parent.Activated:Connect(function()
	script.Parent.Parent.Visible = false
	local root = script.Parent.Parent.Parent.Parent
	root.Home.Visible = true
	root.Menu.Visible = true
	root.NotificationFrame.Position = UDim2.new(0, 0, 0.84, 0)
end)

Folder structure:

image

Plugin:
blisstools.rbxmx (278.9 KB)

Thanks in advance.

Try changing activated in to MouseButton1Click

1 Like

It shouldn’t make a difference, my other buttons are using Activated and they are working fine.

Using a dummy UI setup, this works just fine for me. Is it possible that the UI elements in Home and Menu are also Visible = false?

They have been made false

script.Parent.Activated:Connect(function()
	local root = script.Parent.Parent.Parent.Parent
	root.Home.Visible = false
	root.Menu.Visible = false
	root.SubMenus.Textures.Visible = true
	root.NotificationFrame.Position = UDim2.new(0, 0,0.96, 0)
end)

No, I mean are the TextLabels and ImageLabels etc. under Home and Menu invisible? If so, you wouldn’t be able to tell if Home and Menu frames are Visible.

No, most of the UI remains set to visible when the main frame is invisible.

I did just try it out, and it works.

Studio is confusing, why does Activated not work, and something that is basically exactly the same work?