Simple visible script not working

I made a script that makes a gui visible. So there is a seperate gui and when you press it, it will open another gui from another screen gui.
Script:

local Frame = game.StarterGui.PowersGui

script.Parent.MouseButton1Down:Connect(function()

Frame.FireFrame.Visible = true

end)

There is no errors message, but it doesn’t work and I’m %99 that it’s the right place.

Classic mistake, the game.StarterGui problem. Reference the right GUI correctly after player.PlayerGui and the GUI name.

Is this correct?
local Player = game.Players.LocalPlayer

local PlayerGui = Player.PlayerGui.PowersGui

That should be correct. Why don’t you try it first?

I did and it said:
PowersGui is not a valid member of PlayerGui “Players.SilentSuprion.PlayerGui”

Probably did not parent in time, use WaitForChild("PowersGui").

No error, yet still doesn’t work.

What exactly is that PowersGui? It seems to be a Frame and not a ScreenGui.

It’s a screen gui which shows the abilities they can do.

Check these:

  • LocalScript is used
  • LocalScript is parented correctly(either under some UI piece or elsewhere, please refer to its parent and ancestors)
1 Like