I know how to get all parents but when I click on the "Enter" button, it shows the text if its success of a failure in STUDIO mode. If I am in a real server, the text does not come up.
--//Variables
player = game.Players.LocalPlayer
TypeHere = player.PlayerGui.CodeGui.TypeHere
Enter = player.PlayerGui.CodeGui.Enter
Weapon = game.Lighting.Weapon --Whatever name you want the item to be that is in lighting
--//Function
Enter.MouseButton1Click:connect(function()
if TypeHere.Text == "youtube" then --"youtube" is the code they need to put in so they can get the item in Lighting
Enter.Text = "Success"
Weapon.Parent = player.Backpack
else
Enter.Text = "Failure"
end
end)

2 comments
The error is: TypeHere is not a valid member of ScreenGui
This was caused on line 3