Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HELP Frame is not a valid member of ScreenGui?

Asked by
qwrn12 85
9 years ago

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)`

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. lukeb50 631 — 9y
0
ummmm, that wouldnt make sense either way. How can a frame be declared true? koolkid8099 705 — 9y
0
opps qwrn12 85 — 9y
0
i ment to do .visible == true qwrn12 85 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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.

Ad

Answer this question