while true do
for _, child in pairs(script.Parent:GetChildren()) do
if child:IsA("BasePart") then
child.CanCollide = false
wait(3)
end
end
end
i tried making it false by getting the children of the parent, and it doesnt work
how
why
while true do
for _, child in pairs(script.Parent:GetChildren()) do
if child:IsA("BasePart") then
child.CanCollide = false
wait(3)
end
end
end
i tried making it false by getting the children of the parent, and it doesnt work
how
why
Use the Collision Group Editor
You cannot disable collisions for Humanoids. Use CollisionGroups to disable physics collisions between humanoids.
for _, child in pairs(script.Parent:GetChildren()) do
if child:IsA("BasePart") then
child.CollisionGroup = "BodyPart" -- Change to whatever you named the collision group in the editor (you can also create groups in scripts but I'd reccomend using the editor instead)
end
end