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

how to locate a descendant in workspace?

Asked by 7 years ago

I am studying on how to make my own code I just need help with using the locate feature this is what I got so far

game.Workspace.part:FindFirstChild()

the child of workspace named "part" has a child named "Part" the thing is when I try this it says there is an error at first I tried "workspace.part:FindFirstChild()" but it was still an error then I tried "local game.Workspace.part;FindFirstChild()" but it didn't work either.

can some one show me how to use the find feature without it having an error. thanks

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Try

game.Workspace.part:FindFirstChild("Part")
0
no it did not work. when i put in (Part) it was underlined in blue and the output menu said "Argument 1 missing or nil" i have a animation dummy could that effect the script not working? redjacob02 20 — 7y
0
No. Are u sure that part is in Workspace and Part is in part? Not in a model inside of part? rilgundam 65 — 7y
0
yes part is in work space and Part is in part and they are not a model redjacob02 20 — 7y
0
Wait lemme fix the script and it should be good rilgundam 65 — 7y
View all comments (2 more)
0
Ok it should be good now rilgundam 65 — 7y
0
alright thx redjacob02 20 — 7y
Ad

Answer this question