I want these functions to work, but only when data has been set. "data" is an object value. The problem is that "data" starts of as nil and these cause my script to break, how can I fix that?
data.Value.Items.ChildAdded:connect(update)
data.Value.Items:WaitForChild(script.Parent.Name).Changed:connect(update)

1 comment
doesn't work, I need the functions to work only when data~=nil