game.Workspace.Tycoons.ChildAdded:Connect(function(Tycoon) print(Tycoon) end)
This script which is located in workspace does not detect when a child / model is added into a certain folder in Workspace. but it does detect any child added INTO workspace, not a folder. What is the issue here?
FULL CODE:
local num = 0 game.Workspace.Tycoons.ChildAdded:Connect(function(Tycoon) local startbutton = script.Parent[num] local Name = Tycoon.Owner.Value local Button = startbutton:Clone() num += 1 Button.Parent = script.Parent Button.OwnerV.Value = Tycoon.Owner.Value Button.Owner.Text = Tycoon.Owner.Value Button.Name = num Button.Position = startbutton.Positon + UDim2.new(0,0,100,0) Button.BackgroundTransparency = 0 Button.Owner.TextTransparency = 0 end)
You need quotation marks around Tycoon on line 2. This happens because you defined tycoon in line one so when you reference it in line 2 it thinks you are trying to print what you defined.