I'm currently trying to make a computer and one of the apps should open another frame to an error. I've been testing with different scripts and put multiple responses to other questions related and the script still doesn't work. Here is the code I used for my script:
repeat wait() until game.Players.LocalPlayer~=nil
script.Parent.MouseButton1Click:connect(function(Clicked)
local player = game.Players:GetPlayerFromCharacter(Clicked)
local errorframe = game.StarterGui.ComputerGui.ComputerFrame:WaitForChild("ErrorFrame")
player:WaitForChild("StarterGui").ComputerGui.ComputerFrame:WaitForChild("ErrorFrame").Visible = true
end)

3 comments
The frame I'm trying to make visible is still not showing up/becoming visible. I changed the 4th line to the correct location and it still doesn't work.
Oh nevermind. I had to add a parenthesis to the end of the function. Thank you for the answer!
np