Click GUI to Open GUI

You don’t necessarily have to do localplayer and if player I think that’s causing the error. You can also just script.MouseButton1click: Connect(function()and then whatever you want underneath.
So then it becomes:

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Yourscreengui.Frame.Visible = true
end) 

``

Wdym the name of the local script?

Update the local script with this script, you have changed the ScreenGui’s name so we want to let the script know that too.

Input my code into the script skns

Still doesn’t do anything. ( No errors in Output though)

Change it to this?

Make sure the Frame is not visible in the first place.

Then try my script

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Yourscreengui.Frame.Visible = true
end) 

this should work

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

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

      ''' 

   '''
4 Likes

16:07:31.097 - Players.MrDankM3mes.PlayerGui.ScreenGui.Frame.TextButton.LocalScript:2: attempt to index nil with ‘WaitForChild’

16:08:22.813 - Shop is not a valid member of ScreenGui

They both work. 30 characters…

Have you done the exact name of your screen gui?

I’m guessing your typing them incorrectly…

Yours worked! (30 Chars…)

Send what you got from my script.

KamikazeKid’s Script

script.Parent.MouseButton1Click:Connect(function()

local player = game.Players.LocalPlayer

if player then

player.PlayerGui.Shop.Frame.Visible = true

end

end)

Worked.

They all work you just type them wrong.

yeah probably lol (thanks for helping though!)

Thanks for helping! (30 chars…)

Thanks for helping!!!1