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)`
What the error [Child/Property] is not a valid member of [Parent]
means is you're tying to access something from [Parent]
(in this case, ScreenGui
) that doesn't exist. What this error means is that it can't find an object called Frame
that is a child of the object called ScreenGui
.