The ":WaitForChild()" also same as like":FindFirstChild()".
The call ":FindFirstChild()" does as it says. It finds the first child of a parent of which you name it. There must always be an argument, most likely a string. Let's see how it works:
game.Workspace.Figure:FindFirstChild("Humanoid")
If you think I explain too hard, explain not cleary, want to see more information with ":FindFirstChild" , click here.
Also, ":WaitForChild()" is find the thing that doesn't exist at testing mode,when you start the game, the thing will appear at the game. Like this :
local part = Instance.New("Part")
part.Parent = game.Workspace
part.Position = Vector3.new("0,0,0")
game.Workspace:WaitForChild("Part").BrickColor = BrickColor.Random()
If you think I explain too hard, explain not cleary, want to see more information with ":WaitForChild()" , click here.
Hope I helped.Thanks for reading!
1 comment
What are you trying to do?