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:
Plugin:
blisstools.rbxmx (278.9 KB)
Thanks in advance.
ItzSapire
(Sapire)
February 6, 2022, 3:37pm
#2
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.
Ty_Scripts
(IAmTrulyGreg)
February 6, 2022, 3:39pm
#4
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)
Ty_Scripts
(IAmTrulyGreg)
February 6, 2022, 3:40pm
#6
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?