-- main:

physicsService:CreateCollisionGroup("Characters")
physicsService:CollisionGroupSetCollidable("Characters", "Characters", false)

players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(handleCharacter)
end)

for i, v in pairs(game.ReplicatedStorage.Enemys:GetChildren()) do
	if v:IsA("Model") then
		handleNPcs(v)
	end
end

for i, v in pairs(game.ReplicatedStorage.Units:GetChildren()) do
	if v:IsA("Model") then
		handleNPcs(v)
	end
end
