I am attempting to make a back and return button on ROBLOX with the Activated:Connect(function() event. For some reason, it won’t work in these two parts of code. I thought there was an issue with Activated, and I tried MouseButton1Click. It still didn’t work. Now, what makes it even weirder is that I have Activated in the same script, and it works for that event. Maybe I made a typo. Just thought I should have another pair of eyes check this.
BackButton.Activated:Connect(function() IGBackground.Visible = false end) ROBUXShopReturnButton.Activated:Connect(function() IGBackground.Visible = false Background.Visible = true end)
I tried finding the buttons not using variables, and it still failed.