why is this happening vie tried everything but nothings working please help this is my code
`game:GetService("UserInputService").InputBegan:connect(function(inputObject,gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.E then if game.Players.Player.PlayerGui.ScreenGui.Frame == true then game.Players.Player.PlayerGui.ScreenGui.Frame = false
else
game.Players.Player.PlayerGui.ScreenGui.Frame = true
end
end
end)`

4 comments
please post all the code in the Code Block format. it makes it easy to read. PS that code will only work when the player's name is Player. not very common.
ummmm, that wouldnt make sense either way. How can a frame be declared true?
opps
i ment to do .visible == true