How do you make a Frame visible from a TextButton/ImageButton?
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:
1 | repeat wait() until game.Players.LocalPlayer~ = nil |
3 | script.Parent.MouseButton 1 Click:connect( function (Clicked) |
4 | local player = game.Players:GetPlayerFromCharacter(Clicked) |
6 | local errorframe = game.StarterGui.ComputerGui.ComputerFrame:WaitForChild( "ErrorFrame" ) |
7 | player:WaitForChild( "StarterGui" ).ComputerGui.ComputerFrame:WaitForChild( "ErrorFrame" ).Visible = true |