Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer
script.Parent.ChildAdded:Connect(function()
        script.Parent.Group.Parent = script.Parent.Parent["Waiter/Waitress Board"].TextButton.Page1.Order1
end)


2 comments

1

didnt work

1

Found the problem, my dumb self made the Group start in the Parent.

This discussion is preserved as it was. New answers, comments, and votes are closed.