Attempt to call a RBXScriptSignal value [error]

Greetings,

Can someone please help me with this error, I am new to bindable events and I am not sure what I have mistaken. Thanks. Code and error are shown down below.


Screenshot 2022-01-10 105759

businesses.ChildAdded:Connect(function(Child)
    -- Code here
end)

This will run whenever something is added to the inside of businesses. This can be any instance.

1 Like

You aren’t using events correctly

businesses.ChildAdded:Connect(function(Child)
    if Child.Name == "Business1Bought" then
        print("Successful event received! Business1Bought")
    end
end)
3 Likes

Ok, thanks, this fixed the error, but when the event gets added in my folder it doesn’t work until I add it a second time, third time etc. (It’s a button that takes 50 cash and then gives them the business, but even though the event is added, it doesn’t work until the button is pressed a second time and the event is added again and it takes 50 cash again.)