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

.ChildAdded not functioning as intended?

Asked by 4 years ago

Basically, .ChildAdded doesn't pick up when a child is added to the character. Nothing is printed and there are no errors.

Strangely, everything before it runs perfectly.

Does anyone have any ideas on what is going on?

Character.ChildAdded:Connect(function(instance)
    print("still going")
    if (instance:IsA("Model") and instance.Name == "Stand") then
        print(instance.Name .." is a new stand. :thinking:")
        local ID = instance:WaitForChild("Identity", 30)
        if (Stand.Value ~= ID.Value) then
            Player:Kick("The stand you are given is not the stand you deserve!\nIf this is a mistake, please message a developer!")
        end
    else print(instance:GetFullName().. " is not a new stand!")
    end
end)
0
I copied and paste this script in the StarterCharacterScripts and it printed out " still going \n Workspace.Necro_las.Part is not a new stand!" when I added something inside my char, so the problem must be something else. Necro_las 412 — 4y

Answer this question