This script is located at spawn, But players still can place parts named Brick1 But the script does not remove the Part that its desired to remove, What is my error to in pairs getting the childrens?
while game:GetService("RunService").Heartbeat:wait() do for i, v in pairs(game.workspace:GetChildren()) do if v and v.Name == "Brick1" and (v.Position - script.Parent.Position).magnitude <= 350 then v:remove() else end end end