I need to locate TextButton, CameraButton and MapGUI.
That was an example of what else you could do with the original script I gave you. i.e The script above that one.
Hmm… The “TextButton” still doesn’t turn invisible.
Not sure what you’re doing because I tested it in my studio and it works. Are you sure you named everything correctly in the variables at the top?
Is this correct?
local TextButton = (“BackButton”)
local CamButton = (“CameraButton”)
local MapGui = (“ImageButton”)
Also here is my local script(in case it’s the problem of the placement of the script)

No. Just copy and paste what I put in the script exactly.
is this your script or someone else’s?
I made the original script, but someone fixed some errors, but it still doesn’t work.
The “TextButton”, “CamButton”, “MapGui” get underlined.
Try copy and paste the script I gave you again. I made a couple of edits and you might have missed them.
you mean this script, right? I mean I think this is what you mean
No dude.
local ScreenGUI = script.Parent
local TextButton = ScreenGUI:WaitForChild("BackButton")
local CamButton = ScreenGUI:WaitForChild("CameraButton")
local MapGui = ScreenGUI:WaitForChild("ImageButton")
TextButton.MouseButton1Click:Connect(function()
CamButton.Visible = false
TextButton.Visible = true
MapGui.Visible = true
end)
CamButton.MouseButton1Click:Connect(function()
CamButton.Visible = true
TextButton.Visible = false
MapGui.Visible = false
end)
I just made a suggestion as to how you could make it reversible, as I said earlier. If you don’t understand it, I suggest you look up tutorials online if you truly wish to learn how to script.