Ok I have an issue I want to find the children's children of a folder so I can change their properites / load them in.
This is my script:
function onTouched(part)
wait (0.5)
if part.Parent:findFirstChild("Humanoid")~=nil then
local map = script.Parent.Parent.Parent
local waves = map.Waves
print (waves)
local Wave1 = waves.Wave1:GetChildren():GetChildren()
print (Wave1)
Wave1.Anchored = false
Wave1.Transparency = 0
end
end
script.Parent.Touched:connect(onTouched)
So when someone touches this part it should make the things visible and make them not anchored.
Instead it just gives me this error:
Workspace.UpgradeOpen.Part.Script:7: attempt to call a nil value
it does print "Waves" from line 6 so it cant be the issue that it doesnt find the folder.
Any help will be appreciated!

3 comments
AAA WHY I SAY CHILDRENS SO MANY TIME SUPER GRAMMAR MISTAKE
Ok but how can I getdecendants twice? So i get decendants and it returns all of the model but I want to edit the children of the model not the model itself
NO, you dont need to get decendants twice, get decendants already returns everything even wave's children's children, if you confused then use 1st way