Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

HELP Frame is not a valid member of ScreenGui?

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

0

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.

0

ummmm, that wouldnt make sense either way. How can a frame be declared true?

0

opps

0

i ment to do .visible == true

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.