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

Child Added script is not working as I intended. Help??

Asked by
raid6n 2196 Moderation Voter Community Moderator
4 years ago

Here's the script.

while wait(3) do
    if script.Parent.ChildAdded:Connect() then
        script.Parent.Group.Parent = script.Parent.Parent["Waiter/Waitress Board"].TextButton.Page1.Order1
    end
end

It did not work.

Here's the output if you are willing to try and help me:

10:48:28.708 - Attempt to connect failed: Passed value is not a function

Thank you have a nice day.

1 answer

Log in to vote
1
Answered by 4 years ago
script.Parent.ChildAdded:Connect(function()
        script.Parent.Group.Parent = script.Parent.Parent["Waiter/Waitress Board"].TextButton.Page1.Order1
end)


1
didnt work raid6n 2196 — 4y
1
Found the problem, my dumb self made the Group start in the Parent. raid6n 2196 — 4y
Ad

Answer this question