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)
Pretty simple really, here is the simplified version: script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Frame.Visible = true -- ? Lets assume this is the frame's location end