Heya Guys! I am Currently making a model to where when you click a part a GUI Becomes visible
Menu = game.StarterGui.PopUpMenu.Frame
function onClicked()
Menu.Visible = true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
For some reason it didnt become visible. While I was testing in character on studio, I scrolled down its Properties and it read Visible. Any help?

2 comments
Workspace.Model.Menu.Script:3: attempt to index local 'player' (a nil value)
Is it a LocalScript?