Lets keep it short here, what I am basically trying to do is bring an NPC in a certain radius. But I can't seem to do it, any help?
for _,v in pairs(game.Workspace.Custom['-1']:GetDescendants()) do
if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") then
print("Bringing NPC's...")
v:FindFirstChild("HumanoidRootPart").CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(math.random(-30,30),0,math.random(-30,30))
v:FindFirstChild("HumanoidRootPart").Anchored = true
end
end
