Click GUI to Open GUI

Can you show your new script???

Maybe remove, “if player then”?

script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
if player then

end
       player.PlayerGui.ScreenGui.Frame.Visible = true

end)

oh yeah that’s wrong…

     ''''
        script.Parent.MouseButton1Click:Connect(function()
        local player = game.Players.LocalPlayer
        if player then


      player.PlayerGui.ScreenGui.Frame.Visible = true
end)

              '''

15:56:11.750 - Players.MrDankM3mes.PlayerGui.ScreenGui.Frame.TextButton.LocalScript:6: Expected identifier when parsing expression, got ‘)’

then do end and end) 99jdojddwq

  '''
    ''''
    script.Parent.MouseButton1Click:Connect(function()
    local player = game.Players.LocalPlayer
    if player then


    player.PlayerGui.ScreenGui.Frame.Visible = true
    end
    end)

          ''' 

       '''

Uhmm, try this.

script.Parent.MouseButton1Click:Connect(function(player)

if player then
    player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("ScreenGui"):WaitForChild("Frame").Visible = true

  end
end)

Obviously, theres other ways to open the GUi but this code is one of them. Also, there is plenty of videos on youtube that you can review if you are confused, for example: https://youtu.be/6r_PBSXzOmI

Still doesn’t do anything :confused:

Can you show me your explorer? You are probably not assigning script.Parent to a textbutton.

Try my script above…

Sure lksfdjlsdjfklsdjflksdjfklsdjflksdjfklsjdfklsdfj (30 chars)

I tried, still doesnt do anything :confused:

then remove the end and if player then part

There is 2 frames with the same name and 2 ScreenGui with the same name so the script will be confused, try change one of the ScreenGui’s name to something else.

Once you have changed your screenGui’s name then change the name in the script as well.

Ok. (30 chars) heklfjlskdfjlksdfjlskdfsfddsff

Then my script should work… (thats probably why the script wasn’t working)

I changed the one I want to appear to “Shop”

Did you change the script too?