Trying to make a resume UI

In your script you say AvatarButton.PlayButton, but in the explorer we can see that PlayButton is not a child of AvatarButton. You might want to learn some more about scripting before you ask the devforum. I would recommend the devkings scripting tutorials:

2 Likes

what arrow are you talking about? if you mean error that would kind be hard cause im still short on lua

I didn’t really understand what you meant but what I were saying is that your local ‘Menu’ is incorrect, since ‘MenuFrame’ doesn’t exist in the PlayerGui.

As @XdJackyboiiXd21 said I recommend watching more videos, since errors like that are easily preventable and basic, tutorials can really help you with those.

Always pay attention to those little errors as they can break your whole script.
You were trying to find MenuFrame inside PlayerGui

local Menu = game.Players.LocalPlayer.PlayerGui.MenuFrame

But you can clearly see MenuFrame isn’t directly inside PlayerGui, but inside ‘Menu’.
You were also trying to get ‘PlayButton’ inside AvatarButton, but you can also see PlayButton is not inside AvatarButton.

1 Like

I believe this is the exact code you need to put in

function onClick()
   script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:Connect(onClick)

^ to make the ShopFrame invisible

function onClick()
   script.Parent.Parent.Parent.Parent.Menu.MenuFrame.Visible = false
end
script.Parent.MouseButton1Click:Connect(onClick)

^ To make the MenuFrame invisible

I didn’t know which one exactly you wanted so I put in both

2 Likes

AYYY it works thanks man I tested it

It worked, but you know how to make it so on computer you click " M " and then it pops up

This is one way you can do it, though I recommend not using it unless you have a text button to open it in addition, because mobile players don’t have keyboards…

local m = game.Players.LocalPlayer:GetMouse()
m.KeyDown:connect(function(key,mouse)
	key = key:lower()
	if key == "m" then
		script.Parent.Parent.Parent.Parent.Menu.MenuFrame.Visible = false
        --or 
        script.Parent.Parent.Visible = false
        -- either one
	end
end)
1 Like

The games only going to be on computer for now

My bad! I accidentally left the the two lines to say false
change them from this

script.Parent.Parent.Parent.Parent.Menu.MenuFrame.Visible = false
       
script.Parent.Parent.Visible = false

to

script.Parent.Parent.Parent.Parent.Menu.MenuFrame.Visible = true

script.Parent.Parent.Visible = true

What is the error you are getting?

< Output >

  12:02:24.290  ServerScriptService.SaveData:5: Expected identifier when parsing expression, got 'end'  -  Studio  -  SaveData:5
  12:02:28.020  Players.NubblyFry.PlayerGui.ShopGui.ShopFrame.Tix Value.Tix Currency Counter:7: Expected 'end' (to close 'function' at line 3), got <eof>; did you forget to close 'function' at line 5?  -  Studio  -  Tix Currency Counter:7
  12:02:28.021  Players.NubblyFry.PlayerGui.ShopGui.ShopFrame.Storz Value.Storz Currency Counter:7: Expected 'end' (to close 'function' at line 3), got <eof>; did you forget to close 'function' at line 5?  -  Studio  -  Storz Currency Counter:7
  12:03:53.736  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:53.736  Stack Begin  -  Studio
  12:03:53.736  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:53.736  Stack End  -  Studio
  12:03:56.169  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:56.170  Stack Begin  -  Studio
  12:03:56.170  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:56.170  Stack End  -  Studio
  12:03:56.702  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:56.703  Stack Begin  -  Studio
  12:03:56.704  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:56.704  Stack End  -  Studio
  12:03:56.919  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:56.920  Stack Begin  -  Studio
  12:03:56.920  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:56.920  Stack End  -  Studio
  12:03:57.219  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:57.219  Stack Begin  -  Studio
  12:03:57.219  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:57.220  Stack End  -  Studio
  12:03:57.402  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:57.402  Stack Begin  -  Studio
  12:03:57.402  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:57.403  Stack End  -  Studio
  12:03:57.535  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:57.535  Stack Begin  -  Studio
  12:03:57.536  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:57.536  Stack End  -  Studio
  12:03:57.735  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:57.735  Stack Begin  -  Studio
  12:03:57.736  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:57.736  Stack End  -  Studio
  12:03:58.035  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:58.035  Stack Begin  -  Studio
  12:03:58.035  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:58.036  Stack End  -  Studio
  12:03:58.236  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:58.236  Stack Begin  -  Studio
  12:03:58.237  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:58.237  Stack End  -  Studio
  12:03:58.419  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:58.420  Stack Begin  -  Studio
  12:03:58.420  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:58.420  Stack End  -  Studio
  12:03:58.552  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:58.552  Stack Begin  -  Studio
  12:03:58.553  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:58.553  Stack End  -  Studio
  12:03:58.718  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:03:58.719  Stack Begin  -  Studio
  12:03:58.719  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:03:58.720  Stack End  -  Studio
  12:04:02.336  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:04:02.337  Stack Begin  -  Studio
  12:04:02.337  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:04:02.337  Stack End  -  Studio
  12:04:03.585  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:04:03.586  Stack Begin  -  Studio
  12:04:03.586  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:04:03.587  Stack End  -  Studio
  12:04:03.936  Menu is not a valid member of Player "Players.NubblyFry"  -  Client  -  LocalScript:5
  12:04:03.936  Stack Begin  -  Studio
  12:04:03.936  Script 'Players.NubblyFry.PlayerGui.Menu.MenuFrame.LocalScript', Line 5  -  Studio  -  LocalScript:5
  12:04:03.937  Stack End  -  Studio

Where is this local script in the explorer?

It also may help everyone if you just copy the error once, because they are just duplicates of the same error, it will help you and me a lot.

1 Like

ok sorry about that man ^^||

local print ("Hello World")

don’t worry, we’re all learning!

1 Like

I am guessing either of these two things, either the the local script is in the wrong spot or one of the lines are missing a parent or two, just send a picture of the explorer again…

Ok, so change this

local m = game.Players.LocalPlayer:GetMouse()
m.KeyDown:connect(function(key,mouse)
	key = key:lower()
	if key == "m" then
		script.Parent.Parent.Parent.Parent.Menu.MenuFrame.Visible = true
        --or 
        script.Parent.Parent.Visible = true
        -- either one
	end
end)

to

local m = game.Players.LocalPlayer:GetMouse()
m.KeyDown:connect(function(key,mouse)
	key = key:lower()
	if key == "m" then
		script.Parent.Visible = true
        --or 
        script.Parent.Parent.Parent.ShopGui.ShopFrame.Visible = true
        -- either one
	end
end)
1 Like